aoi-comp 1.0.20 → 1.0.21

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.
Files changed (2) hide show
  1. package/dist/comps.js +4 -3
  2. package/package.json +1 -1
package/dist/comps.js CHANGED
@@ -19803,6 +19803,9 @@ var $T = class extends _t {
19803
19803
  get okShader() {
19804
19804
  return lE;
19805
19805
  }
19806
+ get gid() {
19807
+ return this._lastData?.id;
19808
+ }
19806
19809
  constructor(e) {
19807
19810
  super(), this._dirty = !1, this._translationDirty = !1, e && (this._type = e?.type, this._action = e), E(e?.fill) && (this._fill = e.fill), E(e?.line) && (this._line = e.line), this._createNgShaders(), y(_.defectUpdated, this._createNgShaders);
19808
19811
  }
@@ -20062,14 +20065,12 @@ var $T = class extends _t {
20062
20065
  let { image: n, lack: r } = j;
20063
20066
  z();
20064
20067
  let { imageWidth: i, imageHeight: a } = f, o = e.width, s = e.height, c = Math.min(o / i, s / a) * .98, l = (o - i * c) / 2, u = (s - a * c) / 2;
20065
- L(l, u, c), ee({ size: `${i} x ${a}` }), n.setValue(f?.image), r.drawData({
20066
- id: t,
20068
+ f.id ??= t, r.gid !== f?.id && L(l, u, c), ee({ size: `${i} x ${a}` }), n.setValue(f?.image), r.drawData({
20067
20069
  depend: p,
20068
20070
  ...f
20069
20071
  }, d?.type), h?.(!0);
20070
20072
  }), le = B(() => {
20071
20073
  A.current && f && (j.lack.drawData({
20072
- id: t,
20073
20074
  depend: p,
20074
20075
  ...f
20075
20076
  }, d?.type, !0), h?.(!1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aoi-comp",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "description": "AOI React Component Library",
6
6
  "keywords": [