Skip to main content

Module model

Module model 

Source
Expand description

Typed view of the Project, Canvas and Layer tables of a .clip.

The layer tree is stored as first-child / next-sibling links: Canvas.CanvasRootFolder is the root folder’s Layer.MainId, and LayerFirstChildIndex / LayerNextIndex hold MainIds (0 = none). Siblings are listed bottom to top (the paper first). See docs/spec/03-canvas-and-layers.md.

Structs§

Canvas
Settings of the canvas (one row of Canvas).
Layer
One row of Layer, with the commonly used columns typed.
LayerNode
A layer and its children (bottom to top).
LayerTree
All layers and the tree they form.
Project
One row of Project (in a .clip: name and links to the canvas).

Enums§

LayerKind
What a layer is. Derived from LayerType, LayerFolder and which optional columns are filled (no single column holds it).
Unit
CanvasUnit / CropFrameUnitKind and friends.

Constants§

LAYER_TYPE_CORRECTION
LayerType bit of a tone-correction layer.
LAYER_TYPE_MASKED
LayerType bit of a layer with a mask.
LAYER_TYPE_PAPER
LayerType of the paper (用紙) layer.
LAYER_TYPE_RASTER
LayerType bit of a pixel layer.
LAYER_TYPE_ROOT
LayerType of the root folder.
LAYER_TYPE_STORY_INFO
LayerType of a story info (作品情報) layer.
OPACITY_FULL
LayerOpacity of a fully opaque layer (100 %).