@antv/g-webgpu 1.7.4 → 1.7.8

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
@@ -11187,7 +11187,7 @@
11187
11187
  defX: _defX2,
11188
11188
  defY: _defY2,
11189
11189
  lineCap: _lineCap2,
11190
- isBillboard: true,
11190
+ isBillboard: false,
11191
11191
  markerStart: _markerStart,
11192
11192
  markerEnd: _markerEnd,
11193
11193
  markerStartOffset: _markerStartOffset,
@@ -12216,8 +12216,8 @@
12216
12216
  var triangles = [];
12217
12217
 
12218
12218
  if (object.nodeName === g.Shape.POLYLINE || object.nodeName === g.Shape.POLYGON) {
12219
- var polylinePoints = object.parsedStyle.points.points;
12220
- var length = polylinePoints.length;
12219
+ var polylineControlPoints = object.parsedStyle.points.points;
12220
+ var length = polylineControlPoints.length;
12221
12221
  var startOffsetX = 0;
12222
12222
  var startOffsetY = 0;
12223
12223
  var endOffsetX = 0;
@@ -12227,22 +12227,22 @@
12227
12227
  var y;
12228
12228
 
12229
12229
  if (markerStart && markerStart instanceof g.DisplayObject && markerStartOffset) {
12230
- x = polylinePoints[1][0] - polylinePoints[0][0];
12231
- y = polylinePoints[1][1] - polylinePoints[0][1];
12230
+ x = polylineControlPoints[1][0] - polylineControlPoints[0][0];
12231
+ y = polylineControlPoints[1][1] - polylineControlPoints[0][1];
12232
12232
  rad = Math.atan2(y, x);
12233
12233
  startOffsetX = Math.cos(rad) * (markerStartOffset || 0);
12234
12234
  startOffsetY = Math.sin(rad) * (markerStartOffset || 0);
12235
12235
  }
12236
12236
 
12237
12237
  if (markerEnd && markerEnd instanceof g.DisplayObject && markerEndOffset) {
12238
- x = polylinePoints[length - 2][0] - polylinePoints[length - 1][0];
12239
- y = polylinePoints[length - 2][1] - polylinePoints[length - 1][1];
12238
+ x = polylineControlPoints[length - 2][0] - polylineControlPoints[length - 1][0];
12239
+ y = polylineControlPoints[length - 2][1] - polylineControlPoints[length - 1][1];
12240
12240
  rad = Math.atan2(y, x);
12241
12241
  endOffsetX = Math.cos(rad) * (markerEndOffset || 0);
12242
12242
  endOffsetY = Math.sin(rad) * (markerEndOffset || 0);
12243
12243
  }
12244
12244
 
12245
- points[0] = polylinePoints.reduce(function (prev, cur, i) {
12245
+ points[0] = polylineControlPoints.reduce(function (prev, cur, i) {
12246
12246
  var offsetX = 0;
12247
12247
  var offsetY = 0;
12248
12248