@excalidraw/excalidraw 0.18.0-rc.4 → 0.18.0-rc.5

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 (46) hide show
  1. package/README.md +1 -0
  2. package/dist/dev/{chunk-3O3BNMYV.js → chunk-UGZAZPWM.js} +1143 -848
  3. package/dist/dev/chunk-UGZAZPWM.js.map +7 -0
  4. package/dist/dev/data/{image-EN763OZS.js → image-NQXTDRIN.js} +2 -2
  5. package/dist/dev/index.js +6 -8
  6. package/dist/dev/index.js.map +2 -2
  7. package/dist/prod/chunk-44FFCT2W.js +34 -0
  8. package/dist/prod/data/{image-XQM6YLGO.js → image-WYICPQ4X.js} +1 -1
  9. package/dist/prod/index.js +2 -2
  10. package/dist/types/excalidraw/actions/actionCanvas.d.ts +5 -5
  11. package/dist/types/excalidraw/actions/actionExport.d.ts +7 -7
  12. package/dist/types/excalidraw/actions/actionFrame.d.ts +1 -1
  13. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
  14. package/dist/types/excalidraw/appState.d.ts +8 -8
  15. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  16. package/dist/types/excalidraw/constants.d.ts +1 -0
  17. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  18. package/dist/types/excalidraw/element/binding.d.ts +1 -2
  19. package/dist/types/excalidraw/element/collision.d.ts +10 -1
  20. package/dist/types/excalidraw/element/distance.d.ts +3 -0
  21. package/dist/types/excalidraw/element/newElement.d.ts +1 -1
  22. package/dist/types/excalidraw/element/transformHandles.d.ts +2 -2
  23. package/dist/types/excalidraw/element/utils.d.ts +21 -0
  24. package/dist/types/excalidraw/shapes.d.ts +1 -1
  25. package/dist/types/excalidraw/utils.d.ts +3 -3
  26. package/dist/types/excalidraw/visualdebug.d.ts +7 -8
  27. package/dist/types/excalidraw/zindex.d.ts +2 -2
  28. package/dist/types/math/curve.d.ts +22 -14
  29. package/dist/types/math/ellipse.d.ts +44 -0
  30. package/dist/types/math/index.d.ts +1 -1
  31. package/dist/types/math/line.d.ts +2 -30
  32. package/dist/types/math/point.d.ts +1 -29
  33. package/dist/types/math/rectangle.d.ts +3 -0
  34. package/dist/types/math/segment.d.ts +8 -1
  35. package/dist/types/math/types.d.ts +15 -6
  36. package/dist/types/math/vector.d.ts +0 -4
  37. package/package.json +1 -1
  38. package/dist/dev/chunk-3O3BNMYV.js.map +0 -7
  39. package/dist/prod/chunk-ELWWJGPE.js +0 -34
  40. package/dist/types/math/arc.d.ts +0 -6
  41. package/dist/types/math/ga/ga.d.ts +0 -63
  42. package/dist/types/math/ga/gadirections.d.ts +0 -8
  43. package/dist/types/math/ga/galines.d.ts +0 -22
  44. package/dist/types/math/ga/gapoints.d.ts +0 -7
  45. package/dist/types/math/ga/gatransforms.d.ts +0 -10
  46. /package/dist/dev/data/{image-EN763OZS.js.map → image-NQXTDRIN.js.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  decodePngMetadata,
3
3
  encodePngMetadata,
4
4
  getTEXtChunk
5
- } from "../chunk-3O3BNMYV.js";
5
+ } from "../chunk-UGZAZPWM.js";
6
6
  import "../chunk-TLD3FD3P.js";
7
7
  import "../chunk-XDFCUUT6.js";
8
8
  export {
@@ -10,4 +10,4 @@ export {
10
10
  encodePngMetadata,
11
11
  getTEXtChunk
12
12
  };
13
- //# sourceMappingURL=image-EN763OZS.js.map
13
+ //# sourceMappingURL=image-NQXTDRIN.js.map
package/dist/dev/index.js CHANGED
@@ -618,7 +618,7 @@ import {
618
618
  wrapText,
619
619
  youtubeIcon,
620
620
  zoomAreaIcon
621
- } from "./chunk-3O3BNMYV.js";
621
+ } from "./chunk-UGZAZPWM.js";
622
622
  import {
623
623
  define_import_meta_env_default
624
624
  } from "./chunk-TLD3FD3P.js";
@@ -5527,16 +5527,14 @@ var actionChangeArrowType = register({
5527
5527
  newElement2.endBinding.elementId
5528
5528
  );
5529
5529
  const finalStartPoint = startHoveredElement ? bindPointToSnapToElementOutline(
5530
- startGlobalPoint,
5531
- endGlobalPoint,
5530
+ newElement2,
5532
5531
  startHoveredElement,
5533
- elementsMap
5532
+ "start"
5534
5533
  ) : startGlobalPoint;
5535
5534
  const finalEndPoint = endHoveredElement ? bindPointToSnapToElementOutline(
5536
- endGlobalPoint,
5537
- startGlobalPoint,
5535
+ newElement2,
5538
5536
  endHoveredElement,
5539
- elementsMap
5537
+ "end"
5540
5538
  ) : endGlobalPoint;
5541
5539
  startHoveredElement && bindLinearElement(
5542
5540
  newElement2,
@@ -6480,7 +6478,7 @@ var exportCanvas = async (type, elements, appState, files, {
6480
6478
  let blob = canvasToBlob(tempCanvas);
6481
6479
  if (appState.exportEmbedScene) {
6482
6480
  blob = blob.then(
6483
- (blob2) => import("./data/image-EN763OZS.js").then(
6481
+ (blob2) => import("./data/image-NQXTDRIN.js").then(
6484
6482
  ({ encodePngMetadata }) => encodePngMetadata({
6485
6483
  blob: blob2,
6486
6484
  metadata: serializeAsJSON(elements, appState, files, "local")