@adecore/drawing 0.53.3 → 0.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/drawing",
3
- "version": "0.53.3",
3
+ "version": "0.54.1",
4
4
  "description": "Drawing schemas, geometry, deterministic paths, SVG export and reading order.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
package/src/paths.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { DrawingElement } from './protocol.ts';
2
1
  import { getStroke } from 'perfect-freehand';
3
2
  // Rough's unbundled modules use extensionless imports; its package entry also runs in Node.
4
3
  import rough from 'roughjs';
5
- import type { RoughGenerator } from 'roughjs/bin/generator.js';
6
4
  import type { Options } from 'roughjs/bin/core.js';
5
+ import type { RoughGenerator } from 'roughjs/bin/generator.js';
7
6
  import { arrowHead, arrowHeadSize, isFilled, type Point } from './geometry.ts';
7
+ import type { DrawingElement } from './protocol.ts';
8
8
  import { NOTE_RADIUS } from './text.ts';
9
9
 
10
10
  /*
@@ -1,5 +1,5 @@
1
- import type { DrawingElement } from './protocol.ts';
2
1
  import { absolutePoints, boundsOf, centerOf, hitsElement, type Point } from './geometry.ts';
2
+ import type { DrawingElement } from './protocol.ts';
3
3
 
4
4
  /* Two texts within this many units of each other are on the same line and read left to right. */
5
5
  const ROW_TOLERANCE = 24;
package/src/svg.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { DrawingColor, DrawingElement, DrawingFont } from './protocol.ts';
2
1
  import { drawnBoundsOfElements, type Rect } from './geometry.ts';
3
2
  import { pathsOfElement, type ElementPath } from './paths.ts';
3
+ import type { DrawingColor, DrawingElement, DrawingFont } from './protocol.ts';
4
4
  import { DEFAULT_FONT_STACKS, LINE_HEIGHT, approximateMeasure, fontOf, linesOf, writingFrameOf, type MeasureLine, type WrittenElement } from './text.ts';
5
5
 
6
6
  export interface SvgOptions {