@nous-excalidraw/element 0.18.0-cy.1 → 0.18.0

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 (178) hide show
  1. package/README.md +4 -4
  2. package/dist/dev/index.js +83 -94
  3. package/dist/dev/index.js.map +3 -3
  4. package/dist/prod/index.js +9 -9
  5. package/dist/types/common/src/appEventBus.d.ts +1 -1
  6. package/dist/types/common/src/constants.d.ts +2 -4
  7. package/dist/types/common/src/emitter.d.ts +1 -1
  8. package/dist/types/common/src/font-metadata.d.ts +1 -1
  9. package/dist/types/common/src/points.d.ts +2 -2
  10. package/dist/types/common/src/utils.d.ts +3 -3
  11. package/dist/types/element/src/Scene.d.ts +4 -4
  12. package/dist/types/element/src/align.d.ts +1 -1
  13. package/dist/types/element/src/arrows/focus.d.ts +2 -2
  14. package/dist/types/element/src/arrows/helpers.d.ts +1 -1
  15. package/dist/types/element/src/binding.d.ts +4 -4
  16. package/dist/types/element/src/bounds.d.ts +3 -3
  17. package/dist/types/element/src/collision.d.ts +2 -2
  18. package/dist/types/element/src/comparisons.d.ts +1 -1
  19. package/dist/types/element/src/delta.d.ts +3 -3
  20. package/dist/types/element/src/distance.d.ts +1 -1
  21. package/dist/types/element/src/distribute.d.ts +1 -1
  22. package/dist/types/element/src/dragElements.d.ts +2 -2
  23. package/dist/types/element/src/duplicate.d.ts +2 -2
  24. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  25. package/dist/types/element/src/elementLink.d.ts +1 -1
  26. package/dist/types/element/src/embeddable.d.ts +2 -2
  27. package/dist/types/element/src/flowchart.d.ts +1 -1
  28. package/dist/types/element/src/frame.d.ts +2 -2
  29. package/dist/types/element/src/groups.d.ts +2 -2
  30. package/dist/types/element/src/heading.d.ts +2 -2
  31. package/dist/types/element/src/image.d.ts +2 -2
  32. package/dist/types/element/src/linearElementEditor.d.ts +4 -4
  33. package/dist/types/element/src/mutateElement.d.ts +1 -1
  34. package/dist/types/element/src/newElement.d.ts +1 -1
  35. package/dist/types/element/src/renderElement.d.ts +4 -4
  36. package/dist/types/element/src/resizeElements.d.ts +2 -2
  37. package/dist/types/element/src/resizeTest.d.ts +4 -4
  38. package/dist/types/element/src/selection.d.ts +1 -1
  39. package/dist/types/element/src/shape.d.ts +5 -5
  40. package/dist/types/element/src/showSelectedShapeActions.d.ts +1 -1
  41. package/dist/types/element/src/sizeHelpers.d.ts +1 -1
  42. package/dist/types/element/src/store.d.ts +4 -4
  43. package/dist/types/element/src/textElement.d.ts +3 -3
  44. package/dist/types/element/src/transform.d.ts +1 -1
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +2 -2
  47. package/dist/types/element/src/types.d.ts +3 -3
  48. package/dist/types/element/src/utils.d.ts +3 -3
  49. package/dist/types/element/src/visualdebug.d.ts +5 -5
  50. package/dist/types/element/src/zindex.d.ts +2 -2
  51. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
  52. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  53. package/dist/types/excalidraw/actions/actionBoundText.d.ts +48 -48
  54. package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
  55. package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
  56. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
  57. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
  58. package/dist/types/excalidraw/actions/actionDeselect.d.ts +24 -24
  59. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  60. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  61. package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
  62. package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
  63. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
  64. package/dist/types/excalidraw/actions/actionExport.d.ts +48 -48
  65. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
  66. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  67. package/dist/types/excalidraw/actions/actionFrame.d.ts +210 -210
  68. package/dist/types/excalidraw/actions/actionGroup.d.ts +41 -41
  69. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +149 -149
  70. package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
  71. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
  72. package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
  73. package/dist/types/excalidraw/actions/actionProperties.d.ts +37 -37
  74. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
  75. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
  76. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  77. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +28 -28
  78. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
  79. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +28 -28
  80. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
  81. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
  82. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
  85. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
  86. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  87. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  89. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  90. package/dist/types/excalidraw/appState.d.ts +9 -9
  91. package/dist/types/excalidraw/charts/charts.constants.d.ts +1 -1
  92. package/dist/types/excalidraw/charts/charts.helpers.d.ts +3 -3
  93. package/dist/types/excalidraw/charts/charts.types.d.ts +1 -1
  94. package/dist/types/excalidraw/charts/index.d.ts +1 -1
  95. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  96. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  97. package/dist/types/excalidraw/components/App.d.ts +10 -10
  98. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  99. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  100. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  102. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  103. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  105. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  106. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  107. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  109. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  110. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  111. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
  112. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  113. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  114. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  115. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  117. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  118. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  119. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  120. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  122. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  124. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  125. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  126. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  127. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  128. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  129. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  130. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  131. package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
  133. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +1 -1
  134. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  135. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +1 -1
  136. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +2 -2
  137. package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
  138. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -3
  139. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
  140. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  141. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  142. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  143. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  144. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  145. package/dist/types/excalidraw/components/icons.d.ts +1 -1
  146. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  147. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +1 -1
  148. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  149. package/dist/types/excalidraw/data/blob.d.ts +49 -49
  150. package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
  151. package/dist/types/excalidraw/data/index.d.ts +1 -1
  152. package/dist/types/excalidraw/data/json.d.ts +24 -24
  153. package/dist/types/excalidraw/data/library.d.ts +2 -2
  154. package/dist/types/excalidraw/data/resave.d.ts +2 -2
  155. package/dist/types/excalidraw/data/restore.d.ts +2 -2
  156. package/dist/types/excalidraw/data/types.d.ts +2 -2
  157. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
  158. package/dist/types/excalidraw/history.d.ts +4 -4
  159. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  160. package/dist/types/excalidraw/i18n.d.ts +1 -1
  161. package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
  162. package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
  163. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
  164. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
  165. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  166. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  167. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  168. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  169. package/dist/types/excalidraw/snapping.d.ts +5 -5
  170. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +4 -4
  171. package/dist/types/excalidraw/types.d.ts +7 -7
  172. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
  173. package/dist/types/utils/src/bbox.d.ts +2 -2
  174. package/dist/types/utils/src/export.d.ts +3 -3
  175. package/dist/types/utils/src/index.d.ts +1 -1
  176. package/dist/types/utils/src/shape.d.ts +4 -4
  177. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  178. package/package.json +3 -3
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # @excalidraw/element
1
+ # @nous-excalidraw/element
2
2
 
