From 1c5f4cc00248e5290772e35cf727923692dcb51f Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Thu, 6 Sep 2018 10:08:11 -0700 Subject: [PATCH] added spacefill to canvas example --- src/apps/canvas/structure-view.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/canvas/structure-view.ts b/src/apps/canvas/structure-view.ts index cfffbbb50..32cfa02bf 100644 --- a/src/apps/canvas/structure-view.ts +++ b/src/apps/canvas/structure-view.ts @@ -22,6 +22,7 @@ import { addBoundingBox } from 'mol-geo/mesh/builder/bounding-box'; import { PointRepresentation } from 'mol-geo/representation/structure/representation/point'; import { StructureRepresentation } from 'mol-geo/representation/structure'; import { BehaviorSubject } from 'rxjs'; +import { SpacefillRepresentation } from 'mol-geo/representation/structure/representation/spacefill'; export interface StructureView { readonly viewer: Viewer @@ -66,6 +67,7 @@ export async function StructureView(viewer: Viewer, models: ReadonlyArray<Model> point: false, ballAndStick: false, carbohydrate: false, + spacefill: false, symmetryAxes: false, polymerSphere: false, } @@ -75,6 +77,7 @@ export async function StructureView(viewer: Viewer, models: ReadonlyArray<Model> point: PointRepresentation(), ballAndStick: BallAndStickRepresentation(), carbohydrate: CarbohydrateRepresentation(), + spacefill: SpacefillRepresentation(), } const symmetryAxes = ShapeRepresentation() -- GitLab