pencil.js / scene / SceneOptions
Interface: SceneOptions
Defined in: scene.ts:13
Scene options
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
clip | | Component<ComponentOptions> | null | Other component used to clip the rendering | OffScreenCanvasOptions.clip | container.ts:26 |
cursor | string | null | Cursor on hover | - | scene.ts:15 |
fill | Style | Background color | OffScreenCanvasOptions.fill | offscreen-canvas.ts:13 |
opacity | number | null | Opacity level from 0 to 1 (multiplied with its parents opacity, null means 1) | OffScreenCanvasOptions.opacity | container.ts:16 |
rotation | number | Rotation ratio from 0 to 1 (clockwise) | OffScreenCanvasOptions.rotation | container.ts:18 |
rotationCenter | PositionDefinition | Center of rotation relative to this position | OffScreenCanvasOptions.rotationCenter | container.ts:20 |
scale | | number | PositionDefinition | Scaling ratio or a pair of value for horizontal and vertical scaling | OffScreenCanvasOptions.scale | container.ts:22 |
shown | boolean | Is shown | OffScreenCanvasOptions.shown | container.ts:14 |
zIndex | number | Depth ordering | OffScreenCanvasOptions.zIndex | container.ts:24 |