3
3
  ## Install
4
4
 
5
5
  ```bash
6
- npm install @excalidraw/element
6
+ npm install @nous-excalidraw/element
7
7
  ```
8
8
 
9
9
  If you prefer Yarn over npm, use this command to install the Excalidraw utils package:
10
10
 
11
11
  ```bash
12
- yarn add @excalidraw/element
12
+ yarn add @nous-excalidraw/element
13
13
  ```
14
14
 
15
15
  With PNPM, similarly install the package with this command:
16
16
 
17
17
  ```bash
18
- pnpm add @excalidraw/element
18
+ pnpm add @nous-excalidraw/element
19
19
  ```
package/dist/dev/index.js CHANGED
@@ -186,20 +186,20 @@ var require_lodash = __commonJS({
186
186
 
187
187
  // src/index.ts
188
188
  init_define_import_meta_env();
189
- import { toIterable as toIterable2 } from "@excalidraw/common";
189
+ import { toIterable as toIterable2 } from "@nous-excalidraw/common";
190
190
 
191
191
  // src/sizeHelpers.ts
192
192
  init_define_import_meta_env();
193
193
  import {
194
194
  SHIFT_LOCKING_ANGLE,
195
195
  viewportCoordsToSceneCoords
196
- } from "@excalidraw/common";
196
+ } from "@nous-excalidraw/common";
197
197
  import {
198
198
  normalizeRadians,
199
199
  radiansBetweenAngles,
200
200
  radiansDifference
201
- } from "@excalidraw/math";
202
- import { pointsEqual as pointsEqual7 } from "@excalidraw/math";
201
+ } from "@nous-excalidraw/math";
202
+ import { pointsEqual as pointsEqual7 } from "@nous-excalidraw/math";
203
203
 
204
204
  // src/bounds.ts
205
205
  init_define_import_meta_env();
@@ -2264,7 +2264,7 @@ import {
2264
2264
  invariant as invariant10,
2265
2265
  rescalePoints,
2266
2266
  sizeOf
2267
- } from "@excalidraw/common";
2267
+ } from "@nous-excalidraw/common";
2268
2268
  import {
2269
2269
  degreesToRadians,
2270
2270
  lineSegment as lineSegment7,
@@ -2272,11 +2272,11 @@ import {
2272
2272
  pointFrom as pointFrom14,
2273
2273
  pointFromArray as pointFromArray3,
2274
2274
  pointRotateRads as pointRotateRads13
2275
- } from "@excalidraw/math";
2275
+ } from "@nous-excalidraw/math";
2276
2276
 
2277
2277
  // ../utils/src/shape.ts
2278
2278
  init_define_import_meta_env();
