@adecore/drawing 0.53.2 → 0.54.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.
- package/package.json +1 -1
- package/src/paths.ts +2 -2
- package/src/reading-order.ts +1 -1
- package/src/svg.ts +1 -1
package/package.json
CHANGED
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
|
/*
|
package/src/reading-order.ts
CHANGED
|
@@ -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 {
|