shop-components 0.4.10 → 0.4.11
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/dev/src/slot.d.ts +1 -0
- package/dist/shop-components.cjs +21 -21
- package/dist/shop-components.mjs +9 -9
- package/package.json +1 -1
package/dist/shop-components.mjs
CHANGED
|
@@ -9210,14 +9210,13 @@ class Vr extends He {
|
|
|
9210
9210
|
return this._isMirror;
|
|
9211
9211
|
}
|
|
9212
9212
|
shapeKeyChanged(e, t) {
|
|
9213
|
-
var i;
|
|
9214
9213
|
if (this.props.follows.has(e)) {
|
|
9215
|
-
const
|
|
9216
|
-
if (
|
|
9217
|
-
let
|
|
9218
|
-
["height", "mast"].includes(e) ?
|
|
9219
|
-
const
|
|
9220
|
-
this._wrapper.position[
|
|
9214
|
+
const i = this.props.follows.get(e);
|
|
9215
|
+
if (i) {
|
|
9216
|
+
let s = "x";
|
|
9217
|
+
["height", "mast"].includes(e) ? s = "z" : ["width", "liftOuterWidth"].includes(e) && (s = "y");
|
|
9218
|
+
const a = i.initPos[s] > 0 ? 1 : -1;
|
|
9219
|
+
this._wrapper.position[s] = (t - i.origin) * i.scale * a;
|
|
9221
9220
|
}
|
|
9222
9221
|
}
|
|
9223
9222
|
}
|
|
@@ -9363,7 +9362,7 @@ class Vr extends He {
|
|
|
9363
9362
|
dispose() {
|
|
9364
9363
|
cancelAnimationFrame(this._timer), ["dragenter", "dragover", "dragleave", "drop"].forEach((e) => {
|
|
9365
9364
|
this.element.addEventListener(e, this._preventDefaults, !1);
|
|
9366
|
-
}), this.clearSlot(), this._emitter.removeAllListeners(), De(this._slotContainer), this.element.remove();
|
|
9365
|
+
}), this.props.follows.clear(), this.clearSlot(), this._emitter.removeAllListeners(), De(this._slotContainer), this.element.remove();
|
|
9367
9366
|
}
|
|
9368
9367
|
render(e) {
|
|
9369
9368
|
const t = this.element.style.transform, i = /translate\(-?\d*\.?\d*%?,?\s-?\d*\.?\d*%?\)\s*translate\((-?\d*\.?\d*)px,\s*(-?\d*\.?\d*)px\)/.exec(t);
|
|
@@ -10395,6 +10394,7 @@ class Ac extends Bt {
|
|
|
10395
10394
|
let v = e.userData[h];
|
|
10396
10395
|
d.set(m, {
|
|
10397
10396
|
scale: v,
|
|
10397
|
+
initPos: e.position.clone(),
|
|
10398
10398
|
origin: this.shapeKeys.get(m) || 0
|
|
10399
10399
|
});
|
|
10400
10400
|
}
|
|
@@ -13894,7 +13894,7 @@ class Gu {
|
|
|
13894
13894
|
return this.canvas || (this.canvas = document.createElement("canvas")), (this.canvas.width !== e || this.canvas.height !== t) && (this.canvas.width = e, this.canvas.height = t), this.canvas;
|
|
13895
13895
|
}
|
|
13896
13896
|
}
|
|
13897
|
-
const qu = "shop-components", ju = "0.4.
|
|
13897
|
+
const qu = "shop-components", ju = "0.4.11", Qu = "Shop components", Yu = "dist/shop-components.umd.js", Zu = "dist/shop-components.mjs", Xu = "dist/main.d.ts", Ku = {
|
|
13898
13898
|
dts: "tsc --emitDeclarationOnly & tsc & storybook build -o dist",
|
|
13899
13899
|
dev: "vite dev",
|
|
13900
13900
|
build: "vite build",
|