telva 1.1.0 → 1.1.2

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 (144) hide show
  1. package/README.md +25 -270
  2. package/dist/Telva.d.ts +3 -3
  3. package/dist/Telva.d.ts.map +1 -1
  4. package/dist/components/CenterToolbar/CenterToolbar.d.ts.map +1 -1
  5. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  6. package/dist/components/Primitives/DropdownMenu/DMCheckboxItem.d.ts +1 -1
  7. package/dist/components/Primitives/DropdownMenu/DMItem.d.ts +1 -1
  8. package/dist/components/Primitives/DropdownMenu/DMRadioItem.d.ts +1 -1
  9. package/dist/components/Primitives/DropdownMenu/DMTriggerIcon.d.ts +1 -1
  10. package/dist/components/Primitives/Panel/Panel.d.ts +1 -1
  11. package/dist/components/Primitives/RowButton/RowButton.d.ts +1 -1
  12. package/dist/components/Primitives/TextField/TextField.d.ts +1 -1
  13. package/dist/components/Primitives/ToolButton/ToolButton.d.ts +2 -2
  14. package/dist/components/RightPanel/PropertiesPanel.d.ts.map +1 -1
  15. package/dist/components/ToolsPanel/PrimaryTools.d.ts.map +1 -1
  16. package/dist/components/ToolsPanel/ShapesMenu.d.ts +1 -1
  17. package/dist/components/TopPanel/Menu/Menu.d.ts.map +1 -1
  18. package/dist/components/TopPanel/PageMenu/PageMenu.d.ts +1 -1
  19. package/dist/components/TopPanel/PageOptionsDialog/PageOptionsDialog.d.ts +1 -1
  20. package/dist/constants.d.ts +1 -1
  21. package/dist/hooks/useFileSystem.d.ts +1 -1
  22. package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -1
  23. package/dist/hooks/useTelvaApp.d.ts +1 -1
  24. package/dist/hooks/useTheme.d.ts +1 -1
  25. package/dist/hooks/useTranslation.d.ts +2 -2
  26. package/dist/hooks/useTranslation.d.ts.map +1 -1
  27. package/dist/index.js +10 -10
  28. package/dist/index.js.map +3 -3
  29. package/dist/index.mjs +30283 -18
  30. package/dist/index.mjs.map +3 -3
  31. package/dist/state/StateManager/StateManager.d.ts +1 -1
  32. package/dist/state/TVDR.d.ts +1 -1
  33. package/dist/state/TelvaApp.d.ts +8 -8
  34. package/dist/state/TelvaApp.d.ts.map +1 -1
  35. package/dist/state/commands/alignShapes/alignShapes.d.ts +2 -2
  36. package/dist/state/commands/changePage/changePage.d.ts +2 -2
  37. package/dist/state/commands/createPage/createPage.d.ts +2 -2
  38. package/dist/state/commands/createShapes/createShapes.d.ts +2 -2
  39. package/dist/state/commands/deletePage/deletePage.d.ts +2 -2
  40. package/dist/state/commands/deleteShapes/deleteShapes.d.ts +2 -2
  41. package/dist/state/commands/distributeShapes/distributeShapes.d.ts +2 -2
  42. package/dist/state/commands/duplicatePage/duplicatePage.d.ts +2 -2
  43. package/dist/state/commands/duplicateShapes/duplicateShapes.d.ts +2 -2
  44. package/dist/state/commands/flipShapes/flipShapes.d.ts +3 -3
  45. package/dist/state/commands/groupShapes/groupShapes.d.ts +2 -2
  46. package/dist/state/commands/insertContent/insertContent.d.ts +2 -2
  47. package/dist/state/commands/movePage/movePage.d.ts +2 -2
  48. package/dist/state/commands/moveShapesToPage/moveShapesToPage.d.ts +2 -2
  49. package/dist/state/commands/renamePage/renamePage.d.ts +2 -2
  50. package/dist/state/commands/reorderShapes/reorderShapes.d.ts +2 -2
  51. package/dist/state/commands/resetBounds/resetBounds.d.ts +2 -2
  52. package/dist/state/commands/rotateShapes/rotateShapes.d.ts +2 -2
  53. package/dist/state/commands/setShapesProps/setShapesProps.d.ts +2 -2
  54. package/dist/state/commands/shared/removeShapesFromPage.d.ts +1 -1
  55. package/dist/state/commands/stretchShapes/stretchShapes.d.ts +3 -3
  56. package/dist/state/commands/styleShapes/styleShapes.d.ts +2 -2
  57. package/dist/state/commands/toggleShapesDecoration/toggleShapesDecoration.d.ts +2 -2
  58. package/dist/state/commands/toggleShapesProp/toggleShapesProp.d.ts +2 -2
  59. package/dist/state/commands/translateShapes/translateShapes.d.ts +2 -2
  60. package/dist/state/commands/ungroupShapes/ungroupShapes.d.ts +3 -3
  61. package/dist/state/commands/updateShapes/updateShapes.d.ts +2 -2
  62. package/dist/state/data/filesystem.d.ts +1 -1
  63. package/dist/state/data/filesystem.d.ts.map +1 -1
  64. package/dist/state/data/migrate.d.ts +1 -1
  65. package/dist/state/data/migrate.d.ts.map +1 -1
  66. package/dist/state/sessions/ArrowSession/ArrowSession.d.ts +3 -3
  67. package/dist/state/sessions/BaseSession.d.ts +2 -2
  68. package/dist/state/sessions/BrushSession/BrushSession.d.ts +3 -3
  69. package/dist/state/sessions/DrawSession/DrawSession.d.ts +3 -3
  70. package/dist/state/sessions/EditSession/EditSession.d.ts +3 -3
  71. package/dist/state/sessions/EraseSession/EraseSession.d.ts +4 -4
  72. package/dist/state/sessions/GridSession/GridSession.d.ts +3 -3
  73. package/dist/state/sessions/HandleSession/HandleSession.d.ts +3 -3
  74. package/dist/state/sessions/RotateSession/RotateSession.d.ts +3 -3
  75. package/dist/state/sessions/TransformSession/TransformSession.d.ts +3 -3
  76. package/dist/state/sessions/TransformSingleSession/TransformSingleSession.d.ts +3 -3
  77. package/dist/state/sessions/TranslateLabelSession/TranslateLabelSession.d.ts +3 -3
  78. package/dist/state/sessions/TranslateSession/TranslateSession.d.ts +3 -3
  79. package/dist/state/sessions/index.d.ts +1 -1
  80. package/dist/state/shapes/ArrowUtil/ArrowUtil.d.ts +3 -3
  81. package/dist/state/shapes/ArrowUtil/ArrowUtil.d.ts.map +1 -1
  82. package/dist/state/shapes/ArrowUtil/arrowHelpers.d.ts +1 -1
  83. package/dist/state/shapes/ArrowUtil/components/CurvedArrow.tsx.d.ts +1 -1
  84. package/dist/state/shapes/ArrowUtil/components/StraightArrow.d.ts +1 -1
  85. package/dist/state/shapes/DrawUtil/DrawUtil.d.ts +3 -3
  86. package/dist/state/shapes/DrawUtil/DrawUtil.d.ts.map +1 -1
  87. package/dist/state/shapes/DrawUtil/drawHelpers.d.ts +1 -1
  88. package/dist/state/shapes/EllipseUtil/EllipseUtil.d.ts +3 -3
  89. package/dist/state/shapes/EllipseUtil/EllipseUtil.d.ts.map +1 -1
  90. package/dist/state/shapes/EllipseUtil/components/DashedEllipse.d.ts +1 -1
  91. package/dist/state/shapes/EllipseUtil/components/DrawEllipse.d.ts +1 -1
  92. package/dist/state/shapes/EllipseUtil/ellipseHelpers.d.ts +1 -1
  93. package/dist/state/shapes/GroupUtil/GroupUtil.d.ts +5 -5
  94. package/dist/state/shapes/GroupUtil/GroupUtil.d.ts.map +1 -1
  95. package/dist/state/shapes/ImageUtil/ImageUtil.d.ts +6 -6
  96. package/dist/state/shapes/ImageUtil/ImageUtil.d.ts.map +1 -1
  97. package/dist/state/shapes/PenUtil/PenUtil.d.ts +3 -3
  98. package/dist/state/shapes/PenUtil/PenUtil.d.ts.map +1 -1
  99. package/dist/state/shapes/PenUtil/penHelpers.d.ts +9 -6
  100. package/dist/state/shapes/PenUtil/penHelpers.d.ts.map +1 -1
  101. package/dist/state/shapes/ReactComponentUtil/ReactComponentUtil.d.ts +6 -6
  102. package/dist/state/shapes/ReactComponentUtil/ReactComponentUtil.d.ts.map +1 -1
  103. package/dist/state/shapes/RectangleUtil/RectangleUtil.d.ts +6 -6
  104. package/dist/state/shapes/RectangleUtil/RectangleUtil.d.ts.map +1 -1
  105. package/dist/state/shapes/RectangleUtil/components/DashedRectangle.d.ts +1 -1
  106. package/dist/state/shapes/RectangleUtil/components/DrawRectangle.d.ts +1 -1
  107. package/dist/state/shapes/RectangleUtil/rectangleHelpers.d.ts +1 -1
  108. package/dist/state/shapes/StickyUtil/StickyUtil.d.ts +3 -3
  109. package/dist/state/shapes/StickyUtil/StickyUtil.d.ts.map +1 -1
  110. package/dist/state/shapes/TVShapeUtil.d.ts +1 -1
  111. package/dist/state/shapes/TextUtil/TextUtil.d.ts +9 -9
  112. package/dist/state/shapes/TextUtil/TextUtil.d.ts.map +1 -1
  113. package/dist/state/shapes/TriangleUtil/TriangleUtil.d.ts +4 -4
  114. package/dist/state/shapes/TriangleUtil/TriangleUtil.d.ts.map +1 -1
  115. package/dist/state/shapes/TriangleUtil/components/DashedTriangle.d.ts +1 -1
  116. package/dist/state/shapes/TriangleUtil/components/DrawTriangle.d.ts +1 -1
  117. package/dist/state/shapes/TriangleUtil/triangleHelpers.d.ts +1 -1
  118. package/dist/state/shapes/VideoUtil/VideoUtil.d.ts +6 -6
  119. package/dist/state/shapes/VideoUtil/VideoUtil.d.ts.map +1 -1
  120. package/dist/state/shapes/index.d.ts +2 -2
  121. package/dist/state/shapes/shared/TextLabel.d.ts +1 -1
  122. package/dist/state/shapes/shared/TextLabel.d.ts.map +1 -1
  123. package/dist/state/shapes/shared/getTextAlign.d.ts +2 -2
  124. package/dist/state/shapes/shared/getTextSvgElement.d.ts +1 -1
  125. package/dist/state/shapes/shared/gradient-fill.d.ts +1 -1
  126. package/dist/state/shapes/shared/shape-styles.d.ts +1 -1
  127. package/dist/state/tools/ArrowTool/ArrowTool.d.ts +2 -2
  128. package/dist/state/tools/BaseTool.d.ts +2 -2
  129. package/dist/state/tools/DrawTool/DrawTool.d.ts +2 -2
  130. package/dist/state/tools/EllipseTool/EllipseTool.d.ts +2 -2
  131. package/dist/state/tools/EraseTool/EraseTool.d.ts +1 -1
  132. package/dist/state/tools/LineTool/LineTool.d.ts +2 -2
  133. package/dist/state/tools/PenEditTool.d.ts +3 -2
  134. package/dist/state/tools/PenEditTool.d.ts.map +1 -1
  135. package/dist/state/tools/PenTool/PenTool.d.ts +4 -3
  136. package/dist/state/tools/PenTool/PenTool.d.ts.map +1 -1
  137. package/dist/state/tools/RectangleTool/RectangleTool.d.ts +2 -2
  138. package/dist/state/tools/SelectTool/SelectTool.d.ts +56 -56
  139. package/dist/state/tools/StickyTool/StickyTool.d.ts +2 -2
  140. package/dist/state/tools/TextTool/TextTool.d.ts +2 -2
  141. package/dist/state/tools/TriangleTool/TriangleTool.d.ts +2 -2
  142. package/dist/state/tools/index.d.ts +1 -1
  143. package/dist/types.d.ts +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B,UAAW,CAAC,UAAU,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,KAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,CAiCjF;IAED,cAAc,UAAW,CAAC,WAAW,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,KAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,CAqF7E;IAED,aAAa,UAAW,UAAU,cAAc,OAAO,KAAG,UAAU,GAAG,IAAI,CAwD1E;CACF"}
