@ninesstudios/whiteboard 0.1.4 → 0.1.5
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/whiteboard.es.js
CHANGED
|
@@ -5028,11 +5028,11 @@ const is = ({ onClose: e, onConfirm: t }) => {
|
|
|
5028
5028
|
type: "text",
|
|
5029
5029
|
x: j,
|
|
5030
5030
|
y: A,
|
|
5031
|
-
text: "",
|
|
5031
|
+
text: "Text",
|
|
5032
5032
|
fontSize: C.text.fontSize,
|
|
5033
5033
|
fontColor: C.text.fontColor
|
|
5034
5034
|
})
|
|
5035
|
-
), p(Xe("pointer")), p(tt([N])), $(N), V(""), De({ x: j, y: A }), _e(!0);
|
|
5035
|
+
), p(Xe("pointer")), p(tt([N])), $(N), V("Text"), De({ x: j, y: A }), _e(!0);
|
|
5036
5036
|
} else if (d === "eraser") {
|
|
5037
5037
|
const N = z(j, A);
|
|
5038
5038
|
N && p(pa(N.id));
|
|
@@ -5116,8 +5116,7 @@ const is = ({ onClose: e, onConfirm: t }) => {
|
|
|
5116
5116
|
if (L.type === "arrow")
|
|
5117
5117
|
be === "start" ? N = { startX: (L.startX ?? 0) + Y, startY: (L.startY ?? 0) + B } : be === "end" && (N = { endX: (L.endX ?? 0) + Y, endY: (L.endY ?? 0) + B });
|
|
5118
5118
|
else if (L.type === "circle" || L.type === "star" || L.type === "heart") {
|
|
5119
|
-
|
|
5120
|
-
const H = be.includes("e"), U = be.includes("s"), q = be.includes("w"), Q = be.includes("n");
|
|
5119
|
+
const W = L.radius || L.size || 0, H = be.includes("e"), U = be.includes("s"), q = be.includes("w"), Q = be.includes("n");
|
|
5121
5120
|
let pe = 0;
|
|
5122
5121
|
H && (pe += Y), q && (pe -= Y), U && (pe += B), Q && (pe -= B);
|
|
5123
5122
|
const Lt = Math.max(5, W + pe);
|