canvu-react 0.4.54 → 0.4.56
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/chatbot.d.cts +3 -3
- package/dist/chatbot.d.ts +3 -3
- package/dist/index.cjs +30 -252
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +30 -252
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +39 -260
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +3 -3
- package/dist/native.d.ts +3 -3
- package/dist/native.js +39 -260
- package/dist/native.js.map +1 -1
- package/dist/react.cjs +31 -253
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +31 -253
- package/dist/react.js.map +1 -1
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +4 -4
- package/dist/realtime.d.ts +4 -4
- package/dist/realtime.js.map +1 -1
- package/dist/realtimeNative.d.cts +2 -2
- package/dist/realtimeNative.d.ts +2 -2
- package/dist/{shape-builders-BmLS8CNh.d.cts → shape-builders-DzhCOuzo.d.cts} +1 -1
- package/dist/{shape-builders-BCOAG0pS.d.ts → shape-builders-xG3A66sv.d.ts} +1 -1
- package/dist/tldraw.cjs +30 -252
- package/dist/tldraw.cjs.map +1 -1
- package/dist/tldraw.js +30 -252
- package/dist/tldraw.js.map +1 -1
- package/dist/{types-uzeExFkd.d.cts → types-BFZpRGyr.d.cts} +2 -2
- package/dist/{types-BMMPUak7.d.ts → types-BXa2CIrc.d.ts} +1 -1
- package/dist/{types-BAEHaIYO.d.ts → types-D2zesNI8.d.ts} +2 -2
- package/dist/{types-BOQLWyCw.d.cts → types-DqsqQQVf.d.cts} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as RemotePresenceMarkupStroke, b as RemotePresenceCamera, c as RealtimeConnectionState, R as RemotePresencePeer } from './types-
|
|
1
|
+
import { a as RemotePresenceMarkupStroke, b as RemotePresenceCamera, c as RealtimeConnectionState, R as RemotePresencePeer } from './types-DqsqQQVf.cjs';
|
|
2
2
|
import { V as VectorSceneItem } from './types-fJNwEnHf.cjs';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
4
|
import { a as VectorCanvasRemoteAdapter } from './types-6HszqSa5.cjs';
|
|
5
|
-
import { S as StrokeStyle } from './shape-builders-
|
|
5
|
+
import { S as StrokeStyle } from './shape-builders-DzhCOuzo.cjs';
|
|
6
6
|
|
|
7
7
|
type RealtimeSessionPeer = RemotePresencePeer & {
|
|
8
8
|
readonly clientId: string;
|
package/dist/realtimeNative.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as RemotePresenceMarkupStroke, b as RemotePresenceCamera, c as RealtimeConnectionState, R as RemotePresencePeer } from './types-
|
|
1
|
+
import { a as RemotePresenceMarkupStroke, b as RemotePresenceCamera, c as RealtimeConnectionState, R as RemotePresencePeer } from './types-BXa2CIrc.js';
|
|
2
2
|
import { V as VectorSceneItem } from './types-fJNwEnHf.js';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
4
|
import { a as VectorCanvasRemoteAdapter } from './types-BtWbGOqh.js';
|
|
5
|
-
import { S as StrokeStyle } from './shape-builders-
|
|
5
|
+
import { S as StrokeStyle } from './shape-builders-xG3A66sv.js';
|
|
6
6
|
|
|
7
7
|
type RealtimeSessionPeer = RemotePresencePeer & {
|
|
8
8
|
readonly clientId: string;
|
|
@@ -73,7 +73,7 @@ declare function buildEllipseSvg(width: number, height: number, style?: StrokeSt
|
|
|
73
73
|
* const d = buildArchitecturalCloudPathD(180, 90);
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
declare function buildArchitecturalCloudPathD(width: number, height: number, strokeWidth?: number): string;
|
|
76
|
+
declare function buildArchitecturalCloudPathD(width: number, height: number, strokeWidth?: number, arcRadius?: number, bulge?: number): string;
|
|
77
77
|
/**
|
|
78
78
|
* Builds an SVG fragment for an architectural revision cloud outline.
|
|
79
79
|
*
|
|
@@ -73,7 +73,7 @@ declare function buildEllipseSvg(width: number, height: number, style?: StrokeSt
|
|
|
73
73
|
* const d = buildArchitecturalCloudPathD(180, 90);
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
declare function buildArchitecturalCloudPathD(width: number, height: number, strokeWidth?: number): string;
|
|
76
|
+
declare function buildArchitecturalCloudPathD(width: number, height: number, strokeWidth?: number, arcRadius?: number, bulge?: number): string;
|
|
77
77
|
/**
|
|
78
78
|
* Builds an SVG fragment for an architectural revision cloud outline.
|
|
79
79
|
*
|
package/dist/tldraw.cjs
CHANGED
|
@@ -380,203 +380,6 @@ function svgNumber(value) {
|
|
|
380
380
|
return Number.isInteger(rounded) ? String(rounded) : String(rounded);
|
|
381
381
|
}
|
|
382
382
|
var ARCHITECTURAL_CLOUD_RADIUS = 38;
|
|
383
|
-
var ARCHITECTURAL_CLOUD_TARGET_SPACING = 50;
|
|
384
|
-
var ARCHITECTURAL_CLOUD_FLAT_RADIUS_RATIO = 0.38;
|
|
385
|
-
var ARCHITECTURAL_CLOUD_ROUNDED_RADIUS = 72;
|
|
386
|
-
var ARCHITECTURAL_CLOUD_ROUNDED_MIN_RADIUS = 44;
|
|
387
|
-
var ARCHITECTURAL_CLOUD_ROUNDED_TARGET_SPACING = 98;
|
|
388
|
-
function architecturalCloudCenterCount(edgeLength, radius) {
|
|
389
|
-
const targetSpacing = Math.min(
|
|
390
|
-
ARCHITECTURAL_CLOUD_TARGET_SPACING,
|
|
391
|
-
Math.max(1, radius * 1.3)
|
|
392
|
-
);
|
|
393
|
-
return Math.max(2, Math.round(edgeLength / targetSpacing) + 1);
|
|
394
|
-
}
|
|
395
|
-
function distributeRange(start, end, count) {
|
|
396
|
-
if (count <= 1) return [start];
|
|
397
|
-
const step = (end - start) / (count - 1);
|
|
398
|
-
return Array.from({ length: count }, (_, index) => start + step * index);
|
|
399
|
-
}
|
|
400
|
-
function lineCloudPathSegment(start, end) {
|
|
401
|
-
const dx = end[0] - start[0];
|
|
402
|
-
const dy = end[1] - start[1];
|
|
403
|
-
const length = Math.hypot(dx, dy);
|
|
404
|
-
return {
|
|
405
|
-
length,
|
|
406
|
-
pointAt: (t) => [start[0] + dx * t, start[1] + dy * t]
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
function ellipsePoint(centerX, centerY, radiusX, radiusY, angle) {
|
|
410
|
-
return [centerX + Math.cos(angle) * radiusX, centerY + Math.sin(angle) * radiusY];
|
|
411
|
-
}
|
|
412
|
-
function approximateEllipseArcLength(radiusX, radiusY, startAngle, endAngle) {
|
|
413
|
-
const steps = Math.max(
|
|
414
|
-
4,
|
|
415
|
-
Math.ceil(Math.abs(endAngle - startAngle) / (Math.PI / 16))
|
|
416
|
-
);
|
|
417
|
-
let length = 0;
|
|
418
|
-
let previous = ellipsePoint(0, 0, radiusX, radiusY, startAngle);
|
|
419
|
-
for (let index = 1; index <= steps; index += 1) {
|
|
420
|
-
const angle = startAngle + (endAngle - startAngle) * index / steps;
|
|
421
|
-
const next = ellipsePoint(0, 0, radiusX, radiusY, angle);
|
|
422
|
-
length += Math.hypot(next[0] - previous[0], next[1] - previous[1]);
|
|
423
|
-
previous = next;
|
|
424
|
-
}
|
|
425
|
-
return length;
|
|
426
|
-
}
|
|
427
|
-
function ellipseCloudPathSegment(centerX, centerY, radiusX, radiusY, startAngle, endAngle) {
|
|
428
|
-
return {
|
|
429
|
-
length: approximateEllipseArcLength(radiusX, radiusY, startAngle, endAngle),
|
|
430
|
-
pointAt: (t) => ellipsePoint(
|
|
431
|
-
centerX,
|
|
432
|
-
centerY,
|
|
433
|
-
radiusX,
|
|
434
|
-
radiusY,
|
|
435
|
-
startAngle + (endAngle - startAngle) * t
|
|
436
|
-
)
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
function cloudPathPerimeter(segments) {
|
|
440
|
-
const usableSegments = segments.filter((segment) => segment.length > 1e-9);
|
|
441
|
-
return usableSegments.reduce((sum, segment) => sum + segment.length, 0);
|
|
442
|
-
}
|
|
443
|
-
function pointOnCloudPath(segments, distance) {
|
|
444
|
-
const perimeter = cloudPathPerimeter(segments);
|
|
445
|
-
if (perimeter <= 0) return [0, 0];
|
|
446
|
-
let remaining = (distance % perimeter + perimeter) % perimeter;
|
|
447
|
-
for (const segment of segments) {
|
|
448
|
-
if (segment.length <= 1e-9) continue;
|
|
449
|
-
if (remaining <= segment.length) {
|
|
450
|
-
const t = remaining / segment.length;
|
|
451
|
-
return segment.pointAt(t);
|
|
452
|
-
}
|
|
453
|
-
remaining -= segment.length;
|
|
454
|
-
}
|
|
455
|
-
const fallback = segments.find((segment) => segment.length > 1e-9);
|
|
456
|
-
return fallback?.pointAt(0) ?? [0, 0];
|
|
457
|
-
}
|
|
458
|
-
function buildRoundedCapsulePathSegments(width, height, inset) {
|
|
459
|
-
const left = inset;
|
|
460
|
-
const top = inset;
|
|
461
|
-
const right = width - inset;
|
|
462
|
-
const bottom = height - inset;
|
|
463
|
-
const capsuleWidth = Math.max(0, right - left);
|
|
464
|
-
const capsuleHeight = Math.max(0, bottom - top);
|
|
465
|
-
const radius = Math.min(capsuleWidth, capsuleHeight) / 2;
|
|
466
|
-
if (radius <= 0) return [];
|
|
467
|
-
const leftCenterX = left + radius;
|
|
468
|
-
const rightCenterX = right - radius;
|
|
469
|
-
const topCenterY = top + radius;
|
|
470
|
-
const bottomCenterY = bottom - radius;
|
|
471
|
-
return [
|
|
472
|
-
lineCloudPathSegment([leftCenterX, top], [rightCenterX, top]),
|
|
473
|
-
ellipseCloudPathSegment(
|
|
474
|
-
rightCenterX,
|
|
475
|
-
topCenterY,
|
|
476
|
-
radius,
|
|
477
|
-
radius,
|
|
478
|
-
-Math.PI / 2,
|
|
479
|
-
0
|
|
480
|
-
),
|
|
481
|
-
lineCloudPathSegment([right, topCenterY], [right, bottomCenterY]),
|
|
482
|
-
ellipseCloudPathSegment(
|
|
483
|
-
rightCenterX,
|
|
484
|
-
bottomCenterY,
|
|
485
|
-
radius,
|
|
486
|
-
radius,
|
|
487
|
-
0,
|
|
488
|
-
Math.PI / 2
|
|
489
|
-
),
|
|
490
|
-
lineCloudPathSegment([rightCenterX, bottom], [leftCenterX, bottom]),
|
|
491
|
-
ellipseCloudPathSegment(
|
|
492
|
-
leftCenterX,
|
|
493
|
-
bottomCenterY,
|
|
494
|
-
radius,
|
|
495
|
-
radius,
|
|
496
|
-
Math.PI / 2,
|
|
497
|
-
Math.PI
|
|
498
|
-
),
|
|
499
|
-
lineCloudPathSegment([left, bottomCenterY], [left, topCenterY]),
|
|
500
|
-
ellipseCloudPathSegment(
|
|
501
|
-
leftCenterX,
|
|
502
|
-
topCenterY,
|
|
503
|
-
radius,
|
|
504
|
-
radius,
|
|
505
|
-
Math.PI,
|
|
506
|
-
Math.PI * 1.5
|
|
507
|
-
)
|
|
508
|
-
];
|
|
509
|
-
}
|
|
510
|
-
function buildRoundedArcCloudPathD(cloudWidth, cloudHeight, center) {
|
|
511
|
-
const minDimension = Math.min(cloudWidth, cloudHeight);
|
|
512
|
-
const radius = Math.min(
|
|
513
|
-
ARCHITECTURAL_CLOUD_ROUNDED_RADIUS,
|
|
514
|
-
Math.max(ARCHITECTURAL_CLOUD_ROUNDED_MIN_RADIUS, minDimension * 0.16)
|
|
515
|
-
);
|
|
516
|
-
const centerPath = buildRoundedCapsulePathSegments(
|
|
517
|
-
cloudWidth,
|
|
518
|
-
cloudHeight,
|
|
519
|
-
radius
|
|
520
|
-
);
|
|
521
|
-
const centerPerimeter = cloudPathPerimeter(centerPath);
|
|
522
|
-
if (centerPerimeter <= 0) return "";
|
|
523
|
-
const lobeCount = Math.max(
|
|
524
|
-
8,
|
|
525
|
-
Math.round(centerPerimeter / ARCHITECTURAL_CLOUD_ROUNDED_TARGET_SPACING)
|
|
526
|
-
);
|
|
527
|
-
const centers = Array.from(
|
|
528
|
-
{ length: lobeCount },
|
|
529
|
-
(_, index) => pointOnCloudPath(centerPath, centerPerimeter * index / lobeCount)
|
|
530
|
-
);
|
|
531
|
-
const points = centers.map((point, index) => {
|
|
532
|
-
const previous = centers[(index - 1 + centers.length) % centers.length] ?? point;
|
|
533
|
-
return cloudCircleIntersection(previous, point, radius, center);
|
|
534
|
-
});
|
|
535
|
-
const [startX, startY] = points[0] ?? [0, 0];
|
|
536
|
-
const segments = [`M${svgNumber(startX)} ${svgNumber(startY)}`];
|
|
537
|
-
for (const [endX, endY] of points.slice(1)) {
|
|
538
|
-
segments.push(
|
|
539
|
-
`A ${svgNumber(radius)} ${svgNumber(radius)} 0 0 1 ${svgNumber(endX)} ${svgNumber(endY)}`
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
segments.push(
|
|
543
|
-
`A ${svgNumber(radius)} ${svgNumber(radius)} 0 0 1 ${svgNumber(startX)} ${svgNumber(startY)}`
|
|
544
|
-
);
|
|
545
|
-
segments.push("Z");
|
|
546
|
-
return segments.join(" ");
|
|
547
|
-
}
|
|
548
|
-
function cloudCircleIntersection(a, b, radius, center) {
|
|
549
|
-
const midX = (a[0] + b[0]) / 2;
|
|
550
|
-
const midY = (a[1] + b[1]) / 2;
|
|
551
|
-
const dx = b[0] - a[0];
|
|
552
|
-
const dy = b[1] - a[1];
|
|
553
|
-
const distance = Math.hypot(dx, dy);
|
|
554
|
-
if (distance <= 1e-9) return [midX, midY];
|
|
555
|
-
const halfDistance = distance / 2;
|
|
556
|
-
const offset = Math.sqrt(
|
|
557
|
-
Math.max(0, radius * radius - halfDistance * halfDistance)
|
|
558
|
-
);
|
|
559
|
-
const normalX = -dy / distance;
|
|
560
|
-
const normalY = dx / distance;
|
|
561
|
-
const first = [midX + normalX * offset, midY + normalY * offset];
|
|
562
|
-
const second = [
|
|
563
|
-
midX - normalX * offset,
|
|
564
|
-
midY - normalY * offset
|
|
565
|
-
];
|
|
566
|
-
const firstDistance = (first[0] - center[0]) * (first[0] - center[0]) + (first[1] - center[1]) * (first[1] - center[1]);
|
|
567
|
-
const secondDistance = (second[0] - center[0]) * (second[0] - center[0]) + (second[1] - center[1]) * (second[1] - center[1]);
|
|
568
|
-
return firstDistance >= secondDistance ? first : second;
|
|
569
|
-
}
|
|
570
|
-
function cloudEllipseIntersection(a, b, radiusX, radiusY, center) {
|
|
571
|
-
const scaleY = radiusX / radiusY;
|
|
572
|
-
const [x, y] = cloudCircleIntersection(
|
|
573
|
-
[a[0], a[1] * scaleY],
|
|
574
|
-
[b[0], b[1] * scaleY],
|
|
575
|
-
radiusX,
|
|
576
|
-
[center[0], center[1] * scaleY]
|
|
577
|
-
);
|
|
578
|
-
return [x, y / scaleY];
|
|
579
|
-
}
|
|
580
383
|
function buildRectSvg(width, height, style = DEFAULT_STROKE_STYLE) {
|
|
581
384
|
return `<rect width="${width}" height="${height}" fill="none" stroke="${style.stroke}" stroke-width="${style.strokeWidth}" rx="4"${strokeOpacityAttr(style)} />`;
|
|
582
385
|
}
|
|
@@ -585,67 +388,42 @@ function buildEllipseSvg(width, height, style = DEFAULT_STROKE_STYLE) {
|
|
|
585
388
|
const ry = height / 2;
|
|
586
389
|
return `<ellipse cx="${rx}" cy="${ry}" rx="${rx}" ry="${ry}" fill="none" stroke="${style.stroke}" stroke-width="${style.strokeWidth}"${strokeOpacityAttr(style)} />`;
|
|
587
390
|
}
|
|
588
|
-
function buildArchitecturalCloudPathD(width, height, strokeWidth = DEFAULT_STROKE_STYLE.strokeWidth) {
|
|
589
|
-
const w = Math.max(0, width);
|
|
590
|
-
const h = Math.max(0, height);
|
|
591
|
-
if (w <= 0 || h <= 0) return "";
|
|
391
|
+
function buildArchitecturalCloudPathD(width, height, strokeWidth = DEFAULT_STROKE_STYLE.strokeWidth, arcRadius = ARCHITECTURAL_CLOUD_RADIUS, bulge = 1) {
|
|
592
392
|
const padding = Math.max(0, strokeWidth * 2);
|
|
593
|
-
const cloudWidth = Math.max(0,
|
|
594
|
-
const cloudHeight = Math.max(0,
|
|
595
|
-
if (cloudWidth <= 0 || cloudHeight <= 0) return "";
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
cloudHeight * ARCHITECTURAL_CLOUD_FLAT_RADIUS_RATIO
|
|
603
|
-
);
|
|
604
|
-
if (radiusX <= 0 || radiusY <= 0) return "";
|
|
605
|
-
const center = [cloudWidth / 2, cloudHeight / 2];
|
|
606
|
-
const leftCenterX = radiusX;
|
|
607
|
-
const rightCenterX = cloudWidth - radiusX;
|
|
608
|
-
const topCenterY = radiusY;
|
|
609
|
-
const bottomCenterY = cloudHeight - radiusY;
|
|
610
|
-
const horizontalCenters = distributeRange(
|
|
611
|
-
leftCenterX,
|
|
612
|
-
rightCenterX,
|
|
613
|
-
architecturalCloudCenterCount(Math.max(0, rightCenterX - leftCenterX), radiusX)
|
|
614
|
-
);
|
|
615
|
-
const verticalCenters = distributeRange(
|
|
616
|
-
topCenterY,
|
|
617
|
-
bottomCenterY,
|
|
618
|
-
architecturalCloudCenterCount(Math.max(0, bottomCenterY - topCenterY), radiusY)
|
|
619
|
-
);
|
|
620
|
-
if (horizontalCenters.length > 3 && verticalCenters.length > 3) {
|
|
621
|
-
const roundedArcCloudPath = buildRoundedArcCloudPathD(
|
|
622
|
-
cloudWidth,
|
|
623
|
-
cloudHeight,
|
|
624
|
-
center
|
|
625
|
-
);
|
|
626
|
-
if (roundedArcCloudPath !== "") return roundedArcCloudPath;
|
|
627
|
-
}
|
|
628
|
-
const rectangularCenters = [
|
|
629
|
-
...horizontalCenters.map((x) => [x, topCenterY]),
|
|
630
|
-
...verticalCenters.slice(1).map((y) => [rightCenterX, y]),
|
|
631
|
-
...horizontalCenters.slice(0, -1).reverse().map((x) => [x, bottomCenterY]),
|
|
632
|
-
...verticalCenters.slice(1, -1).reverse().map((y) => [leftCenterX, y])
|
|
393
|
+
const cloudWidth = Math.max(0, width - padding);
|
|
394
|
+
const cloudHeight = Math.max(0, height - padding);
|
|
395
|
+
if (cloudWidth <= 0 || cloudHeight <= 0 || arcRadius <= 0 || bulge <= 0) return "";
|
|
396
|
+
const offset = padding / 2;
|
|
397
|
+
const corners = [
|
|
398
|
+
[offset, offset],
|
|
399
|
+
[offset + cloudWidth, offset],
|
|
400
|
+
[offset + cloudWidth, offset + cloudHeight],
|
|
401
|
+
[offset, offset + cloudHeight]
|
|
633
402
|
];
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
403
|
+
const points = [];
|
|
404
|
+
for (let index = 0; index < corners.length; index += 1) {
|
|
405
|
+
const [startX2, startY2] = corners[index] ?? [0, 0];
|
|
406
|
+
const [endX, endY] = corners[(index + 1) % corners.length] ?? [0, 0];
|
|
407
|
+
const edgeLength = Math.hypot(endX - startX2, endY - startY2);
|
|
408
|
+
const arcCount = Math.max(1, Math.round(edgeLength / (2 * arcRadius)));
|
|
409
|
+
const chord = edgeLength / arcCount;
|
|
410
|
+
for (let arcIndex = 1; arcIndex <= arcCount; arcIndex += 1) {
|
|
411
|
+
const t = arcIndex / arcCount;
|
|
412
|
+
points.push([
|
|
413
|
+
startX2 + (endX - startX2) * t,
|
|
414
|
+
startY2 + (endY - startY2) * t,
|
|
415
|
+
chord
|
|
416
|
+
]);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
const [startX, startY] = corners[0] ?? [0, 0];
|
|
640
420
|
const segments = [`M${svgNumber(startX)} ${svgNumber(startY)}`];
|
|
641
|
-
for (const [
|
|
421
|
+
for (const [pointX, pointY, chord] of points) {
|
|
422
|
+
const radius = chord / 2 * bulge;
|
|
642
423
|
segments.push(
|
|
643
|
-
`A ${svgNumber(
|
|
424
|
+
`A ${svgNumber(radius)} ${svgNumber(radius)} 0 0 1 ${svgNumber(pointX)} ${svgNumber(pointY)}`
|
|
644
425
|
);
|
|
645
426
|
}
|
|
646
|
-
segments.push(
|
|
647
|
-
`A ${svgNumber(radiusX)} ${svgNumber(radiusY)} 0 0 1 ${svgNumber(startX)} ${svgNumber(startY)}`
|
|
648
|
-
);
|
|
649
427
|
segments.push("Z");
|
|
650
428
|
return segments.join(" ");
|
|
651
429
|
}
|