@@ -1,4 +1,4 @@
1
- import type { ArrowShape, Decoration, ShapeStyles } from '../../../types';
1
+ import type { ArrowShape, Decoration, ShapeStyles } from '~types';
2
2
  export declare function getArrowArcPath(start: number[], end: number[], circle: number[], bend: number): string;
3
3
  export declare function getBendPoint(handles: ArrowShape['handles'], bend: number): number[];
4
4
  export declare function renderFreehandArrowShaft(id: string, style: ShapeStyles, start: number[], end: number[], decorationStart: Decoration | undefined, decorationEnd: Decoration | undefined): string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { Decoration, ShapeStyles } from '../../../../types';
2
+ import type { Decoration, ShapeStyles } from '~types';
3
3
  interface ArrowSvgProps {
4
4
  id: string;
5
5
  style: ShapeStyles;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { Decoration, ShapeStyles } from '../../../../types';
2
+ import type { Decoration, ShapeStyles } from '~types';
3
3
  interface ArrowSvgProps {
4
4
  id: string;
5
5
  style: ShapeStyles;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '../TVShapeUtil';
4
- import { DrawShape, TVMeta, TVShapeType, TransformInfo } from '../../../types';
3
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
+ import { DrawShape, TVShapeType, TransformInfo } from '~types';
5
5
  declare type T = DrawShape;
6
6
  declare type E = SVGSVGElement;
7
7
  export declare class DrawUtil extends TVShapeUtil<T, E> {
@@ -12,7 +12,7 @@ export declare class DrawUtil extends TVShapeUtil<T, E> {
12
12
  pointCache: Record<string, number[]>;
13
13
  canClone: boolean;
14
14
  getShape: (props: Partial<T>) => T;
15
- Component: React.ForwardRefExoticComponent<Pick<import("telva-core").TLComponentProps<DrawShape, SVGSVGElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
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<SVGSVGElement>>;
16
16
  Indicator: (props: {
17
17
  shape: DrawShape;
18
18
  meta: any;
@@ -1 +1 @@
1
- {"version":3,"file":"DrawUtil.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/DrawUtil/DrawUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAgB,QAAQ,EAAS,MAAM,YAAY,CAAA;AAU1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AASjF,aAAK,CAAC,GAAG,SAAS,CAAA;AAClB,aAAK,CAAC,GAAG,aAAa,CAAA;AAEtB,qBAAa,QAAS,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7C,IAAI,mBAA4B;IAEhC,iBAAiB,gCAAyC;IAE1D,gBAAgB,wBAA8B;IAE9C,YAAY,iCAAiC;IAE7C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAK;IAEzC,QAAQ,UAAO;IAEf,QAAQ,UAAW,QAAQ,CAAC,CA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C,CAAC,CA2BZ;IAED,SAAS,UAAW,CAAC,cAyBpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAM/B;IAED,YAAY,UAAW,CAAC,SAAS,MAAM,EAAE,aAGxC;IAED,kBAAkB,UAAW,CAAC,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,KAAG,OAAO,CAmBjE;IAED,aAAa,UAAW,CAAC,UAAU,QAAQ,aA2B1C;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { StrokeOptions, StrokePoint } from 'perfect-freehand';
2
- import type { DrawShape } from '../../../types';
2
+ import type { DrawShape } from '~types';
3
3
  export declare function getFreehandOptions(shape: DrawShape): StrokeOptions;
4
4
  export declare function getFillPath(shape: DrawShape): string;
5
5
  export declare function getDrawStrokePoints(shape: DrawShape, options: StrokeOptions): StrokePoint[];
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TLBounds } from 'telva-core';
3
- import { TVShapeUtil } from '../TVShapeUtil';
4
- import { EllipseShape, TVMeta, TVShape, TVShapeType, TransformInfo } from '../../../types';
3
+ import { TVShapeUtil } from '~state/shapes/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<import("telva-core").TLComponentProps<EllipseShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
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,0UAmER;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,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;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,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 '../TVShapeUtil';
3
- import { GroupShape, TVMeta, TVShapeType } from '../../../types';
2
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
+ import { GroupShape, 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<import("telva-core").TLComponentProps<GroupShape, SVGSVGElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
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>>;
11
11
  Indicator: (props: {
12
12
  shape: GroupShape;
13
13
  meta: any;
14
14
  isHovered: boolean;
15
15
  isSelected: boolean;
16
- bounds: import("telva-core").TLBounds;
16
+ bounds: TLBounds;
17
17
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
18
- getBounds: (shape: T) => import("telva-core").TLBounds;
18
+ getBounds: (shape: T) => 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,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
+ {"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,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { TVShapeUtil } from '../TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '../shared';
4
- import { ImageShape, TVMeta, TVShapeType } from '../../../types';
2
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
+ import { ImageShape, 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<import("telva-core").TLComponentProps<ImageShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
15
15
  Indicator: (props: {
16
16
  shape: ImageShape;
17
17
  meta: any;
18
18
  isHovered: boolean;
19
19
  isSelected: boolean;
20
- bounds: import("telva-core").TLBounds;
20
+ bounds: TLBounds;
21
21
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
22
- getBounds: (shape: T) => import("telva-core").TLBounds;
22
+ getBounds: (shape: T) => 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,EAAgB,MAAM,EAAE,WAAW,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;IAEjC,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,mBAAmB,UAAO;IAE1B,gBAAgB,UAAQ;IAExB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,wUAgDR;IAED,SAAS;;;;;;6EAQP;IAEF,SAAS,UAAW,CAAC,mCAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;IAE1C,aAAa,UAAW,UAAU,qBAOjC;CACF"}
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,cAAc,CAAA;AAEvB,qBAAa,SAAU,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,oBAA6B;IAEjC,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,mBAAmB,UAAO;IAE1B,gBAAgB,UAAQ;IAExB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,8RAgDR;IAED,SAAS;;;;;;6EAQP;IAEF,SAAS,UAAW,CAAC,cAEpB;IAED,YAAY,SAAU,CAAC,QAAQ,CAAC,aAE/B;IAED,SAAS,4BAAqB;IAE9B,eAAe,kCAA2B;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 '../TVShapeUtil';
4
- import { PenSegment, PenShape, TVMeta, TVShapeType } from '../../../types';
3
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
+ import { PenSegment, PenShape, 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<import("telva-core").TLComponentProps<PenShape, SVGSVGElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<SVGSVGElement>>;
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>>;
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,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAG7E,aAAK,CAAC,GAAG,QAAQ,CAAA;AACjB,aAAK,CAAC,GAAG,aAAa,CAAA;AAUtB,qBAAa,OAAQ,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5C,IAAI,kBAA2B;IAE/B,QAAQ,UA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C,CAmBhC;IAED,SAAS,6RAkaR;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,aAgBxC;IAED,kBAAkB,UAAW,CAAC,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,aA4BvD;IAED,aAAa,UAAW,CAAC,UAAU,QAAQ,aA6B1C;CACF"}
@@ -1,20 +1,23 @@
1
- import type { PenSegment } from '../../../types';
1
+ import type { PenSegment } from '~types';
2
+ /**
3
+ * Approximate the pen path as a polyline in shape-local space.
4
+ * Curved segments are sampled at regular intervals.
5
+ */
6
+ export declare function getSegmentsPolyline(segments: PenSegment[], isClosed: boolean, curveSteps?: number): number[][];
2
7
  /**
3
8
  * Build SVG path `d` string from PenShape segments.
4
9
  * Uses cubic Bézier (C) when handles are present, else line (L).
5
10
  */
6
11
  export declare function segmentsToPath(segments: PenSegment[], isClosed: boolean): string;
7
12
  /**
8
- * Compute bounding box from anchor points ONLY.
9
- * Bezier handles (cp1/cp2) are intentionally excluded so they don't
10
- * inflate the selection box or affect resize transforms.
13
+ * Compute bounding box from the rendered path (with sampled Bézier curves).
11
14
  */
12
- export declare function getSegmentsBounds(segments: PenSegment[]): import("telva-core").TLBounds;
15
+ export declare function getSegmentsBounds(segments: PenSegment[], isClosed?: boolean): any;
13
16
  /**
14
17
  * Normalize segments so bounding box top-left = (0, 0).
15
18
  * Returns normalized segments + the offset to add to shape.point.
16
19
  */
17
- export declare function normalizeSegments(segments: PenSegment[]): {
20
+ export declare function normalizeSegments(segments: PenSegment[], isClosed?: boolean): {
18
21
  segments: PenSegment[];
19
22
  offset: number[];
20
23
  };
@@ -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,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
+ {"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;AAyCxC;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,UAAU,EAAE,EACtB,QAAQ,EAAE,OAAO,EACjB,UAAU,SAAsB,GAC/B,MAAM,EAAE,EAAE,CAeZ;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAuChF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,QAAQ,UAAQ,OAOzE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,UAAU,EAAE,EACtB,QAAQ,UAAQ,GACf;IACD,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 '../TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '../shared';
4
- import { ReactComponentShape, TVMeta, TVShapeType } from '../../../types';
2
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
+ import { ReactComponentShape, 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<import("telva-core").TLComponentProps<ReactComponentShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
15
15
  Indicator: (props: {
16
16
  shape: ReactComponentShape;
17
17
  meta: any;
18
18
  isHovered: boolean;
19
19
  isSelected: boolean;
20
- bounds: import("telva-core").TLBounds;
20
+ bounds: TLBounds;
21
21
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
22
- getBounds: (shape: T) => import("telva-core").TLBounds;
22
+ getBounds: (shape: T) => 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,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAGL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEjE,aAAK,CAAC,GAAG,mBAAmB,CAAA;AAC5B,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IACvD,IAAI,6BAAsC;IAE1C,OAAO,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
+ {"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,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAGL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAU,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEjE,aAAK,CAAC,GAAG,mBAAmB,CAAA;AAC5B,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IACvD,IAAI,6BAAsC;IAE1C,OAAO,UAAQ;IACf,QAAQ,UAAO;IACf,mBAAmB,UAAQ;IAC3B,gBAAgB,UAAQ;IAExB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,8RA+BP;IAEF,SAAS;;;;;;6EAgBP;IAEF,SAAS,UAAW,CAAC,cAEpB;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 '../TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '../shared';
4
- import { RectangleShape, TVMeta, TVShapeType } from '../../../types';
2
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
+ import { RectangleShape, 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<import("telva-core").TLComponentProps<RectangleShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
14
14
  Indicator: (props: {
15
15
  shape: RectangleShape;
16
16
  meta: any;
17
17
  isHovered: boolean;
18
18
  isSelected: boolean;
19
- bounds: import("telva-core").TLBounds;
19
+ bounds: TLBounds;
20
20
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
21
- getBounds: (shape: T) => import("telva-core").TLBounds;
21
+ getBounds: (shape: T) => 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,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
+ {"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,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 '../TVShapeUtil';
4
- import { StickyShape, TVMeta, TVShapeType, TransformInfo } from '../../../types';
3
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
+ import { StickyShape, 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<import("telva-core").TLComponentProps<StickyShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
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"],"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C,GAAG,WAAW,CAAA;AACpB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,UAAW,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,IAAI,qBAA8B;IAElC,OAAO,UAAO;IAEd,OAAO,UAAO;IAEd,QAAQ,UAAO;IAEf,iBAAiB,UAAO;IAExB,gBAAgB,UAAO;IAEvB,QAAQ,UAAW,QAAQ,CAAC,CAAC,KAAG,CAAC,CAgBhC;IAED,SAAS,8RA4MR;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 '../TVShapeUtil';
4
- import { AlignStyle, TVMeta, TVShapeType, TextShape, TransformInfo } from '../../../types';
3
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
+ import { AlignStyle, 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<import("telva-core").TLComponentProps<TextShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
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,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAoB,MAAM,QAAQ,CAAA;AAEpG,aAAK,CAAC,GAAG,SAAS,CAAA;AAClB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,QAAS,SAAQ,WAAW,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
+ {"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;AAEpG,aAAK,CAAC,GAAG,SAAS,CAAA;AAClB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,QAAS,SAAQ,WAAW,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,8RA4PR;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 '../TVShapeUtil';
4
- import { transformRectangle, transformSingleRectangle } from '../shared';
5
- import { TVMeta, TVShape, TVShapeType, TriangleShape } from '../../../types';
3
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
4
+ import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
5
+ import { 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<import("telva-core").TLComponentProps<TriangleShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
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,EAAa,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAM/E,aAAK,CAAC,GAAG,aAAa,CAAA;AACtB,aAAK,CAAC,GAAG,cAAc,CAAA;AAEvB,qBAAa,YA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,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;IAED,iBAAiB,UAAW,CAAC,cAI5B;IAED,kBAAkB,UAAW,CAAC,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,KAAG,OAAO,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 '../TVShapeUtil';
3
- import { transformRectangle, transformSingleRectangle } from '../shared';
4
- import { TVMeta, TVShapeType, VideoShape } from '../../../types';
2
+ import { TVShapeUtil } from '~state/shapes/TVShapeUtil';
3
+ import { transformRectangle, transformSingleRectangle } from '~state/shapes/shared';
4
+ import { 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<import("telva-core").TLComponentProps<VideoShape, HTMLDivElement, TVMeta>, "meta" | "bounds" | "isGhost" | "isEditing" | "shape" | "events" | "onShapeChange" | "onShapeBlur" | "asset" | "isBinding" | "isHovered" | "isSelected" | "isChildOfSelected"> & React.RefAttributes<HTMLDivElement>>;
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>>;
17
17
  Indicator: (props: {
18
18
  shape: VideoShape;
19
19
  meta: any;
20
20
  isHovered: boolean;
21
21
  isSelected: boolean;
22
- bounds: import("telva-core").TLBounds;
22
+ bounds: TLBounds;
23
23
  }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
24
- getBounds: (shape: T) => import("telva-core").TLBounds;
24
+ getBounds: (shape: T) => 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,C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,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,5 +1,5 @@
1
- import type { TVShapeUtil } from './TVShapeUtil';
2
- import { TVShape } from '../../types';
1
+ import type { TVShapeUtil } from '~state/shapes/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 +1 @@
1
- {"version":3,"file":"TextLabel.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/shared/TextLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAoB,YAAY,EAAE,MAAM,QAAQ,CAAA;AAIvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,SAAS,4CAwLpB,CAAA"}
1
+ {"version":3,"file":"TextLabel.d.ts","sourceRoot":"","sources":["../../../../src/state/shapes/shared/TextLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAA;AAIvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,SAAS,4CA0LpB,CAAA"}
@@ -1,3 +1,3 @@
1
- import { AlignStyle } from '../../../types';
2
- export declare function getTextAlign(alignStyle?: AlignStyle): "center" | "left" | "right" | "justify";
1
+ import { AlignStyle } from '~types';
2
+ export declare function getTextAlign(alignStyle?: AlignStyle): "left" | "right" | "center" | "justify";
3
3
  //# sourceMappingURL=getTextAlign.d.ts.map