@vitavision/stage2d 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,8 @@ deprecated predecessor, still exported unchanged.
21
21
 
22
22
  `ImageLayer` draws the photograph at its natural size. It can show a `preview` tier until
23
23
  the stage would magnify it, then load the full image and keep it, and it turns pixelated past
24
- `pixelatedAbove`. `StageButton` takes a `hint` and a `shortcut` for a richer tooltip, and
24
+ `pixelatedAbove`. `gain` and `gamma` draw it through a display tone curve (`gain × v^(1 / gamma)`
25
+ per channel, on screen only) for reading a dark or low-contrast frame. `StageButton` takes a `hint` and a `shortcut` for a richer tooltip, and
25
26
  `StageLayersMenu` is a layers button for `StageToolbar`. Code outside the stage, such as an
26
27
  inspector's "frame this", drives it through `ImageStage`'s `ref` (`StageHandle`: `frame`,
27
28
  `fit`, `zoomTo`). `initialView="fit"` opens a `null` view at fit even when the image would fit
@@ -75,6 +76,22 @@ and the edges between lattice neighbours as two batched paths, each axis restyle
75
76
  `@vitavision/charts` maps fit) or an `rgba` buffer as one image, rasterised in an effect, placed over the
76
77
  image (or `rect`), pixelated from 4 CSS px per cell. `rasterizePlane` and `planeRange` are pure.
77
78
 
79
+ **Contours**: `ContourLayer` draws the iso-lines of a `ValuePlane` channel (marching squares, in image coordinates, placed like a
80
+ `HeatmapLayer` of the same plane). `levels` is a list or `{ step, origin? }`; `dashedLevels` draws a level dashed (a threshold, zero) even when
81
+ `levels` lacks it; `labels` writes the level along long lines. A cell touching `NaN` holds no line, so a line ends at a hole. Solid and dashed
82
+ levels are one path each. `contourPaths` and `resolveLevels` are pure.
83
+
84
+ **Vector fields**: `VectorField` draws many arrows (a displacement, a flow, the direction and size of an error) from
85
+ flat `anchors` `[x, y, …]` and `vectors` `[dx, dy, …]` as a halo path and one path per colour step, never one element per vector.
86
+ - **Scale:** a number is image pixels per data unit; `{ length, percentile }` makes the percentile vector span `length`
87
+ screen pixels at every zoom. The default is the 95th percentile at 28 screen px.
88
+ - **Colour:** one tone (`color` or a `role`), or by magnitude through `colormap` over `range` (the `@vitavision/charts` maps fit).
89
+ - **Absent data:** a non-finite number, or an arrow under one screen pixel, is not drawn.
90
+ - **Pointer:** `onHoverChange` and `onItemPress` pick the vector whose anchor is nearest.
91
+ - **Key:** `VectorFieldKey` shows an arrow of a round length with its value ("0.1 px") at the field's scale, for the
92
+ stage's readout (`bare` inside a `StageReadout`'s `extra`).
93
+ - **Pure functions:** `arrowPath`, `vectorMagnitudes`, `magnitudePercentile`, `imagePerUnit`, `niceLength`, `colorBin`.
94
+
78
95
  **Rotated shapes**: `ShapeEditor` edits `{ cx, cy, width, height, rotation }` as a rectangle or an ellipse:
79
96
  eight handles resize in the shape's own frame (the opposite side stays put), a rotation handle turns it, the
