exodeui 6.0.25 → 6.0.27

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 CHANGED
@@ -7754,7 +7754,7 @@ class ii {
7754
7754
  const U = QA.filter((m) => m.isVisible !== !1 && C.has(m.maskId));
7755
7755
  if (U.length > 0) {
7756
7756
  const m = U[0], O = C.get(m.maskId), Y = this.objectStates.get(O.id);
7757
- Y && Y.visible !== !1 && (L = !0, (!this.maskBuffer || this.maskBuffer.width !== this.canvasWidth || this.maskBuffer.height !== this.canvasHeight) && (this.maskBuffer = document.createElement("canvas"), this.maskBuffer.width = this.canvasWidth, this.maskBuffer.height = this.canvasHeight, this.maskCtx = this.maskBuffer.getContext("2d", { willReadFrequently: !0 }), this.maskCtx && (this.maskCtx.imageSmoothingEnabled = !0, this.maskCtx.imageSmoothingQuality = "high")), this.maskCtx.clearRect(0, 0, this.maskBuffer.width, this.maskBuffer.height), this.rootTransform && this.maskCtx.setTransform(this.rootTransform), I.parentId && this.applyAbsoluteTransform(this.maskCtx, I.parentId, C), this.maskCtx.save(), this.maskCtx.globalAlpha = 1, A = this.maskCtx, A.filter = H.filter);
7757
+ Y && Y.visible !== !1 && (L = !0, (!this.maskBuffer || this.maskBuffer.width !== this.canvasWidth || this.maskBuffer.height !== this.canvasHeight) && (this.maskBuffer = document.createElement("canvas"), this.maskBuffer.width = this.canvasWidth, this.maskBuffer.height = this.canvasHeight, this.maskCtx = this.maskBuffer.getContext("2d", { willReadFrequently: !0 }), this.maskCtx && (this.maskCtx.imageSmoothingEnabled = !0, this.maskCtx.imageSmoothingQuality = "high")), this.maskCtx.setTransform(1, 0, 0, 1, 0, 0), this.maskCtx.globalCompositeOperation = "source-over", this.maskCtx.globalAlpha = 1, this.maskCtx.filter = "none", this.maskCtx.clearRect(0, 0, this.maskBuffer.width, this.maskBuffer.height), this.rootTransform && this.maskCtx.setTransform(this.rootTransform), I.parentId && this.applyAbsoluteTransform(this.maskCtx, I.parentId, C), this.maskCtx.save(), this.maskCtx.globalAlpha = 1, A = this.maskCtx, A.filter = H.filter);
7758
7758
  }
7759
7759
  A.translate(Math.round(a), Math.round(G)), A.rotate(g.rotation * Math.PI / 180);
7760
7760
  const T = g.skew_x || 0, AA = g.skew_y || 0;
@@ -7958,7 +7958,7 @@ class ii {
7958
7958
  if (kA.complete && kA.naturalWidth > 0 ? (BA = kA, this.lastValidSvgImgMap.set(I.id, kA)) : BA = this.lastValidSvgImgMap.get(I.id) || null, BA && BA.complete && BA.naturalWidth > 0) {
7959
7959
  const N = Math.max(1, i), f = Math.max(1, D);
7960
7960
  if (Z && (Y == null ? void 0 : Y.type) === "Solid") {
7961
- this.maskBuffer || (this.maskBuffer = document.createElement("canvas"), this.maskCtx = this.maskBuffer.getContext("2d")), this.maskBuffer.width = N, this.maskBuffer.height = f, this.maskCtx.clearRect(0, 0, N, f), this.maskCtx.drawImage(BA, 0, 0, N, f), this.maskCtx.globalCompositeOperation = "source-in";
7961
+ this.maskBuffer || (this.maskBuffer = document.createElement("canvas"), this.maskCtx = this.maskBuffer.getContext("2d")), this.maskBuffer.width = N, this.maskBuffer.height = f, this.maskCtx.setTransform(1, 0, 0, 1, 0, 0), this.maskCtx.globalCompositeOperation = "source-over", this.maskCtx.globalAlpha = 1, this.maskCtx.filter = "none", this.maskCtx.clearRect(0, 0, N, f), this.maskCtx.drawImage(BA, 0, 0, N, f), this.maskCtx.globalCompositeOperation = "source-in";
7962
7962
  const p = Y.color || "#000000", oA = this.normalizeOpacity(Y.opacity ?? 100);
7963
7963
  this.maskCtx.fillStyle = p, this.maskCtx.globalAlpha = oA, this.maskCtx.fillRect(0, 0, N, f), A.drawImage(this.maskBuffer, -N / 2, -f / 2, N, f);
7964
7964
  } else s !== 0 ? (A.save(), this.drawRoundRect(A, -N / 2, -f / 2, N, f, s), A.clip(), A.drawImage(BA, -N / 2, -f / 2, N, f), A.restore()) : A.drawImage(BA, -N / 2, -f / 2, N, f);
@@ -8017,7 +8017,7 @@ class ii {
8017
8017
  }] : [])).filter((R) => R.isVisible !== !1 && C.has(R.maskId)).forEach((R) => {
8018
8018
  const x = C.get(R.maskId), Z = this.objectStates.get(x.id), GA = R.feather || 0, CA = R.inverted === !0, wA = R.opacity !== void 0 ? typeof R.opacity == "number" ? R.opacity : R.opacity / 100 : 1;
8019
8019
  if ((R.type || "alpha") === "luma") {
8020
- (!this.lumaBuffer || this.lumaBuffer.width !== this.maskBuffer.width || this.lumaBuffer.height !== this.maskBuffer.height) && (this.lumaBuffer = document.createElement("canvas"), this.lumaBuffer.width = this.maskBuffer.width, this.lumaBuffer.height = this.maskBuffer.height, this.lumaCtx = this.lumaBuffer.getContext("2d", { willReadFrequently: !0 }), this.lumaCtx && (this.lumaCtx.imageSmoothingEnabled = !0, this.lumaCtx.imageSmoothingQuality = "high")), this.lumaCtx.clearRect(0, 0, this.lumaBuffer.width, this.lumaBuffer.height), this.lumaCtx.save(), this.rootTransform && this.lumaCtx.setTransform(this.rootTransform), this.applyAbsoluteTransform(this.lumaCtx, x.id, C), GA > 0 && (this.lumaCtx.filter = `blur(${GA}px)`), this.lumaCtx.globalAlpha = wA;
8020
+ (!this.lumaBuffer || this.lumaBuffer.width !== this.maskBuffer.width || this.lumaBuffer.height !== this.maskBuffer.height) && (this.lumaBuffer = document.createElement("canvas"), this.lumaBuffer.width = this.maskBuffer.width, this.lumaBuffer.height = this.maskBuffer.height, this.lumaCtx = this.lumaBuffer.getContext("2d", { willReadFrequently: !0 }), this.lumaCtx && (this.lumaCtx.imageSmoothingEnabled = !0, this.lumaCtx.imageSmoothingQuality = "high")), this.lumaCtx.setTransform(1, 0, 0, 1, 0, 0), this.lumaCtx.globalCompositeOperation = "source-over", this.lumaCtx.globalAlpha = 1, this.lumaCtx.filter = "none", this.lumaCtx.clearRect(0, 0, this.lumaBuffer.width, this.lumaBuffer.height), this.lumaCtx.save(), this.rootTransform && this.lumaCtx.setTransform(this.rootTransform), this.applyAbsoluteTransform(this.lumaCtx, x.id, C), GA > 0 && (this.lumaCtx.filter = `blur(${GA}px)`), this.lumaCtx.globalAlpha = wA;
8021
8021
  const BA = (Z == null ? void 0 : Z.width) || x.geometry.width || 0, N = (Z == null ? void 0 : Z.height) || x.geometry.height || 0, f = (Z == null ? void 0 : Z.corner_radius) ?? x.corner_radius ?? 0;
8022
8022
  if (x.geometry.type === "Text") {
8023
8023
  const iA = Z != null && Z.geometry ? this.deepMerge(x.geometry, Z.geometry) : x.geometry, V = Z != null && Z.style ? this.deepMerge(x.style, Z.style) : x.style;
@@ -8330,7 +8330,7 @@ class ii {
8330
8330
  }
8331
8331
  if (g.stroke && g.stroke.width > 0) {
8332
8332
  const r = A.globalAlpha;
8333
- A.strokeStyle = g.stroke.color, A.lineWidth = g.stroke.width, A.globalAlpha = r * this.normalizeOpacity(g.stroke.opacity ?? 100);
8333
+ g.fill && g.fill.type !== "None" && (A.shadowColor = "transparent", A.shadowBlur = 0, A.shadowOffsetX = 0, A.shadowOffsetY = 0), A.strokeStyle = g.stroke.color, A.lineWidth = g.stroke.width, A.globalAlpha = r * this.normalizeOpacity(g.stroke.opacity ?? 100);
8334
8334
  let z = 0, d = u;
8335
8335
  (IA || []).forEach((_) => {
8336
8336
  let hA = Math.round(-E / 2);
@@ -8342,7 +8342,7 @@ class ii {
8342
8342
  applyStrokeAlignment(A, I, C, g, Q, E) {
8343
8343
  if (!I.stroke || I.stroke.width <= 0 || I.stroke.isEnabled === !1) return;
8344
8344
  const i = I.stroke, D = i.width, o = (i.alignment || "center").toLowerCase();
8345
- if (A.save(), i.fill) {
8345
+ if (A.save(), I.fill && I.fill.type !== "None" && (A.shadowColor = "transparent", A.shadowBlur = 0, A.shadowOffsetX = 0, A.shadowOffsetY = 0), i.fill) {
8346
8346
  const S = this.createCanvasFill(A, i.fill, g, Q);
8347
8347
  S ? A.strokeStyle = S : A.strokeStyle = i.color || "#000000";
8348
8348
  } else
@@ -9439,6 +9439,7 @@ export {
9439
9439
  TA as BehaviorSensor,
9440
9440
  j as BehaviorType,
9441
9441
  zQ as ConditionOp,
9442
+ oi as ExodeSEO,
9442
9443
  hi as ExodeUICanvas,
9443
9444
  ii as ExodeUIEngine,
9444
9445
  YI as LogicOp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodeui",
3
- "version": "6.0.25",
3
+ "version": "6.0.27",
4
4
  "description": "React Runtime for ExodeUI Animation Engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",