Browse Source

set labels non-pickable

Alexander Rose 6 năm trước cách đây
mục cha
commit
f08121119e

+ 1 - 0
src/mol-plugin/util/structure-labels.ts

@@ -38,6 +38,7 @@ export async function getLabelRepresentation(ctx: RuntimeContext, structure: Str
     const repr = prev || ShapeRepresentation(getLabelsShape, Text.Utils);
     const repr = prev || ShapeRepresentation(getLabelsShape, Text.Utils);
     const data = getLabelData(structure, params);
     const data = getLabelData(structure, params);
     await repr.createOrUpdate(params.options, data).runInContext(ctx);
     await repr.createOrUpdate(params.options, data).runInContext(ctx);
+    repr.setState({ pickable: false })
     return repr;
     return repr;
 }
 }