@antv/g-webgpu 1.7.49 → 1.7.51

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
@@ -12121,6 +12121,12 @@
12121
12121
  // if (instance.parsedStyle.fontSize !== object.parsedStyle.fontSize) {
12122
12122
  // return false;
12123
12123
  // }
12124
+ if (!instance.parsedStyle.metrics) {
12125
+ instance.isOverflowing();
12126
+ }
12127
+ if (!object.parsedStyle.metrics) {
12128
+ object.isOverflowing();
12129
+ }
12124
12130
  if (instance.parsedStyle.metrics.font !== object.parsedStyle.metrics.font || instancedAttributes.some(function (name) {
12125
12131
  return instance.parsedStyle[name] !== object.parsedStyle[name];
12126
12132
  })) {
@@ -12149,7 +12155,8 @@
12149
12155
  var font = metrics.font,
12150
12156
  lines = metrics.lines,
12151
12157
  height = metrics.height,
12152
- lineHeight = metrics.lineHeight;
12158
+ lineHeight = metrics.lineHeight,
12159
+ fontProperties = metrics.fontProperties;
12153
12160
  // account for dx & dy
12154
12161
  var offsetX = dx || 0;
12155
12162
  var offsetY = dy || 0;
@@ -12163,6 +12170,7 @@
12163
12170
  linePositionY = 0;
12164
12171
  } else if (textBaseline === 'alphabetic') {
12165
12172
  linePositionY = -height + lineHeight * 0.25;
12173
+ // linePositionY = -height + fontProperties.ascent;
12166
12174
  } else if (textBaseline === 'ideographic') {
12167
12175
  linePositionY = -height;
12168
12176
  }