Skip to content

Commit

Permalink
Release (#1538)
Browse files Browse the repository at this point in the history
* fix: marker's parentNode should not be null (#1536)

* fix: check marker's parent non-null #1535

* chore: commit changeset

* chore(release): bump version (#1537)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 7, 2023
1 parent 57e5219 commit 4d9815b
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 8 deletions.
7 changes: 7 additions & 0 deletions packages/g-mobile-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-mobile-webgl

## 0.9.22

### Patch Changes

- Updated dependencies [7c3543dd]
- @antv/g-plugin-device-renderer@1.9.19

## 0.9.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-webgl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-webgl",
"version": "0.9.21",
"version": "0.9.22",
"description": "A renderer implemented by WebGL1/2 in mobile environment",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-plugin-3d/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-plugin-3d

## 1.9.19

### Patch Changes

- Updated dependencies [7c3543dd]
- @antv/g-plugin-device-renderer@1.9.19

## 1.9.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-3d/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-3d",
"version": "1.9.18",
"version": "1.9.19",
"description": "Provide 3D extension for G",
"keywords": [
"antv",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-device-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-device-renderer

## 1.9.19

### Patch Changes

- 7c3543dd: Check marker's parentNode should not be null.

## 1.9.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-device-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-device-renderer",
"version": "1.9.18",
"version": "1.9.19",
"description": "A G plugin of renderer implementation with GPUDevice",
"keywords": [
"antv",
Expand Down
14 changes: 12 additions & 2 deletions packages/g-plugin-device-renderer/src/drawcalls/InstancedPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,12 @@ export function updateBuffer(
let x: number;
let y: number;

if (markerStart && isDisplayObject(markerStart) && markerStartOffset) {
if (
markerStart &&
markerStart.parentNode &&
isDisplayObject(markerStart) &&
markerStartOffset
) {
const [p1, p2] = (markerStart.parentNode as Path).getStartTangent();
x = p1[0] - p2[0];
y = p1[1] - p2[1];
Expand All @@ -579,7 +584,12 @@ export function updateBuffer(
startOffsetY = Math.sin(rad) * (markerStartOffset || 0);
}

if (markerEnd && isDisplayObject(markerEnd) && markerEndOffset) {
if (
markerEnd &&
markerEnd.parentNode &&
isDisplayObject(markerEnd) &&
markerEndOffset
) {
const [p1, p2] = (markerEnd.parentNode as Path).getEndTangent();
x = p1[0] - p2[0];
y = p1[1] - p2[1];
Expand Down
6 changes: 6 additions & 0 deletions packages/g-web-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-web-components

## 1.9.22

### Patch Changes

- @antv/g-webgl@1.9.22

## 1.9.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-web-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-web-components",
"version": "1.9.21",
"version": "1.9.22",
"description": "A declarative usage for G implemented with WebComponents",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-webgl

## 1.9.22

### Patch Changes

- Updated dependencies [7c3543dd]
- @antv/g-plugin-device-renderer@1.9.19

## 1.9.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-webgl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-webgl",
"version": "1.9.21",
"version": "1.9.22",
"description": "A renderer implemented by WebGL1/2",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-webgpu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-webgpu

## 1.9.22

### Patch Changes

- Updated dependencies [7c3543dd]
- @antv/g-plugin-device-renderer@1.9.19

## 1.9.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-webgpu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-webgpu",
"version": "1.9.21",
"version": "1.9.22",
"description": "A renderer implemented by WebGPU",
"keywords": [
"antv",
Expand Down

0 comments on commit 4d9815b

Please sign in to comment.