@adecore/drawing 0.54.1 → 0.54.3
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 +1 -1
- package/dist/protocol.js +1 -1
- package/package.json +1 -1
- package/src/paths.ts +1 -1
- package/src/protocol.ts +1 -1
package/dist/paths.js
CHANGED
|
@@ -40,7 +40,7 @@ function optionsOf(element) {
|
|
|
40
40
|
: {})
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
// Rough
|
|
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
|
|
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
package/src/paths.ts
CHANGED
|
@@ -65,7 +65,7 @@ function optionsOf(element: DrawingElement): Options {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// Rough
|
|
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
|
|
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>();
|