@antv/g-webgpu 1.7.44 → 1.7.46

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.umd.js CHANGED
@@ -14442,12 +14442,22 @@
14442
14442
  $el.style['transform-origin'] = transformOrigin[0].value + " " + transformOrigin[1].value;
14443
14443
  break;
14444
14444
  case 'width':
14445
- var width = object.computedStyleMap().get('width');
14446
- $el.style.width = width.toString();
14445
+ if (gLite.runtime.enableCSSParsing) {
14446
+ var width = object.computedStyleMap().get('width');
14447
+ $el.style.width = width.toString();
14448
+ } else {
14449
+ var _width = object.parsedStyle.width;
14450
+ $el.style.width = _width + "px";
14451
+ }
14447
14452
  break;
14448
14453
  case 'height':
14449
- var height = object.computedStyleMap().get('height');
14450
- $el.style.height = height.toString();
14454
+ if (gLite.runtime.enableCSSParsing) {
14455
+ var height = object.computedStyleMap().get('height');
14456
+ $el.style.height = height.toString();
14457
+ } else {
14458
+ var _height = object.parsedStyle.height;
14459
+ $el.style.height = _height + "px";
14460
+ }
14451
14461
  break;
14452
14462
  case 'zIndex':
14453
14463
  var zIndex = object.parsedStyle.zIndex;