@antv/g-webgpu 1.6.0 → 1.6.1

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
@@ -13132,14 +13132,13 @@
13132
13132
  }
13133
13133
 
13134
13134
  var instance = this.instance;
13135
- var instancedAttributes = ['fontFamily', 'fontWeight', 'textBaseline', 'letterSpacing']; // fontStack & fontSize should be same
13136
-
13137
- if (instance.parsedStyle.fontSize.value !== object.parsedStyle.fontSize.value) {
13138
- return false;
13139
- }
13135
+ var instancedAttributes = ['fontSize', 'fontFamily', 'fontWeight', 'textBaseline', 'letterSpacing']; // fontStack & fontSize should be same
13136
+ // if (instance.parsedStyle.fontSize.value !== object.parsedStyle.fontSize.value) {
13137
+ // return false;
13138
+ // }
13140
13139
 
13141
13140
  if (instance.parsedStyle.metrics.font !== object.parsedStyle.metrics.font || instancedAttributes.some(function (name) {
13142
- return instance.parsedStyle[name] !== object.parsedStyle[name];
13141
+ return instance.parsedStyle[name].value !== object.parsedStyle[name].value;
13143
13142
  })) {
13144
13143
  return false;
13145
13144
  }
@@ -13154,8 +13153,7 @@
13154
13153
  var _object$parsedStyle = object.parsedStyle,
13155
13154
  textBaseline = _object$parsedStyle.textBaseline,
13156
13155
  fontSize = _object$parsedStyle.fontSize,
13157
- _object$parsedStyle$l = _object$parsedStyle.letterSpacing,
13158
- letterSpacing = _object$parsedStyle$l === void 0 ? 0 : _object$parsedStyle$l; // scale current font size to base(24)
13156
+ letterSpacing = _object$parsedStyle.letterSpacing; // scale current font size to base(24)
13159
13157
 
13160
13158
  var fontScale = BASE_FONT_WIDTH / fontSize.value;
13161
13159
  var indices = [];
@@ -13206,7 +13204,7 @@
13206
13204
  lineHeight: fontScale * lineHeight,
13207
13205
  offsetX: fontScale * offsetX,
13208
13206
  offsetY: fontScale * (linePositionY + offsetY),
13209
- letterSpacing: fontScale * letterSpacing,
13207
+ letterSpacing: fontScale * letterSpacing.value,
13210
13208
  glyphAtlas: glyphAtlas,
13211
13209
  indicesOffset: indicesOff
13212
13210
  }),
@@ -14128,6 +14126,9 @@
14128
14126
  */
14129
14127
 
14130
14128
  renderingService.hooks.beginFrame.tap(RenderGraphPlugin_1.tag, function () {
14129
+ // if (this.renderingContext.renderListCurrentFrame.length === 0) {
14130
+ // return;
14131
+ // }
14131
14132
  var canvas = _this.swapChain.getCanvas();
14132
14133
 
14133
14134
  var renderInstManager = _this.renderHelper.renderInstManager;
@@ -14169,6 +14170,9 @@
14169
14170
  _this.builder.resolveRenderTargetToExternalTexture(mainColorTargetID, _this.swapChain.getOnscreenTexture());
14170
14171
  });
14171
14172
  renderingService.hooks.endFrame.tap(RenderGraphPlugin_1.tag, function () {
14173
+ // if (this.renderingContext.renderListCurrentFrame.length === 0) {
14174
+ // return;
14175
+ // }
14172
14176
  var renderInstManager = _this.renderHelper.renderInstManager; // TODO: time for GPU Animation
14173
14177
  // const timeInMilliseconds = window.performance.now();
14174
14178
  // Push our outer template, which contains the dynamic UBO bindings...