emacroh5lib 1.0.47 → 1.0.48
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/package.json
CHANGED
@@ -243,15 +243,15 @@
|
|
243
243
|
|
244
244
|
this.setStyleByName(image, "width", `${width}px`);
|
245
245
|
this.setStyleByName(image, "height", `${height}px`);
|
246
|
-
|
247
|
-
this.listDataCache[this.index]
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
246
|
+
|
247
|
+
if (this.listDataCache[this.index] != null) {
|
248
|
+
this.listDataCache[this.index].width = `${width}px`;
|
249
|
+
this.listDataCache[this.index].height = `${height}px`;
|
250
|
+
}
|
252
251
|
|
253
252
|
|
254
253
|
|
254
|
+
// --------------------------------------------------------------------------------------------------
|
255
255
|
// const imageObject = new Image();
|
256
256
|
// imageObject.src = this.list[this.index];
|
257
257
|
// const $this = this
|
@@ -276,6 +276,7 @@
|
|
276
276
|
// $this.listDataCache[this.index].height = `${height}px`;
|
277
277
|
// }
|
278
278
|
|
279
|
+
|
279
280
|
},
|
280
281
|
|
281
282
|
// Reset all action
|
@@ -317,8 +318,8 @@
|
|
317
318
|
|
318
319
|
// Get element current transform
|
319
320
|
getCurrentTransform(obj) {
|
320
|
-
let value
|
321
|
-
|
321
|
+
let value;
|
322
|
+
const transform = this.getStyleByName(obj, "transform");
|
322
323
|
|
323
324
|
if (transform === "none") return;
|
324
325
|
|