Skip to content

Commit

Permalink
Release (#1453)
Browse files Browse the repository at this point in the history
* fix: pass global runtime in svg element lifecycle contribution (#1451)

* fix: pass global runtime in svg element lifecycle contribution

* chore: commit changeset

* fix: revert stopPropagation in g-gesture

* chore: commit changeset

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

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 Aug 1, 2023
1 parent deaa7d8 commit 6f0a82e
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 13 deletions.
6 changes: 6 additions & 0 deletions packages/g-gesture/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-gesture

## 2.2.9

### Patch Changes

- 5d384146: Revert stopPropagation in g-gesture

## 2.2.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-gesture/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-gesture",
"version": "2.2.8",
"version": "2.2.9",
"description": "G Gesture",
"keywords": [
"antv",
Expand Down
2 changes: 0 additions & 2 deletions packages/g-gesture/src/gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class Gesture extends EventEmitter {
} else {
el.isMutationObserved = true;
el.on(ElementEvent.MOUNTED, (e) => {
e.stopPropagation();
el.ownerDocument?.defaultView.addEventListener(
'pointermove',
// @ts-ignore
Expand All @@ -107,7 +106,6 @@ class Gesture extends EventEmitter {
el.ownerDocument?.defaultView.addEventListener('pointerup', this._end);
} else {
el.on(ElementEvent.MOUNTED, (e) => {
e.stopPropagation();
// @ts-ignore
el.ownerDocument?.defaultView.addEventListener('pointerup', this._end);
});
Expand Down
7 changes: 7 additions & 0 deletions packages/g-plugin-rough-svg-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-plugin-rough-svg-renderer

## 1.9.8

### Patch Changes

- 5d384146: Revert stopPropagation in g-gesture
- 5d384146: Pass global runtime in svg element lifecycle contribution.

## 1.9.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-rough-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-rough-svg-renderer",
"version": "1.9.7",
"version": "1.9.8",
"description": "A G plugin of renderer implementation with rough.js",
"keywords": [
"antv",
Expand Down
13 changes: 8 additions & 5 deletions packages/g-plugin-rough-svg-renderer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import { AbstractRendererPlugin } from '@antv/g-lite';
import { AbstractRendererPlugin, GlobalRuntime } from '@antv/g-lite';
import { RoughElementLifeCycleContribution } from './RoughElementLifeCycleContribution';
import { RoughRendererPlugin } from './RoughRendererPlugin';
export class Plugin extends AbstractRendererPlugin {
name = 'rough-svg-renderer';
init(): void {
const roughElementLifeCycleContribution = new RoughElementLifeCycleContribution(this.context);
init(runtime: GlobalRuntime): void {
const roughElementLifeCycleContribution =
new RoughElementLifeCycleContribution(this.context, runtime);

// @ts-ignore
this.context.SVGElementLifeCycleContribution = roughElementLifeCycleContribution;
this.context.SVGElementLifeCycleContribution =
roughElementLifeCycleContribution;

this.addRenderingPlugin(new RoughRendererPlugin());
}
destroy(): void {
this.removeAllRenderingPlugins();

// @ts-ignore
this.context.SVGElementLifeCycleContribution = this.context.defaultElementLifeCycleContribution;
this.context.SVGElementLifeCycleContribution =
this.context.defaultElementLifeCycleContribution;
}
}
7 changes: 7 additions & 0 deletions packages/g-plugin-zdog-svg-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-plugin-zdog-svg-renderer

## 1.2.8

### Patch Changes

- 5d384146: Revert stopPropagation in g-gesture
- 5d384146: Pass global runtime in svg element lifecycle contribution.

## 1.2.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-zdog-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-zdog-svg-renderer",
"version": "1.2.7",
"version": "1.2.8",
"description": "A G plugin of renderer implementation with Zdog",
"keywords": [
"antv",
Expand Down
6 changes: 3 additions & 3 deletions packages/g-plugin-zdog-svg-renderer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AbstractRendererPlugin } from '@antv/g-lite';
import { AbstractRendererPlugin, GlobalRuntime } from '@antv/g-lite';
import { ZdogElementLifeCycleContribution } from './ZdogElementLifeCycleContribution';
import { ZdogRendererPlugin } from './ZdogRendererPlugin';
export class Plugin extends AbstractRendererPlugin {
name = 'zdog-svg-renderer';
init(): void {
init(runtime: GlobalRuntime): void {
const zdogElementLifeCycleContribution =
new ZdogElementLifeCycleContribution(this.context);
new ZdogElementLifeCycleContribution(this.context, runtime);

// @ts-ignore
this.context.SVGElementLifeCycleContribution =
Expand Down

0 comments on commit 6f0a82e

Please sign in to comment.