telva 1.0.1 → 1.0.3

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.
Files changed (130) hide show
  1. package/dist/Telva.d.ts +3 -3
  2. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  3. package/dist/components/Primitives/DropdownMenu/DMCheckboxItem.d.ts +1 -1
  4. package/dist/components/Primitives/DropdownMenu/DMItem.d.ts +1 -1
  5. package/dist/components/Primitives/DropdownMenu/DMRadioItem.d.ts +1 -1
  6. package/dist/components/Primitives/DropdownMenu/DMTriggerIcon.d.ts +1 -1
  7. package/dist/components/Primitives/Panel/Panel.d.ts +1 -1
  8. package/dist/components/Primitives/RowButton/RowButton.d.ts +1 -1
  9. package/dist/components/Primitives/TextField/TextField.d.ts +1 -1
  10. package/dist/components/Primitives/ToolButton/ToolButton.d.ts +2 -2
  11. package/dist/components/ToolsPanel/ShapesMenu.d.ts +1 -1
  12. package/dist/components/TopPanel/PageMenu/PageMenu.d.ts +1 -1
  13. package/dist/components/TopPanel/PageOptionsDialog/PageOptionsDialog.d.ts +1 -1
  14. package/dist/constants.d.ts +1 -1
  15. package/dist/hooks/useFileSystem.d.ts +1 -1
  16. package/dist/hooks/useTelvaApp.d.ts +1 -1
  17. package/dist/hooks/useTheme.d.ts +1 -1
  18. package/dist/hooks/useTranslation.d.ts +2 -2
  19. package/dist/index.js +2 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +18 -30136
  22. package/dist/index.mjs.map +2 -2
  23. package/dist/state/StateManager/StateManager.d.ts +1 -1
  24. package/dist/state/TVDR.d.ts +1 -1
  25. package/dist/state/TelvaApp.d.ts +8 -8
  26. package/dist/state/commands/alignShapes/alignShapes.d.ts +2 -2
  27. package/dist/state/commands/changePage/changePage.d.ts +2 -2
  28. package/dist/state/commands/createPage/createPage.d.ts +2 -2
  29. package/dist/state/commands/createShapes/createShapes.d.ts +2 -2
  30. package/dist/state/commands/deletePage/deletePage.d.ts +2 -2
  31. package/dist/state/commands/deleteShapes/deleteShapes.d.ts +2 -2
  32. package/dist/state/commands/distributeShapes/distributeShapes.d.ts +2 -2
  33. package/dist/state/commands/duplicatePage/duplicatePage.d.ts +2 -2
  34. package/dist/state/commands/duplicateShapes/duplicateShapes.d.ts +2 -2
  35. package/dist/state/commands/flipShapes/flipShapes.d.ts +3 -3
  36. package/dist/state/commands/groupShapes/groupShapes.d.ts +2 -2
  37. package/dist/state/commands/insertContent/insertContent.d.ts +2 -2
  38. package/dist/state/commands/movePage/movePage.d.ts +2 -2
  39. package/dist/state/commands/moveShapesToPage/moveShapesToPage.d.ts +2 -2
  40. package/dist/state/commands/renamePage/renamePage.d.ts +2 -2
  41. package/dist/state/commands/reorderShapes/reorderShapes.d.ts +2 -2
  42. package/dist/state/commands/resetBounds/resetBounds.d.ts +2 -2
  43. package/dist/state/commands/rotateShapes/rotateShapes.d.ts +2 -2
  44. package/dist/state/commands/setShapesProps/setShapesProps.d.ts +2 -2
  45. package/dist/state/commands/shared/removeShapesFromPage.d.ts +1 -1
  46. package/dist/state/commands/stretchShapes/stretchShapes.d.ts +3 -3
  47. package/dist/state/commands/styleShapes/styleShapes.d.ts +2 -2
  48. package/dist/state/commands/toggleShapesDecoration/toggleShapesDecoration.d.ts +2 -2
  49. package/dist/state/commands/toggleShapesProp/toggleShapesProp.d.ts +2 -2
  50. package/dist/state/commands/translateShapes/translateShapes.d.ts +2 -2
  51. package/dist/state/commands/ungroupShapes/ungroupShapes.d.ts +3 -3
  52. package/dist/state/commands/updateShapes/updateShapes.d.ts +2 -2
  53. package/dist/state/data/filesystem.d.ts +1 -1
  54. package/dist/state/data/migrate.d.ts +1 -1
  55. package/dist/state/sessions/ArrowSession/ArrowSession.d.ts +3 -3
  56. package/dist/state/sessions/BaseSession.d.ts +2 -2
  57. package/dist/state/sessions/BrushSession/BrushSession.d.ts +3 -3
  58. package/dist/state/sessions/DrawSession/DrawSession.d.ts +3 -3
  59. package/dist/state/sessions/EditSession/EditSession.d.ts +3 -3
  60. package/dist/state/sessions/EraseSession/EraseSession.d.ts +4 -4
  61. package/dist/state/sessions/GridSession/GridSession.d.ts +3 -3
  62. package/dist/state/sessions/HandleSession/HandleSession.d.ts +3 -3
  63. package/dist/state/sessions/RotateSession/RotateSession.d.ts +3 -3
  64. package/dist/state/sessions/TransformSession/TransformSession.d.ts +3 -3
  65. package/dist/state/sessions/TransformSingleSession/TransformSingleSession.d.ts +3 -3
  66. package/dist/state/sessions/TranslateLabelSession/TranslateLabelSession.d.ts +3 -3
  67. package/dist/state/sessions/TranslateSession/TranslateSession.d.ts +3 -3
  68. package/dist/state/sessions/index.d.ts +1 -1
  69. package/dist/state/shapes/ArrowUtil/ArrowUtil.d.ts +3 -3
  70. package/dist/state/shapes/ArrowUtil/ArrowUtil.d.ts.map +1 -1
  71. package/dist/state/shapes/ArrowUtil/arrowHelpers.d.ts +1 -1
  72. package/dist/state/shapes/ArrowUtil/components/CurvedArrow.tsx.d.ts +1 -1
  73. package/dist/state/shapes/ArrowUtil/components/StraightArrow.d.ts +1 -1
  74. package/dist/state/shapes/DrawUtil/DrawUtil.d.ts +3 -3
  75. package/dist/state/shapes/DrawUtil/DrawUtil.d.ts.map +1 -1
  76. package/dist/state/shapes/DrawUtil/drawHelpers.d.ts +1 -1
  77. package/dist/state/shapes/EllipseUtil/EllipseUtil.d.ts +3 -3
  78. package/dist/state/shapes/EllipseUtil/EllipseUtil.d.ts.map +1 -1
  79. package/dist/state/shapes/EllipseUtil/components/DashedEllipse.d.ts +1 -1
  80. package/dist/state/shapes/EllipseUtil/components/DrawEllipse.d.ts +1 -1
  81. package/dist/state/shapes/EllipseUtil/ellipseHelpers.d.ts +1 -1
  82. package/dist/state/shapes/GroupUtil/GroupUtil.d.ts +5 -5
  83. package/dist/state/shapes/GroupUtil/GroupUtil.d.ts.map +1 -1
  84. package/dist/state/shapes/ImageUtil/ImageUtil.d.ts +6 -6
  85. package/dist/state/shapes/ImageUtil/ImageUtil.d.ts.map +1 -1
  86. package/dist/state/shapes/PenUtil/PenUtil.d.ts +3 -3
  87. package/dist/state/shapes/PenUtil/PenUtil.d.ts.map +1 -1
  88. package/dist/state/shapes/PenUtil/penHelpers.d.ts +2 -2
  89. package/dist/state/shapes/PenUtil/penHelpers.d.ts.map +1 -1
  90. package/dist/state/shapes/ReactComponentUtil/ReactComponentUtil.d.ts +6 -6
  91. package/dist/state/shapes/ReactComponentUtil/ReactComponentUtil.d.ts.map +1 -1
  92. package/dist/state/shapes/RectangleUtil/RectangleUtil.d.ts +6 -6
  93. package/dist/state/shapes/RectangleUtil/RectangleUtil.d.ts.map +1 -1
  94. package/dist/state/shapes/RectangleUtil/components/DashedRectangle.d.ts +1 -1
  95. package/dist/state/shapes/RectangleUtil/components/DrawRectangle.d.ts +1 -1
  96. package/dist/state/shapes/RectangleUtil/rectangleHelpers.d.ts +1 -1
  97. package/dist/state/shapes/StickyUtil/StickyUtil.d.ts +3 -3
  98. package/dist/state/shapes/StickyUtil/StickyUtil.d.ts.map +1 -1
  99. package/dist/state/shapes/TVShapeUtil.d.ts +1 -1
  100. package/dist/state/shapes/TextUtil/TextUtil.d.ts +9 -9
  101. package/dist/state/shapes/TextUtil/TextUtil.d.ts.map +1 -1
  102. package/dist/state/shapes/TriangleUtil/TriangleUtil.d.ts +4 -4
  103. package/dist/state/shapes/TriangleUtil/TriangleUtil.d.ts.map +1 -1
  104. package/dist/state/shapes/TriangleUtil/components/DashedTriangle.d.ts +1 -1
  105. package/dist/state/shapes/TriangleUtil/components/DrawTriangle.d.ts +1 -1
  106. package/dist/state/shapes/TriangleUtil/triangleHelpers.d.ts +1 -1
  107. package/dist/state/shapes/VideoUtil/VideoUtil.d.ts +6 -6
  108. package/dist/state/shapes/VideoUtil/VideoUtil.d.ts.map +1 -1
  109. package/dist/state/shapes/index.d.ts +2 -2
  110. package/dist/state/shapes/shared/TextLabel.d.ts +1 -1
  111. package/dist/state/shapes/shared/getTextAlign.d.ts +2 -2
  112. package/dist/state/shapes/shared/getTextSvgElement.d.ts +1 -1
  113. package/dist/state/shapes/shared/gradient-fill.d.ts +1 -1
  114. package/dist/state/shapes/shared/shape-styles.d.ts +1 -1
  115. package/dist/state/tools/ArrowTool/ArrowTool.d.ts +2 -2
  116. package/dist/state/tools/BaseTool.d.ts +2 -2
  117. package/dist/state/tools/DrawTool/DrawTool.d.ts +2 -2
  118. package/dist/state/tools/EllipseTool/EllipseTool.d.ts +2 -2
  119. package/dist/state/tools/EraseTool/EraseTool.d.ts +1 -1
  120. package/dist/state/tools/LineTool/LineTool.d.ts +2 -2
  121. package/dist/state/tools/PenEditTool.d.ts +1 -1
  122. package/dist/state/tools/PenTool/PenTool.d.ts +2 -2
  123. package/dist/state/tools/RectangleTool/RectangleTool.d.ts +2 -2
  124. package/dist/state/tools/SelectTool/SelectTool.d.ts +56 -56
  125. package/dist/state/tools/StickyTool/StickyTool.d.ts +2 -2
  126. package/dist/state/tools/TextTool/TextTool.d.ts +2 -2
  127. package/dist/state/tools/TriangleTool/TriangleTool.d.ts +2 -2
  128. package/dist/state/tools/index.d.ts +1 -1
  129. package/dist/types.d.ts +1 -1
  130. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
