Skip to content
Shapemetry

@huukhanhnguyen/model / lanes/sheets/crop

lanes/sheets/crop

applyCropToData()

applyCropToData(data, crop): ObjectData | undefined

Parameters

data

ObjectData | undefined

crop

CropRegion

Returns

ObjectData | undefined


cropExtent()

cropExtent(extent, crop): BoundingBox2d

Parameters

extent

BoundingBox2d

crop

CropFractions

Returns

BoundingBox2d


cropRegion()

cropRegion(box): CropRegion

The rectangle the crop fractions describe, as a region.

Parameters

box

BoundingBox2d

Returns

CropRegion


cropRegionOf()

cropRegionOf(curve): CropRegion

Any closed region → the crop area. This is the door a non-rectangular crop comes through; nothing below it knows the shape is a rectangle.

Parameters

curve

Curve2d

Returns

CropRegion


parseCropFractions()

parseCropFractions(value): CropFractions

Parameters

value

unknown

Returns

CropFractions


parseViewportScale()

parseViewportScale(value): number | "auto"

Parameters

value

unknown

Returns

number | "auto"

Last updated: 📖 1 min readEdit on GitHub