2279
- import { invariant } from "@excalidraw/common";
2279
+ import { invariant } from "@nous-excalidraw/common";
2280
2280
  import {
2281
2281
  curve as curve2,
2282
2282
  lineSegment,
@@ -2293,8 +2293,8 @@ import {
2293
2293
  vectorAdd,
2294
2294
  vectorFromPoint,
2295
2295
  vectorScale
2296
- } from "@excalidraw/math";
2297
- import { getElementAbsoluteCoords } from "@excalidraw/element";
2296
+ } from "@nous-excalidraw/math";
2297
+ import { getElementAbsoluteCoords } from "@nous-excalidraw/element";
2298
2298
  var getPolygonShape = (element) => {
2299
2299
  const { angle, width, height, x, y } = element;
2300
2300
  const cx = x + width / 2;
@@ -2616,16 +2616,16 @@ import {
2616
2616
  pointFrom as pointFrom13,
2617
2617
  pointDistance as pointDistance6,
2618
2618
  pointRotateRads as pointRotateRads12
2619
- } from "@excalidraw/math";
2619
+ } from "@nous-excalidraw/math";
2620
2620
  import {
2621
2621
  ROUGHNESS,
2622
2622
  THEME as THEME2,
2623
- isTransparent as isTransparent4,
2623
+ isTransparent as isTransparent3,
2624
2624
  assertNever as assertNever2,
2625
2625
  COLOR_PALETTE,
2626
2626
  LINE_POLYGON_POINT_MERGE_DISTANCE,
2627
2627
  applyDarkModeFilter as applyDarkModeFilter2
2628
- } from "@excalidraw/common";
2628
+ } from "@nous-excalidraw/common";
2629
2629
 
2630
2630
  // src/renderElement.ts
2631
2631
  init_define_import_meta_env();
@@ -2634,13 +2634,12 @@ import {
2634
2634
  lineSegment as lineSegment6,
2635
2635
  pointFrom as pointFrom12,
2636
2636
  pointRotateRads as pointRotateRads11
2637
- } from "@excalidraw/math";
2637
+ } from "@nous-excalidraw/math";
2638
2638
  import {
2639
2639
  BOUND_TEXT_PADDING as BOUND_TEXT_PADDING3,
2640
2640
  DEFAULT_REDUCED_GLOBAL_ALPHA,
2641
2641
  ELEMENT_READY_TO_ERASE_OPACITY,
2642
2642
  FRAME_STYLE,
2643
- getFrameEffectiveBackgroundColor,
2644
2643
  DARK_THEME_FILTER,
2645
2644
  MIME_TYPES,
2646
2645
  THEME,
@@ -2650,9 +2649,8 @@ import {
2650
2649
  getVerticalOffset,
2651
2650
  invariant as invariant9,
2652
2651
  applyDarkModeFilter,
2653
- isSafari,
2654
- isTransparent as isTransparent3
2655
- } from "@excalidraw/common";
2652
+ isSafari
2653
+ } from "@nous-excalidraw/common";
2656
2654
 
2657
2655
  // src/cropElement.ts
2658
2656
  init_define_import_meta_env();
@@ -2668,7 +2666,7 @@ import {
2668
2666
  pointFromVector as pointFromVector2,
2669
2667
  clamp,
2670
2668
  isCloseTo
2671
- } from "@excalidraw/math";
2669
+ } from "@nous-excalidraw/math";
2672
2670
  var MINIMAL_CROP_SIZE = 10;
2673
2671
  var cropElement = (element, elementsMap, transformHandle, naturalWidth, naturalHeight, pointerX, pointerY, widthAspectRatio) => {
2674
2672
  const { width: uncroppedWidth, height: uncroppedHeight } = getUncroppedWidthAndHeight(element);
@@ -3123,7 +3121,7 @@ import {
3123
3121
  vectorFromPoint as vectorFromPoint8,
3124
3122
  curveLength,
3125
3123
  curvePointAtLength
3126
- } from "@excalidraw/math";
3124
+ } from "@nous-excalidraw/math";
3127
3125
  import {
3128
3126
  DRAGGING_THRESHOLD,
3129
3127
  KEYS,
@@ -3132,14 +3130,14 @@ import {
3132
3130
  invariant as invariant8,
3133
3131
  isShallowEqual,
3134
3132
  getFeatureFlag as getFeatureFlag2
3135
- } from "@excalidraw/common";
3133
+ } from "@nous-excalidraw/common";
3136
3134
  import {
3137
3135
  deconstructLinearOrFreeDrawElement as deconstructLinearOrFreeDrawElement2,
3138
3136
  getSnapOutlineMidPoint as getSnapOutlineMidPoint2,
3139
3137
  isPathALoop as isPathALoop2,
3140
3138
  moveArrowAboveBindable,
3141
3139
  projectFixedPointOntoDiagonal as projectFixedPointOntoDiagonal2
3142
- } from "@excalidraw/element";
3140
+ } from "@nous-excalidraw/element";
3143
3141
 
3144
3142
  // src/binding.ts
3145
3143
  init_define_import_meta_env();
@@ -3148,7 +3146,7 @@ import {
3148
3146
  getFeatureFlag,
3149
3147
  invariant as invariant7,
3150
3148
  isTransparent as isTransparent2
3151
- } from "@excalidraw/common";
3149
+ } from "@nous-excalidraw/common";
3152
3150
  import {
3153
3151
  PRECISION as PRECISION2,
3154
3152
  clamp as clamp3,
@@ -3162,11 +3160,11 @@ import {
3162
3160
  vectorFromPoint as vectorFromPoint7,
3163
3161
  vectorNormalize as vectorNormalize4,
3164
3162
  vectorScale as vectorScale7
3165
- } from "@excalidraw/math";
3163
+ } from "@nous-excalidraw/math";
3166
3164
 
3167
3165
  // src/collision.ts
