@inditextech/weave-sdk 5.7.1 → 5.8.0-SNAPSHOT.613.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/dist/types.d.ts CHANGED
@@ -3293,10 +3293,46 @@ type WeaveStrokePoint = {
3293
3293
  y: number;
3294
3294
  pressure: number;
3295
3295
  };
3296
+ /**
3297
+ * How a stroke is drawn. Saved with the stroke, so every viewer and every
3298
+ * export draws it the same way. A stroke without a look is drawn exactly as in
3299
+ * releases that did not know looks.
3300
+ */
3301
+ type WeaveStrokeLook = {
3302
+ /** Format version of the look. */
3303
+ version: 1;
3304
+ /** `legacy` offset ribbon, `round` union of discs and segments, `freehand`. */
3305
+ outline: 'legacy' | 'round' | 'freehand';
3306
+ /** Curve through the recorded points. */
3307
+ curve: 'uniform' | 'centripetal' | 'none';
3308
+ /** How pressure is interpolated between points. */
3309
+ pressureInterp: 'catmullRom' | 'linear';
3310
+ /** Choose spacing and subdivision in screen pixels instead of canvas units. */
3311
+ zoomAware: boolean;
3312
+ /** Minimum spacing between control points, in screen px when `zoomAware`. */
3313
+ spacingPx: number;
3314
+ /** Detail of the curve, in screen px when `zoomAware`: how closely edges follow it. */
3315
+ edgePx: number;
3316
+ /** `separate` draws round ends over the fill, `merged` inside the same fill. */
3317
+ caps: 'separate' | 'merged';
3318
+ width: {
3319
+ /** Width, as a fraction of the stroke width, at pressure 0. */
3320
+ min: number;
3321
+ /** Width, as a fraction of the stroke width, at pressure 1. */
3322
+ max: number;
3323
+ /** Response curve: pressure is raised to this power. */
3324
+ gamma: number;
3325
+ /** Distance over which the start narrows, 0 for none. */
3326
+ taperStart: number;
3327
+ /** Distance over which the end narrows, 0 for none. */
3328
+ taperEnd: number;
3329
+ };
3330
+ };
3296
3331
  //#endregion
3297
3332
  //#region src/nodes/stroke/stroke.d.ts
