@quartz-community/obsidian-plugin-excalidraw 0.1.0 → 1.0.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/CHANGELOG.md +10 -0
- package/dist/components/index.js +71 -59
- package/dist/components/index.js.map +1 -1
- package/dist/frames/index.js +3 -3
- package/dist/frames/index.js.map +1 -1
- package/dist/index.js +72 -60
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Stable 1.0 release. All `@quartz-community/*` dependencies now use `^1.0.0` ranges.
|
|
8
|
+
|
|
9
|
+
Pre-1.0 caret ranges pinned the minor version (`^0.2.1` means `>=0.2.1 <0.3.0`), so
|
|
10
|
+
published fixes to shared packages could never be resolved by dependents. Moving the
|
|
11
|
+
ecosystem to 1.0 makes caret ranges behave conventionally.
|
|
12
|
+
|
|
3
13
|
All notable changes to this project will be documented in this file.
|
|
4
14
|
|
|
5
15
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
package/dist/components/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function getFileExtension(s4) {
|
|
|
70
70
|
return s4.match(/\.[A-Za-z0-9]+$/)?.[0];
|
|
71
71
|
}
|
|
72
72
|
function pathToRoot(slug2) {
|
|
73
|
-
let rootPath = slug2.split("/").filter((x4) => x4 !== "").slice(0, -1).map((
|
|
73
|
+
let rootPath = slug2.split("/").filter((x4) => x4 !== "").slice(0, -1).map((_4) => "..").join("/");
|
|
74
74
|
if (rootPath.length === 0) {
|
|
75
75
|
rootPath = ".";
|
|
76
76
|
}
|
|
@@ -334,7 +334,7 @@ var aria = create({
|
|
|
334
334
|
ariaValueText: null,
|
|
335
335
|
role: null
|
|
336
336
|
},
|
|
337
|
-
transform(
|
|
337
|
+
transform(_4, property) {
|
|
338
338
|
return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
|
|
339
339
|
}
|
|
340
340
|
});
|
|
@@ -369,6 +369,7 @@ var html = create({
|
|
|
369
369
|
allowFullScreen: boolean,
|
|
370
370
|
allowPaymentRequest: boolean,
|
|
371
371
|
allowUserMedia: boolean,
|
|
372
|
+
alpha: boolean,
|
|
372
373
|
alt: null,
|
|
373
374
|
as: null,
|
|
374
375
|
async: boolean,
|
|
@@ -382,8 +383,12 @@ var html = create({
|
|
|
382
383
|
checked: boolean,
|
|
383
384
|
cite: null,
|
|
384
385
|
className: spaceSeparated,
|
|
386
|
+
closedBy: null,
|
|
387
|
+
colorSpace: null,
|
|
385
388
|
cols: number,
|
|
386
|
-
colSpan:
|
|
389
|
+
colSpan: number,
|
|
390
|
+
command: null,
|
|
391
|
+
commandFor: null,
|
|
387
392
|
content: null,
|
|
388
393
|
contentEditable: booleanish,
|
|
389
394
|
controls: boolean,
|
|
@@ -563,8 +568,10 @@ var html = create({
|
|
|
563
568
|
seamless: boolean,
|
|
564
569
|
selected: boolean,
|
|
565
570
|
shadowRootClonable: boolean,
|
|
571
|
+
shadowRootCustomElementRegistry: boolean,
|
|
566
572
|
shadowRootDelegatesFocus: boolean,
|
|
567
573
|
shadowRootMode: null,
|
|
574
|
+
shadowRootSerializable: boolean,
|
|
568
575
|
shape: null,
|
|
569
576
|
size: number,
|
|
570
577
|
sizes: null,
|
|
@@ -701,8 +708,11 @@ var html = create({
|
|
|
701
708
|
allowTransparency: null,
|
|
702
709
|
autoCorrect: null,
|
|
703
710
|
autoSave: null,
|
|
711
|
+
credentialless: boolean,
|
|
704
712
|
disablePictureInPicture: boolean,
|
|
705
713
|
disableRemotePlayback: boolean,
|
|
714
|
+
exportParts: commaSeparated,
|
|
715
|
+
part: spaceSeparated,
|
|
706
716
|
prefix: null,
|
|
707
717
|
property: null,
|
|
708
718
|
results: number,
|
|
@@ -756,6 +766,7 @@ var svg = create({
|
|
|
756
766
|
markerEnd: "marker-end",
|
|
757
767
|
markerMid: "marker-mid",
|
|
758
768
|
markerStart: "marker-start",
|
|
769
|
+
maskType: "mask-type",
|
|
759
770
|
navDown: "nav-down",
|
|
760
771
|
navDownLeft: "nav-down-left",
|
|
761
772
|
navDownRight: "nav-down-right",
|
|
@@ -1026,6 +1037,7 @@ var svg = create({
|
|
|
1026
1037
|
markerWidth: null,
|
|
1027
1038
|
mask: null,
|
|
1028
1039
|
maskContentUnits: null,
|
|
1040
|
+
maskType: null,
|
|
1029
1041
|
maskUnits: null,
|
|
1030
1042
|
mathematical: null,
|
|
1031
1043
|
max: null,
|
|
@@ -1287,7 +1299,7 @@ var xlink = create({
|
|
|
1287
1299
|
xLinkType: null
|
|
1288
1300
|
},
|
|
1289
1301
|
space: "xlink",
|
|
1290
|
-
transform(
|
|
1302
|
+
transform(_4, property) {
|
|
1291
1303
|
return "xlink:" + property.slice(5).toLowerCase();
|
|
1292
1304
|
}
|
|
1293
1305
|
});
|
|
@@ -1304,7 +1316,7 @@ var xmlns = create({
|
|
|
1304
1316
|
var xml = create({
|
|
1305
1317
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1306
1318
|
space: "xml",
|
|
1307
|
-
transform(
|
|
1319
|
+
transform(_4, property) {
|
|
1308
1320
|
return "xml:" + property.slice(3).toLowerCase();
|
|
1309
1321
|
}
|
|
1310
1322
|
});
|
|
@@ -1883,7 +1895,7 @@ function comment(node, _1, _22, state) {
|
|
|
1883
1895
|
}
|
|
1884
1896
|
|
|
1885
1897
|
// node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
1886
|
-
function doctype(_1, _22,
|
|
1898
|
+
function doctype(_1, _22, _32, state) {
|
|
1887
1899
|
return "<!" + (state.settings.upperDoctype ? "DOCTYPE" : "doctype") + (state.settings.tightDoctype ? "" : " ") + "html>";
|
|
1888
1900
|
}
|
|
1889
1901
|
|
|
@@ -1976,67 +1988,67 @@ var closing = omission({
|
|
|
1976
1988
|
thead,
|
|
1977
1989
|
tr
|
|
1978
1990
|
});
|
|
1979
|
-
function headOrColgroupOrCaption(
|
|
1991
|
+
function headOrColgroupOrCaption(_4, index, parent) {
|
|
1980
1992
|
const next = siblingAfter(parent, index, true);
|
|
1981
1993
|
return !next || next.type !== "comment" && !(next.type === "text" && whitespace(next.value.charAt(0)));
|
|
1982
1994
|
}
|
|
1983
|
-
function html3(
|
|
1995
|
+
function html3(_4, index, parent) {
|
|
1984
1996
|
const next = siblingAfter(parent, index);
|
|
1985
1997
|
return !next || next.type !== "comment";
|
|
1986
1998
|
}
|
|
1987
|
-
function body(
|
|
1999
|
+
function body(_4, index, parent) {
|
|
1988
2000
|
const next = siblingAfter(parent, index);
|
|
1989
2001
|
return !next || next.type !== "comment";
|
|
1990
2002
|
}
|
|
1991
|
-
function p(
|
|
2003
|
+
function p(_4, index, parent) {
|
|
1992
2004
|
const next = siblingAfter(parent, index);
|
|
1993
2005
|
return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
|
|
1994
2006
|
!(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video"));
|
|
1995
2007
|
}
|
|
1996
|
-
function li(
|
|
2008
|
+
function li(_4, index, parent) {
|
|
1997
2009
|
const next = siblingAfter(parent, index);
|
|
1998
2010
|
return !next || next.type === "element" && next.tagName === "li";
|
|
1999
2011
|
}
|
|
2000
|
-
function dt(
|
|
2012
|
+
function dt(_4, index, parent) {
|
|
2001
2013
|
const next = siblingAfter(parent, index);
|
|
2002
2014
|
return Boolean(
|
|
2003
2015
|
next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
|
|
2004
2016
|
);
|
|
2005
2017
|
}
|
|
2006
|
-
function dd(
|
|
2018
|
+
function dd(_4, index, parent) {
|
|
2007
2019
|
const next = siblingAfter(parent, index);
|
|
2008
2020
|
return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
|
|
2009
2021
|
}
|
|
2010
|
-
function rubyElement(
|
|
2022
|
+
function rubyElement(_4, index, parent) {
|
|
2011
2023
|
const next = siblingAfter(parent, index);
|
|
2012
2024
|
return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
|
|
2013
2025
|
}
|
|
2014
|
-
function optgroup(
|
|
2026
|
+
function optgroup(_4, index, parent) {
|
|
2015
2027
|
const next = siblingAfter(parent, index);
|
|
2016
2028
|
return !next || next.type === "element" && next.tagName === "optgroup";
|
|
2017
2029
|
}
|
|
2018
|
-
function option(
|
|
2030
|
+
function option(_4, index, parent) {
|
|
2019
2031
|
const next = siblingAfter(parent, index);
|
|
2020
2032
|
return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
|
|
2021
2033
|
}
|
|
2022
|
-
function thead(
|
|
2034
|
+
function thead(_4, index, parent) {
|
|
2023
2035
|
const next = siblingAfter(parent, index);
|
|
2024
2036
|
return Boolean(
|
|
2025
2037
|
next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
|
|
2026
2038
|
);
|
|
2027
2039
|
}
|
|
2028
|
-
function tbody(
|
|
2040
|
+
function tbody(_4, index, parent) {
|
|
2029
2041
|
const next = siblingAfter(parent, index);
|
|
2030
2042
|
return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
|
|
2031
2043
|
}
|
|
2032
|
-
function tfoot(
|
|
2044
|
+
function tfoot(_4, index, parent) {
|
|
2033
2045
|
return !siblingAfter(parent, index);
|
|
2034
2046
|
}
|
|
2035
|
-
function tr(
|
|
2047
|
+
function tr(_4, index, parent) {
|
|
2036
2048
|
const next = siblingAfter(parent, index);
|
|
2037
2049
|
return !next || next.type === "element" && next.tagName === "tr";
|
|
2038
2050
|
}
|
|
2039
|
-
function cells(
|
|
2051
|
+
function cells(_4, index, parent) {
|
|
2040
2052
|
const next = siblingAfter(parent, index);
|
|
2041
2053
|
return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
|
|
2042
2054
|
}
|
|
@@ -2214,7 +2226,7 @@ function serializeAttribute(state, key2, value) {
|
|
|
2214
2226
|
|
|
2215
2227
|
// node_modules/hast-util-to-html/lib/handle/text.js
|
|
2216
2228
|
var textEntitySubset = ["<", "&"];
|
|
2217
|
-
function text(node,
|
|
2229
|
+
function text(node, _4, parent, state) {
|
|
2218
2230
|
return parent && parent.type === "element" && (parent.tagName === "script" || parent.tagName === "style") ? node.value : stringifyEntities(
|
|
2219
2231
|
node.value,
|
|
2220
2232
|
Object.assign({}, state.settings.characterReferences, {
|
|
@@ -2662,23 +2674,23 @@ function w(t4, e4, s4) {
|
|
|
2662
2674
|
function x(t4, e4, s4, n4, o4, a4, h4, r4, i4, c4) {
|
|
2663
2675
|
const l4 = (u5 = h4, Math.PI * u5 / 180);
|
|
2664
2676
|
var u5;
|
|
2665
|
-
let p5 = [], f5 = 0, d4 = 0, g4 = 0,
|
|
2666
|
-
if (c4) [f5, d4, g4,
|
|
2677
|
+
let p5 = [], f5 = 0, d4 = 0, g4 = 0, M3 = 0;
|
|
2678
|
+
if (c4) [f5, d4, g4, M3] = c4;
|
|
2667
2679
|
else {
|
|
2668
2680
|
[t4, e4] = w(t4, e4, -l4), [s4, n4] = w(s4, n4, -l4);
|
|
2669
2681
|
const h5 = (t4 - s4) / 2, c5 = (e4 - n4) / 2;
|
|
2670
2682
|
let u6 = h5 * h5 / (o4 * o4) + c5 * c5 / (a4 * a4);
|
|
2671
2683
|
u6 > 1 && (u6 = Math.sqrt(u6), o4 *= u6, a4 *= u6);
|
|
2672
|
-
const p6 = o4 * o4,
|
|
2673
|
-
g4 = m5 * o4 * c5 / a4 + (t4 + s4) / 2,
|
|
2684
|
+
const p6 = o4 * o4, k4 = a4 * a4, b5 = p6 * k4 - p6 * c5 * c5 - k4 * h5 * h5, y5 = p6 * c5 * c5 + k4 * h5 * h5, m5 = (r4 === i4 ? -1 : 1) * Math.sqrt(Math.abs(b5 / y5));
|
|
2685
|
+
g4 = m5 * o4 * c5 / a4 + (t4 + s4) / 2, M3 = m5 * -a4 * h5 / o4 + (e4 + n4) / 2, f5 = Math.asin(parseFloat(((e4 - M3) / a4).toFixed(9))), d4 = Math.asin(parseFloat(((n4 - M3) / a4).toFixed(9))), t4 < g4 && (f5 = Math.PI - f5), s4 < g4 && (d4 = Math.PI - d4), f5 < 0 && (f5 = 2 * Math.PI + f5), d4 < 0 && (d4 = 2 * Math.PI + d4), i4 && f5 > d4 && (f5 -= 2 * Math.PI), !i4 && d4 > f5 && (d4 -= 2 * Math.PI);
|
|
2674
2686
|
}
|
|
2675
|
-
let
|
|
2676
|
-
if (Math.abs(
|
|
2687
|
+
let k3 = d4 - f5;
|
|
2688
|
+
if (Math.abs(k3) > 120 * Math.PI / 180) {
|
|
2677
2689
|
const t5 = d4, e5 = s4, r5 = n4;
|
|
2678
|
-
d4 = i4 && d4 > f5 ? f5 + 120 * Math.PI / 180 * 1 : f5 + 120 * Math.PI / 180 * -1, p5 = x(s4 = g4 + o4 * Math.cos(d4), n4 =
|
|
2690
|
+
d4 = i4 && d4 > f5 ? f5 + 120 * Math.PI / 180 * 1 : f5 + 120 * Math.PI / 180 * -1, p5 = x(s4 = g4 + o4 * Math.cos(d4), n4 = M3 + a4 * Math.sin(d4), e5, r5, o4, a4, h4, 0, i4, [d4, t5, g4, M3]);
|
|
2679
2691
|
}
|
|
2680
|
-
|
|
2681
|
-
const
|
|
2692
|
+
k3 = d4 - f5;
|
|
2693
|
+
const b4 = Math.cos(f5), y4 = Math.sin(f5), m4 = Math.cos(d4), P4 = Math.sin(d4), v4 = Math.tan(k3 / 4), S4 = 4 / 3 * o4 * v4, O4 = 4 / 3 * a4 * v4, L4 = [t4, e4], T4 = [t4 + S4 * y4, e4 - O4 * b4], D4 = [s4 + S4 * P4, n4 - O4 * m4], A4 = [s4, n4];
|
|
2682
2694
|
if (T4[0] = 2 * L4[0] - T4[0], T4[1] = 2 * L4[1] - T4[1], c4) return [T4, D4, A4].concat(p5);
|
|
2683
2695
|
{
|
|
2684
2696
|
p5 = [T4, D4, A4].concat(p5);
|
|
@@ -2754,12 +2766,12 @@ function A(t4, e4, s4, n4, o4, a4, h4, r4, i4) {
|
|
|
2754
2766
|
let f5 = o4, d4 = a4;
|
|
2755
2767
|
for (; f5 < 0; ) f5 += 2 * Math.PI, d4 += 2 * Math.PI;
|
|
2756
2768
|
d4 - f5 > 2 * Math.PI && (f5 = 0, d4 = 2 * Math.PI);
|
|
2757
|
-
const g4 = 2 * Math.PI / i4.curveStepCount,
|
|
2769
|
+
const g4 = 2 * Math.PI / i4.curveStepCount, M3 = Math.min(g4 / 2, (d4 - f5) / 2), k3 = V(M3, c4, l4, u5, p5, f5, d4, 1, i4);
|
|
2758
2770
|
if (!i4.disableMultiStroke) {
|
|
2759
|
-
const t5 = V(
|
|
2760
|
-
|
|
2771
|
+
const t5 = V(M3, c4, l4, u5, p5, f5, d4, 1.5, i4);
|
|
2772
|
+
k3.push(...t5);
|
|
2761
2773
|
}
|
|
2762
|
-
return h4 && (r4 ?
|
|
2774
|
+
return h4 && (r4 ? k3.push(...$(c4, l4, c4 + u5 * Math.cos(f5), l4 + p5 * Math.sin(f5), i4), ...$(c4, l4, c4 + u5 * Math.cos(d4), l4 + p5 * Math.sin(d4), i4)) : k3.push({ op: "lineTo", data: [c4, l4] }, { op: "lineTo", data: [c4 + u5 * Math.cos(f5), l4 + p5 * Math.sin(f5)] })), { type: "path", ops: k3 };
|
|
2763
2775
|
}
|
|
2764
2776
|
function _(t4, e4) {
|
|
2765
2777
|
const s4 = m(y(b(t4))), n4 = [];
|
|
@@ -2845,8 +2857,8 @@ function R(t4, e4, s4, n4, o4, a4, h4) {
|
|
|
2845
2857
|
const u5 = l4 / 2, p5 = 0.2 + 0.2 * W(o4);
|
|
2846
2858
|
let f5 = o4.bowing * o4.maxRandomnessOffset * (n4 - e4) / 200, d4 = o4.bowing * o4.maxRandomnessOffset * (t4 - s4) / 200;
|
|
2847
2859
|
f5 = G(f5, o4, c4), d4 = G(d4, o4, c4);
|
|
2848
|
-
const g4 = [],
|
|
2849
|
-
return (h4 ? g4.push({ op: "move", data: [t4 + (
|
|
2860
|
+
const g4 = [], M3 = () => G(u5, o4, c4), k3 = () => G(l4, o4, c4), b4 = o4.preserveVertices;
|
|
2861
|
+
return (h4 ? g4.push({ op: "move", data: [t4 + (b4 ? 0 : M3()), e4 + (b4 ? 0 : M3())] }) : g4.push({ op: "move", data: [t4 + (b4 ? 0 : G(l4, o4, c4)), e4 + (b4 ? 0 : G(l4, o4, c4))] })), h4 ? g4.push({ op: "bcurveTo", data: [f5 + t4 + (s4 - t4) * p5 + M3(), d4 + e4 + (n4 - e4) * p5 + M3(), f5 + t4 + 2 * (s4 - t4) * p5 + M3(), d4 + e4 + 2 * (n4 - e4) * p5 + M3(), s4 + (b4 ? 0 : M3()), n4 + (b4 ? 0 : M3())] }) : g4.push({ op: "bcurveTo", data: [f5 + t4 + (s4 - t4) * p5 + k3(), d4 + e4 + (n4 - e4) * p5 + k3(), f5 + t4 + 2 * (s4 - t4) * p5 + k3(), d4 + e4 + 2 * (n4 - e4) * p5 + k3(), s4 + (b4 ? 0 : k3()), n4 + (b4 ? 0 : k3())] }), g4;
|
|
2850
2862
|
}
|
|
2851
2863
|
function j(t4, e4, s4) {
|
|
2852
2864
|
if (!t4.length) return [];
|
|
@@ -3425,37 +3437,37 @@ function re2(e4, t4, n4) {
|
|
|
3425
3437
|
}, e4[0].pressure);
|
|
3426
3438
|
}
|
|
3427
3439
|
function P2(e4, n4 = {}) {
|
|
3428
|
-
let { size: r4 = 16, smoothing: a4 = 0.5, thinning: f5 = 0.5, simulatePressure: m4 = true, easing:
|
|
3440
|
+
let { size: r4 = 16, smoothing: a4 = 0.5, thinning: f5 = 0.5, simulatePressure: m4 = true, easing: _4 = (e5) => e5, start: v4 = {}, end: b4 = {}, last: x4 = false } = n4, { cap: S4 = true, easing: w4 = (e5) => e5 * (2 - e5) } = v4, { cap: T4 = true, easing: P4 = (e5) => --e5 * e5 * e5 + 1 } = b4;
|
|
3429
3441
|
if (e4.length === 0 || r4 <= 0) return [];
|
|
3430
|
-
let
|
|
3442
|
+
let F3 = e4[e4.length - 1].runningLength, I4 = N2(v4.taper, r4, F3), L4 = N2(b4.taper, r4, F3), R3 = (r4 * a4) ** 2, z3 = [], B3 = [], V3 = re2(e4, m4, r4), H3 = i2(r4, f5, e4[e4.length - 1].pressure, _4), U2, W2 = e4[0].vector, G3 = e4[0].point, K3 = G3, q3 = G3, J3 = K3, Y2 = false;
|
|
3431
3443
|
for (let n5 = 0; n5 < e4.length; n5++) {
|
|
3432
|
-
let { pressure: a5 } = e4[n5], { point: s4, vector: h4, distance: v5, runningLength:
|
|
3433
|
-
if (!x5 &&
|
|
3434
|
-
f5 ? (m4 && (a5 = o2(V3, v5, r4)),
|
|
3435
|
-
let S5 =
|
|
3436
|
-
|
|
3437
|
-
let
|
|
3438
|
-
if (j4 ||
|
|
3439
|
-
g2(E2, W2), p3(E2, E2,
|
|
3440
|
-
for (let e5 = 0; e5 <= 1; e5 += 0.07692307692307693) d2(D2, s4, E2), C2(D2, D2, s4, t2 * e5), q3 = [D2[0], D2[1]], z3.push(q3), l2(O2, s4, E2), C2(O2, O2, s4, t2 * -e5),
|
|
3441
|
-
|
|
3444
|
+
let { pressure: a5 } = e4[n5], { point: s4, vector: h4, distance: v5, runningLength: b5 } = e4[n5], x5 = n5 === e4.length - 1;
|
|
3445
|
+
if (!x5 && F3 - b5 < 3) continue;
|
|
3446
|
+
f5 ? (m4 && (a5 = o2(V3, v5, r4)), H3 = i2(r4, f5, a5, _4)) : H3 = r4 / 2, U2 === void 0 && (U2 = H3);
|
|
3447
|
+
let S5 = b5 < I4 ? w4(b5 / I4) : 1, T5 = F3 - b5 < L4 ? P4((F3 - b5) / L4) : 1;
|
|
3448
|
+
H3 = Math.max(0.01, H3 * Math.min(S5, T5));
|
|
3449
|
+
let k3 = (x5 ? e4[n5] : e4[n5 + 1]).vector, A4 = x5 ? 1 : ee(h4, k3), j4 = ee(h4, W2) < 0 && !Y2, M3 = A4 !== null && A4 < 0;
|
|
3450
|
+
if (j4 || M3) {
|
|
3451
|
+
g2(E2, W2), p3(E2, E2, H3);
|
|
3452
|
+
for (let e5 = 0; e5 <= 1; e5 += 0.07692307692307693) d2(D2, s4, E2), C2(D2, D2, s4, t2 * e5), q3 = [D2[0], D2[1]], z3.push(q3), l2(O2, s4, E2), C2(O2, O2, s4, t2 * -e5), J3 = [O2[0], O2[1]], B3.push(J3);
|
|
3453
|
+
G3 = q3, K3 = J3, M3 && (Y2 = true);
|
|
3442
3454
|
continue;
|
|
3443
3455
|
}
|
|
3444
3456
|
if (Y2 = false, x5) {
|
|
3445
|
-
g2(E2, h4), p3(E2, E2,
|
|
3457
|
+
g2(E2, h4), p3(E2, E2, H3), z3.push(u2(s4, E2)), B3.push(c2(s4, E2));
|
|
3446
3458
|
continue;
|
|
3447
3459
|
}
|
|
3448
|
-
te(E2,
|
|
3460
|
+
te(E2, k3, h4, A4), g2(E2, E2), p3(E2, E2, H3), d2(D2, s4, E2), q3 = [D2[0], D2[1]], (n5 <= 1 || y2(G3, q3) > R3) && (z3.push(q3), G3 = q3), l2(O2, s4, E2), J3 = [O2[0], O2[1]], (n5 <= 1 || y2(K3, J3) > R3) && (B3.push(J3), K3 = J3), V3 = a5, W2 = h4;
|
|
3449
3461
|
}
|
|
3450
|
-
let X2 = [e4[0].point[0], e4[0].point[1]], Z2 = e4.length > 1 ? [e4[e4.length - 1].point[0], e4[e4.length - 1].point[1]] : c2(e4[0].point, [1, 1]),
|
|
3462
|
+
let X2 = [e4[0].point[0], e4[0].point[1]], Z2 = e4.length > 1 ? [e4[e4.length - 1].point[0], e4[e4.length - 1].point[1]] : c2(e4[0].point, [1, 1]), Q3 = [], $3 = [];
|
|
3451
3463
|
if (e4.length === 1) {
|
|
3452
|
-
if (!(I4 || L4) || x4) return k2(X2, U2 ||
|
|
3464
|
+
if (!(I4 || L4) || x4) return k2(X2, U2 || H3);
|
|
3453
3465
|
} else {
|
|
3454
|
-
I4 || L4 && e4.length === 1 || (S4 ?
|
|
3466
|
+
I4 || L4 && e4.length === 1 || (S4 ? Q3.push(...A2(X2, B3[0], 13)) : Q3.push(...j2(X2, z3[0], B3[0])));
|
|
3455
3467
|
let t4 = h2(s2(e4[e4.length - 1].vector));
|
|
3456
|
-
L4 || I4 && e4.length === 1 ? $3.push(Z2) : T4 ? $3.push(...M2(Z2, t4,
|
|
3468
|
+
L4 || I4 && e4.length === 1 ? $3.push(Z2) : T4 ? $3.push(...M2(Z2, t4, H3, 29)) : $3.push(...ne(Z2, t4, H3));
|
|
3457
3469
|
}
|
|
3458
|
-
return z3.concat($3, B3.reverse(),
|
|
3470
|
+
return z3.concat($3, B3.reverse(), Q3);
|
|
3459
3471
|
}
|
|
3460
3472
|
var F2 = [0, 0];
|
|
3461
3473
|
function I2(e4) {
|
|
@@ -3981,13 +3993,13 @@ var excalidraw_inline_default = `function B(){let n=document.querySelector(".pag
|
|
|
3981
3993
|
`;
|
|
3982
3994
|
var l3;
|
|
3983
3995
|
l3 = { __e: function(n4, l4, u5, t4) {
|
|
3984
|
-
for (var i4,
|
|
3985
|
-
if ((
|
|
3996
|
+
for (var i4, r4, o4; l4 = l4.__; ) if ((i4 = l4.__c) && !i4.__) try {
|
|
3997
|
+
if ((r4 = i4.constructor) && null != r4.getDerivedStateFromError && (i4.setState(r4.getDerivedStateFromError(n4)), o4 = i4.__d), null != i4.componentDidCatch && (i4.componentDidCatch(n4, t4 || {}), o4 = i4.__d), o4) return i4.__E = i4;
|
|
3986
3998
|
} catch (l5) {
|
|
3987
3999
|
n4 = l5;
|
|
3988
4000
|
}
|
|
3989
4001
|
throw n4;
|
|
3990
|
-
} }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout;
|
|
4002
|
+
} }, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
|
|
3991
4003
|
|
|
3992
4004
|
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
|
|
3993
4005
|
var f4 = 0;
|