@antv/g-webgpu 1.7.48 → 1.7.50
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 +5 -3
- package/dist/index.umd.min.js +1 -1
- package/package.json +7 -7
package/dist/index.umd.js
CHANGED
|
@@ -12149,7 +12149,8 @@
|
|
|
12149
12149
|
var font = metrics.font,
|
|
12150
12150
|
lines = metrics.lines,
|
|
12151
12151
|
height = metrics.height,
|
|
12152
|
-
lineHeight = metrics.lineHeight
|
|
12152
|
+
lineHeight = metrics.lineHeight,
|
|
12153
|
+
fontProperties = metrics.fontProperties;
|
|
12153
12154
|
// account for dx & dy
|
|
12154
12155
|
var offsetX = dx || 0;
|
|
12155
12156
|
var offsetY = dy || 0;
|
|
@@ -12163,6 +12164,7 @@
|
|
|
12163
12164
|
linePositionY = 0;
|
|
12164
12165
|
} else if (textBaseline === 'alphabetic') {
|
|
12165
12166
|
linePositionY = -height + lineHeight * 0.25;
|
|
12167
|
+
// linePositionY = -height + fontProperties.ascent;
|
|
12166
12168
|
} else if (textBaseline === 'ideographic') {
|
|
12167
12169
|
linePositionY = -height;
|
|
12168
12170
|
}
|
|
@@ -14447,7 +14449,7 @@
|
|
|
14447
14449
|
$el.style.width = width.toString();
|
|
14448
14450
|
} else {
|
|
14449
14451
|
var _width = object.parsedStyle.width;
|
|
14450
|
-
$el.style.width = _width + "px";
|
|
14452
|
+
$el.style.width = isNumber(_width) ? _width + "px" : _width.toString();
|
|
14451
14453
|
}
|
|
14452
14454
|
break;
|
|
14453
14455
|
case 'height':
|
|
@@ -14456,7 +14458,7 @@
|
|
|
14456
14458
|
$el.style.height = height.toString();
|
|
14457
14459
|
} else {
|
|
14458
14460
|
var _height = object.parsedStyle.height;
|
|
14459
|
-
$el.style.height = _height + "px";
|
|
14461
|
+
$el.style.height = isNumber(_height) ? _height + "px" : _height.toString();
|
|
14460
14462
|
}
|
|
14461
14463
|
break;
|
|
14462
14464
|
case 'zIndex':
|