Interface: ParcelPuzzleViewOptions
Defined in: puzzle/ParcelPuzzleView.ts:19
Extends
Properties
separation?
separation?: number;Defined in: puzzle/ParcelPuzzle.ts:10
Fractional expansion of parcel centers about the whole mesh center. Default 0.04.
Inherited from
ParcelPuzzleOptions.separation
relief?
relief?: number;Defined in: puzzle/ParcelPuzzle.ts:12
Local curvature/thickness scale along each parcel's mean normal: 0.15–1. Default 1.
Inherited from
hoverLift?
hoverLift?: number;Defined in: puzzle/ParcelPuzzle.ts:14
Hover displacement in mesh units. Default 4% of the mesh radius.
Inherited from
selectionLift?
selectionLift?: number;Defined in: puzzle/ParcelPuzzle.ts:16
Extra clearance in front of the assembled brain on selection. Default 12% of radius.
Inherited from
ParcelPuzzleOptions.selectionLift
color?
color?: (parcel) => ColorRepresentation;Defined in: puzzle/ParcelPuzzle.ts:17
Parameters
parcel
Readonly<ParcelRecord>
Returns
ColorRepresentation
Inherited from
renderDetail?
renderDetail?: ParcelDetailRenderer;Defined in: puzzle/ParcelPuzzleView.ts:20
labelText?
labelText?: (parcel) => string;Defined in: puzzle/ParcelPuzzleView.ts:22
Display label only; the original ParcelRecord and ID remain unchanged.
Parameters
parcel
Readonly<ParcelRecord>
Returns
string
reducedMotion?
reducedMotion?: boolean;Defined in: puzzle/ParcelPuzzleView.ts:24
Follow the system preference by default.
view?
view?: "lateral" | "medial" | "oblique";Defined in: puzzle/ParcelPuzzleView.ts:25
background?
background?: number;Defined in: puzzle/ParcelPuzzleView.ts:30
Clear colour of the puzzle stage as 0xRRGGBB. Defaults to 0xf0f3f4. Also sets --sv-parcel-puzzle-background on the puzzle element so the chrome matches the canvas.
previewBackground?
previewBackground?: number;Defined in: puzzle/ParcelPuzzleView.ts:35
Clear colour of the selected-piece preview as 0xRRGGBB. Defaults to 0xedf1f2. Also sets --sv-parcel-puzzle-preview-background on the puzzle element.
thickness?
thickness?: number;Defined in: puzzle/buildParcelPuzzle.ts:16
Display thickness in mesh coordinate units, not an anatomical thickness estimate.
Inherited from
backgroundLabel?
backgroundLabel?: number;Defined in: puzzle/buildParcelPuzzle.ts:18
Vertices with this label are omitted. Defaults to 0.