@antv/g-webgpu 1.7.49 → 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 +3 -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g-webgpu",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.50",
|
|
4
4
|
"description": "A renderer implemented by WebGPU",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"sync": "tnpm sync"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@antv/g-plugin-device-renderer": "^1.7.
|
|
34
|
-
"@antv/g-plugin-dom-interaction": "^1.7.
|
|
35
|
-
"@antv/g-plugin-html-renderer": "^1.7.
|
|
36
|
-
"@antv/g-plugin-image-loader": "^1.1.
|
|
37
|
-
"@antv/g-plugin-webgpu-device": "^1.7.
|
|
33
|
+
"@antv/g-plugin-device-renderer": "^1.7.48",
|
|
34
|
+
"@antv/g-plugin-dom-interaction": "^1.7.44",
|
|
35
|
+
"@antv/g-plugin-html-renderer": "^1.7.47",
|
|
36
|
+
"@antv/g-plugin-image-loader": "^1.1.46",
|
|
37
|
+
"@antv/g-plugin-webgpu-device": "^1.7.43",
|
|
38
38
|
"@antv/util": "^3.3.1",
|
|
39
39
|
"@webgpu/types": "^0.1.6"
|
|
40
40
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "9ffd7b021d2da1be25fa8579e65eb48c839aad30"
|
|
53
53
|
}
|