Interface: TraceOptions
Defined in: src/lib/rendering/outline/index.ts:5
Options for tracing an outline
Properties
bounds?
optionalbounds?:object
Defined in: src/lib/rendering/outline/index.ts:11
Only trace within this pixel area (e.g. the mask's bounding box)
height
height:
number
width
width:
number
x
x:
number
y
y:
number
normalise?
optionalnormalise?:boolean
Defined in: src/lib/rendering/outline/index.ts:9
Return coordinates from 0 to 1 (default) or in pixels
threshold?
optionalthreshold?:number
Defined in: src/lib/rendering/outline/index.ts:7
Alpha value (0–255) at or above which a pixel is inside