@ibodr/draw 0.2.4 → 0.2.6
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/index.mjs +39 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1060,38 +1060,50 @@ var PathBuilder = class _PathBuilder {
|
|
|
1060
1060
|
const outer = strokeWidth * 3;
|
|
1061
1061
|
const inner = strokeWidth;
|
|
1062
1062
|
const maskId = doubleLineMaskId(d);
|
|
1063
|
-
return /* @__PURE__ */ jsxs("g", { ...props, children: [
|
|
1064
|
-
/* @__PURE__ */ jsxs(
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1063
|
+
return /* @__PURE__ */ jsxs("g", { ...props, strokeLinecap: "butt", children: [
|
|
1064
|
+
/* @__PURE__ */ jsxs(
|
|
1065
|
+
"mask",
|
|
1066
|
+
{
|
|
1067
|
+
id: maskId,
|
|
1068
|
+
maskUnits: "userSpaceOnUse",
|
|
1069
|
+
maskContentUnits: "userSpaceOnUse",
|
|
1070
|
+
x: -1e5,
|
|
1071
|
+
y: -1e5,
|
|
1072
|
+
width: 2e5,
|
|
1073
|
+
height: 2e5,
|
|
1074
|
+
children: [
|
|
1075
|
+
/* @__PURE__ */ jsx(
|
|
1076
|
+
"path",
|
|
1077
|
+
{
|
|
1078
|
+
d,
|
|
1079
|
+
fill: "none",
|
|
1080
|
+
stroke: "#fff",
|
|
1081
|
+
strokeWidth: outer,
|
|
1082
|
+
strokeLinecap: "butt",
|
|
1083
|
+
strokeLinejoin: "round"
|
|
1084
|
+
}
|
|
1085
|
+
),
|
|
1086
|
+
/* @__PURE__ */ jsx(
|
|
1087
|
+
"path",
|
|
1088
|
+
{
|
|
1089
|
+
d,
|
|
1090
|
+
fill: "none",
|
|
1091
|
+
stroke: "#000",
|
|
1092
|
+
strokeWidth: inner,
|
|
1093
|
+
strokeLinecap: "butt",
|
|
1094
|
+
strokeLinejoin: "round"
|
|
1095
|
+
}
|
|
1096
|
+
)
|
|
1097
|
+
]
|
|
1098
|
+
}
|
|
1099
|
+
),
|
|
1088
1100
|
/* @__PURE__ */ jsx(
|
|
1089
1101
|
"path",
|
|
1090
1102
|
{
|
|
1091
1103
|
d,
|
|
1092
1104
|
fill: "none",
|
|
1093
1105
|
strokeWidth: outer,
|
|
1094
|
-
strokeLinecap: "
|
|
1106
|
+
strokeLinecap: "butt",
|
|
1095
1107
|
strokeLinejoin: "round",
|
|
1096
1108
|
mask: `url(#${maskId})`
|
|
1097
1109
|
}
|
|
@@ -38528,7 +38540,7 @@ async function extractAssets(editor, snapshot, msg, addToast) {
|
|
|
38528
38540
|
// src/index.ts
|
|
38529
38541
|
registerDrawLibraryVersion(
|
|
38530
38542
|
"@ibodr/draw",
|
|
38531
|
-
"0.2.
|
|
38543
|
+
"0.2.6",
|
|
38532
38544
|
"esm"
|
|
38533
38545
|
);
|
|
38534
38546
|
/*!
|