3298
3333
  declare class WeaveStrokeNode extends WeaveNode {
3299
3334
  private readonly config;
3335
+ private previewLook;
3300
3336
  protected nodeType: string;
3301
3337
  initialize: undefined;
3302
3338
  /**
@@ -3350,6 +3386,38 @@ declare class WeaveStrokeNode extends WeaveNode {
3350
3386
  */
3351
3387
  private drawDashPolygon;
3352
3388
  private drawRibbonWithDash;
3389
+ /**
3390
+ * Draws the offset-outline ribbon along an already prepared centerline.
3391
+ * `halfWidth` gives the half-width at each centerline point.
3392
+ */
3393
+ private drawCenterlineRibbon;
3394
+ /**
3395
+ * The look a stroke is drawn with: the viewer-side preview if one is on,
3396
+ * otherwise the look saved with the stroke. `null` draws the legacy ribbon.
3397
+ */
3398
+ private resolveLook;
3399
+ /**
3400
+ * Draws every stroke of this screen with `look`, without changing any saved
3401
+ * stroke and without other users seeing it. `null` turns the preview off.
3402
+ */
3403
+ setLookPreview(look: unknown | null): void;
3404
+ getLookPreview(): WeaveStrokeLook | null;
3405
+ private redrawStrokes;
3406
+ /** Screen pixels per canvas unit at a shape. */
3407
+ private screenScale;
3408
+ /**
3409
+ * The centerline of a stroke with a look: the points resampled and joined by
3410
+ * the look's curve. Spacing and detail are in screen pixels when the look
3411
+ * follows the zoom, in canvas units otherwise; `scale` is screen pixels per
3412
+ * canvas unit.
3413
+ */
3414
+ private buildLookCenterline;
3415
+ /**
3416
+ * Draws a stroke that has a look: the centerline is built with the look's
3417
+ * curve, spacing and detail, widths follow its width rule, and the outline is
3418
+ * the legacy ribbon or the round one.
3419
+ */
3420
+ private drawRibbonWithLook;
3353
3421
  private drawShape;
3354
3422
  onRender(props: WeaveElementAttributes): WeaveElementInstance;
3355
3423
  onUpdate(nodeInstance: WeaveElementInstance, nextProps: WeaveElementAttributes): void;
@@ -3360,6 +3428,11 @@ declare class WeaveStrokeNode extends WeaveNode {
3360
3428
  //#endregion
3361
3429
  //#region src/nodes/stroke/constants.d.ts
3362
3430
  declare const WEAVE_STROKE_NODE_TYPE = "stroke";
3431
+ /**
3432
+ * The look equivalent to the rendering of strokes that have no look: the
3433
+ * default of every look setting.
3434
+ */
3435
+ declare const WEAVE_STROKE_LEGACY_LOOK: WeaveStrokeLook;
3363
3436
  declare const WEAVE_STROKE_NODE_DEFAULT_CONFIG: {
3364
3437
  splineResolution: number;
3365
3438
  splineTargetEdge: number;
@@ -4488,6 +4561,8 @@ declare class WeaveLineToolAction extends WeaveAction {
4488
4561
  //#endregion
4489
4562
  //#region src/actions/brush-tool/constants.d.ts
4490
4563
  declare const BRUSH_TOOL_ACTION_NAME = "brushTool";
4564
+ /** Name under which the lab plugin registers itself. */
4565
+ declare const BRUSH_LAB_PLUGIN_NAME = "brushLab";
4491
4566
  declare const BRUSH_TOOL_STATE: {
4492
4567
  readonly INACTIVE: "inactive";
4493
4568
  readonly IDLE: "idle";
@@ -4505,7 +4580,22 @@ declare const PREVIEW_ID_SUFFIX = "--preview";
4505
4580
  * Bounds the handover so a preview can never be orphaned on screen.
4506
4581
  */
4507
4582
  declare const PREVIEW_HANDOVER_MAX_FRAMES = 30;
4583
+ declare const BRUSH_INPUT_PROFILE_KEYS: readonly ["mouse", "touch", "pen.applePencil", "pen.desktop"];
4584
+ /**
4585
+ * The legacy input profile: reproduces, point for point, what the brush tool
4586
+ * recorded before profiles existed. Every profile starts from it.
4587
+ */
4588
+ declare const BRUSH_LEGACY_INPUT_PROFILE: WeaveBrushInputProfile;
4508
4589
  declare const BRUSH_TOOL_DEFAULT_CONFIG: {
4590
+ input: {
4591
+ forceProfile: null;
4592
+ profiles: {
4593
+ mouse: WeaveBrushInputProfile;
4594
+ touch: WeaveBrushInputProfile;
4595
+ 'pen.applePencil': WeaveBrushInputProfile;
4596
+ 'pen.desktop': WeaveBrushInputProfile;
4597
+ };
4598
+ };
4509
4599
  interpolationSteps: number;
4510
4600
  simplifyTolerance: number;
4511
4601
  };
@@ -4515,15 +4605,320 @@ type WeaveBrushToolActionStateKeys = keyof typeof BRUSH_TOOL_STATE;
4515
4605
  type WeaveBrushToolActionState = (typeof BRUSH_TOOL_STATE)[WeaveBrushToolActionStateKeys];
4516
4606
  type WeaveBrushToolActionOnAddingEvent = undefined;
4517
4607
  type WeaveBrushToolActionOnAddedEvent = undefined;
4608
+ /** Input profile keys resolved for every stroke. */
4609
+ type WeaveBrushInputProfileKey = 'mouse' | 'touch' | 'pen.applePencil' | 'pen.desktop';
4610
+ type WeaveBrushCaptureConfig = {
4611
+ /** `legacy`: one position per event. `coalesced`: every batched sample. */
4612
+ source: 'legacy' | 'coalesced';
4613
+ /** Time base for time-dependent filters. */
4614
+ clock: 'now' | 'event';
4615
+ /** Samples closer than this (screen px) to the last one are skipped. */
4616
+ minMovePx: number;
4617
+ /** Whether the speculative predicted tail is drawn. */
4618
+ predicted: 'off' | 'tail';
4619
+ /** Event used to read samples. */
4620
+ event: 'pointermove' | 'pointerrawupdate';
4621
+ };
4622
+ type WeaveBrushPressureConfig = {
4623
+ /** How a reported pen pressure of 0 is treated. */
4624
+ zero: 'legacy' | 'keep' | 'holdLast';
4625
+ filter: 'legacy' | 'timeEma' | 'oneEuro' | 'none';
4626
+ /** Time constant (ms) of the `timeEma` filter. */
4627
+ timeConstantMs: number;
4628
+ /** `oneEuro` filter parameters. */
4629
+ oneEuro: {
4630
+ minCutoff: number;
4631
+ beta: number;
4632
+ };
4633
+ /** Lowest pressure that is recorded. */
4634
+ floor: number;
4635
+ /** How the first point's pressure is chosen. */
4636
+ start: 'backfill' | 'average' | 'none';
4637
+ /** Number of readings averaged by the `average` start policy. */
4638
+ startSamples: number;
4639
+ /** How the last point's pressure is chosen. */
4640
+ end: 'backfill' | 'none';
4641
+ };
4642
+ type WeaveBrushStabilizerConfig = {
4643
+ type: 'none' | 'oneEuro' | 'pulledString' | 'streamline';
4644
+ /** `oneEuro` minimum cutoff (Hz) and speed coefficient. */
4645
+ minCutoff: number;
4646
+ beta: number;
4647
+ /** `pulledString` leash radius, in screen px. */
4648
+ radiusPx: number;
4649
+ /** `streamline` amount, 0 (none) to 1 (strongest). */
4650
+ amount: number;
4651
+ /** Distances are screen pixels (same effect at any zoom); otherwise canvas units. */
4652
+ zoomAware: boolean;
4653
+ /** Complete the stroke at the release position. */
4654
+ catchUpOnEnd: boolean;
4655
+ };
4656
+ type WeaveBrushFinalizeConfig = {
4657
+ mode: 'dp' | 'dpPressure' | 'bezierFit' | 'none';
4658
+ /** Tolerance; undefined uses the tool-level `simplifyTolerance`. */
4659
+ tolerance?: number;
4660
+ /** `canvas`: canvas units. `screen`: pixels, converted with the zoom. */
4661
+ toleranceUnit: 'canvas' | 'screen';
4662
+ /** Distance units per pressure unit for `dpPressure`. */
4663
+ pressureWeight: number;
4664
+ /** Spacing (screen px) used to resample a fitted curve to points. */
4665
+ resampleSpacingPx: number;
4666
+ };
4667
+ type WeaveBrushTouchGuardConfig = {
4668
+ /** Wait before a finger stroke is committed. */
4669
+ waitMs: number;
4670
+ /** Movement (screen px) that commits the stroke before the wait ends. */
4671
+ movePx: number;
4672
+ /** Cancel the stroke when a second touch lands during the wait. */
4673
+ cancelOnSecondTouch: boolean;
4674
+ /** Finger input does not draw once a pen has been used. */
4675
+ ignoreAfterPen: boolean;
4676
+ };
4677
+ type WeaveBrushInputProfile = {
4678
+ capture: WeaveBrushCaptureConfig;
4679
+ pressure: WeaveBrushPressureConfig;
4680
+ stabilizer: WeaveBrushStabilizerConfig;
4681
+ finalize: WeaveBrushFinalizeConfig;
4682
+ touchGuard: WeaveBrushTouchGuardConfig;
4683
+ };
4684
+ /** Information available when a stroke starts. */
4685
+ type WeaveBrushPointerInfo = {
4686
+ pointerType: string;
4687
+ platform: string;
4688
+ persistentDeviceId?: number;
4689
+ };
4690
+ type WeaveBrushInputConfig = {
4691
+ /** Replaces the automatic profile resolution. */
4692
+ resolveProfile?: (info: WeaveBrushPointerInfo) => WeaveBrushInputProfileKey;
4693
+ /** Forces a profile for every stroke. */
4694
+ forceProfile?: WeaveBrushInputProfileKey | null;
4695
+ profiles: Record<WeaveBrushInputProfileKey, WeaveBrushInputProfile>;
4696
+ };
4518
4697
  type WeaveBrushToolActionProperties = {
4519
4698
  interpolationSteps: number;
4520
4699
  simplifyTolerance: number;
4700
+ input: WeaveBrushInputConfig;
4701
+ };
4702
+ type WeaveBrushToolActionConfig = Partial<Omit<WeaveBrushToolActionProperties, 'input'>> & {
4703
+ input?: {
4704
+ resolveProfile?: WeaveBrushInputConfig['resolveProfile'];
4705
+ forceProfile?: WeaveBrushInputConfig['forceProfile'];
4706
+ profiles?: { [K in WeaveBrushInputProfileKey]?: DeepPartial$1<WeaveBrushInputProfile>; };
4707
+ };
4708
+ };
4709
+ type DeepPartial$1<T> = { [K in keyof T]?: T[K] extends object ? DeepPartial$1<T[K]> : T[K]; };
4710
+ /** A partial change to one profile. */
4711
+ type WeaveBrushInputProfilePatch = DeepPartial$1<WeaveBrushInputProfile>;
4712
+ /** Outcome of changing a configuration at runtime. */
4713
+ type WeaveBrushSetResult = {
4714
+ applied: boolean;
4715
+ errors: string[];
4521
4716
  };
4522
4717
  type WeaveBrushToolActionParams = {
4523
- config: Partial<WeaveBrushToolActionProperties>;
4718
+ config: WeaveBrushToolActionConfig;
4719
+ };
4720
+ /** How a stroke was drawn; saved on a stroke only while the lab plugin is active. */
4721
+ type WeaveStrokeInputMeta = {
4722
+ profile: WeaveBrushInputProfileKey;
4723
+ /** Preset of that profile: a preset id, `custom` or `imported`. */
4724
+ preset: string;
4725
+ /** Scenario in force, if no profile was changed on its own since. */
4726
+ scenario?: string;
4727
+ };
4728
+ /**
4729
+ * What the brush tool reports to the lab plugin while it is active. Nothing
4730
+ * here is stored by the tool: the plugin keeps it in memory only.
4731
+ */
4732
+ type WeaveBrushTraceSink = {
4733
+ isEnabled?: () => boolean;
4734
+ onStrokeStart(info: {
4735
+ profile: WeaveBrushInputProfileKey;
4736
+ preset: string;
4737
+ scenario?: string;
4738
+ profileConfig: WeaveBrushInputProfile;
4739
+ strokeWidth: number;
4740
+ zoom: number;
4741
+ }): void;
4742
+ onSample(sample: {
4743
+ raw: {
4744
+ x: number;
4745
+ y: number;
4746
+ };
4747
+ stabilized: {
4748
+ x: number;
4749
+ y: number;
4750
+ };
4751
+ pressure: number;
4752
+ time: number;
4753
+ predicted: boolean;
4754
+ }): void;
4755
+ onBatch(info: {
4756
+ ms: number;
4757
+ samples: number;
4758
+ }): void;
4759
+ onStrokeEnd(info: {
4760
+ beforeFinalize: {
4761
+ x: number;
4762
+ y: number;
4763
+ pressure: number;
4764
+ }[];
4765
+ finalPoints: {
4766
+ x: number;
4767
+ y: number;
4768
+ pressure: number;
4769
+ }[];
4770
+ strokeWidth: number;
4771
+ finalizeMs: number;
4772
+ }): void;
4773
+ };
4774
+ //#endregion
4775
+ //#region src/actions/brush-tool/stages/stabilizer.d.ts
4776
+ type StabilizerPoint = {
4777
+ x: number;
4778
+ y: number;
4779
+ };
4780
+ type StabilizerContext = {
4781
+ /** Time of the sample, in ms. */
4782
+ now: number;
4783
+ /** Current stage zoom. */
4784
+ zoom: number;
4785
+ };
4786
+ interface BrushStabilizer {
4787
+ /** Clears the state; called before the first sample of every stroke. */
4788
+ reset(): void;
4789
+ /** Starts a stroke at `point`, so the first sample continues from it. */
4790
+ seed(point: StabilizerPoint, ctx: StabilizerContext): void;
4791
+ /** Returns the position to record for a sample at `point`. */
4792
+ apply(point: StabilizerPoint, ctx: StabilizerContext): StabilizerPoint;
4793
+ }
4794
+ //#endregion
4795
+ //#region src/actions/brush-tool/stages/capture.d.ts
4796
+ /** State of the capture stage; belongs to a single stroke. */
4797
+ type CaptureState = {
4798
+ /** Client position of the last recorded sample, for `minMovePx`. */
4799
+ lastClient: {
4800
+ x: number;
4801
+ y: number;
4802
+ } | null;
4803
+ };
4804
+ //#endregion
4805
+ //#region src/actions/brush-tool/tunables/config-io.d.ts
4806
+ /** Version of the exported configuration document. */
4807
+ declare const BRUSH_CONFIG_DOCUMENT_VERSION = 1;
4808
+ /** The brush configuration as portable data. */
4809
+ type WeaveBrushConfigDocument = {
4810
+ version: typeof BRUSH_CONFIG_DOCUMENT_VERSION;
4811
+ profiles: Record<WeaveBrushInputProfileKey, WeaveBrushInputProfile>;
4812
+ look: WeaveStrokeLook | null;
4813
+ };
4814
+ type WeaveBrushConfigParseResult = {
4815
+ ok: true;
4816
+ profiles: Partial<Record<WeaveBrushInputProfileKey, WeaveBrushInputProfile>>;
4817
+ look: WeaveStrokeLook | null | undefined;
4818
+ } | {
4819
+ ok: false;
4820
+ errors: string[];
4821
+ };
4822
+ /**
4823
+ * Reads and validates a configuration document, given as an object or as JSON
4824
+ * text. Nothing is applied: the result holds fully resolved values, or every
4825
+ * problem found.
4826
+ */
4827
+ declare function parseBrushConfigDocument(input: unknown): WeaveBrushConfigParseResult;
4828
+ //#endregion
4829
+ //#region src/actions/brush-tool/tunables/presets.d.ts
4830
+ type WeaveStrokeLookPatch = { [K in keyof WeaveStrokeLook]?: K extends 'width' ? Partial<WeaveStrokeLook['width']> : WeaveStrokeLook[K]; };
4831
+ type WeaveBrushProfilePreset = {
4832
+ id: string;
4833
+ label: string;
4834
+ description: string;
4835
+ /** Changes relative to the legacy profile. */
4836
+ patch: WeaveBrushInputProfilePatch;
4837
+ };
4838
+ type WeaveBrushLookPreset = {
4839
+ id: string;
4840
+ label: string;
4841
+ description: string;
4842
+ /** Changes relative to the legacy look; `null` means "store no look". */
4843
+ patch: WeaveStrokeLookPatch | null;
4524
4844
  };
4845
+ type WeaveBrushScenario = {
4846
+ id: string;
4847
+ label: string;
4848
+ description: string;
4849
+ /** Preset id chosen for each profile. */
4850
+ profiles: Record<WeaveBrushInputProfileKey, string>;
4851
+ /** Look preset id. */
4852
+ look: string;
4853
+ };
4854
+ /** Factory profile presets per profile. Read-only. */
4855
+ declare const BRUSH_PROFILE_PRESETS: Record<WeaveBrushInputProfileKey, WeaveBrushProfilePreset[]>;
4856
+ /** Factory look presets. Read-only. */
4857
+ declare const BRUSH_LOOK_PRESETS: WeaveBrushLookPreset[];
4858
+ /** Factory scenarios. Read-only. */
4859
+ declare const BRUSH_SCENARIOS: WeaveBrushScenario[];
4860
+ /** Full profile configuration of a preset: the legacy profile with its patch. */
4861
+ declare function resolveBrushProfilePatch(patch: WeaveBrushInputProfilePatch): WeaveBrushInputProfile;
4862
+ /** Full look of a preset, or `null` when the preset stores no look. */
4863
+ declare function resolveBrushLookPatch(patch: WeaveStrokeLookPatch | null): WeaveStrokeLook | null;
4864
+ declare function getBrushScenario(id: string): WeaveBrushScenario | undefined;
4865
+ type WeaveBrushPresetResult = {
4866
+ ok: boolean;
4867
+ error?: string;
4868
+ };
4869
+ /**
4870
+ * Registry of profile and look presets: the read-only factory presets plus
4871
+ * custom ones. Factory presets cannot be changed or removed; a copy under a
4872
+ * new name can be made and edited. Custom presets live in memory; the
4873
+ * application decides whether to keep them.
4874
+ */
4875
+ declare class WeaveBrushPresetRegistry {
4876
+ private readonly customProfiles;
4877
+ private readonly customLooks;
4878
+ private static profileKey;
4879
+ listProfilePresets(key: WeaveBrushInputProfileKey): WeaveBrushProfilePreset[];
4880
+ getProfilePreset(key: WeaveBrushInputProfileKey, id: string): WeaveBrushProfilePreset | undefined;
4881
+ isFactoryProfilePreset(key: WeaveBrushInputProfileKey, id: string): boolean;
4882
+ /** Changes a custom profile preset; a factory preset is rejected. */
4883
+ setProfilePreset(key: WeaveBrushInputProfileKey, id: string, patch: WeaveBrushInputProfilePatch): WeaveBrushPresetResult;
4884
+ /** Copies a preset under a new id. */
4885
+ copyProfilePreset(key: WeaveBrushInputProfileKey, fromId: string, newId: string, label?: string): WeaveBrushPresetResult;
4886
+ removeProfilePreset(key: WeaveBrushInputProfileKey, id: string): WeaveBrushPresetResult;
4887
+ listLookPresets(): WeaveBrushLookPreset[];
4888
+ getLookPreset(id: string): WeaveBrushLookPreset | undefined;
4889
+ isFactoryLookPreset(id: string): boolean;
4890
+ /** Changes a custom look preset; a factory preset is rejected. */
4891
+ setLookPreset(id: string, patch: WeaveStrokeLookPatch): WeaveBrushPresetResult;
4892
+ copyLookPreset(fromId: string, newId: string, label?: string): WeaveBrushPresetResult;
4893
+ removeLookPreset(id: string): WeaveBrushPresetResult;
4894
+ }
4525
4895
  //#endregion
4526
4896
  //#region src/actions/brush-tool/brush-tool.d.ts
4897
+ type MousePointInfo = ReturnType<Weave['getMousePointer']>;
4898
+ /** A pointer move kept while a finger stroke waits to be committed. */
4899
+ type BufferedMove = {
4900
+ pointerId: number;
4901
+ pointerType: string;
4902
+ clientX: number;
4903
+ clientY: number;
4904
+ pressure: number;
4905
+ timeStamp: number;
4906
+ coalesced: Pick<PointerEvent, 'pointerType' | 'pressure' | 'clientX' | 'clientY' | 'timeStamp'>[];
4907
+ };
4908
+ /** A finger that is down but whose stroke has not been committed yet. */
4909
+ type PendingTouch = {
4910
+ pointerId: number;
4911
+ startClient: {
4912
+ x: number;
4913
+ y: number;
4914
+ };
4915
+ pressure: number;
4916
+ time: number;
4917
+ /** Where the finger touched down, and the container under it. */
4918
+ start: MousePointInfo;
4919
+ samples: BufferedMove[];
4920
+ timer: ReturnType<typeof setTimeout> | null;
4921
+ };
4527
4922
  declare class WeaveBrushToolAction extends WeaveAction {
4528
4923
  protected config: WeaveBrushToolActionProperties;
4529
4924
  protected initialized: boolean;
@@ -4545,10 +4940,84 @@ declare class WeaveBrushToolAction extends WeaveAction {
4545
4940
  } | null;
4546
4941
  protected lastPointerTime: number;
4547
4942
  protected predictedCount: number;
4943
+ protected activeProfile: WeaveBrushInputProfile;
4944
+ protected activeProfileKey: WeaveBrushInputProfileKey;
4945
+ protected look: WeaveStrokeLook | null;
4946
+ protected captureState: CaptureState;
4947
+ protected pendingTouch: PendingTouch | null;
4948
+ /** Preset each profile currently holds: a preset id, `custom` or `imported`. */
4949
+ protected presetIds: Record<WeaveBrushInputProfileKey, string>;
4950
+ /** Scenario applied last, until a profile is changed on its own. */
4951
+ protected scenarioId: string | null;
4952
+ /** Pointer that is drawing the stroke in progress. */
4953
+ protected strokePointerId: number | null;
4954
+ /** A pen has been used since the tool was activated. */
4955
+ protected penSeen: boolean;
4956
+ /** Last position the pen reported, before any stabilizing. */
4957
+ protected lastRawPoint: {
4958
+ x: number;
4959
+ y: number;
4960
+ } | null;
4961
+ protected stabilizer: BrushStabilizer;
4962
+ private pressureStateView?;
4548
4963
  onPropsChange: undefined;
4549
4964
  onInit: undefined;
4550
4965
  constructor(params?: WeaveBrushToolActionParams);
4551
4966
  initialize(): void;
4967
+ private setActiveProfile;
4968
+ /** Key of the profile used by the stroke in progress, or the last one. */
4969
+ getActiveProfileKey(): WeaveBrushInputProfileKey;
4970
+ /** Preset a profile currently holds: a preset id, `custom` or `imported`. */
4971
+ getPresetId(key: WeaveBrushInputProfileKey): string;
4972
+ /** Scenario applied last, or `null` once a profile was changed on its own. */
4973
+ getScenarioId(): string | null;
4974
+ /**
4975
+ * How a stroke was drawn, recorded on it only while the lab plugin is
4976
+ * active, so ordinary documents carry no such data.
4977
+ */
4978
+ private getInputMeta;
4979
+ /** The lab plugin, when it is registered and on; it only listens. */
4980
+ private getTraceSink;
4981
+ /** Current configuration of a profile (a copy). */
4982
+ getInputProfile(key: WeaveBrushInputProfileKey): WeaveBrushInputProfile;
4983
+ /**
4984
+ * Changes a profile's configuration. The change applies from the next
4985
+ * stroke: the profile object is replaced, never mutated, so a stroke in
4986
+ * progress keeps the configuration it started with.
4987
+ */
4988
+ setInputProfile(key: WeaveBrushInputProfileKey, patch: WeaveBrushInputProfilePatch): WeaveBrushSetResult;
4989
+ /** The profiles and the look as a portable, versioned document. */
4990
+ exportConfig(): WeaveBrushConfigDocument;
4991
+ /** The configuration as JSON text. */
4992
+ exportConfigJson(): string;
4993
+ /**
4994
+ * Restores a configuration exported with `exportConfig`, given as an object
4995
+ * or JSON text. A document with an unsupported version or invalid values is
4996
+ * rejected as a whole and nothing changes.
4997
+ */
4998
+ importConfig(input: unknown): WeaveBrushSetResult;
4999
+ /** Look saved on every new stroke, or `null` when none is saved. */
5000
+ getLook(): WeaveStrokeLook | null;
5001
+ /**
5002
+ * Changes the look saved on new strokes, or clears it with `null` so new
5003
+ * strokes carry no look and are drawn as in earlier releases. Strokes
5004
+ * already drawn keep the look they were saved with.
5005
+ */
5006
+ setLook(patch: WeaveStrokeLookPatch | null): WeaveBrushSetResult;
5007
+ /**
5008
+ * Applies a scenario: one preset for each profile and one look preset.
5009
+ * Custom presets are looked up in `registry` when given.
5010
+ */
5011
+ applyScenario(scenario: string | WeaveBrushScenario, registry?: WeaveBrushPresetRegistry): WeaveBrushSetResult;
5012
+ /** Forces a profile for every stroke, or `null` to resolve automatically. */
5013
+ setForcedProfile(key: WeaveBrushInputProfileKey | null): void;
5014
+ /** Replaces the automatic profile resolution; `undefined` restores it. */
5015
+ setProfileResolver(resolver: WeaveBrushInputConfig['resolveProfile']): void;
5016
+ /**
5017
+ * The pressure-smoothing state, as a view over this action's own fields so
5018
+ * the stage functions mutate the same state the action exposes.
5019
+ */
5020
+ private get pressureState();
4552
5021
  getName(): string;
4553
5022
  initProps(): {
4554
5023
  stroke: string;
@@ -4556,30 +5025,21 @@ declare class WeaveBrushToolAction extends WeaveAction {
4556
5025
  opacity: number;
4557
5026
  };
4558
5027
  /**
4559
- * Velocity-adaptive exponential smoothing of a single raw pressure sample.
5028
+ * Smooths one raw pressure sample with the filter of the active profile.
4560
5029
  *
4561
- * This is the one place pressure smoothing happens. Every sample that
4562
- * becomes a stroke point must go through it - including the
4563
- * high-frequency coalesced samples a stylus reports (see
4564
- * `handlePointerMove`), which previously bypassed it entirely and so
4565
- * landed in the stroke with their raw value, no pressure floor, and
4566
- * without advancing the smoothing state for later samples.
4567
- *
4568
- * Timing intentionally uses `performance.now()` (not the event's own
4569
- * `timeStamp`), matching the original behaviour: the two are not
4570
- * guaranteed to share a time origin, and mixing them corrupts the
4571
- * velocity term that drives `alpha`.
4572
- *
4573
- * The first sample of a stroke SEEDS the filter with its own value
4574
- * rather than being blended toward the neutral 0.5 baseline. Blending
4575
- * from a constant gives every stroke a warm-up transient: the filter
4576
- * starts at 0.5 and converges toward the pressure actually being
4577
- * applied, so a stroke drawn lighter than 0.5 renders visibly fatter at
4578
- * its start (and heavier than 0.5, thinner) until the filter catches
4579
- * up. Seeding removes that transient entirely - smoothing then only
4580
- * ever acts between real samples, which is its actual purpose.
5030
+ * This is the one place pressure smoothing happens: every sample that
5031
+ * becomes a stroke point, including the high-frequency coalesced samples a
5032
+ * stylus reports, goes through it so the smoothing state advances for later
5033
+ * samples.
4581
5034
  */
4582
5035
  private smoothPressureSample;
5036
+ /**
5037
+ * Time of a sample, in ms. With the `event` clock it is the time the sample's
5038
+ * own event reported, so processing a batch in one step does not change the
5039
+ * time between its samples; otherwise (or when the event reports no usable
5040
+ * time) it is the time of processing.
5041
+ */
5042
+ private sampleTime;
4583
5043
  /**
4584
5044
  * Raw pressure a pointer sample reports: the device's own reading for a
4585
5045
  * pen, a neutral constant for devices that do not sense pressure.
@@ -4587,20 +5047,38 @@ declare class WeaveBrushToolAction extends WeaveAction {
4587
5047
  private getRawPressure;
4588
5048
  private getEventPressure;
4589
5049
  /**
4590
- * Resets the pressure-smoothing state (smoothed pressure, last known pointer
4591
- * position/time, and predicted-point bookkeeping) to a neutral baseline.
5050
+ * Resets the stroke-scoped state (pressure smoothing, predicted-point
5051
+ * bookkeeping and the position stabilizer) to a neutral baseline.
4592
5052
  *
4593
- * This state is scoped to a single stroke: it must be reset before the
4594
- * first pressure sample of a new stroke is computed (in `handlePointerDown`,
4595
- * ahead of the `getEventPressure` call for point 0), not only afterwards -
4596
- * otherwise that first sample can inherit smoothing state left behind by
4597
- * the previous stroke (its ending pressure, pointer position and time),
4598
- * inflating the very first point's pressure.
5053
+ * This state belongs to a single stroke: it must be reset before the first
5054
+ * pressure sample of a new stroke is computed (in `handlePointerDown`, ahead
5055
+ * of the `getEventPressure` call for point 0), not only afterwards -
5056
+ * otherwise that first sample can inherit state left behind by the previous
5057
+ * stroke, inflating the very first point's pressure.
4599
5058
  */
4600
5059
  private resetPressureSmoothingState;
5060
+ /**
5061
+ * Maps a client position to the stroke container the same way the stage maps
5062
+ * its own pointer position (content rectangle, then the inverse of the
5063
+ * container's absolute transform), without changing any stage state.
5064
+ */
5065
+ private clientToContainer;
5066
+ /** Captures the samples of one pointer move into the stroke in progress. */
5067
+ private handleMoveEvent;
4601
5068
  private setupEvents;
4602
5069
  private setState;
4603
5070
  private getBoundingBox;
5071
+ /** Puts a finger stroke on hold until it is clear it is not a gesture. */
5072
+ private startPendingTouch;
5073
+ /** Drops a waiting finger stroke without leaving a mark. */
5074
+ private cancelPendingTouch;
5075
+ /**
5076
+ * Starts the stroke of a waiting finger at the point where it touched down,
5077
+ * then replays the moves that were held back, so the path is not lost.
5078
+ */
5079
+ private commitPendingTouch;
5080
+ /** Holds a move of the waiting finger, and commits once it has moved enough. */
5081
+ private handlePendingTouchMove;
4604
5082
  private handleStartStroke;
4605
5083
  /**
4606
5084
  * Appends one or more pointer samples to the stroke in a single
@@ -4615,6 +5093,11 @@ declare class WeaveBrushToolAction extends WeaveAction {
4615
5093
  */
4616
5094
  private applyMovementSamples;
4617
5095
  private handleMovement;
5096
+ /**
5097
+ * The point that completes a stabilized stroke at the pen's last position,
5098
+ * or `null` when the stroke already ends there or has no stabilizer.
5099
+ */
5100
+ private getStrokeCompletion;
4618
5101
  private finalizeStroke;
4619
5102
  /**
4620
5103
  * Destroys the finished stroke's preview node once its persisted
@@ -4635,6 +5118,92 @@ declare class WeaveBrushToolAction extends WeaveAction {
4635
5118
  private setFocusStage;
4636
5119
  }
4637
5120
  //#endregion
5121
+ //#region src/actions/brush-tool/profiles.d.ts
5122
+ type NavigatorLike = {
5123
+ userAgent?: string;
5124
+ platform?: string;
5125
+ maxTouchPoints?: number;
5126
+ };
5127
+ /**
5128
+ * Coarse platform of the running browser: `ipad`, `ios`, `mac`, `windows`,
5129
+ * `android`, `linux` or `unknown`. iPadOS reports a desktop Mac user agent, so
5130
+ * a Mac with multi-touch is an iPad.
5131
+ */
5132
+ declare function detectBrushPlatform(nav?: NavigatorLike | null): string;
5133
+ /**
5134
+ * Profile chosen from the pointer type and platform. A pen on an iPad is an
5135
+ * Apple Pencil; any other pen is a desktop pen. Unknown pointer types behave
5136
+ * like a mouse.
5137
+ */
5138
+ declare function automaticBrushProfileKey(info: WeaveBrushPointerInfo): WeaveBrushInputProfileKey;
5139
+ /**
5140
+ * Resolves the input profile for a stroke. A forced profile wins, then the
5141
+ * application's resolver, then the automatic choice. A resolver that throws or
5142
+ * returns an unknown key is ignored.
5143
+ */
5144
+ declare function resolveBrushInputProfileKey(info: WeaveBrushPointerInfo, cfg: Pick<WeaveBrushInputConfig, 'resolveProfile' | 'forceProfile'>): WeaveBrushInputProfileKey;
5145
+ //#endregion
5146
+ //#region src/actions/brush-tool/tunables/types.d.ts
5147
+ /** Whether a setting is applied while capturing a stroke or while drawing it. */
5148
+ type WeaveBrushTunableKind = 'capture' | 'draw';
5149
+ /** Pipeline stage a setting belongs to. */
5150
+ type WeaveBrushTunableStage = 'capture' | 'pressure' | 'stabilizer' | 'finalize' | 'touch' | 'outline' | 'curve' | 'width' | 'ends' | 'detail';
5151
+ /**
5152
+ * Plain-data description of one tunable setting, enough for any user interface
5153
+ * to build a control and validate a value without knowing the setting.
5154
+ */
5155
+ type WeaveBrushTunable = {
5156
+ /** Unique key: the dotted path of the setting inside its scope. */
5157
+ key: string;
5158
+ /** `profile` settings live in an input profile, `look` ones in a look. */
5159
+ scope: 'profile' | 'look';
5160
+ /** Path of the setting inside the profile or look object. */
5161
+ path: string[];
5162
+ stage: WeaveBrushTunableStage;
5163
+ /** Heading a control is shown under. */
5164
+ group: string;
5165
+ kind: WeaveBrushTunableKind;
5166
+ type: 'number' | 'boolean' | 'enum';
5167
+ /** Value of the legacy preset. `null` means "use the tool-level value". */
5168
+ default: number | boolean | string | null;
5169
+ /** Numeric range. */
5170
+ min?: number;
5171
+ max?: number;
5172
+ step?: number;
5173
+ integer?: boolean;
5174
+ /** Allowed values of an `enum`. */
5175
+ options?: string[];
5176
+ /** A `null` value is allowed. */
5177
+ nullable?: boolean;
5178
+ unit?: 'px' | 'ms' | 'Hz' | 'fraction' | 'canvas units' | 'count';
5179
+ help: string;
5180
+ /** Shown only in an "advanced" section. */
5181
+ advanced?: boolean;
5182
+ };
5183
+ //#endregion
5184
+ //#region src/actions/brush-tool/tunables/descriptors.d.ts
5185
+ /** Every setting accepted by an input profile. */
5186
+ declare const BRUSH_PROFILE_TUNABLES: WeaveBrushTunable[];
5187
+ /** Every setting accepted by a stroke look. */
5188
+ declare const BRUSH_LOOK_TUNABLES: WeaveBrushTunable[];
5189
+ /** Every tunable setting. */
5190
+ declare const BRUSH_TUNABLES: WeaveBrushTunable[];
5191
+ /** Finds a tunable by scope and key. */
5192
+ declare function getBrushTunable(scope: 'profile' | 'look', key: string): WeaveBrushTunable | undefined;
5193
+ //#endregion
5194
+ //#region src/actions/brush-tool/tunables/validate.d.ts
5195
+ /**
5196
+ * Checks a value against a descriptor. Returns a message when the value is
5197
+ * invalid, or `null` when it is accepted.
5198
+ */
5199
+ declare function validateBrushTunableValue(tunable: WeaveBrushTunable, value: unknown): string | null;
5200
+ /**
5201
+ * Validates a partial profile or look against the descriptors. Every leaf must
5202
+ * name a known setting and hold an accepted value. Returns the messages of all
5203
+ * problems found; an empty list means the patch is valid.
5204
+ */
5205
+ declare function validateBrushTunablePatch(scope: 'profile' | 'look', patch: unknown): string[];
5206
+ //#endregion
4638
5207
  //#region src/actions/text-tool/constants.d.ts
4639
5208
  declare const TEXT_TOOL_ACTION_NAME = "textTool";
4640
5209
  declare const TEXT_TOOL_STATE: {
@@ -6760,5 +7329,5 @@ declare class WeaveNodesSnappingPlugin extends WeavePlugin {
6760
7329
  private getAllGuides;
6761
7330
  }
6762
7331
  //#endregion
6763
- export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, BoundingBoxWithId, CONNECTOR_TOOL_ACTION_NAME, CONNECTOR_TOOL_DEFAULT_CONFIG, CONNECTOR_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, DEFAULT_GUIDE_TOOL_ACTION_CONFIG, DEFAULT_SNAPPING_MANAGER_CONFIG, DOMElement, DistanceInfoH, DistanceInfoV, DistanceOrigin, DistanceOriginKeys, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_NAME, GUIDE_DISTANCE_ORIGIN, GUIDE_KIND, GUIDE_NAME, GUIDE_ORIENTATION, GUIDE_STATE, GUIDE_TOOL_ACTION_NAME, GUIDE_TOOL_STATE, Guide, GuideDistanceToTargetInfoConfig, GuideDistanceToTargetInfoParams, GuideDistanceToTargetInfoStyle, GuideKind, GuideKindKeys, GuideKindOnlyCustomOrStatic, GuideOrientation, GuideOrientationKeys, GuideToolActionConfig, GuideToolActionParams, GuideToolActionState, GuideToolActionStateKeys, GuideToolActionStyle, GuideToolActionTriggerParams, HIntersection, ImageInfo, ImageOptions, ImageProps, ImageToolActionData, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MEASURE_TOOL_ACTION_NAME, MEASURE_TOOL_STATE, MOVE_ORIENTATION, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, MoveOrientation, MoveOrientationKeys, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, POLYGON_TOOL_ACTION_NAME, POLYGON_TOOL_STATE, PREVIEW_HANDOVER_MAX_FRAMES, PREVIEW_ID_SUFFIX, PaddingOnPaste, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, SnapMatch, SnapOptions, SnapPoint, SnapResult, SnappingManagerKindStyle, SnappingManagerMovementConfig, SnappingManagerPersistenceConfig, SnappingManagerStyle, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, TextLayoutEngine, TextSerializable, type TextV2ShapeConfig, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, VIntersection, VideoBackgroundStyle, VideoIconBackgroundStyle, VideoIconStyle, VideoProps, VideoStyle, VideoTrackStyle, VisibleWorldRect, WEAVE_ARROW_NODE_TYPE, WEAVE_ARROW_TOOL_ACTION_NAME, WEAVE_ARROW_TOOL_STATE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_CONNECTOR_NODE_ANCHOR_ORIGIN, WEAVE_CONNECTOR_NODE_DECORATOR_TYPE, WEAVE_CONNECTOR_NODE_DEFAULT_CONFIG, WEAVE_CONNECTOR_NODE_LINE_ORIGIN, WEAVE_CONNECTOR_NODE_LINE_TYPE, WEAVE_CONNECTOR_NODE_TYPE, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_CONFIG, WEAVE_GRID_DOT_TYPES, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGES_TOOL_ACTION_NAME, WEAVE_IMAGES_TOOL_DEFAULT_CONFIG, WEAVE_IMAGES_TOOL_STATE, WEAVE_IMAGES_TOOL_UPLOAD_TYPE, WEAVE_IMAGE_CROP_ANCHOR_POSITION, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_IMAGE_TOOL_ACTION_NAME, WEAVE_IMAGE_TOOL_CONFIG_DEFAULT, WEAVE_IMAGE_TOOL_STATE, WEAVE_IMAGE_TOOL_UPLOAD_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_MEASURE_NODE_DEFAULT_CONFIG, WEAVE_MEASURE_NODE_TYPE, WEAVE_MEASURE_TOOL_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_NODES_SNAPPING_PLUGIN_KEY, WEAVE_POLYGON_NODE_TYPE, WEAVE_POLYGON_PRESETS, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_SHAPE_LABEL_DEFAULTS, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_DROP_AREA_KEY, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_IMAGE_CROPPING_MODE, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_KEYBOARD_MOVE_ORIENTATION, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAGE_PANNING_THROTTLE_MS, WEAVE_STAGE_SHAPE_LABEL_EDITION_MODE, WEAVE_STAGE_TEXT_EDITION_MODE, WEAVE_STAGE_ZOOM_DEFAULT_CONFIG, WEAVE_STAGE_ZOOM_KEY, WEAVE_STAGE_ZOOM_TYPE, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_STROKE_SINGLE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_SINGLE_NODE_TIP_SIDE, WEAVE_STROKE_SINGLE_NODE_TIP_TYPE, WEAVE_STROKE_SINGLE_NODE_TYPE, WEAVE_STROKE_TOOL_ACTION_NAME, WEAVE_STROKE_TOOL_ACTION_NAME_ALIASES, WEAVE_STROKE_TOOL_DEFAULT_CONFIG, WEAVE_STROKE_TOOL_STATE, WEAVE_TEXT_LINK_ALLOWED_PROTOCOLS, WEAVE_TEXT_NODE_DEFAULT_CONFIG, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_PRESENCE_CONFIG_DEFAULT_PROPS, WEAVE_USERS_PRESENCE_PLUGIN_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_PRESENCE_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveActionPropsChangeEvent, WeaveAlignNodesToolAction, WeaveAlignNodesToolActionAlignTo, WeaveAlignNodesToolActionAlignToKeys, WeaveAlignNodesToolActionState, WeaveAlignNodesToolActionStateKeys, WeaveAlignNodesToolActionTriggerParams, WeaveAnchorSnap, WeaveArea, WeaveArrowNode, WeaveArrowNodeParams, WeaveArrowProperties, WeaveArrowToolAction, WeaveArrowToolActionParams, WeaveArrowToolActionProperties, WeaveArrowToolActionState, WeaveArrowToolActionStateKeys, WeaveBrushToolAction, WeaveBrushToolActionOnAddedEvent, WeaveBrushToolActionOnAddingEvent, WeaveBrushToolActionParams, WeaveBrushToolActionProperties, WeaveBrushToolActionState, WeaveBrushToolActionStateKeys, WeaveCanPasteOntoFunction, WeaveCommentNode, WeaveCommentNodeAction, WeaveCommentNodeActionKeys, WeaveCommentNodeConfig, WeaveCommentNodeCreateAction, WeaveCommentNodeCreateActionKeys, WeaveCommentNodeModel, WeaveCommentNodeOnCreateCommentEvent, WeaveCommentNodeOnDragEndEvent, WeaveCommentNodeOnFinishCreateEvent, WeaveCommentNodeOnViewEvent, WeaveCommentNodeParams, WeaveCommentNodeStyle, WeaveCommentNodeViewAction, WeaveCommentNodeViewActionKeys, WeaveCommentStatus, WeaveCommentStatusKeys, WeaveCommentToolAction, WeaveCommentToolActionConfig, WeaveCommentToolActionParams, WeaveCommentToolActionState, WeaveCommentToolActionStateKeys, WeaveCommentToolModel, WeaveCommentToolStyle, WeaveCommentsRendererModel, WeaveCommentsRendererPlugin, WeaveCommentsRendererPluginConfig, WeaveCommentsRendererPluginParams, WeaveConfig, WeaveConnectedUserInfoKey, WeaveConnectedUsers, WeaveConnectedUsersChangeEvent, WeaveConnectedUsersPlugin, WeaveConnectedUsersPluginConfig, WeaveConnectedUsersPluginParams, WeaveConnectorNode, WeaveConnectorNodeAnchor, WeaveConnectorNodeAnchorPosition, WeaveConnectorNodeDecoratorType, WeaveConnectorNodeDecoratorTypeKeys, WeaveConnectorNodeInfo, WeaveConnectorNodeLineOrigin, WeaveConnectorNodeLineOriginKeys, WeaveConnectorNodeLineType, WeaveConnectorNodeLineTypeKeys, WeaveConnectorNodeParams, WeaveConnectorNodeProperties, WeaveConnectorToolAction, WeaveConnectorToolActionParams, WeaveConnectorToolActionProperties, WeaveConnectorToolActionState, WeaveConnectorToolActionStateKeys, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveCopyPasteNodesPluginConfig, WeaveCopyPasteNodesPluginOnCopyEvent, WeaveCopyPasteNodesPluginOnPasteEvent, WeaveCopyPasteNodesPluginOnPasteExternalEvent, WeaveCopyPasteNodesPluginParams, WeaveCopyPasteNodesPluginState, WeaveCopyPasteNodesPluginStateKeys, WeaveCopyPastePasteMode, WeaveCopyPastePasteModeKeys, WeaveEllipseNode, WeaveEllipseNodeParams, WeaveEllipseProperties, WeaveEllipseToolAction, WeaveEllipseToolActionOnAddedEvent, WeaveEllipseToolActionOnAddingEvent, WeaveEllipseToolActionState, WeaveEllipseToolActionStateKeys, WeaveEraserToolAction, WeaveEraserToolActionState, WeaveEraserToolActionStateKeys, WeaveExportNodesActionParams, WeaveExportNodesToolAction, WeaveExportStageActionParams, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToScreenToolActionParams, WeaveFitToSelectionToolAction, WeaveFitToSelectionToolActionParams, WeaveFontFace, WeaveFontFamily, WeaveFontsPreloadFunction, WeaveFrameAttributes, WeaveFrameNode, WeaveFrameNodeParams, WeaveFrameProperties, WeaveFrameToolAction, WeaveFrameToolActionOnAddedEvent, WeaveFrameToolActionOnAddingEvent, WeaveFrameToolActionState, WeaveFrameToolActionStateKeys, WeaveFrameToolActionTriggerParams, WeaveFrameToolProps, WeaveGetStaticGuidesFunction, WeaveGroupNode, WeaveGroupNodeParams, WeaveGroupProperties, WeaveGuideToolAction, WeaveImageCache, WeaveImageCropAnchorPosition, WeaveImageCropAnchorPositionKeys, WeaveImageCropEndType, WeaveImageCropEndTypeKeys, WeaveImageCursors, WeaveImageFile, WeaveImageFlipAxis, WeaveImageFlipOptions, WeaveImageNode, WeaveImageNodeParams, WeaveImageOnCropEndEvent, WeaveImageOnCropStartEvent, WeaveImageProperties, WeaveImageState, WeaveImageToolAction, WeaveImageToolActionConfig, WeaveImageToolActionOnAddedEvent, WeaveImageToolActionOnImageUploadedErrorEvent, WeaveImageToolActionOnImageUploadedEvent, WeaveImageToolActionParams, WeaveImageToolActionState, WeaveImageToolActionStateKeys, WeaveImageToolActionTriggerCommonParams, WeaveImageToolActionTriggerParams, WeaveImageToolActionTriggerReturn, WeaveImageToolActionUploadFunction, WeaveImageToolActionUploadType, WeaveImageToolActionUploadTypeKeys, WeaveImageToolDragAndDropProperties, WeaveImageTriggerCropOptions, WeaveImageURL, WeaveImagesFile, WeaveImagesToolAction, WeaveImagesToolActionInternalUploadFunction, WeaveImagesToolActionOnAddedEvent, WeaveImagesToolActionOnFinishedUploadingFunction, WeaveImagesToolActionOnStartUploadingFunction, WeaveImagesToolActionParams, WeaveImagesToolActionState, WeaveImagesToolActionStateKeys, WeaveImagesToolActionTriggerCommonParams, WeaveImagesToolActionTriggerParams, WeaveImagesToolActionUploadFunction, WeaveImagesToolActionUploadType, WeaveImagesToolActionUploadTypeKeys, WeaveImagesToolDragAndDropProperties, WeaveImagesURL, WeaveInstanceStatusEvent, WeaveLayerNode, WeaveLineNode, WeaveLineNodeParams, WeaveLineProperties, WeaveLineToolAction, WeaveLineToolActionParams, WeaveLineToolActionProperties, WeaveLineToolActionState, WeaveLineToolActionStateKeys, WeaveMeasureNode, WeaveMeasureToolAction, WeaveMeasureToolActionState, WeaveMeasureToolActionStateKeys, WeaveMeasureToolParams, WeaveMeasureToolProperties, WeaveMoveToolAction, WeaveMoveToolActionParams, WeaveMoveToolActionState, WeaveMoveToolActionStateKeys, WeaveMutexLockChangeEvent, WeaveNode, WeaveNodeChangedContainerEvent, WeaveNodesMultiSelectionFeedbackConfig, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesMultiSelectionFeedbackPluginConfig, WeaveNodesMultiSelectionFeedbackPluginParams, WeaveNodesMultiSelectionFeedbackStyle, WeaveNodesSelectionBehaviorsConfig, WeaveNodesSelectionConfig, WeaveNodesSelectionMode, WeaveNodesSelectionOnSelectionParams, WeaveNodesSelectionPanningOnSelectionConfig, WeaveNodesSelectionPlugin, WeaveNodesSelectionPluginConfig, WeaveNodesSelectionPluginOnGroupContextChangeEvent, WeaveNodesSelectionPluginOnNodesChangeEvent, WeaveNodesSelectionPluginOnSelectionStateEvent, WeaveNodesSelectionPluginOnStageSelectionEvent, WeaveNodesSelectionPluginParams, WeaveNodesSelectionStyleConfig, WeaveNodesSnappingCustomGuidesConfig, WeaveNodesSnappingPlugin, WeaveNodesSnappingPluginConfig, WeaveNodesSnappingPluginParams, WeavePasteModel, WeavePenToolAction, WeavePenToolActionOnAddedEvent, WeavePenToolActionOnAddingEvent, WeavePenToolActionState, WeavePenToolActionStateKeys, WeavePerformanceConfig, WeavePlugin, WeavePolygonInnerRect, WeavePolygonNode, WeavePolygonNodeParams, WeavePolygonPoint, WeavePolygonPreset, WeavePolygonPresetDef, WeavePolygonProperties, WeavePolygonToolAction, WeavePolygonToolActionState, WeavePolygonToolActionStateKeys, WeavePolygonToolActionTriggerParams, WeaveRectangleNode, WeaveRectangleNodeParams, WeaveRectangleProperties, WeaveRectangleToolAction, WeaveRectangleToolActionOnAddedEvent, WeaveRectangleToolActionOnAddingEvent, WeaveRectangleToolActionState, WeaveRectangleToolActionStateKeys, WeaveRegularPolygonNode, WeaveRegularPolygonNodeParams, WeaveRegularPolygonProperties, WeaveRegularPolygonToolAction, WeaveRegularPolygonToolActionOnAddedEvent, WeaveRegularPolygonToolActionOnAddingEvent, WeaveRegularPolygonToolActionState, WeaveRegularPolygonToolActionStateKeys, WeaveRenderer, WeaveSelectionToolAction, WeaveSelectionToolActionState, WeaveSelectionToolActionStateKeys, WeaveShapeLabelConfig, WeaveShapeLabelEngine, WeaveShapeLabelEngineKind, WeaveShapeLabelNode, WeaveShapeLabelOnEnterEditMode, WeaveShapeLabelOnExitEditMode, WeaveShapeLabelOnFormatChange, WeaveShapeLabelProps, WeaveShapeLabelTextBounds, WeaveStageContextMenuPluginConfig, WeaveStageContextMenuPluginOnNodeContextMenuEvent, WeaveStageContextMenuPluginParams, WeaveStageDropAreaPlugin, WeaveStageDropPluginOnStageDropEvent, WeaveStageGridDotType, WeaveStageGridDotTypeKeys, WeaveStageGridPlugin, WeaveStageGridPluginConfig, WeaveStageGridPluginParams, WeaveStageGridType, WeaveStageGridTypeKeys, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageMinimapPluginConfig, WeaveStageMinimapPluginParams, WeaveStageMinimapPluginStyle, WeaveStageNode, WeaveStagePanningPlugin, WeaveStagePanningPluginConfig, WeaveStagePanningPluginParams, WeaveStageResizePlugin, WeaveStageZoomChanged, WeaveStageZoomPlugin, WeaveStageZoomPluginConfig, WeaveStageZoomPluginOnZoomChangeEvent, WeaveStageZoomPluginParams, WeaveStageZoomType, WeaveStageZoomTypeKeys, WeaveStarNode, WeaveStarNodeParams, WeaveStarProperties, WeaveStarToolAction, WeaveStarToolActionOnAddedEvent, WeaveStarToolActionOnAddingEvent, WeaveStarToolActionState, WeaveStarToolActionStateKeys, WeaveStateManipulation, WeaveStore, WeaveStoreOnNodeChangeEvent, WeaveStoreOnRedoChangeEvent, WeaveStoreOnRoomChangedEvent, WeaveStoreOnRoomLoadedEvent, WeaveStoreOnRoomSwitchingEndEvent, WeaveStoreOnRoomSwitchingStartEvent, WeaveStoreOnStateChangeEvent, WeaveStoreOnStateMetadataChangeEvent, WeaveStoreOnUndoChangeEvent, WeaveStoreOnUndoRedoChangeEvent, WeaveStrokeNode, WeaveStrokeNodeParams, WeaveStrokePoint, WeaveStrokeProperties, WeaveStrokeSingleNode, WeaveStrokeSingleNodeParams, WeaveStrokeSingleNodeTipSide, WeaveStrokeSingleNodeTipSideKeys, WeaveStrokeSingleProperties, WeaveStrokeToolAction, WeaveStrokeToolActionOnAddedEvent, WeaveStrokeToolActionOnAddingEvent, WeaveStrokeToolActionParams, WeaveStrokeToolActionProperties, WeaveStrokeToolActionState, WeaveStrokeToolActionStateKeys, WeaveTextCursorProperties, WeaveTextEditionProperties, WeaveTextLayout, WeaveTextLayoutKeys, WeaveTextLinkProperties, WeaveTextNode, WeaveTextNodeOnEnterTextNodeEditMode, WeaveTextNodeOnExitTextNodeEditMode, WeaveTextNodeParams, WeaveTextOutlineProperties, WeaveTextProperties, WeaveTextToolAction, WeaveTextToolActionState, WeaveTextToolActionStateKeys, WeaveTextV2Node, WeaveTextV2Shape, WeaveToPasteNode, WeaveUpscaleConfig, WeaveUserPointer, WeaveUserPointerKey, WeaveUserPointersUIProperties, WeaveUserPresence, WeaveUserPresenceInformation, WeaveUserPresenceKey, WeaveUserSelectionInfo, WeaveUserSelectionKey, WeaveUsersPointersPlugin, WeaveUsersPointersPluginConfig, WeaveUsersPointersPluginParams, WeaveUsersPresencePlugin, WeaveUsersPresencePluginConfig, WeaveUsersPresencePluginParams, WeaveUsersSelectionPlugin, WeaveUsersSelectionPluginConfig, WeaveUsersSelectionPluginParams, WeaveVideoNode, WeaveVideoNodeParams, WeaveVideoOnVideoPauseEvent, WeaveVideoOnVideoPlayEvent, WeaveVideoOnVideoStopEvent, WeaveVideoProperties, WeaveVideoState, WeaveVideoToolAction, WeaveVideoToolActionOnAddedEvent, WeaveVideoToolActionOnAddingEvent, WeaveVideoToolActionState, WeaveVideoToolActionStateKeys, WeaveVideoToolActionTriggerParams, WeaveVideoToolActionTriggerReturn, WeaveVideoToolDragAndDropProperties, WeaveVideoToolDragParams, WeaveZoomInToolAction, WeaveZoomInToolActionParams, WeaveZoomOutToolAction, WeaveZoomOutToolActionParams, applyLabelBlocksState, buildAncestorGroupIds, canComposite, clearContainerTargets, computeEllipseLabelMinSize, computePolygonLabelMinSize, computeRectangleLabelMinSize, containerOverCursor, containsNodeDeep, defaultInitialState, downscaleImageFile, downscaleImageFromURL, getBoundingBox, getDownscaleRatio, getExportBoundingBox, getImageSizeFromFile, getJSONFromYjsBinary, getSelectedNodesMetadata, getShapeLabelSchemaFields, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, instantiatePreset, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isNumber, isObject, isServer, labelId, loadImageSource, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, moveNodeToContainerNT, resetScale, resolveLabelBlocks, setupCanvasBackend, setupSkiaBackend, sleep, spreadLabelProps, weavejsToYjsBinary };
7332
+ export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, BRUSH_CONFIG_DOCUMENT_VERSION, BRUSH_INPUT_PROFILE_KEYS, BRUSH_LAB_PLUGIN_NAME, BRUSH_LEGACY_INPUT_PROFILE, BRUSH_LOOK_PRESETS, BRUSH_LOOK_TUNABLES, BRUSH_PROFILE_PRESETS, BRUSH_PROFILE_TUNABLES, BRUSH_SCENARIOS, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, BRUSH_TUNABLES, BoundingBoxWithId, CONNECTOR_TOOL_ACTION_NAME, CONNECTOR_TOOL_DEFAULT_CONFIG, CONNECTOR_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, DEFAULT_GUIDE_TOOL_ACTION_CONFIG, DEFAULT_SNAPPING_MANAGER_CONFIG, DOMElement, DistanceInfoH, DistanceInfoV, DistanceOrigin, DistanceOriginKeys, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_NAME, GUIDE_DISTANCE_ORIGIN, GUIDE_KIND, GUIDE_NAME, GUIDE_ORIENTATION, GUIDE_STATE, GUIDE_TOOL_ACTION_NAME, GUIDE_TOOL_STATE, Guide, GuideDistanceToTargetInfoConfig, GuideDistanceToTargetInfoParams, GuideDistanceToTargetInfoStyle, GuideKind, GuideKindKeys, GuideKindOnlyCustomOrStatic, GuideOrientation, GuideOrientationKeys, GuideToolActionConfig, GuideToolActionParams, GuideToolActionState, GuideToolActionStateKeys, GuideToolActionStyle, GuideToolActionTriggerParams, HIntersection, ImageInfo, ImageOptions, ImageProps, ImageToolActionData, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MEASURE_TOOL_ACTION_NAME, MEASURE_TOOL_STATE, MOVE_ORIENTATION, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, MoveOrientation, MoveOrientationKeys, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, POLYGON_TOOL_ACTION_NAME, POLYGON_TOOL_STATE, PREVIEW_HANDOVER_MAX_FRAMES, PREVIEW_ID_SUFFIX, PaddingOnPaste, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, SnapMatch, SnapOptions, SnapPoint, SnapResult, SnappingManagerKindStyle, SnappingManagerMovementConfig, SnappingManagerPersistenceConfig, SnappingManagerStyle, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, TextLayoutEngine, TextSerializable, type TextV2ShapeConfig, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, VIntersection, VideoBackgroundStyle, VideoIconBackgroundStyle, VideoIconStyle, VideoProps, VideoStyle, VideoTrackStyle, VisibleWorldRect, WEAVE_ARROW_NODE_TYPE, WEAVE_ARROW_TOOL_ACTION_NAME, WEAVE_ARROW_TOOL_STATE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_CONNECTOR_NODE_ANCHOR_ORIGIN, WEAVE_CONNECTOR_NODE_DECORATOR_TYPE, WEAVE_CONNECTOR_NODE_DEFAULT_CONFIG, WEAVE_CONNECTOR_NODE_LINE_ORIGIN, WEAVE_CONNECTOR_NODE_LINE_TYPE, WEAVE_CONNECTOR_NODE_TYPE, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_CONFIG, WEAVE_GRID_DOT_TYPES, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGES_TOOL_ACTION_NAME, WEAVE_IMAGES_TOOL_DEFAULT_CONFIG, WEAVE_IMAGES_TOOL_STATE, WEAVE_IMAGES_TOOL_UPLOAD_TYPE, WEAVE_IMAGE_CROP_ANCHOR_POSITION, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_IMAGE_TOOL_ACTION_NAME, WEAVE_IMAGE_TOOL_CONFIG_DEFAULT, WEAVE_IMAGE_TOOL_STATE, WEAVE_IMAGE_TOOL_UPLOAD_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_MEASURE_NODE_DEFAULT_CONFIG, WEAVE_MEASURE_NODE_TYPE, WEAVE_MEASURE_TOOL_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_NODES_SNAPPING_PLUGIN_KEY, WEAVE_POLYGON_NODE_TYPE, WEAVE_POLYGON_PRESETS, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_SHAPE_LABEL_DEFAULTS, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_DROP_AREA_KEY, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_IMAGE_CROPPING_MODE, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_KEYBOARD_MOVE_ORIENTATION, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAGE_PANNING_THROTTLE_MS, WEAVE_STAGE_SHAPE_LABEL_EDITION_MODE, WEAVE_STAGE_TEXT_EDITION_MODE, WEAVE_STAGE_ZOOM_DEFAULT_CONFIG, WEAVE_STAGE_ZOOM_KEY, WEAVE_STAGE_ZOOM_TYPE, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_LEGACY_LOOK, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_STROKE_SINGLE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_SINGLE_NODE_TIP_SIDE, WEAVE_STROKE_SINGLE_NODE_TIP_TYPE, WEAVE_STROKE_SINGLE_NODE_TYPE, WEAVE_STROKE_TOOL_ACTION_NAME, WEAVE_STROKE_TOOL_ACTION_NAME_ALIASES, WEAVE_STROKE_TOOL_DEFAULT_CONFIG, WEAVE_STROKE_TOOL_STATE, WEAVE_TEXT_LINK_ALLOWED_PROTOCOLS, WEAVE_TEXT_NODE_DEFAULT_CONFIG, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_PRESENCE_CONFIG_DEFAULT_PROPS, WEAVE_USERS_PRESENCE_PLUGIN_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_PRESENCE_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveActionPropsChangeEvent, WeaveAlignNodesToolAction, WeaveAlignNodesToolActionAlignTo, WeaveAlignNodesToolActionAlignToKeys, WeaveAlignNodesToolActionState, WeaveAlignNodesToolActionStateKeys, WeaveAlignNodesToolActionTriggerParams, WeaveAnchorSnap, WeaveArea, WeaveArrowNode, WeaveArrowNodeParams, WeaveArrowProperties, WeaveArrowToolAction, WeaveArrowToolActionParams, WeaveArrowToolActionProperties, WeaveArrowToolActionState, WeaveArrowToolActionStateKeys, WeaveBrushCaptureConfig, WeaveBrushConfigDocument, WeaveBrushConfigParseResult, WeaveBrushFinalizeConfig, WeaveBrushInputConfig, WeaveBrushInputProfile, WeaveBrushInputProfileKey, WeaveBrushInputProfilePatch, WeaveBrushLookPreset, WeaveBrushPointerInfo, WeaveBrushPresetRegistry, WeaveBrushPresetResult, WeaveBrushPressureConfig, WeaveBrushProfilePreset, WeaveBrushScenario, WeaveBrushSetResult, WeaveBrushStabilizerConfig, WeaveBrushToolAction, WeaveBrushToolActionConfig, WeaveBrushToolActionOnAddedEvent, WeaveBrushToolActionOnAddingEvent, WeaveBrushToolActionParams, WeaveBrushToolActionProperties, WeaveBrushToolActionState, WeaveBrushToolActionStateKeys, WeaveBrushTouchGuardConfig, WeaveBrushTraceSink, WeaveBrushTunable, WeaveBrushTunableKind, WeaveBrushTunableStage, WeaveCanPasteOntoFunction, WeaveCommentNode, WeaveCommentNodeAction, WeaveCommentNodeActionKeys, WeaveCommentNodeConfig, WeaveCommentNodeCreateAction, WeaveCommentNodeCreateActionKeys, WeaveCommentNodeModel, WeaveCommentNodeOnCreateCommentEvent, WeaveCommentNodeOnDragEndEvent, WeaveCommentNodeOnFinishCreateEvent, WeaveCommentNodeOnViewEvent, WeaveCommentNodeParams, WeaveCommentNodeStyle, WeaveCommentNodeViewAction, WeaveCommentNodeViewActionKeys, WeaveCommentStatus, WeaveCommentStatusKeys, WeaveCommentToolAction, WeaveCommentToolActionConfig, WeaveCommentToolActionParams, WeaveCommentToolActionState, WeaveCommentToolActionStateKeys, WeaveCommentToolModel, WeaveCommentToolStyle, WeaveCommentsRendererModel, WeaveCommentsRendererPlugin, WeaveCommentsRendererPluginConfig, WeaveCommentsRendererPluginParams, WeaveConfig, WeaveConnectedUserInfoKey, WeaveConnectedUsers, WeaveConnectedUsersChangeEvent, WeaveConnectedUsersPlugin, WeaveConnectedUsersPluginConfig, WeaveConnectedUsersPluginParams, WeaveConnectorNode, WeaveConnectorNodeAnchor, WeaveConnectorNodeAnchorPosition, WeaveConnectorNodeDecoratorType, WeaveConnectorNodeDecoratorTypeKeys, WeaveConnectorNodeInfo, WeaveConnectorNodeLineOrigin, WeaveConnectorNodeLineOriginKeys, WeaveConnectorNodeLineType, WeaveConnectorNodeLineTypeKeys, WeaveConnectorNodeParams, WeaveConnectorNodeProperties, WeaveConnectorToolAction, WeaveConnectorToolActionParams, WeaveConnectorToolActionProperties, WeaveConnectorToolActionState, WeaveConnectorToolActionStateKeys, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveCopyPasteNodesPluginConfig, WeaveCopyPasteNodesPluginOnCopyEvent, WeaveCopyPasteNodesPluginOnPasteEvent, WeaveCopyPasteNodesPluginOnPasteExternalEvent, WeaveCopyPasteNodesPluginParams, WeaveCopyPasteNodesPluginState, WeaveCopyPasteNodesPluginStateKeys, WeaveCopyPastePasteMode, WeaveCopyPastePasteModeKeys, WeaveEllipseNode, WeaveEllipseNodeParams, WeaveEllipseProperties, WeaveEllipseToolAction, WeaveEllipseToolActionOnAddedEvent, WeaveEllipseToolActionOnAddingEvent, WeaveEllipseToolActionState, WeaveEllipseToolActionStateKeys, WeaveEraserToolAction, WeaveEraserToolActionState, WeaveEraserToolActionStateKeys, WeaveExportNodesActionParams, WeaveExportNodesToolAction, WeaveExportStageActionParams, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToScreenToolActionParams, WeaveFitToSelectionToolAction, WeaveFitToSelectionToolActionParams, WeaveFontFace, WeaveFontFamily, WeaveFontsPreloadFunction, WeaveFrameAttributes, WeaveFrameNode, WeaveFrameNodeParams, WeaveFrameProperties, WeaveFrameToolAction, WeaveFrameToolActionOnAddedEvent, WeaveFrameToolActionOnAddingEvent, WeaveFrameToolActionState, WeaveFrameToolActionStateKeys, WeaveFrameToolActionTriggerParams, WeaveFrameToolProps, WeaveGetStaticGuidesFunction, WeaveGroupNode, WeaveGroupNodeParams, WeaveGroupProperties, WeaveGuideToolAction, WeaveImageCache, WeaveImageCropAnchorPosition, WeaveImageCropAnchorPositionKeys, WeaveImageCropEndType, WeaveImageCropEndTypeKeys, WeaveImageCursors, WeaveImageFile, WeaveImageFlipAxis, WeaveImageFlipOptions, WeaveImageNode, WeaveImageNodeParams, WeaveImageOnCropEndEvent, WeaveImageOnCropStartEvent, WeaveImageProperties, WeaveImageState, WeaveImageToolAction, WeaveImageToolActionConfig, WeaveImageToolActionOnAddedEvent, WeaveImageToolActionOnImageUploadedErrorEvent, WeaveImageToolActionOnImageUploadedEvent, WeaveImageToolActionParams, WeaveImageToolActionState, WeaveImageToolActionStateKeys, WeaveImageToolActionTriggerCommonParams, WeaveImageToolActionTriggerParams, WeaveImageToolActionTriggerReturn, WeaveImageToolActionUploadFunction, WeaveImageToolActionUploadType, WeaveImageToolActionUploadTypeKeys, WeaveImageToolDragAndDropProperties, WeaveImageTriggerCropOptions, WeaveImageURL, WeaveImagesFile, WeaveImagesToolAction, WeaveImagesToolActionInternalUploadFunction, WeaveImagesToolActionOnAddedEvent, WeaveImagesToolActionOnFinishedUploadingFunction, WeaveImagesToolActionOnStartUploadingFunction, WeaveImagesToolActionParams, WeaveImagesToolActionState, WeaveImagesToolActionStateKeys, WeaveImagesToolActionTriggerCommonParams, WeaveImagesToolActionTriggerParams, WeaveImagesToolActionUploadFunction, WeaveImagesToolActionUploadType, WeaveImagesToolActionUploadTypeKeys, WeaveImagesToolDragAndDropProperties, WeaveImagesURL, WeaveInstanceStatusEvent, WeaveLayerNode, WeaveLineNode, WeaveLineNodeParams, WeaveLineProperties, WeaveLineToolAction, WeaveLineToolActionParams, WeaveLineToolActionProperties, WeaveLineToolActionState, WeaveLineToolActionStateKeys, WeaveMeasureNode, WeaveMeasureToolAction, WeaveMeasureToolActionState, WeaveMeasureToolActionStateKeys, WeaveMeasureToolParams, WeaveMeasureToolProperties, WeaveMoveToolAction, WeaveMoveToolActionParams, WeaveMoveToolActionState, WeaveMoveToolActionStateKeys, WeaveMutexLockChangeEvent, WeaveNode, WeaveNodeChangedContainerEvent, WeaveNodesMultiSelectionFeedbackConfig, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesMultiSelectionFeedbackPluginConfig, WeaveNodesMultiSelectionFeedbackPluginParams, WeaveNodesMultiSelectionFeedbackStyle, WeaveNodesSelectionBehaviorsConfig, WeaveNodesSelectionConfig, WeaveNodesSelectionMode, WeaveNodesSelectionOnSelectionParams, WeaveNodesSelectionPanningOnSelectionConfig, WeaveNodesSelectionPlugin, WeaveNodesSelectionPluginConfig, WeaveNodesSelectionPluginOnGroupContextChangeEvent, WeaveNodesSelectionPluginOnNodesChangeEvent, WeaveNodesSelectionPluginOnSelectionStateEvent, WeaveNodesSelectionPluginOnStageSelectionEvent, WeaveNodesSelectionPluginParams, WeaveNodesSelectionStyleConfig, WeaveNodesSnappingCustomGuidesConfig, WeaveNodesSnappingPlugin, WeaveNodesSnappingPluginConfig, WeaveNodesSnappingPluginParams, WeavePasteModel, WeavePenToolAction, WeavePenToolActionOnAddedEvent, WeavePenToolActionOnAddingEvent, WeavePenToolActionState, WeavePenToolActionStateKeys, WeavePerformanceConfig, WeavePlugin, WeavePolygonInnerRect, WeavePolygonNode, WeavePolygonNodeParams, WeavePolygonPoint, WeavePolygonPreset, WeavePolygonPresetDef, WeavePolygonProperties, WeavePolygonToolAction, WeavePolygonToolActionState, WeavePolygonToolActionStateKeys, WeavePolygonToolActionTriggerParams, WeaveRectangleNode, WeaveRectangleNodeParams, WeaveRectangleProperties, WeaveRectangleToolAction, WeaveRectangleToolActionOnAddedEvent, WeaveRectangleToolActionOnAddingEvent, WeaveRectangleToolActionState, WeaveRectangleToolActionStateKeys, WeaveRegularPolygonNode, WeaveRegularPolygonNodeParams, WeaveRegularPolygonProperties, WeaveRegularPolygonToolAction, WeaveRegularPolygonToolActionOnAddedEvent, WeaveRegularPolygonToolActionOnAddingEvent, WeaveRegularPolygonToolActionState, WeaveRegularPolygonToolActionStateKeys, WeaveRenderer, WeaveSelectionToolAction, WeaveSelectionToolActionState, WeaveSelectionToolActionStateKeys, WeaveShapeLabelConfig, WeaveShapeLabelEngine, WeaveShapeLabelEngineKind, WeaveShapeLabelNode, WeaveShapeLabelOnEnterEditMode, WeaveShapeLabelOnExitEditMode, WeaveShapeLabelOnFormatChange, WeaveShapeLabelProps, WeaveShapeLabelTextBounds, WeaveStageContextMenuPluginConfig, WeaveStageContextMenuPluginOnNodeContextMenuEvent, WeaveStageContextMenuPluginParams, WeaveStageDropAreaPlugin, WeaveStageDropPluginOnStageDropEvent, WeaveStageGridDotType, WeaveStageGridDotTypeKeys, WeaveStageGridPlugin, WeaveStageGridPluginConfig, WeaveStageGridPluginParams, WeaveStageGridType, WeaveStageGridTypeKeys, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageMinimapPluginConfig, WeaveStageMinimapPluginParams, WeaveStageMinimapPluginStyle, WeaveStageNode, WeaveStagePanningPlugin, WeaveStagePanningPluginConfig, WeaveStagePanningPluginParams, WeaveStageResizePlugin, WeaveStageZoomChanged, WeaveStageZoomPlugin, WeaveStageZoomPluginConfig, WeaveStageZoomPluginOnZoomChangeEvent, WeaveStageZoomPluginParams, WeaveStageZoomType, WeaveStageZoomTypeKeys, WeaveStarNode, WeaveStarNodeParams, WeaveStarProperties, WeaveStarToolAction, WeaveStarToolActionOnAddedEvent, WeaveStarToolActionOnAddingEvent, WeaveStarToolActionState, WeaveStarToolActionStateKeys, WeaveStateManipulation, WeaveStore, WeaveStoreOnNodeChangeEvent, WeaveStoreOnRedoChangeEvent, WeaveStoreOnRoomChangedEvent, WeaveStoreOnRoomLoadedEvent, WeaveStoreOnRoomSwitchingEndEvent, WeaveStoreOnRoomSwitchingStartEvent, WeaveStoreOnStateChangeEvent, WeaveStoreOnStateMetadataChangeEvent, WeaveStoreOnUndoChangeEvent, WeaveStoreOnUndoRedoChangeEvent, WeaveStrokeInputMeta, WeaveStrokeLook, WeaveStrokeLookPatch, WeaveStrokeNode, WeaveStrokeNodeParams, WeaveStrokePoint, WeaveStrokeProperties, WeaveStrokeSingleNode, WeaveStrokeSingleNodeParams, WeaveStrokeSingleNodeTipSide, WeaveStrokeSingleNodeTipSideKeys, WeaveStrokeSingleProperties, WeaveStrokeToolAction, WeaveStrokeToolActionOnAddedEvent, WeaveStrokeToolActionOnAddingEvent, WeaveStrokeToolActionParams, WeaveStrokeToolActionProperties, WeaveStrokeToolActionState, WeaveStrokeToolActionStateKeys, WeaveTextCursorProperties, WeaveTextEditionProperties, WeaveTextLayout, WeaveTextLayoutKeys, WeaveTextLinkProperties, WeaveTextNode, WeaveTextNodeOnEnterTextNodeEditMode, WeaveTextNodeOnExitTextNodeEditMode, WeaveTextNodeParams, WeaveTextOutlineProperties, WeaveTextProperties, WeaveTextToolAction, WeaveTextToolActionState, WeaveTextToolActionStateKeys, WeaveTextV2Node, WeaveTextV2Shape, WeaveToPasteNode, WeaveUpscaleConfig, WeaveUserPointer, WeaveUserPointerKey, WeaveUserPointersUIProperties, WeaveUserPresence, WeaveUserPresenceInformation, WeaveUserPresenceKey, WeaveUserSelectionInfo, WeaveUserSelectionKey, WeaveUsersPointersPlugin, WeaveUsersPointersPluginConfig, WeaveUsersPointersPluginParams, WeaveUsersPresencePlugin, WeaveUsersPresencePluginConfig, WeaveUsersPresencePluginParams, WeaveUsersSelectionPlugin, WeaveUsersSelectionPluginConfig, WeaveUsersSelectionPluginParams, WeaveVideoNode, WeaveVideoNodeParams, WeaveVideoOnVideoPauseEvent, WeaveVideoOnVideoPlayEvent, WeaveVideoOnVideoStopEvent, WeaveVideoProperties, WeaveVideoState, WeaveVideoToolAction, WeaveVideoToolActionOnAddedEvent, WeaveVideoToolActionOnAddingEvent, WeaveVideoToolActionState, WeaveVideoToolActionStateKeys, WeaveVideoToolActionTriggerParams, WeaveVideoToolActionTriggerReturn, WeaveVideoToolDragAndDropProperties, WeaveVideoToolDragParams, WeaveZoomInToolAction, WeaveZoomInToolActionParams, WeaveZoomOutToolAction, WeaveZoomOutToolActionParams, applyLabelBlocksState, automaticBrushProfileKey, buildAncestorGroupIds, canComposite, clearContainerTargets, computeEllipseLabelMinSize, computePolygonLabelMinSize, computeRectangleLabelMinSize, containerOverCursor, containsNodeDeep, defaultInitialState, detectBrushPlatform, downscaleImageFile, downscaleImageFromURL, getBoundingBox, getBrushScenario, getBrushTunable, getDownscaleRatio, getExportBoundingBox, getImageSizeFromFile, getJSONFromYjsBinary, getSelectedNodesMetadata, getShapeLabelSchemaFields, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, instantiatePreset, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isNumber, isObject, isServer, labelId, loadImageSource, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, moveNodeToContainerNT, parseBrushConfigDocument, resetScale, resolveBrushInputProfileKey, resolveBrushLookPatch, resolveBrushProfilePatch, resolveLabelBlocks, setupCanvasBackend, setupSkiaBackend, sleep, spreadLabelProps, validateBrushTunablePatch, validateBrushTunableValue, weavejsToYjsBinary };
6764
7333
  //# sourceMappingURL=types.d.ts.map