3168
3166
  init_define_import_meta_env();
3169
- import { invariant as invariant4, isTransparent } from "@excalidraw/common";
3167
+ import { invariant as invariant4, isTransparent } from "@nous-excalidraw/common";
3170
3168
  import {
3171
3169
  curveIntersectLineSegment,
3172
3170
  isPointWithinBounds,
@@ -3179,11 +3177,11 @@ import {
3179
3177
  vectorFromPoint as vectorFromPoint4,
3180
3178
  vectorNormalize as vectorNormalize3,
3181
3179
  vectorScale as vectorScale4
3182
- } from "@excalidraw/math";
3180
+ } from "@nous-excalidraw/math";
3183
3181
  import {
3184
3182
  ellipse as ellipse3,
3185
3183
  ellipseSegmentInterceptPoints
3186
- } from "@excalidraw/math/ellipse";
3184
+ } from "@nous-excalidraw/math/ellipse";
3187
3185
 
3188
3186
  // src/utils.ts
3189
3187
  init_define_import_meta_env();
@@ -3193,7 +3191,7 @@ import {
3193
3191
  invariant as invariant2,
3194
3192
  LINE_CONFIRM_THRESHOLD,
3195
3193
  ROUNDNESS as ROUNDNESS2
3196
- } from "@excalidraw/common";
3194
+ } from "@nous-excalidraw/common";
3197
3195
  import {
3198
3196
  bezierEquation,
3199
3197
  curve as curve3,
@@ -3211,12 +3209,12 @@ import {
3211
3209
  vectorFromPoint as vectorFromPoint3,
3212
3210
  vectorNormalize as vectorNormalize2,
3213
3211
  vectorScale as vectorScale3
3214
- } from "@excalidraw/math";
3212
+ } from "@nous-excalidraw/math";
3215
3213
 
3216
3214
  // src/typeChecks.ts
3217
3215
  init_define_import_meta_env();
3218
- import { ROUNDNESS, assertNever } from "@excalidraw/common";
3219
- import { pointsEqual } from "@excalidraw/math";
3216
+ import { ROUNDNESS, assertNever } from "@nous-excalidraw/common";
3217
+ import { pointsEqual } from "@nous-excalidraw/math";
3220
3218
  var isInitializedImageElement = (element) => {
3221
3219
  return !!element && element.type === "image" && !!element.fileId;
3222
3220
  };
@@ -3908,8 +3906,8 @@ import {
3908
3906
  getFontString as getFontString2,
3909
3907
  isProdEnv,
3910
3908
  invariant as invariant3
3911
- } from "@excalidraw/common";
3912
- import { pointFrom as pointFrom4, pointRotateRads as pointRotateRads4 } from "@excalidraw/math";
3909
+ } from "@nous-excalidraw/common";
3910
+ import { pointFrom as pointFrom4, pointRotateRads as pointRotateRads4 } from "@nous-excalidraw/math";
3913
3911
 
3914
3912
  // src/containerCache.ts
3915
3913
  init_define_import_meta_env();
@@ -3937,7 +3935,7 @@ import {
3937
3935
  getFontString,
3938
3936
  isTestEnv,
3939
3937
  normalizeEOL
3940
- } from "@excalidraw/common";
3938
+ } from "@nous-excalidraw/common";
3941
3939
  var measureText = (text, font, lineHeight) => {
3942
3940
  const _text = text.split("\n").map((x) => x || " ").join("\n");
3943
3941
  const fontSize = parseFloat(font);
@@ -4071,7 +4069,7 @@ var getMaxCharWidth = (font) => {
4071
4069
 
4072
4070
  // src/textWrapping.ts
4073
4071
  init_define_import_meta_env();
4074
- import { isDevEnv, isTestEnv as isTestEnv2 } from "@excalidraw/common";
4072
+ import { isDevEnv, isTestEnv as isTestEnv2 } from "@nous-excalidraw/common";
4075
4073
  var cachedCjkRegex;
4076
4074
  var cachedLineBreakRegex;
4077
4075
  var cachedEmojiRegex;
@@ -4879,8 +4877,8 @@ import {
4879
4877
  curvePointDistance,
4880
4878
  distanceToLineSegment,
4881
4879
  pointRotateRads as pointRotateRads5
4882
- } from "@excalidraw/math";
4883
- import { ellipse as ellipse2, ellipseDistanceFromPoint } from "@excalidraw/math/ellipse";
4880
+ } from "@nous-excalidraw/math";
4881
+ import { ellipse as ellipse2, ellipseDistanceFromPoint } from "@nous-excalidraw/math/ellipse";
4884
4882
  var distanceToElement = (element, elementsMap, p) => {
4885
4883
  switch (element.type) {
4886
4884
  case "selection":
@@ -5412,7 +5410,7 @@ import {
5412
5410
  invariant as invariant5,
5413
5411
  isDevEnv as isDevEnv2,
5414
5412
  isTestEnv as isTestEnv3
5415
- } from "@excalidraw/common";
5413
+ } from "@nous-excalidraw/common";
5416
5414
  import {
5417
5415
  pointFrom as pointFrom6,
5418
5416
  pointFromVector as pointFromVector5,
@@ -5423,7 +5421,7 @@ import {
5423
5421
  vectorCross,
5424
5422
  vectorFromPoint as vectorFromPoint5,
5425
5423
  vectorScale as vectorScale5
5426
- } from "@excalidraw/math";
5424
+ } from "@nous-excalidraw/math";
5427
5425
  var HEADING_RIGHT = [1, 0];
5428
5426
  var HEADING_DOWN = [0, 1];
5429
5427
  var HEADING_LEFT = [-1, 0];
@@ -5618,7 +5616,7 @@ import {
5618
5616
  getSizeFromPoints as getSizeFromPoints2,
5619
5617
  randomInteger,
5620
5618
  getUpdatedTimestamp
5621
- } from "@excalidraw/common";
5619
+ } from "@nous-excalidraw/common";
5622
5620
 
5623
5621
  // src/elbowArrow.ts
5624
5622
  init_define_import_meta_env();
@@ -5633,7 +5631,7 @@ import {
5633
5631
  vectorCross as vectorCross2,
5634
5632
  vectorFromPoint as vectorFromPoint6,
5635
5633
  vectorScale as vectorScale6
5636
- } from "@excalidraw/math";
5634
+ } from "@nous-excalidraw/math";
5637
5635
  import {
5638
5636
  BinaryHeap,
5639
5637
  invariant as invariant6,
@@ -5641,7 +5639,7 @@ import {
5641
5639
  getSizeFromPoints,
5642
5640
  isDevEnv as isDevEnv3,
5643
5641
  arrayToMap
5644
- } from "@excalidraw/common";
5642
+ } from "@nous-excalidraw/common";
5645
5643
  var DEDUP_TRESHOLD = 1;
