Skip to content

pencil.js / scene / SceneOptions

Interface: SceneOptions ​

Defined in: scene.ts:13

Scene options

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
clip| Component<ComponentOptions> | nullOther component used to clip the renderingOffScreenCanvasOptions.clipcontainer.ts:26
cursorstring | nullCursor on hover-scene.ts:15
fillStyleBackground colorOffScreenCanvasOptions.filloffscreen-canvas.ts:13
opacitynumber | nullOpacity level from 0 to 1 (multiplied with its parents opacity, null means 1)OffScreenCanvasOptions.opacitycontainer.ts:16
rotationnumberRotation ratio from 0 to 1 (clockwise)OffScreenCanvasOptions.rotationcontainer.ts:18
rotationCenterPositionDefinitionCenter of rotation relative to this positionOffScreenCanvasOptions.rotationCentercontainer.ts:20
scale| number | PositionDefinitionScaling ratio or a pair of value for horizontal and vertical scalingOffScreenCanvasOptions.scalecontainer.ts:22
shownbooleanIs shownOffScreenCanvasOptions.showncontainer.ts:14
zIndexnumberDepth orderingOffScreenCanvasOptions.zIndexcontainer.ts:24

Released under the MIT License.