80
97
  interior moves it, arrow keys nudge it. **Rotation is radians, clockwise on screen** (Konva's degrees are
package/dist/index.d.ts CHANGED
@@ -656,6 +656,8 @@ export declare function CompareLayer({ a, b, mode, split, defaultSplit, onSplitC
656
656
  * - **Pixelated past a zoom.** Above about 4× the browser's smoothing paints detail the
657
657
  * sensor never recorded; on a metrology bench the sensor's own samples are what is worth
658
658
  * looking at.
659
+ * - **A display tone curve.** A dark or low-contrast frame is read with a gain and a gamma
660
+ * applied on screen only (`gain`, `gamma`): the pixels the app measures are untouched.
659
661
  */
660
662
  /** A downscaled tier of the image, shown until the stage would magnify it. */
661
663
  interface ImageTier {
@@ -681,6 +683,20 @@ interface ImageLayerBaseProps {
681
683
  onLoad?: (() => void) | undefined;
682
684
  /** Called when the full image fails to load. */
683
685
  onError?: (() => void) | undefined;
686
+ /**
687
+ * Display gain: each channel is multiplied by it and clipped at white, after `gamma`.
688
+ * Defaults to 1. A negative value counts as 0, one that is not finite as 1.
689
+ *
690
+ * Like `gamma`, it changes what is drawn, never the image data: a way to read a dark or
691
+ * low-contrast frame, not a correction to measure on.
692
+ */
693
+ gain?: number | undefined;
694
+ /**
695
+ * Display gamma, as an image editor's levels control: each channel `v` (0 to 1, as encoded in
696
+ * the file) is drawn as `gain × v^(1 / gamma)`. Above 1 it lifts the shadows and mid-tones,
697
+ * below 1 it darkens them. Defaults to 1; a value that is not positive counts as 1.
698
+ */
699
+ gamma?: number | undefined;
684
700
  /** Merged onto both images with `cn`. */
685
701
  className?: string | undefined;
686
702
  }
@@ -707,11 +723,14 @@ type ImageLayerProps = ImageLayerBaseProps & ({
707
723
  * With a `preview`, the full image is wanted once the stage would magnify the preview, and
708
724
  * `onFullNeeded` says so; `src` can be supplied then rather than up front.
709
725
  *
726
+ * With a `gain` or `gamma` other than 1, both images are drawn through one SVG tone-curve filter
727
+ * (sRGB values, per channel) and carry `data-adjusted`.
728
+ *
710
729
  * Each image carries `data-tier` (`preview` or `full`); the full image carries `data-loaded`
711
730
  * once it has loaded, the preview carries `data-wants-full` from the moment the full image is
712
731
  * wanted until it has loaded, and both carry `data-pixelated` while pixelated.
713
732
  */
714
- export declare function ImageLayer({ src, preview, alt, pixelatedAbove, onFullNeeded, onLoad, onError, className }: ImageLayerProps): import("react").JSX.Element;
733
+ export declare function ImageLayer({ src, preview, alt, pixelatedAbove, onFullNeeded, onLoad, onError, gain, gamma, className }: ImageLayerProps): import("react").JSX.Element;
715
734
  //#endregion
716
735
  //#region src/components/stage/StageSurface.d.ts
717
736
  /** What a drag does as the pointer moves and when it is released, in image coordinates. */
@@ -2842,6 +2861,318 @@ type HeatmapLayerProps = HeatmapRgbaProps | HeatmapPlaneProps;
2842
2861
  */
2843
2862
  export declare function HeatmapLayer(props: HeatmapLayerProps): import("react").JSX.Element | null;
2844
2863
  //#endregion
2864
+ //#region src/components/ContourLayer.d.ts
2865
+ /** Props of `ContourLayer`. */
2866
+ interface ContourLayerProps {
2867
+ /** The field, as decoded by `decodePlane`. `NaN` is "no data": a line never crosses it. */
2868
+ plane: ValuePlane;
2869
+ /** Which channel of the plane. Defaults to the first. */
2870
+ channel?: number | undefined;
2871
+ /**
2872
+ * The levels to draw: a list of values, or `{ step, origin? }` for every multiple of `step`
2873
+ * (from `origin`, default 0) inside the channel's finite range. A step that would give more than
2874
+ * 64 levels is widened by whole multiples. Pass a stable value: a new one recomputes the lines.
2875
+ */
2876
+ levels: readonly number[] | {
2877
+ step: number;
2878
+ origin?: number | undefined;
2879
+ };
2880
+ /**
2881
+ * Levels drawn dashed: a significance threshold, zero. They are drawn even when `levels` does
2882
+ * not contain them, and a level in both is dashed. Compared with a relative tolerance of 1e-9.
2883
+ */
2884
+ dashedLevels?: readonly number[] | undefined;
2885
+ /**
2886
+ * Write each line's level on it: `true` for the level to three significant figures, or a
2887
+ * function. Labels are horizontal, sit along lines at least 90 screen pixels long (again every
2888
+ * 280), only inside the viewport, and at most 200 at a time.
2889
+ */
2890
+ labels?: boolean | ((level: number) => string) | undefined;
2891
+ /**
2892
+ * Where the plane is placed, in image coordinates, as for `HeatmapLayer`: the top-left edge of
2893
+ * its first pixel's footprint and the extent it is stretched over. Defaults to the whole image,
2894
+ * so a plane of any resolution lines up with a `HeatmapLayer` of the same plane.
2895
+ */
2896
+ rect?: Rect | undefined;
2897
+ /** The overlay role of the lines. Defaults to `"structure"`. */
2898
+ role?: OverlayRole | undefined;
2899
+ /** One CSS colour for the lines instead of the role's (`#hex` or `var(--x)`, used as given). */
2900
+ color?: string | undefined;
2901
+ /** Draw the dark band under lines and labels. On by default. */
2902
+ halo?: boolean | undefined;
2903
+ /** Draw it. Defaults to `true`; while `false` nothing is computed. */
2904
+ visible?: boolean | undefined;
2905
+ /** The layer's accessible name. Defaults to "Contours". */
2906
+ label?: string | undefined;
2907
+ }
2908
+ /**
2909
+ * Contour lines inside an `ImageStage`.
2910
+ *
2911
+ * - **Lines**: marching squares per level over the plane's nodes (pixel centres), linear along
2912
+ * edges; a saddle is resolved by the mean of its four corners. They are computed once per
2913
+ * change of `plane`, `channel` and `levels`, not on pan or zoom.
2914
+ * - **No data**: a cell touching a `NaN` node has no line, so a line stops at a hole.
2915
+ * - **Styles**: solid levels in one path, dashed ones in another, each over a halo.
2916
+ * - **Labels**: optional, by zoom (see `labels`).
2917
+ * - **Input**: none. The layer is decorative; the numbers are read from the plane (`valueAt`),
2918
+ * and a legend or `labels` carry the levels as text.
2919
+ *
2920
+ * The SVG carries `data-count` (lines) and `data-levels` (the levels drawn).
2921
+ */
2922
+ export declare function ContourLayer({ plane, channel, levels, dashedLevels, labels, rect, role, color, halo, visible, label }: ContourLayerProps): import("react").JSX.Element | null;
2923
+ //#endregion
2924
+ //#region src/components/contour.d.ts
2925
+ /** One iso-line: a polyline at a level. */
2926
+ interface ContourLine {
2927
+ /** The level it lies on. */
2928
+ level: number;
2929
+ /** Flat `[x0, y0, x1, y1, …]` in nodes. For a closed line the first point is not repeated. */
2930
+ points: number[];
2931
+ /** Whether it returns to its start. */
2932
+ closed: boolean;
2933
+ }
2934
+ /**
2935
+ * The levels to draw.
2936
+ *
2937
+ * @param spec - Explicit levels (non-finite ones are dropped, duplicates merged), or `{ step }`:
2938
+ * every multiple of `step` (offset by `origin`) inside `[min, max]`. If that gives more than
2939
+ * `MAX_LEVELS` levels the step is multiplied by a whole number until it does not.
2940
+ * @param min - The field's smallest finite value, for a step.
2941
+ * @param max - The field's largest finite value.
2942
+ * @returns Ascending, distinct levels.
2943
+ */
2944
+ export declare function resolveLevels(spec: readonly number[] | {
2945
+ step: number;
2946
+ origin?: number | undefined;
2947
+ }, min: number, max: number): number[];
2948
+ /**
2949
+ * The iso-lines of a plane's channel at every level, lowest level first.
2950
+ *
2951
+ * @param plane - The field; `NaN` is "no data".
2952
+ * @param channel - Which channel. Default 0; out of range gives no lines.
2953
+ * @param levels - See `resolveLevels`; the lines of each level, in turn.
2954
+ */
2955
+ export declare function contourPaths(plane: ValuePlane, channel: number, levels: readonly number[]): ContourLine[];
2956
+ //#endregion
2957
+ //#region src/components/vectorGeometry.d.ts
2958
+ /**
2959
+ * The arithmetic of a vector field overlay: magnitudes, the scale that turns data units into
2960
+ * image pixels, the path of an arrow, and the bins a colour map is quantised into.
2961
+ *
2962
+ * Everything here is pure. Vectors are a flat `[dx0, dy0, dx1, dy1, …]` array in data units
2963
+ * (a displacement in pixels, a velocity, a gradient); a vector with a non-finite component is
2964
+ * absent.
2965
+ */
2966
+ /**
2967
+ * How data units become image pixels.
2968
+ * - A number is image pixels per data unit: the arrows are geometry, so they grow with the zoom
2969
+ * like the image does.
2970
+ * - `{ length }` sizes the arrows so the `percentile` vector spans `length` screen pixels at
2971
+ * every zoom: the field stays readable whatever the magnification.
2972
+ */
2973
+ type VectorScale = number | {
2974
+ /** The screen length, in CSS pixels, the reference vector spans. */
2975
+ length: number;
2976
+ /** Which magnitude is the reference, in `[0, 1]`. Defaults to `1`, the longest vector. */
2977
+ percentile?: number | undefined;
2978
+ };
2979
+ /**
2980
+ * The length of vector `i`, or `NaN` when it is absent.
2981
+ *
2982
+ * @param vectors - Flat `[dx0, dy0, …]`.
2983
+ * @param i - The vector's index.
2984
+ * @returns `hypot(dx, dy)`, or `NaN` for a non-finite component.
2985
+ */
2986
+ export declare function vectorMagnitude(vectors: ArrayLike<number>, i: number): number;
2987
+ /**
2988
+ * The magnitudes of every vector, `NaN` for an absent one.
2989
+ *
2990
+ * @param vectors - Flat `[dx0, dy0, …]`.
2991
+ * @returns One magnitude per vector.
2992
+ */
2993
+ export declare function vectorMagnitudes(vectors: ArrayLike<number>): Float64Array;
2994
+ /**
2995
+ * A magnitude's rank statistic over the present vectors.
2996
+ *
2997
+ * @param magnitudes - As `vectorMagnitudes` returns them; `NaN` entries are ignored.
2998
+ * @param p - The fraction in `[0, 1]` (clamped): `1` is the longest, `0.5` the median.
2999
+ * @returns The nearest-rank value, or `0` when no vector is present.
3000
+ */
3001
+ export declare function magnitudePercentile(magnitudes: ArrayLike<number>, p: number): number;
3002
+ /**
3003
+ * The scale in image pixels per data unit.
3004
+ *
3005
+ * @param scale - See `VectorScale`.
3006
+ * @param referenceMagnitude - The reference vector's length in data units, for an automatic scale.
3007
+ * @param imagePerScreenPx - Image pixels covered by one screen pixel at the current zoom.
3008
+ * @returns Image pixels per data unit; `0` when an automatic scale has no vector to measure.
3009
+ */
3010
+ export declare function imagePerUnit(scale: VectorScale, referenceMagnitude: number, imagePerScreenPx: number): number;
3011
+ /**
3012
+ * A round length for a key: the largest of 1, 2 and 5 times a power of ten that is at most `max`.
3013
+ *
3014
+ * @param max - The upper bound, in data units.
3015
+ * @returns The round length, or `0` for a non-positive `max`.
3016
+ */
3017
+ export declare function niceLength(max: number): number;
3018
+ /** The shape of an arrow, in screen pixels. */
3019
+ interface ArrowStyle {
3020
+ /** The arrowhead's length. */
3021
+ head: number;
3022
+ /** The arrowhead's full width, as a fraction of its length. */
3023
+ headWidth: number;
3024
+ /** A vector shorter than this is not drawn. */
3025
+ minLength: number;
3026
+ }
3027
+ /**
3028
+ * The path data of one arrow: a shaft and a filled head.
3029
+ *
3030
+ * The head is capped at 45 % of the arrow's length, so a short arrow is a small wedge rather
3031
+ * than a head on no shaft. Lengths are in the units of `(x, y)` (image pixels); `unit` converts
3032
+ * the style's screen pixels to them.
3033
+ *
3034
+ * @param x - The anchor's x.
3035
+ * @param y - The anchor's y.
3036
+ * @param dx - The displacement's x, already scaled to image pixels.
3037
+ * @param dy - The displacement's y, already scaled to image pixels.
3038
+ * @param unit - Image pixels per screen pixel.
3039
+ * @param style - The arrow's shape.
3040
+ * @returns Path data, or `""` when the arrow is absent or shorter than `style.minLength`.
3041
+ */
3042
+ export declare function arrowPath(x: number, y: number, dx: number, dy: number, unit: number, style: ArrowStyle): string;
3043
+ /** The number of colour steps a magnitude-coloured field is quantised into: one path each. */
3044
+ export declare const VECTOR_COLOR_BINS = 24;
3045
+ /**
3046
+ * The colour bin of a magnitude.
3047
+ *
3048
+ * @param magnitude - The vector's length.
3049
+ * @param low - The magnitude drawn in the map's first colour.
3050
+ * @param high - The magnitude drawn in the map's last colour.
3051
+ * @param bins - The number of bins. Defaults to `VECTOR_COLOR_BINS`.
3052
+ * @returns An integer in `[0, bins - 1]`; a degenerate range puts everything in bin `0`.
3053
+ */
3054
+ export declare function colorBin(magnitude: number, low: number, high: number, bins?: number): number;
3055
+ //#endregion
3056
+ //#region src/components/VectorField.d.ts
3057
+ /** Props of `VectorField`. */
3058
+ interface VectorFieldProps {
3059
+ /** The anchors, flat `[x0, y0, x1, y1, …]` in image coordinates. A non-finite anchor is skipped. */
3060
+ anchors: ArrayLike<number>;
3061
+ /**
3062
+ * The vectors, flat `[dx0, dy0, dx1, dy1, …]` in data units, one per anchor. A non-finite
3063
+ * component, or a missing entry, skips the vector.
3064
+ */
3065
+ vectors: ArrayLike<number>;
3066
+ /**
3067
+ * How data units become image pixels: a number is image pixels per data unit and zooms with
3068
+ * the image; `{ length, percentile }` makes the `percentile` vector (default `1`, the longest)
3069
+ * span `length` screen pixels at every zoom. Defaults to the 95th-percentile vector at 28 screen
3070
+ * pixels, so a few outliers do not shrink the rest to nothing.
3071
+ */
3072
+ scale?: VectorScale | undefined;
3073
+ /**
3074
+ * One CSS colour for every arrow (`#hex`, `var(--x)`; used as given). Ignored with `colormap`.
3075
+ * Defaults to the `role`'s colour.
3076
+ */
3077
+ color?: string | undefined;
3078
+ /** The overlay role the arrows are painted in without a `color`. Defaults to `"feature"`. */
3079
+ role?: OverlayRole | undefined;
3080
+ /**
3081
+ * Colour each arrow by its magnitude through this map: a position in `[0, 1]` to `[r, g, b]`
3082
+ * (the maps of `@vitavision/charts` fit, as for `HeatmapLayer`). Pass a stable function.
3083
+ * Magnitudes are quantised into 24 steps, one path each.
3084
+ */
3085
+ colormap?: Colormap | undefined;
3086
+ /** The magnitudes mapped onto `colormap`. Defaults to `0` to the longest vector. */
3087
+ range?: ValueRange | undefined;
3088
+ /** Ids by vector index. Defaults to the index. */
3089
+ ids?: ArrayLike<PointId> | undefined;
3090
+ /** The hovered id, when the app controls hover. */
3091
+ hoveredId?: PointId | null | undefined;
3092
+ /**
3093
+ * Called when the vector under the pointer changes; `null` when it leaves every vector. A
3094
+ * vector is picked at its anchor. Not called while `pickable` is off.
3095
+ */
3096
+ onHoverChange?: ((id: PointId | null) => void) | undefined;
3097
+ /**
3098
+ * A press landed on a vector's anchor. Setting it makes the layer claim presses there, so the
3099
+ * stage does not pan from them.
3100
+ */
3101
+ onItemPress?: ((id: PointId, event: StagePointerEvent) => void) | undefined;
3102
+ /** Draw the dark band under every arrow. On by default; off for a fast, flat layer. */
3103
+ halo?: boolean | undefined;
3104
+ /** Whether the layer takes part in the stage's hit-test. On by default. */
3105
+ pickable?: boolean | undefined;
3106
+ /** The id hit-tests report for this layer. Defaults to a generated one. */
3107
+ layerId?: string | undefined;
3108
+ /** Rank against other layers in hit-tests. Defaults to `STAGE_HIT_PRIORITY.point`. */
3109
+ priority?: number | undefined;
3110
+ /** The layer's accessible name. Defaults to "Vectors". */
3111
+ label?: string | undefined;
3112
+ }
3113
+ /**
3114
+ * The reference vector of a scale and the scale it gives, shared by the layer and its key.
3115
+ *
3116
+ * @param vectors - Flat `[dx0, dy0, …]`.
3117
+ * @param scale - See `VectorScale`.
3118
+ * @returns The reference magnitude in data units, and image pixels per data unit.
3119
+ */
3120
+ export declare function useVectorScale(vectors: ArrayLike<number>, scale?: VectorScale): {
3121
+ reference: number;
3122
+ perUnit: number;
3123
+ };
3124
+ /**
3125
+ * A field of arrows inside an `ImageStage`.
3126
+ *
3127
+ * - **Scale**: see `VectorScale`. The same `vectors` and `scale` given to `VectorFieldKey` draw a
3128
+ * reference length at exactly this scale.
3129
+ * - **Colour**: one tone (`color` or `role`), or by magnitude through `colormap` over `range`.
3130
+ * - **Absent data**: an anchor or vector with a non-finite number, or shorter than one screen
3131
+ * pixel, is not drawn.
3132
+ * - **Picking** goes through the stage's hit registry: `onHoverChange` and `onItemPress` here, and
3133
+ * `useStageHitTest` for an app that arbitrates between layers. The hovered arrow is redrawn
3134
+ * at 2.5 screen px in the selection colour.
3135
+ *
3136
+ * Arrowheads and strokes are screen-constant; their paths are regenerated when the zoom changes,
3137
+ * and past 3,000 vectors only those near the viewport are generated. The SVG carries
3138
+ * `data-hovered` (the hovered id) and `data-count` (the vectors drawn).
3139
+ */
3140
+ export declare function VectorField({ anchors, vectors, scale, color, role, colormap, range, ids, hoveredId, onHoverChange, onItemPress, halo, pickable, layerId, priority, label }: VectorFieldProps): import("react").JSX.Element;
3141
+ //#endregion
3142
+ //#region src/components/VectorFieldKey.d.ts
3143
+ /** Props of `VectorFieldKey`. */
3144
+ interface VectorFieldKeyProps {
3145
+ /** The field's `vectors`: the scale of an automatic `scale` depends on them. */
3146
+ vectors: ArrayLike<number>;
3147
+ /** The field's `scale`, so the key is drawn at exactly the field's scale. Defaults as `VectorField` does. */
3148
+ scale?: VectorScale | undefined;
3149
+ /**
3150
+ * The length the key shows, in data units. Defaults to the largest 1, 2 or 5 times a power of
3151
+ * ten that is at most the field's reference vector.
3152
+ */
3153
+ length?: number | undefined;
3154
+ /** The data unit, written after the value (`px`, `m/s`). */
3155
+ unit?: string | undefined;
3156
+ /** Formats the value. Defaults to at most 3 significant figures, without trailing zeros. */
3157
+ format?: ((value: number) => string) | undefined;
3158
+ /**
3159
+ * Draw without its own dark chip, for a place that has one already: the `extra` of a
3160
+ * `StageReadout`. Off by default.
3161
+ */
3162
+ bare?: boolean | undefined;
3163
+ /** Merged onto the key with `cn`. */
3164
+ className?: string | undefined;
3165
+ }
3166
+ /**
3167
+ * An arrow of a known length and its value ("0.1 px"). Pass it as `ImageStage`'s `readout`, or
3168
+ * as the `extra` of a `StageReadout` with `bare`; it reads the stage's zoom through `useStage`, so it stays
3169
+ * true as the view changes, and draws nothing while the field has no scale or the arrow would
3170
+ * be wider than 160 screen pixels.
3171
+ *
3172
+ * On its own it is drawn in the readout's light-on-dark chip, so it sits on the image like the readout does.
3173
+ */
3174
+ export declare function VectorFieldKey({ vectors, scale, length, unit, format, bare, className }: VectorFieldKeyProps): import("react").JSX.Element | null;
3175
+ //#endregion
2845
3176
  //#region src/components/roiEdit.d.ts
2846
3177
  /** A region's handle, by compass direction. */
2847
3178
  type RoiHandle = "nw" | "n" | "ne" | "e" | "se" | "s" | "sw" | "w";
@@ -3396,5 +3727,5 @@ interface MaskEditorProps {
3396
3727
  */
3397
3728
  export declare function MaskEditor({ mask, onChange, onCommit, editable, brushRadius, mode, label, color }: MaskEditorProps): import("react").JSX.Element;
3398
3729
  //#endregion
3399
- export type { ArcPrimitive, Area, AreaHit, AreaId, AreaIndex, AreaSetItem, AreaSetProps, Box, BuiltinMarkerKind, CaliperPrimitive, CirclePrimitive, ClampOptions, Colormap, CompareLayerProps, CompareMode, CompareOrientation, ContourEditorProps, Datum, DatumEditorProps, DatumPressOptions, DimensionGeometry, DimensionPrimitive, DraftShapeProps, DraftShapeSpec, Ellipse, EllipseHit, EllipseId, EllipseIndex, EllipseSetItem, EllipseSetProps, FitOptions, GridEdgeStyle, GridLayerProps, GridNode, HeatmapLayerBaseProps, HeatmapLayerProps, HeatmapPlaneProps, HeatmapRgbaProps, HitCandidate, HitId, ImageLayerBaseProps, ImageLayerProps, ImageStageProps, ImageTier, LatticeAxis, LatticeEdge, LatticeNode, MarkerShape, MarqueeRectProps, MaskEditorProps, MeasureOverlayProps, MeasurePrimitive, MoveDatumOptions, OverlayRole, OverlayState, Point, PointHit, PointId, PointIndex, PointIndexOptions, PointItem, PointPrimitive, PointSetItem, PointSetProps, Polyline, PolylineHit, PolylineId, PolylineIndex, PolylinePrimitive, PolylineSelectMode, PolylineSetHandle, PolylineSetItem, PolylineSetProps, PrimitiveCommon, Rect, RectRoiEditorHandle, RectRoiEditorProps, RoiHandle, RotatedShape, SegmentPrimitive, SegmentsPrimitive, ShapeDragHandlers, ShapeDragOptions, ShapeEditorProps, StageButtonProps, StageContext, StageDrag, StageHandle, StageHit, StageHitLayerOptions, StageHitOptions, StageHitTestApi, StageLayer, StageLayersMenuProps, StageMouseButton, StagePointerEvent, StagePress, StageReadoutProps, StageSurfaceProps, StageToolbarDividerProps, StageToolbarProps, StageView, StageViewChange, ValuePlane, ValueRange, View, ZoomPanCanvasProps };
3730
+ export type { ArcPrimitive, Area, AreaHit, AreaId, AreaIndex, AreaSetItem, AreaSetProps, ArrowStyle, Box, BuiltinMarkerKind, CaliperPrimitive, CirclePrimitive, ClampOptions, Colormap, CompareLayerProps, CompareMode, CompareOrientation, ContourEditorProps, ContourLayerProps, ContourLine, Datum, DatumEditorProps, DatumPressOptions, DimensionGeometry, DimensionPrimitive, DraftShapeProps, DraftShapeSpec, Ellipse, EllipseHit, EllipseId, EllipseIndex, EllipseSetItem, EllipseSetProps, FitOptions, GridEdgeStyle, GridLayerProps, GridNode, HeatmapLayerBaseProps, HeatmapLayerProps, HeatmapPlaneProps, HeatmapRgbaProps, HitCandidate, HitId, ImageLayerBaseProps, ImageLayerProps, ImageStageProps, ImageTier, LatticeAxis, LatticeEdge, LatticeNode, MarkerShape, MarqueeRectProps, MaskEditorProps, MeasureOverlayProps, MeasurePrimitive, MoveDatumOptions, OverlayRole, OverlayState, Point, PointHit, PointId, PointIndex, PointIndexOptions, PointItem, PointPrimitive, PointSetItem, PointSetProps, Polyline, PolylineHit, PolylineId, PolylineIndex, PolylinePrimitive, PolylineSelectMode, PolylineSetHandle, PolylineSetItem, PolylineSetProps, PrimitiveCommon, Rect, RectRoiEditorHandle, RectRoiEditorProps, RoiHandle, RotatedShape, SegmentPrimitive, SegmentsPrimitive, ShapeDragHandlers, ShapeDragOptions, ShapeEditorProps, StageButtonProps, StageContext, StageDrag, StageHandle, StageHit, StageHitLayerOptions, StageHitOptions, StageHitTestApi, StageLayer, StageLayersMenuProps, StageMouseButton, StagePointerEvent, StagePress, StageReadoutProps, StageSurfaceProps, StageToolbarDividerProps, StageToolbarProps, StageView, StageViewChange, ValuePlane, ValueRange, VectorFieldKeyProps, VectorFieldProps, VectorScale, View, ZoomPanCanvasProps };
3400
3731
  //# sourceMappingURL=index.d.ts.map