- import { EllipseShape, TVMeta, TVShape, TVShapeType, TransformInfo } from '~types';
3
+ import { TVShapeUtil } from '../TVShapeUtil';
4
+ import { EllipseShape, TVMeta, TVShape, TVShapeType, TransformInfo } from '../../../types';
5
5
  declare type T = EllipseShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class EllipseUtil extends TVShapeUtil<T, E> {
@@ -10,7 +10,7 @@ export declare class EllipseUtil extends TVShapeUtil<T, E> {
10
10
  canClone: boolean;
11
11
  canEdit: boolean;
12
12
  getShape: (props: Partial<T>) => T;
13
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
13
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<EllipseShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
14
14
  Indicator: (props: {
15
15
  shape: EllipseShape;
16
16
  meta: TVMeta;
@@ -1 +1 @@
1
- {"version":3,"file":"EllipseUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/EllipseUtil/EllipseUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAgB,QAAQ,EAAS,MAAM,YAAY,CAAA;AAS1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,OAAO,EAAa,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAK7F,aAAK,CAAC,GAAG,YAAY,CAAA;AACrB,aAAK,CAAC,GAAG,cAAc,CAAA;AAGvB,qBAAa,WAAY,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAChD,IAAI,sBAA+B;IAEnC,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,OAAO,UAAO;IAEd,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAiBhC;IAED,SAAS,8RAmER;IAED,SAAS;;;;;;6EAaP;IAEF,YAAY,UAAW,CAAC,SAAS,MAAM,EAAE,KAAG,OAAO,CAWlD;IAED,kBAAkB,UAAW,CAAC,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,KAAG,OAAO,CASjE;IAED,SAAS,UAAW,CAAC,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AM,EAAE,KAAK,MAAM,EAAE,KAAG,OAAO,CASjE;IAED,SAAS,UAAW,CAAC,cAUpB;IAED,gBAAgB,UAAW,CAAC,KAAG,QAAQ,CAQtC;IAED,aAAa,UAAW,CAAC,UAAU,QAAQ,KAAG,OAAO,CAapD;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,KAAG,OAAO,CAEzC;IAED,SAAS,UAAW,CAAC,KAAG,MAAM,EAAE,CAE/B;IAED,eAAe,6BACN,CAAC,uBAED,MAAM,EAAE,UACP,MAAM,EAAE,aACL,MAAM,EAAE,gBACL,OAAO;;;kBAqFtB;IAED,SAAS,UACA,CAAC,UACA,QAAQ,oCACkB,cAAc,CAAC,CAAC,KACjD,QAAQ,CAAC,CAAC,CAUZ;IAED,eAAe,UAAW,CAAC,UAAU,QAAQ,KAAG,QAAQ,CAAC,CAAC,CAKzD;CACF"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../../types';
3
3
  interface EllipseSvgProps {
4
4
  id: string;
5
5
  radius: number[];
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../../types';
3
3
  interface EllipseSvgProps {
4
4
  id: string;
5
5
  radius: number[];
@@ -1,4 +1,4 @@
1
- import type { ShapeStyles } from '~types';
1
+ import type { ShapeStyles } from '../../../types';
2
2
  export declare function getEllipseStrokePoints(id: string, radius: number[], style: ShapeStyles): import("perfect-freehand").StrokePoint[];
3
3
  export declare function getEllipsePath(id: string, radius: number[], style: ShapeStyles): string;
4
4
  export declare function getEllipseIndicatorPath(id: string, radius: number[], style: ShapeStyles): string;
@@ -1,21 +1,21 @@
1
1
  import * as React from 'react';
2
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
- import { GroupShape, TVShapeType } from '~types';
2
+ import { TVShapeUtil } from '../TVShapeUtil';
3
+ import { GroupShape, TVMeta, TVShapeType } from '../../../types';
4
4
  declare type T = GroupShape;
5
5
  declare type E = SVGSVGElement;
6
6
  export declare class GroupUtil extends TVShapeUtil<T, E> {
7
7
  type: TVShapeType.Group;
8
8
  canBind: boolean;
9
9
  getShape: (props: Partial<T>) => T;
10
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
10
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<GroupShape, SVGSVGElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
11
11
  Indicator: (props: {
12
12
  shape: GroupShape;
13
13
  meta: any;
14
14
  isHovered: boolean;
15
15
  isSelected: boolean;
16
- bounds: TLBounds;
16
+ bounds: import("telva-core").TLBounds;
17
17
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
18
- getBounds: (shape: T) => TLBounds;
18
+ getBounds: (shape: T) => import("telva-core").TLBounds;
19
19
  shouldRender: (prev: T, next: T) => boolean;
20
20
  }
21
21
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"GroupUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/GroupUtil/GroupUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,OAAO,EAAc,UAAU,EAAU,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEpE,aAAK,CAAC,GAAG,UAAU,CAAA;AACnB,aAAK,CAAC,GAAG,aAAa,CAAA;AAEtB,qBAAa,SAAU,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,oBAA6B;IAEjC,OAAO,UAAO;IAEd,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,6RA6CR;IAED,SAAS;;;;;;6EAuBP;IAEF,SAAS,UAAW,CAAC,cAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;CACF"}
1
+ {"version":3,"file":"GroupUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/GroupUtil/GroupUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,OAAO,EAAc,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEpE,aAAK,CAAC,GAAG,UAAU,CAAA;AACnB,aAAK,CAAC,GAAG,aAAa,CAAA;AAEtB,qBAAa,SAAU,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,oBAA6B;IAEjC,OAAO,UAAO;IAEd,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,sUA6CR;IAED,SAAS;;;;;;6EAuBP;IAEF,SAAS,UAAW,CAAC,mCAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;CACF"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
- import { ImageShape, TVShapeType } from '~types';
2
+ import { TVShapeUtil } from '../TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '../shared';
4
+ import { ImageShape, TVMeta, TVShapeType } from '../../../types';
5
5
  declare type T = ImageShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class ImageUtil extends TVShapeUtil<T, E> {
@@ -11,15 +11,15 @@ export declare class ImageUtil extends TVShapeUtil<T, E> {
11
11
  isAspectRatioLocked: boolean;
12
12
  showCloneHandles: boolean;
13
13
  getShape: (props: Partial<T>) => T;
14
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
14
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<ImageShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
15
15
  Indicator: (props: {
16
16
  shape: ImageShape;
17
17
  meta: any;
18
18
  isHovered: boolean;
19
19
  isSelected: boolean;
20
- bounds: TLBounds;
20
+ bounds: import("telva-core").TLBounds;
21
21
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
22
- getBounds: (shape: T) => TLBounds;
22
+ getBounds: (shape: T) => import("telva-core").TLBounds;
23
23
  shouldRender: (prev: T, next: T) => boolean;
24
24
  transform: typeof transformRectangle;
25
25
  transformSingle: typeof transformSingleRectangle;
@@ -1 +1 @@
1
- {"version":3,"file":"ImageUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/ImageUtil/ImageUtil.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAGL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,UAAU,EAAwB,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEtE,aAAK,CAAC,GAAG,UAAU,CAAA;AACnB,aAAK,CAAC,GAAG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IAE1C,aAAa,UAAW,UAAU,qBAOjC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
- import { PenSegment, PenShape, TVShapeType } from '~types';
3
+ import { TVShapeUtil } from '../TVShapeUtil';
4
+ import { PenSegment, PenShape, TVMeta, TVShapeType } from '../../../types';
5
5
  declare type T = PenShape;
6
6
  declare type E = SVGSVGElement;
7
7
  export declare class PenUtil extends TVShapeUtil<T, E> {
@@ -11,7 +11,7 @@ export declare class PenUtil extends TVShapeUtil<T, E> {
11
11
  shapeBoundsCache: Map<string, TLBounds>;
12
12
  pointCache: Record<string, number[]>;
13
13
  getShape: (props: Partial<T>) => T;
14
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
14
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<PenShape, SVGSVGElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
15
15
  Indicator: (props: {
16
16
  shape: PenShape;
17
17
  meta: any;
@@ -1 +1 @@
1
- {"version":3,"file":"PenUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/PenUtil/PenUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAgB,QAAQ,EAAS,MAAM,YAAY,CAAA;AAI1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,OAAO,EAAa,UAAU,EAAE,QAAQ,EAAU,WAAW,EAAE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AAC;IAC5C,IAAI,kBAA2B;IAE/B,QAAQ,UAAO;IAEf,iBAAiB,kCAAyC;IAC1D,gBAAgB,wBAA8B;IAC9C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAK;IAEzC,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAmBhC;IAED,SAAS,oUAkaR;IAED,SAAS;;;;;;6EAKP;IAEF,SAAS,UAAW,CAAC,cA+BpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAS/B;IAED,SAAS,UACA,CAAC,UACA,QAAQ;sBACkC,CAAC;gBAAU,MAAM;gBAAU,MAAM;UAClF,QAAQ,CAAC,CAAC,CA+CZ;IAED,YAAY,UAAW,CAAC,SAAS,MAAM,EAAE,aAOxC;IAED,kBAAkB,UAAW,CAAC,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,aAUvD;IAED,aAAa,UAAW,CAAC,UAAU,QAAQ,aAG1C;CACF"}
@@ -1,4 +1,4 @@
1
- import type { PenSegment } from '~types';
1
+ import type { PenSegment } from '../../../types';
2
2
  /**
3
3
  * Build SVG path `d` string from PenShape segments.
4
4
  * Uses cubic Bézier (C) when handles are present, else line (L).
@@ -9,7 +9,7 @@ export declare function segmentsToPath(segments: PenSegment[], isClosed: boolean
9
9
  * Bezier handles (cp1/cp2) are intentionally excluded so they don't
10
10
  * inflate the selection box or affect resize transforms.
11
11
  */
12
- export declare function getSegmentsBounds(segments: PenSegment[]): any;
12
+ export declare function getSegmentsBounds(segments: PenSegment[]): import("telva-core").TLBounds;
13
13
  /**
14
14
  * Normalize segments so bounding box top-left = (0, 0).
15
15
  * Returns normalized segments + the offset to add to shape.point.
@@ -1 +1 @@
1
- {"version":3,"file":"penHelpers.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/PenUtil/penHelpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAuChF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,OAKvD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG;IACzD,QAAQ,EAAE,UAAU,EAAE,CAAA;IACtB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB,CAUA;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEzE"}
1
+ {"version":3,"file":"penHelpers.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/PenUtil/penHelpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAuChF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,iCAKvD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG;IACzD,QAAQ,EAAE,UAAU,EAAE,CAAA;IACtB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB,CAUA;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEzE"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
- import { ReactComponentShape, TVShapeType } from '~types';
2
+ import { TVShapeUtil } from '../TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '../shared';
4
+ import { ReactComponentShape, TVMeta, TVShapeType } from '../../../types';
5
5
  declare type T = ReactComponentShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class ReactComponentUtil extends TVShapeUtil<T, E> {
@@ -11,15 +11,15 @@ export declare class ReactComponentUtil extends TVShapeUtil<T, E> {
11
11
  isAspectRatioLocked: boolean;
12
12
  showCloneHandles: boolean;
13
13
  getShape: (props: Partial<T>) => T;
14
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
14
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<ReactComponentShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
15
15
  Indicator: (props: {
16
16
  shape: ReactComponentShape;
17
17
  meta: any;
18
18
  isHovered: boolean;
19
19
  isSelected: boolean;
20
- bounds: TLBounds;
20
+ bounds: import("telva-core").TLBounds;
21
21
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
22
- getBounds: (shape: T) => TLBounds;
22
+ getBounds: (shape: T) => import("telva-core").TLBounds;
23
23
  shouldRender: (prev: T, next: T) => boolean;
24
24
  transform: typeof transformRectangle;
25
25
  transformSingle: typeof transformSingleRectangle;
@@ -1 +1 @@
1
- {"version":3,"file":"ReactComponentUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/ReactComponentUtil/ReactComponentUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAE,WAAW,EAAE,M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UAAQ;IACf,QAAQ,UAAO;IACf,mBAAmB,UAAQ;IAC3B,gBAAgB,UAAQ;IAExB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,iVA+BP;IAEF,SAAS;;;;;;6EAgBP;IAEF,SAAS,UAAW,CAAC,mCAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAI/B;IAED,SAAS,4BAAqB;IAC9B,eAAe,kCAA2B;IAE1C,aAAa,UAAiB,CAAC,cAAc,OAAO,KAAG,QAAQ,UAAU,GAAG,IAAI,CAAC,CA+DhF;CACF"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
- import { RectangleShape, TVShapeType } from '~types';
2
+ import { TVShapeUtil } from '../TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '../shared';
4
+ import { RectangleShape, TVMeta, TVShapeType } from '../../../types';
5
5
  declare type T = RectangleShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class RectangleUtil extends TVShapeUtil<T, E> {
@@ -10,15 +10,15 @@ export declare class RectangleUtil extends TVShapeUtil<T, E> {
10
10
  canClone: boolean;
11
11
  canEdit: boolean;
12
12
  getShape: (props: Partial<T>) => T;
13
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
13
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<RectangleShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
14
14
  Indicator: (props: {
15
15
  shape: RectangleShape;
16
16
  meta: any;
17
17
  isHovered: boolean;
18
18
  isSelected: boolean;
19
- bounds: TLBounds;
19
+ bounds: import("telva-core").TLBounds;
20
20
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
21
- getBounds: (shape: T) => TLBounds;
21
+ getBounds: (shape: T) => import("telva-core").TLBounds;
22
22
  shouldRender: (prev: T, next: T) => boolean;
23
23
  transform: typeof transformRectangle;
24
24
  transformSingle: typeof transformSingleRectangle;
@@ -1 +1 @@
1
- {"version":3,"file":"RectangleUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/RectangleUtil/RectangleUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAML,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAa,cAAc,EAAU,WAAW,EAAE,MAAM,QAAQ,CAAA;AAMvE,aAAK,CAAC,GAAG,cAAc,CAAA;AACvB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,aAAc,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAClD,IAAI,wBAAiC;IAErC,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,OAAO,UAAO;IAEd,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAiBhC;IAED,SAAS,8RA2LR;IAED,SAAS;;;;;;6EAkBP;IAEF,SAAS,UAAW,CAAC,cAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;CAC3C"}
1
+ {"version":3,"file":"RectangleUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/RectangleUtil/RectangleUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAML,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAa,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAMvE,aAAK,CAAC,GAAG,cAAc,CAAA;AACvB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,aAAc,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAClD,IAAI,wBAAiC;IAErC,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,OAAO,UAAO;IAEd,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAiBhC;IAED,SAAS,4UA2LR;IAED,SAAS;;;;;;6EAkBP;IAEF,SAAS,UAAW,CAAC,mCAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;CAC3C"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../../types';
3
3
  interface RectangleSvgProps {
4
4
  id: string;
5
5
  style: ShapeStyles;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../../types';
3
3
  interface RectangleSvgProps {
4
4
  id: string;
5
5
  style: ShapeStyles;
@@ -1,4 +1,4 @@
1
- import type { ShapeStyles } from '~types';
1
+ import type { ShapeStyles } from '../../../types';
2
2
  export declare function getRectanglePath(id: string, style: ShapeStyles, size: number[]): string;
3
3
  export declare function getRectangleIndicatorPathTDSnapshot(id: string, style: ShapeStyles, size: number[]): string;
4
4
  //# sourceMappingURL=rectangleHelpers.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
- import { StickyShape, TVShapeType, TransformInfo } from '~types';
3
+ import { TVShapeUtil } from '../TVShapeUtil';
4
+ import { StickyShape, TVMeta, TVShapeType, TransformInfo } from '../../../types';
5
5
  declare type T = StickyShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class StickyUtil extends TVShapeUtil<T, E> {
@@ -12,7 +12,7 @@ export declare class StickyUtil extends TVShapeUtil<T, E> {
12
12
  hideResizeHandles: boolean;
13
13
  showCloneHandles: boolean;
14
14
  getShape: (props: Partial<T>) => T;
15
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
15
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<StickyShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
16
16
  Indicator: (props: {
17
17
  shape: StickyShape;
18
18
  meta: any;
@@ -1 +1 @@
1
- {"version":3,"file":"StickyUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/StickyUtil/StickyUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAiB,QAAQ,EAAS,MAAM,YAAY,CAAA;AAK3D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAYvD,OAAO,EAAc,WAAW,EAAU,WAAW,EAAE,aAAa,EAAoB,MAAM,QAAQ,CAAA;AAEtG,aAAK,CAAC,GAAG,WAAW,CAAA;AACpB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa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;IAED,SAAS;;;;;;6EAQP;IAEF,SAAS,UAAW,CAAC,cAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,SAAS,UACA,CAAC,UACA,QAAQ,uCACqB,cAAc,CAAC,CAAC,KACpD,QAAQ,CAAC,CAAC,CAYZ;IAED,eAAe,UAAW,CAAC,KAAG,QAAQ,CAAC,CAAC,CAEvC;IAED,aAAa,UAAW,CAAC,cAAc,OAAO,KAAG,UAAU,GAAG,IAAI,CAqCjE;CACF"}
@@ -1,6 +1,6 @@
1
1
  import { TLShapeUtil } from 'telva-core';
2
2
  import type { TLBounds, TLPointerInfo } from 'telva-core';
3
- import { TVMeta, TVShape, TransformInfo } from '~types';
3
+ import { TVMeta, TVShape, TransformInfo } from '../../types';
4
4
  export declare abstract class TVShapeUtil<T extends TVShape, E extends Element = any> extends TLShapeUtil<T, E, TVMeta> {
5
5
  abstract type: T['type'];
6
6
  canBind: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
- import { AlignStyle, TVShapeType, TextShape, TransformInfo } from '~types';
3
+ import { TVShapeUtil } from '../TVShapeUtil';
4
+ import { AlignStyle, TVMeta, TVShapeType, TextShape, TransformInfo } from '../../../types';
5
5
  declare type T = TextShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class TextUtil extends TVShapeUtil<T, E> {
@@ -13,7 +13,7 @@ export declare class TextUtil extends TVShapeUtil<T, E> {
13
13
  bindingDistance: number;
14
14
  getShape: (props: Partial<T>) => T;
15
15
  texts: Map<string, string>;
16
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
16
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<TextShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
17
17
  Indicator: (props: {
18
18
  shape: TextShape;
19
19
  meta: any;
@@ -28,10 +28,10 @@ export declare class TextUtil extends TVShapeUtil<T, E> {
28
28
  onDoubleClickBoundsHandle: (shape: T) => {
29
29
  style: {
30
30
  scale: number;
31
- color: import("~types").ColorStyle;
32
- size: import("~types").SizeStyle;
33
- dash: import("~types").DashStyle;
34
- font?: import("~types").FontStyle | undefined;
31
+ color: import("../../../types").ColorStyle;
32
+ size: import("../../../types").SizeStyle;
33
+ dash: import("../../../types").DashStyle;
34
+ font?: import("../../../types").FontStyle | undefined;
35
35
  textAlign?: AlignStyle | undefined;
36
36
  isFilled?: boolean | undefined;
37
37
  opacity?: number | undefined;
@@ -42,8 +42,8 @@ export declare class TextUtil extends TVShapeUtil<T, E> {
42
42
  labelColor?: string | undefined;
43
43
  labelBackground?: string | undefined;
44
44
  fontFamily?: string | undefined;
45
- gradient?: import("~types").GradientData | undefined;
46
- textGradient?: import("~types").GradientData | undefined;
45
+ gradient?: import("../../../types").GradientData | undefined;
46
+ textGradient?: import("../../../types").GradientData | undefined;
47
47
  };
48
48
  point: number[];
49
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TextUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/TextUtil/TextUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAiB,QAAQ,EAAS,MAAM,YAAY,CAAA;AAK3D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAYvD,OAAO,EAAE,UAAU,EAAU,WAAW,EAAE,SAAS,EAAE,aAAa,EAAoB,MAAM,QAAQ,CAAA;AAEp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AAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7C,IAAI,mBAA4B;IAEhC,mBAAmB,UAAQ;IAE3B,OAAO,UAAO;IAEd,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,eAAe,SAAuB;IAEtC,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAehC;IAED,KAAK,sBAA4B;IAEjC,SAAS,uUA0PR;IAED,SAAS;;;;;;6EAGP;IAEF,SAAS,UAAW,CAAC,cAuCpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,KAAG,OAAO,CAOzC;IAED,SAAS,UACA,CAAC,UACA,QAAQ,oCACkB,cAAc,CAAC,CAAC,KACjD,QAAQ,CAAC,CAAC,CAeZ;IAED,eAAe,UACN,CAAC,UACA,QAAQ,oCACkB,cAAc,CAAC,CAAC,KACjD,QAAQ,CAAC,CAAC,GAAG,IAAI,CAKnB;IAED,yBAAyB,UAAW,CAAC;;;;;;;;;;;;;;;;;;;;;MAkBpC;IAED,aAAa,UAAW,CAAC,cAAc,OAAO,KAAG,UAAU,GAAG,IAAI,CAoBjE;CACF"}
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
- import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
5
- import { TVShape, TVShapeType, TriangleShape } from '~types';
3
+ import { TVShapeUtil } from '../TVShapeUtil';
4
+ import { transformRectangle, transformSingleRectangle } from '../shared';
5
+ import { TVMeta, TVShape, TVShapeType, TriangleShape } from '../../../types';
6
6
  declare type T = TriangleShape;
7
7
  declare type E = HTMLDivElement;
8
8
  export declare class TriangleUtil extends TVShapeUtil<T, E> {
@@ -11,7 +11,7 @@ export declare class TriangleUtil extends TVShapeUtil<T, E> {
11
11
  canClone: boolean;
12
12
  canEdit: boolean;
13
13
  getShape: (props: Partial<T>) => T;
14
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
14
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<TriangleShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
15
15
  Indicator: (props: {
16
16
  shape: TriangleShape;
17
17
  meta: any;
@@ -1 +1 @@
1
- {"version":3,"file":"TriangleUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/TriangleUtil/TriangleUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAgB,QAAQ,EAAS,MAAM,YAAY,CAAA;AAS1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAML,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAqB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAM/E,aAAK,CAAC,GAAG,aAAa,CAAA;AACtB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,YAAa,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IACjD,IAAI,uBAAgC;IAEpC,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,OAAO,UAAO;IAEd,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAiBhC;IAED,SAAS,8RAgLR;IAED,SAAS;;;;;;6EAGP;IAEF,OAAO,CAAC,SAAS;IAajB,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,SAAS,UAAW,CAAC,cAEpB;IA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AO,CAEjE;IAED,aAAa,UAAW,CAAC,UAAU,QAAQ,KAAG,OAAO,CAKpD;IAED,eAAe,6BACN,CAAC,uBAED,MAAM,EAAE,UACP,MAAM,EAAE,aACL,MAAM,EAAE,gBACL,OAAO;;;kBAoEtB;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;CAC3C"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../../types';
3
3
  interface TriangleSvgProps {
4
4
  id: string;
5
5
  size: number[];
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../../types';
3
3
  interface TriangleSvgProps {
4
4
  id: string;
5
5
  size: number[];
@@ -1,4 +1,4 @@
1
- import type { ShapeStyles } from '~types';
1
+ import type { ShapeStyles } from '../../../types';
2
2
  export declare function getTrianglePoints(size: number[], offset?: number, rotation?: number): number[][];
3
3
  export declare function getTriangleCentroid(size: number[]): number[];
4
4
  export declare function getTrianglePath(id: string, size: number[], style: ShapeStyles): string;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
- import { TVShapeType, VideoShape } from '~types';
2
+ import { TVShapeUtil } from '../TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '../shared';
4
+ import { TVMeta, TVShapeType, VideoShape } from '../../../types';
5
5
  declare type T = VideoShape;
6
6
  declare type E = HTMLDivElement;
7
7
  export declare class VideoUtil extends TVShapeUtil<T, E> {
@@ -13,15 +13,15 @@ export declare class VideoUtil extends TVShapeUtil<T, E> {
13
13
  showCloneHandles: boolean;
14
14
  isStateful: boolean;
15
15
  getShape: (props: Partial<T>) => T;
16
- Component: React.ForwardRefExoticComponent<Pick<TLComponentProps<T_1, E_1, M_1>, "isGhost" | "meta" | "bounds" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
16
+ Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<VideoShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
17
17
  Indicator: (props: {
18
18
  shape: VideoShape;
19
19
  meta: any;
20
20
  isHovered: boolean;
21
21
  isSelected: boolean;
22
- bounds: TLBounds;
22
+ bounds: import("telva-core").TLBounds;
23
23
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
24
- getBounds: (shape: T) => TLBounds;
24
+ getBounds: (shape: T) => import("telva-core").TLBounds;
25
25
  shouldRender: (prev: T, next: T) => boolean;
26
26
  getSvgElement: (shape: VideoShape) => SVGImageElement;
27
27
  transform: typeof transformRectangle;
@@ -1 +1 @@
1
- {"version":3,"file":"VideoUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/VideoUtil/VideoUtil.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAGL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAU,WAAW,EAAgB,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEtE,aAAK,CAAC,GAAG,UAAU,CAAA;AACnB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,SAAU,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,oBAA6B;IACjC,OAAO,UAAO;IACd,OAAO,UAAO;IACd,QAAQ,UAAO;IACf,mBAAmB,UAAO;IAC1B,gBAAgB,UAAQ;IACxB,UAAU,UAAO;IAEjB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAkBhC;IAED,SAAS,8RA0FR;IAED,SAAS;;;;;;6EAQP;IAEF,SAAS,UAAW,CAAC,cAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,aAAa,UAAW,UAAU,qBAOjC;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;CAC3C"}
1
+ {"version":3,"file":"VideoUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/VideoUtil/VideoUtil.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAGL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAgB,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEtE,aAAK,CAAC,GAAG,UAAU,CAAA;AACnB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,SAAU,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,oBAA6B;IACjC,OAAO,UAAO;IACd,OAAO,UAAO;IACd,QAAQ,UAAO;IACf,mBAAmB,UAAO;IAC1B,gBAAgB,UAAQ;IACxB,UAAU,UAAO;IAEjB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAkBhC;IAED,SAAS,wUA0FR;IAED,SAAS;;;;;;6EAQP;IAEF,SAAS,UAAW,CAAC,mCAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,aAAa,UAAW,UAAU,qBAOjC;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;CAC3C"}
@@ -1,5 +1,5 @@
1
- import type { TVShapeUtil } from '~state/shapes/TVShapeUtil';
2
- import { TVShape } from '~types';
1
+ import type { TVShapeUtil } from './TVShapeUtil';
2
+ import { TVShape } from '../../types';
3
3
  import { ArrowUtil } from './ArrowUtil';
4
4
  import { DrawUtil } from './DrawUtil';
5
5
  import { EllipseUtil } from './EllipseUtil';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GradientData } from '~types';
2
+ import { GradientData } from '../../../types';
3
3
  export interface TextLabelProps {
4
4
  font: string;
5
5
  text: string;
@@ -1,3 +1,3 @@
1
- import { AlignStyle } from '~types';
2
- export declare function getTextAlign(alignStyle?: AlignStyle): "left" | "right" | "center" | "justify";
1
+ import { AlignStyle } from '../../../types';
2
+ export declare function getTextAlign(alignStyle?: AlignStyle): "center" | "left" | "right" | "justify";
3
3
  //# sourceMappingURL=getTextAlign.d.ts.map
@@ -1,3 +1,3 @@
1
- import { AlignStyle } from '~types';
1
+ import { AlignStyle } from '../../../types';
2
2
  export declare function getTextSvgElement(text: string, fontSize: number, fontFamily: string, textAlign: AlignStyle, width: number, wrap?: boolean): SVGTextElement;
3
3
  //# sourceMappingURL=getTextSvgElement.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ShapeStyles } from '~types';
2
+ import type { ShapeStyles } from '../../../types';
3
3
  /**
4
4
  * Returns SVG <defs> element for a gradient defined in style.gradient,
5
5
  * and an SVG fill string to reference it.
@@ -1,4 +1,4 @@
1
- import { ColorStyle, FontStyle, ShapeStyles, SizeStyle, Theme } from '~types';
1
+ import { ColorStyle, FontStyle, ShapeStyles, SizeStyle, Theme } from '../../../types';
2
2
  export declare const stickyFills: Record<Theme, Record<ColorStyle, string>>;
3
3
  export declare const strokes: Record<Theme, Record<ColorStyle, string>>;
4
4
  export declare const fills: Record<Theme, Record<ColorStyle, string>>;
@@ -1,6 +1,6 @@
1
1
  import { TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
3
- import { TVShapeType } from '~types';
2
+ import { BaseTool } from '../BaseTool';
3
+ import { TVShapeType } from '../../../types';
4
4
  export declare class ArrowTool extends BaseTool {
5
5
  type: TVShapeType.Arrow;
6
6
  onPointerDown: TLPointerEventHandler;
@@ -1,6 +1,6 @@
1
1
  import { TLKeyboardEventHandler, TLPinchEventHandler, TLPointerEventHandler } from 'telva-core';
2
- import type { TelvaApp } from '~state/TelvaApp';
3
- import { TVEventHandler, TVToolType } from '~types';
2
+ import type { TelvaApp } from '../TelvaApp';
3
+ import { TVEventHandler, TVToolType } from '../../types';
4
4
  export declare enum Status {
5
5
  Idle = "idle",
6
6
  Creating = "creating",
@@ -1,6 +1,6 @@
1
1
  import { TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
3
- import { TVShapeType } from '~types';
2
+ import { BaseTool } from '../BaseTool';
3
+ import { TVShapeType } from '../../../types';
4
4
  export declare class DrawTool extends BaseTool {
5
5
  type: TVShapeType.Draw;
6
6
  private lastShapeId?;
@@ -1,6 +1,6 @@
1
1
  import { TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
3
- import { TVShapeType } from '~types';
2
+ import { BaseTool } from '../BaseTool';
3
+ import { TVShapeType } from '../../../types';
4
4
  export declare class EllipseTool extends BaseTool {
5
5
  type: TVShapeType.Ellipse;
6
6
  onPointerDown: TLPointerEventHandler;
@@ -1,5 +1,5 @@
1
1
  import type { TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
2
+ import { BaseTool } from '../BaseTool';
3
3
  declare enum Status {
4
4
  Idle = "idle",
5
5
  Pointing = "pointing",
@@ -1,6 +1,6 @@
1
1
  import { TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
3
- import { TVShapeType } from '~types';
2
+ import { BaseTool } from '../BaseTool';
3
+ import { TVShapeType } from '../../../types';
4
4
  export declare class LineTool extends BaseTool {
5
5
  type: TVShapeType.Line;
6
6
  onPointerDown: TLPointerEventHandler;
@@ -1,5 +1,5 @@
1
1
  import { TLBoundsCorner, TLBoundsEdge, TLKeyboardEventHandler, TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
2
+ import { BaseTool } from './BaseTool';
3
3
  declare enum Status {
4
4
  Idle = "idle",
5
5
  Creating = "creating",
@@ -1,6 +1,6 @@
1
1
  import { TLCanvasEventHandler, TLKeyboardEventHandler, TLPointerEventHandler } from 'telva-core';
2
- import { BaseTool } from '~state/tools/BaseTool';
3
- import { TVShapeType } from '~types';
2
+ import { BaseTool } from '../BaseTool';
3
+ import { TVShapeType } from '../../../types';
4
4
  declare enum Status {
5
5
  Idle = "idle",
6
6
  Drawing = "drawing",