@adecore/drawing 0.54.2 → 0.54.4

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/dist/paths.js CHANGED
@@ -40,7 +40,7 @@ function optionsOf(element) {
40
40
  : {})
41
41
  };
42
42
  }
43
- // Rough has no rounded-rectangle primitive.
43
+ // Rough cannot draw a rounded rectangle by itself.
44
44
  function roundedRectPath(w, h, radius) {
45
45
  const corner = Math.min(radius, w / 2, h / 2);
46
46
  return `M ${corner} 0 L ${w - corner} 0 Q ${w} 0 ${w} ${corner} L ${w} ${h - corner} Q ${w} ${h} ${w - corner} ${h} L ${corner} ${h} Q 0 ${h} 0 ${h - corner} L 0 ${corner} Q 0 0 ${corner} 0 Z`;
package/dist/protocol.js CHANGED
@@ -86,7 +86,7 @@ export function migrateDrawing(value) {
86
86
  }
87
87
  /*
88
88
  * Element ids never leave their own file, so they only have to be unique inside it. A repeat would
89
- * make selection and hit tests pick two elements at once, so such a file is refused by name.
89
+ * make selection and hit tests pick two elements at once, so a reader refuses such a file and names the id.
90
90
  */
91
91
  export function duplicateElementIdIn(elements) {
92
92
  const seen = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/drawing",
3
- "version": "0.54.2",
3
+ "version": "0.54.4",
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
@@ -65,7 +65,7 @@ function optionsOf(element: DrawingElement): Options {
65
65
  };
66
66
  }
67
67
 
68
- // Rough has no rounded-rectangle primitive.
68
+ // Rough cannot draw a rounded rectangle by itself.
69
69
  function roundedRectPath(w: number, h: number, radius: number): string {
70
70
  const corner = Math.min(radius, w / 2, h / 2);
71
71
 
package/src/protocol.ts CHANGED
@@ -115,7 +115,7 @@ export function migrateDrawing(value: unknown): DrawingDocument | null {
115
115
 
116
116
  /*
117
117
  * Element ids never leave their own file, so they only have to be unique inside it. A repeat would
118
- * make selection and hit tests pick two elements at once, so such a file is refused by name.
118
+ * make selection and hit tests pick two elements at once, so a reader refuses such a file and names the id.
119
119
  */
120
120
  export function duplicateElementIdIn(elements: DrawingElement[]): string | null {
121
121
  const seen = new Set<string>();