Skip to content

Commit

Permalink
Release (#1468)
Browse files Browse the repository at this point in the history
* fix: polyfill for performance.now (#1466)

* fix: polyfill for performance.now

* chore: commit changeset

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

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 8, 2023
1 parent ede635a commit 9f11a3a
Show file tree
Hide file tree
Showing 101 changed files with 460 additions and 53 deletions.
7 changes: 7 additions & 0 deletions packages/g-camera-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-camera-api

## 1.2.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 1.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-camera-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-camera-api",
"version": "1.2.10",
"version": "1.2.11",
"description": "A simple implementation of Camera API.",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-canvas

## 1.11.12

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11
- @antv/g-plugin-canvas-path-generator@1.3.11
- @antv/g-plugin-canvas-picker@1.10.11
- @antv/g-plugin-canvas-renderer@1.9.11
- @antv/g-plugin-dom-interaction@1.9.11
- @antv/g-plugin-html-renderer@1.9.12
- @antv/g-plugin-image-loader@1.3.11

## 1.11.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-canvas",
"version": "1.11.11",
"version": "1.11.12",
"description": "A renderer implemented by Canvas 2D API",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-canvaskit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-canvaskit

## 0.10.12

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11
- @antv/g-plugin-canvas-path-generator@1.3.11
- @antv/g-plugin-canvas-picker@1.10.11
- @antv/g-plugin-canvaskit-renderer@1.3.11
- @antv/g-plugin-dom-interaction@1.9.11
- @antv/g-plugin-html-renderer@1.9.12
- @antv/g-plugin-image-loader@1.3.11

## 0.10.11

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

## 1.9.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 1.9.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-components",
"version": "1.9.10",
"version": "1.9.11",
"description": "Components for g",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-dom-mutation-observer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-dom-mutation-observer-api

## 1.2.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 1.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-dom-mutation-observer-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-dom-mutation-observer-api",
"version": "1.2.10",
"version": "1.2.11",
"description": "A simple implementation of DOM MutationObserver API.",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-gesture/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-gesture

## 2.2.13

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 2.2.12

### 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.12",
"version": "2.2.13",
"description": "G Gesture",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-image-exporter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-image-exporter

## 0.7.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 0.7.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-image-exporter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-image-exporter",
"version": "0.7.10",
"version": "0.7.11",
"description": "A image exporter for G using DOM API",
"keywords": [
"antv",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-lite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-lite

## 1.2.11

### Patch Changes

- d63ea0bf: Add polyfill for performance.now.

## 1.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-lite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-lite",
"version": "1.2.10",
"version": "1.2.11",
"description": "A core module for rendering engine implements DOM API.",
"keywords": [
"antv",
Expand Down
4 changes: 2 additions & 2 deletions packages/g-lite/src/plugins/EventPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { RenderingPlugin, RenderingPluginContext } from '../services';
import { Point } from '../shapes';
import type { Cursor, EventPosition, InteractivePointerEvent } from '../types';
import type { FormattedPointerEvent, FormattedTouch } from '../utils/event';
import { MOUSE_POINTER_ID, TOUCH_TO_POINTER } from '../utils/event';
import { MOUSE_POINTER_ID, TOUCH_TO_POINTER, clock } from '../utils/event';

/**
* support mouse & touch events
Expand Down Expand Up @@ -309,7 +309,7 @@ export class EventPlugin implements RenderingPlugin {
): void {
event.isTrusted = nativeEvent.isTrusted;
event.srcElement = nativeEvent.srcElement as IEventTarget;
event.timeStamp = performance.now();
event.timeStamp = clock.now();
event.type = nativeEvent.type;

event.altKey = nativeEvent.altKey;
Expand Down
5 changes: 3 additions & 2 deletions packages/g-lite/src/services/EventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import type { PointLike } from '../shapes';
import { Point } from '../shapes';
import type { Cursor, EventPosition } from '../types';
import { isElement } from '../utils/dom';
import { clock } from '../utils/event';

type Picker = (position: EventPosition) => IEventTarget | null;
type TrackingData = {
Expand Down Expand Up @@ -200,7 +201,7 @@ export class EventService {
};

onPointerUp = (from: FederatedPointerEvent) => {
const now = performance.now();
const now = clock.now();
const e = this.createPointerEvent(
from,
undefined,
Expand Down Expand Up @@ -906,7 +907,7 @@ export class EventService {

private copyData(from: FederatedEvent, to: FederatedEvent) {
to.isTrusted = from.isTrusted;
to.timeStamp = performance.now();
to.timeStamp = clock.now();
to.type = from.type;
to.detail = from.detail;
to.view = from.view;
Expand Down
3 changes: 3 additions & 0 deletions packages/g-lite/src/utils/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ export interface FormattedTouch extends Touch {
isNormalized: boolean;
type: string;
}

export const clock =
typeof performance === 'object' && performance.now ? performance : Date;
7 changes: 7 additions & 0 deletions packages/g-lottie-player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-lottie-player

## 0.2.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 0.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-lottie-player/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-lottie-player",
"version": "0.2.10",
"version": "0.2.11",
"description": "A lottie player for G",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-mobile-canvas-element/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-mobile-canvas-element

## 0.8.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 0.8.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-canvas-element/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-canvas-element",
"version": "0.8.10",
"version": "0.8.11",
"description": "Create a CanvasLike element from existed context in mobile environment",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-mobile-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-mobile-canvas

## 0.10.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11
- @antv/g-plugin-canvas-path-generator@1.3.11
- @antv/g-plugin-canvas-picker@1.10.11
- @antv/g-plugin-canvas-renderer@1.9.11
- @antv/g-plugin-dragndrop@1.8.11
- @antv/g-plugin-image-loader@1.3.11
- @antv/g-plugin-mobile-interaction@0.9.11

## 0.10.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-canvas",
"version": "0.10.10",
"version": "0.10.11",
"description": "A renderer implemented with Canvas2D API in mobile environment",
"keywords": [
"antv",
Expand Down
11 changes: 11 additions & 0 deletions packages/g-mobile-svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @antv/g-mobile-svg

## 0.10.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11
- @antv/g-plugin-dragndrop@1.8.11
- @antv/g-plugin-mobile-interaction@0.9.11
- @antv/g-plugin-svg-picker@1.9.11
- @antv/g-plugin-svg-renderer@1.10.11

## 0.10.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-svg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-svg",
"version": "0.10.10",
"version": "0.10.11",
"description": "A renderer implemented by SVG in mobile environment",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-mobile-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-mobile-webgl

## 0.9.14

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11
- @antv/g-plugin-device-renderer@1.9.13
- @antv/g-plugin-dragndrop@1.8.11
- @antv/g-plugin-html-renderer@1.9.12
- @antv/g-plugin-image-loader@1.3.11
- @antv/g-plugin-mobile-interaction@0.9.11
- @antv/g-plugin-webgl-device@1.9.13

## 0.9.13

### 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.13",
"version": "0.9.14",
"description": "A renderer implemented by WebGL1/2 in mobile environment",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-pattern/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-pattern

## 1.2.11

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11

## 1.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-pattern/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-pattern",
"version": "1.2.10",
"version": "1.2.11",
"description": "A pattern libs for G",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-plugin-3d/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-plugin-3d

## 1.9.13

### Patch Changes

- Updated dependencies [d63ea0bf]
- @antv/g-lite@1.2.11
- @antv/g-plugin-device-renderer@1.9.13

## 1.9.12

### 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.12",
"version": "1.9.13",
"description": "Provide 3D extension for G",
"keywords": [
"antv",
Expand Down
Loading

0 comments on commit 9f11a3a

Please sign in to comment.