5646
5644
  var BASE_PADDING = 40;
5647
5645
  var handleSegmentRenormalization = (arrow, elementsMap) => {
@@ -10735,15 +10733,15 @@ var determineCustomLinearAngle = (pivotPoint, draggedPoint) => Math.atan2(dragge
10735
10733
 
10736
10734
  // src/frame.ts
10737
10735
  init_define_import_meta_env();
10738
- import { arrayToMap as arrayToMap4 } from "@excalidraw/common";
10739
- import { isPointWithinBounds as isPointWithinBounds2, pointFrom as pointFrom11 } from "@excalidraw/math";
10736
+ import { arrayToMap as arrayToMap4 } from "@nous-excalidraw/common";
10737
+ import { isPointWithinBounds as isPointWithinBounds2, pointFrom as pointFrom11 } from "@nous-excalidraw/math";
10740
10738
 
10741
10739
  // ../utils/src/bbox.ts
10742
10740
  init_define_import_meta_env();
10743
10741
  import {
10744
10742
  vectorCross as vectorCross3,
10745
10743
  vectorFromPoint as vectorFromPoint9
10746
- } from "@excalidraw/math";
10744
+ } from "@nous-excalidraw/math";
10747
10745
  function getBBox(line2) {
10748
10746
  return [
10749
10747
  Math.min(line2[0][0], line2[1][0]),
@@ -10776,12 +10774,12 @@ function doLineSegmentsIntersect(a2, b2) {
10776
10774
 
10777
10775
  // src/selection.ts
10778
10776
  init_define_import_meta_env();
10779
- import { arrayToMap as arrayToMap3, isShallowEqual as isShallowEqual2 } from "@excalidraw/common";
10777
+ import { arrayToMap as arrayToMap3, isShallowEqual as isShallowEqual2 } from "@nous-excalidraw/common";
10780
10778
  import {
10781
10779
  lineSegment as lineSegment5,
10782
10780
  pointFrom as pointFrom10,
10783
10781
  pointRotateRads as pointRotateRads10
10784
- } from "@excalidraw/math";
10782
+ } from "@nous-excalidraw/math";
10785
10783
 
10786
10784
  // src/groups.ts
10787
10785
  init_define_import_meta_env();
@@ -12330,20 +12328,14 @@ var renderElement = (element, elementsMap, allElementsMap, rc, context, renderCo
12330
12328
  element.x + appState.scrollX,
12331
12329
  element.y + appState.scrollY
12332
12330
  );
12333
- const fillColor = getFrameEffectiveBackgroundColor(
12334
- element.backgroundColor
12335
- );
12336
- const shouldFill = !isTransparent3(fillColor);
12337
- if (shouldFill) {
12338
- context.fillStyle = appState.theme === THEME.DARK ? applyDarkModeFilter(fillColor) : fillColor;
12339
- }
12331
+ context.fillStyle = "rgba(0, 0, 200, 0.04)";
12340
12332
  context.lineWidth = FRAME_STYLE.strokeWidth / appState.zoom.value;
12341
12333
  context.strokeStyle = appState.theme === THEME.DARK ? applyDarkModeFilter(FRAME_STYLE.strokeColor) : FRAME_STYLE.strokeColor;
12342
12334
  if (isMagicFrameElement(element)) {
12343
12335
  context.strokeStyle = appState.theme === THEME.LIGHT ? "#7affd7" : applyDarkModeFilter("#1d8264");
12344
12336
  }
12345
- context.beginPath();
12346
12337
  if (FRAME_STYLE.radius && context.roundRect) {
12338
+ context.beginPath();
12347
12339
  context.roundRect(
12348
12340
  0,
12349
12341
  0,
@@ -12351,14 +12343,11 @@ var renderElement = (element, elementsMap, allElementsMap, rc, context, renderCo
12351
12343
  element.height,
12352
12344
  FRAME_STYLE.radius / appState.zoom.value
12353
12345
  );
12346
+ context.stroke();
12347
+ context.closePath();
12354
12348
  } else {
12355
- context.rect(0, 0, element.width, element.height);
12356
- }
12357
- if (shouldFill) {
12358
- context.fill();
12349
+ context.strokeRect(0, 0, element.width, element.height);
12359
12350
  }
12360
- context.stroke();
12361
- context.closePath();
12362
12351
  context.restore();
12363
12352
  }
12364
12353
  break;
@@ -12689,7 +12678,7 @@ var generateRoughOptions = (element, continuousPath = false, isDarkMode = false)
12689
12678
  case "diamond":
12690
12679
  case "ellipse": {
12691
12680
  options.fillStyle = element.fillStyle;
12692
- options.fill = isTransparent4(element.backgroundColor) ? void 0 : isDarkMode ? applyDarkModeFilter2(element.backgroundColor) : element.backgroundColor;
12681
+ options.fill = isTransparent3(element.backgroundColor) ? void 0 : isDarkMode ? applyDarkModeFilter2(element.backgroundColor) : element.backgroundColor;
12693
12682
  if (element.type === "ellipse") {
12694
12683
  options.curveFitting = 1;
12695
12684
  }
@@ -12711,7 +12700,7 @@ var generateRoughOptions = (element, continuousPath = false, isDarkMode = false)
12711
12700
  }
12712
12701
  };
12713
12702
  var modifyIframeLikeForRoughOptions = (element, isExporting, embedsValidationStatus) => {
12714
- if (isIframeLikeElement(element) && (isExporting || isEmbeddableElement(element) && embedsValidationStatus?.get(element.id) !== true) && isTransparent4(element.backgroundColor) && isTransparent4(element.strokeColor)) {
12703
+ if (isIframeLikeElement(element) && (isExporting || isEmbeddableElement(element) && embedsValidationStatus?.get(element.id) !== true) && isTransparent3(element.backgroundColor) && isTransparent3(element.strokeColor)) {
12715
12704
  return {
12716
12705
  ...element,
12717
12706
  roughness: 0,
@@ -12721,8 +12710,8 @@ var modifyIframeLikeForRoughOptions = (element, isExporting, embedsValidationSta
12721
12710
  } else if (isIframeElement(element)) {
12722
12711
  return {
12723
12712
  ...element,
12724
- strokeColor: isTransparent4(element.strokeColor) ? "#000000" : element.strokeColor,
12725
- backgroundColor: isTransparent4(element.backgroundColor) ? "#f4f4f6" : element.backgroundColor
12713
+ strokeColor: isTransparent3(element.strokeColor) ? "#000000" : element.strokeColor,
12714
+ backgroundColor: isTransparent3(element.backgroundColor) ? "#f4f4f6" : element.backgroundColor
12726
12715
  };
12727
12716
  }
12728
12717
  return element;
@@ -14449,7 +14438,7 @@ import {
14449
14438
  isShallowEqual as isShallowEqual3,
14450
14439
  isTestEnv as isTestEnv7,
14451
14440
  randomInteger as randomInteger4
14452
- } from "@excalidraw/common";
14441
+ } from "@nous-excalidraw/common";
14453
14442
 
14454
14443
  // src/store.ts
14455
14444
  init_define_import_meta_env();
@@ -14461,7 +14450,7 @@ import {
14461
14450
  randomId as randomId2,
14462
14451
  Emitter,
14463
14452
  toIterable
14464
- } from "@excalidraw/common";
14453
+ } from "@nous-excalidraw/common";
14465
14454
 
14466
14455
  // src/duplicate.ts
14467
14456
  init_define_import_meta_env();
@@ -14474,11 +14463,11 @@ import {
14474
14463
  findLastIndex,
14475
14464
  getUpdatedTimestamp as getUpdatedTimestamp2,
14476
14465
  isTestEnv as isTestEnv4
14477
- } from "@excalidraw/common";
14466
+ } from "@nous-excalidraw/common";
14478
14467
 
14479
14468
  // src/sortElements.ts
14480
14469
  init_define_import_meta_env();
14481
- import { arrayToMapWithIndex } from "@excalidraw/common";
14470
+ import { arrayToMapWithIndex } from "@nous-excalidraw/common";
14482
14471
  var normalizeGroupElementOrder = (elements) => {
14483
14472
  const origElements = elements.slice();
14484
14473
  const sortedElements = /* @__PURE__ */ new Set();
@@ -15669,7 +15658,7 @@ function generateNKeysBetween(a2, b2, n, digits = BASE_62_DIGITS) {
15669
15658
  }
15670
15659
 
15671
15660
  // src/fractionalIndex.ts
15672
- import { arrayToMap as arrayToMap7 } from "@excalidraw/common";
15661
+ import { arrayToMap as arrayToMap7 } from "@nous-excalidraw/common";
15673
15662
  var InvalidFractionalIndexError = class extends Error {
15674
15663
  code = "ELEMENT_HAS_INVALID_INDEX";
15675
15664
  };
@@ -15918,17 +15907,17 @@ import {
15918
15907
  isDevEnv as isDevEnv5,
15919
15908
  isTestEnv as isTestEnv6,
15920
15909
  toArray
15921
- } from "@excalidraw/common";
15922
- import { isNonDeletedElement } from "@excalidraw/element";
15923
- import { isFrameLikeElement as isFrameLikeElement2 } from "@excalidraw/element";
15924
- import { getElementsInGroup as getElementsInGroup2 } from "@excalidraw/element";
15910
+ } from "@nous-excalidraw/common";
15911
+ import { isNonDeletedElement } from "@nous-excalidraw/element";
15912
+ import { isFrameLikeElement as isFrameLikeElement2 } from "@nous-excalidraw/element";
15913
+ import { getElementsInGroup as getElementsInGroup2 } from "@nous-excalidraw/element";
15925
15914
  import {
15926
15915
  syncInvalidIndices as syncInvalidIndices2,
15927
15916
  syncMovedIndices as syncMovedIndices2,
15928
15917
  validateFractionalIndices as validateFractionalIndices2
15929
- } from "@excalidraw/element";
15930
- import { getSelectedElements as getSelectedElements2 } from "@excalidraw/element";
15931
- import { mutateElement as mutateElement2 } from "@excalidraw/element";
15918
+ } from "@nous-excalidraw/element";
15919
+ import { getSelectedElements as getSelectedElements2 } from "@nous-excalidraw/element";
15920
+ import { mutateElement as mutateElement2 } from "@nous-excalidraw/element";
15932
15921
  var getNonDeletedElements = (allElements) => {
15933
15922
  const elementsMap = /* @__PURE__ */ new Map();
15934
15923
  const elements = [];
@@ -17564,7 +17553,7 @@ import {
17564
17553
  getGridPoint as getGridPoint2,
17565
17554
  getFontString as getFontString4,
17566
17555
  DRAGGING_THRESHOLD as DRAGGING_THRESHOLD2
17567
- } from "@excalidraw/common";
17556
+ } from "@nous-excalidraw/common";
17568
17557
  var dragSelectedElements = (pointerDownState, _selectedElements, offset, scene, snapOffset, gridSize) => {
17569
17558
  if (_selectedElements.length === 1 && isElbowArrow(_selectedElements[0]) && (_selectedElements[0].startBinding || _selectedElements[0].endBinding)) {
17570
17559
  return;
@@ -17778,7 +17767,7 @@ var dragNewElement = ({
17778
17767
 
17779
17768
  // src/elementLink.ts
17780
17769
  init_define_import_meta_env();
17781
- import { ELEMENT_LINK_KEY, normalizeLink } from "@excalidraw/common";
17770
+ import { ELEMENT_LINK_KEY, normalizeLink } from "@nous-excalidraw/common";
17782
17771
  var defaultGetElementLinkFromSelection = (id, type) => {
17783
17772
  const url = window.location.href;
17784
17773
  try {
@@ -17850,7 +17839,7 @@ import {
17850
17839
  VERTICAL_ALIGN as VERTICAL_ALIGN3,
17851
17840
  escapeDoubleQuotes,
17852
17841
  getFontString as getFontString6
17853
- } from "@excalidraw/common";
17842
+ } from "@nous-excalidraw/common";
17854
17843
 
17855
17844
  // src/newElement.ts
17856
17845
  init_define_import_meta_env();
@@ -17866,7 +17855,7 @@ import {
17866
17855
  getFontString as getFontString5,
17867
17856
  getUpdatedTimestamp as getUpdatedTimestamp3,
17868
17857
  getLineHeight
17869
- } from "@excalidraw/common";
17858
+ } from "@nous-excalidraw/common";
17870
17859
  var _newElementBase = (type, {
17871
17860
  x,
17872
17861
  y,
@@ -18581,8 +18570,8 @@ var embeddableURLValidator = (url, validateEmbeddable) => {
18581
18570
 
18582
18571
  // src/flowchart.ts
18583
18572
  init_define_import_meta_env();
18584
- import { KEYS as KEYS2, invariant as invariant11, toBrandedType as toBrandedType2 } from "@excalidraw/common";
18585
- import { pointFrom as pointFrom15 } from "@excalidraw/math";
18573
+ import { KEYS as KEYS2, invariant as invariant11, toBrandedType as toBrandedType2 } from "@nous-excalidraw/common";
18574
+ import { pointFrom as pointFrom15 } from "@nous-excalidraw/math";
18586
18575
  var VERTICAL_OFFSET = 100;
18587
18576
  var HORIZONTAL_OFFSET = 100;
18588
18577
  var getLinkDirectionFromKey = (key) => {
@@ -19050,12 +19039,12 @@ var isNodeInFlowchart = (element, elementsMap) => {
19050
19039
 
19051
19040
  // src/arrows/focus.ts
19052
19041
  init_define_import_meta_env();
19053
- import { pointDistance as pointDistance8, pointFrom as pointFrom16 } from "@excalidraw/math";
19054
- import { invariant as invariant12 } from "@excalidraw/common";
19042
+ import { pointDistance as pointDistance8, pointFrom as pointFrom16 } from "@nous-excalidraw/math";
19043
+ import { invariant as invariant12 } from "@nous-excalidraw/common";
19055
19044
 
19056
19045
  // src/zindex.ts
19057
19046
  init_define_import_meta_env();
19058
- import { arrayToMap as arrayToMap10, findIndex, findLastIndex as findLastIndex2 } from "@excalidraw/common";
19047
+ import { arrayToMap as arrayToMap10, findIndex, findLastIndex as findLastIndex2 } from "@nous-excalidraw/common";
19059
19048
  var isOfTargetFrame = (element, frameId) => {
19060
19049
  return element.frameId === frameId || element.id === frameId;
19061
19050
  };
@@ -19773,7 +19762,7 @@ var handleFocusPointHover = (arrow, scenePointerX, scenePointerY, scene, appStat
19773
19762
 
19774
19763
  // src/image.ts
19775
19764
  init_define_import_meta_env();
19776
- import { MIME_TYPES as MIME_TYPES2, SVG_NS } from "@excalidraw/common";
19765
+ import { MIME_TYPES as MIME_TYPES2, SVG_NS } from "@nous-excalidraw/common";
19777
19766
  var loadHTMLImageElement = (dataURL) => {
19778
19767
  return new Promise((resolve, reject) => {
19779
19768
  const image = new Image();
@@ -19949,13 +19938,13 @@ import {
19949
19938
  normalizeRadians as normalizeRadians2,
19950
19939
  pointFrom as pointFrom17,
19951
19940
  pointRotateRads as pointRotateRads14
19952
- } from "@excalidraw/math";
19941
+ } from "@nous-excalidraw/math";
19953
19942
  import {
19954
19943
  MIN_FONT_SIZE,
19955
19944
  SHIFT_LOCKING_ANGLE as SHIFT_LOCKING_ANGLE2,
19956
19945
  rescalePoints as rescalePoints2,
19957
19946
  getFontString as getFontString7
19958
- } from "@excalidraw/common";
19947
+ } from "@nous-excalidraw/common";
19959
19948
  var transformElements = (originalElements, transformHandleType, selectedElements, scene, shouldRotateWithDiscreteAngle2, shouldResizeFromCenter, shouldMaintainAspectRatio, pointerX, pointerY, centerX, centerY) => {
19960
19949
  const elementsMap = scene.getNonDeletedElementsMap();
19961
19950
  if (selectedElements.length === 1) {
@@ -20944,17 +20933,17 @@ import {
20944
20933
  pointFrom as pointFrom19,
20945
20934
  pointOnLineSegment,
20946
20935
  pointRotateRads as pointRotateRads16
20947
- } from "@excalidraw/math";
20936
+ } from "@nous-excalidraw/math";
20948
20937
  import {
20949
20938
  SIDE_RESIZING_THRESHOLD
20950
- } from "@excalidraw/common";
20939
+ } from "@nous-excalidraw/common";
20951
20940
 
20952
20941
  // src/transformHandles.ts
20953
20942
  init_define_import_meta_env();
20954
20943
  import {
20955
20944
  DEFAULT_TRANSFORM_HANDLE_SPACING
20956
- } from "@excalidraw/common";
20957
- import { pointFrom as pointFrom18, pointRotateRads as pointRotateRads15 } from "@excalidraw/math";
20945
+ } from "@nous-excalidraw/common";
20946
+ import { pointFrom as pointFrom18, pointRotateRads as pointRotateRads15 } from "@nous-excalidraw/math";
20958
20947
  var transformHandleSizes = {
20959
20948
  mouse: 8,
20960
20949
  pen: 16,
@@ -21351,7 +21340,7 @@ var showSelectedShapeActions = (appState, elements) => Boolean(
21351
21340
 
21352
21341
  // src/transform.ts
21353
21342
  init_define_import_meta_env();
21354
- import { pointFrom as pointFrom20 } from "@excalidraw/math";
21343
+ import { pointFrom as pointFrom20 } from "@nous-excalidraw/math";
21355
21344
  import {
21356
21345
  DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY3,
21357
21346
  DEFAULT_FONT_SIZE as DEFAULT_FONT_SIZE4,
@@ -21366,7 +21355,7 @@ import {
21366
21355
  isDevEnv as isDevEnv7,
21367
21356
  toBrandedType as toBrandedType3,
21368
21357
  getLineHeight as getLineHeight2
21369
- } from "@excalidraw/common";
21358
+ } from "@nous-excalidraw/common";
21370
21359
  var DEFAULT_LINEAR_ELEMENT_PROPS = {
21371
21360
  width: 100,
21372
21361
  height: 0