Skip to content

Commit

Permalink
Merge e2b7b3d into b68c0dd
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed May 23, 2023
2 parents b68c0dd + e2b7b3d commit 419704b
Show file tree
Hide file tree
Showing 75 changed files with 376 additions and 191 deletions.
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.0.38",
"version": "1.0.39",
"description": "A simple implementation of Camera API.",
"keywords": [
"antv",
Expand Down
14 changes: 7 additions & 7 deletions 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.9.44",
"version": "1.9.45",
"description": "A renderer implemented by Canvas 2D API",
"keywords": [
"antv",
Expand Down Expand Up @@ -32,12 +32,12 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-plugin-canvas-path-generator": "^1.1.49",
"@antv/g-plugin-canvas-picker": "^1.8.48",
"@antv/g-plugin-canvas-renderer": "^1.7.56",
"@antv/g-plugin-dom-interaction": "^1.7.48",
"@antv/g-plugin-html-renderer": "^1.7.52",
"@antv/g-plugin-image-loader": "^1.1.50",
"@antv/g-plugin-canvas-path-generator": "^1.1.50",
"@antv/g-plugin-canvas-picker": "^1.8.49",
"@antv/g-plugin-canvas-renderer": "^1.7.57",
"@antv/g-plugin-dom-interaction": "^1.7.49",
"@antv/g-plugin-html-renderer": "^1.7.53",
"@antv/g-plugin-image-loader": "^1.1.51",
"@antv/util": "^3.3.1",
"@types/offscreencanvas": "^2019.6.4",
"tslib": "^2.3.1"
Expand Down
14 changes: 7 additions & 7 deletions 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.8.41",
"version": "0.8.42",
"description": "A renderer implemented by CanvasKit",
"keywords": [
"antv",
Expand Down Expand Up @@ -32,12 +32,12 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-plugin-canvas-path-generator": "^1.1.49",
"@antv/g-plugin-canvas-picker": "^1.8.48",
"@antv/g-plugin-canvaskit-renderer": "^1.1.50",
"@antv/g-plugin-dom-interaction": "^1.7.48",
"@antv/g-plugin-html-renderer": "^1.7.52",
"@antv/g-plugin-image-loader": "^1.1.50",
"@antv/g-plugin-canvas-path-generator": "^1.1.50",
"@antv/g-plugin-canvas-picker": "^1.8.49",
"@antv/g-plugin-canvaskit-renderer": "^1.1.51",
"@antv/g-plugin-dom-interaction": "^1.7.49",
"@antv/g-plugin-html-renderer": "^1.7.53",
"@antv/g-plugin-image-loader": "^1.1.51",
"@antv/util": "^3.3.1",
"canvaskit-wasm": "^0.34.0",
"tslib": "^2.3.1"
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.7.47",
"version": "1.7.48",
"description": "Components for g",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-css-layout-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-css-layout-api",
"version": "1.0.36",
"version": "1.0.37",
"description": "A simple implementation of CSS Layout API.",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-css-typed-om-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-css-typed-om-api",
"version": "1.0.36",
"version": "1.0.37",
"description": "A simple implementation of CSS Typed OM API.",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-devtool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-devtool",
"version": "0.10.47",
"version": "0.10.48",
"private": true,
"description": "devtool for g in browser",
"license": "MIT",
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.0.36",
"version": "1.0.37",
"description": "A simple implementation of DOM MutationObserver API.",
"keywords": [
"antv",
Expand Down
6 changes: 3 additions & 3 deletions packages/g-gesture/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-gesture",
"version": "0.0.79",
"version": "0.0.80",
"description": "G Gesture",
"keywords": [
"antv",
Expand Down Expand Up @@ -34,8 +34,8 @@
"eventemitter3": "^4.0.0"
},
"devDependencies": {
"@antv/g-mobile-canvas": "^0.8.52",
"@antv/g-mobile-canvas-element": "^0.6.47"
"@antv/g-mobile-canvas": "^0.8.53",
"@antv/g-mobile-canvas-element": "^0.6.48"
},
"peerDependencies": {
"@antv/g-lite": "^1.0.0"
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.5.48",
"version": "0.5.49",
"description": "A image exporter for G using DOM API",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-layout-blocklike/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-layout-blocklike",
"version": "1.7.47",
"version": "1.7.48",
"description": "A blocklike layout",
"keywords": [
"antv",
Expand Down
4 changes: 2 additions & 2 deletions 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.0.60",
"version": "1.0.62",
"description": "A core module for rendering engine implements DOM API.",
"keywords": [
"antv",
Expand Down Expand Up @@ -32,7 +32,7 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-math": "^1.7.47",
"@antv/g-math": "^1.7.48",
"@antv/util": "^3.3.1",
"@types/offscreencanvas": "^2019.6.4",
"d3-color": "^1.4.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-lite/src/css/StyleValueRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ export const BUILT_IN_PROPERTIES: PropertyMetadata[] = [
d: '0',
syntax: PropertySyntax.COORDINATE,
},
{
n: 'cz',
int: true,
d: '0',
syntax: PropertySyntax.COORDINATE,
},
{
n: 'r',
int: true,
Expand Down Expand Up @@ -1281,6 +1287,8 @@ export class DefaultStyleValueRegistry implements StyleValueRegistry {
// <Text> use textAlign & textBaseline instead of anchor
if (nodeName === Shape.TEXT) {
delete parsedStyle.anchor;
} else if (nodeName === Shape.MESH) {
parsedStyle.anchor[2] = 0.5;
}

const center: Tuple3Number = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ export class CSSPropertyLocalPosition
switch (object.nodeName) {
case Shape.CIRCLE:
case Shape.ELLIPSE:
const { cx, cy } = (object as Circle).parsedStyle;
const { cx, cy, cz } = (object as Circle).parsedStyle;
if (!isNil(cx)) {
x = cx;
}
if (!isNil(cy)) {
y = cy;
}
if (!isNil(cz)) {
z = cz;
}
break;
case Shape.LINE:
const { x1, x2, y1, y2 } = (object as Line).parsedStyle;
Expand Down
4 changes: 4 additions & 0 deletions packages/g-lite/src/display-objects/Circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ import { DisplayObject } from './DisplayObject';
export interface CircleStyleProps extends BaseStyleProps {
cx?: number | string | null;
cy?: number | string | null;
cz?: number | string | null;
r: number | string | null;
isBillboard?: boolean;
}
export interface ParsedCircleStyleProps extends ParsedBaseStyleProps {
cx: number;
cy: number;
cz?: number;
r: number;
isBillboard?: boolean;
}
export class Circle extends DisplayObject<
CircleStyleProps,
Expand Down
4 changes: 4 additions & 0 deletions packages/g-lite/src/display-objects/Ellipse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ import { DisplayObject } from './DisplayObject';
export interface EllipseStyleProps extends BaseStyleProps {
cx?: number | string;
cy?: number | string;
cz?: number | string;
rx: number | string;
ry: number | string;
isBillboard?: boolean;
}
export interface ParsedEllipseStyleProps extends ParsedBaseStyleProps {
cx: number;
cy: number;
cz?: number;
rx: number;
ry: number;
isBillboard?: boolean;
}
export class Ellipse extends DisplayObject<
EllipseStyleProps,
Expand Down
4 changes: 4 additions & 0 deletions packages/g-lite/src/display-objects/Rect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import { DisplayObject } from './DisplayObject';
export interface RectStyleProps extends BaseStyleProps {
x?: number | string;
y?: number | string;
z?: number;
width: number | string;
height: number | string;
isBillboard?: boolean;
/**
* top-left, top-right, bottom-right, bottom-left
*/
Expand All @@ -18,8 +20,10 @@ export interface RectStyleProps extends BaseStyleProps {
export interface ParsedRectStyleProps extends ParsedBaseStyleProps {
x?: number;
y?: number;
z?: number;
width: number;
height: number;
isBillboard?: boolean;
radius?: [number, number, number, number];
}

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.0.36",
"version": "0.0.37",
"description": "A lottie player for G",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-math/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-math",
"version": "1.7.47",
"version": "1.7.48",
"description": "Geometry util",
"keywords": [
"antv",
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.6.47",
"version": "0.6.48",
"description": "Create a CanvasLike element from existed context in mobile environment",
"keywords": [
"antv",
Expand Down
12 changes: 6 additions & 6 deletions 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.8.52",
"version": "0.8.53",
"description": "A renderer implemented with Canvas2D API in mobile environment",
"keywords": [
"antv",
Expand Down Expand Up @@ -30,11 +30,11 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-plugin-canvas-path-generator": "^1.1.49",
"@antv/g-plugin-canvas-picker": "^1.8.48",
"@antv/g-plugin-canvas-renderer": "^1.7.56",
"@antv/g-plugin-image-loader": "^1.1.50",
"@antv/g-plugin-mobile-interaction": "^0.7.47",
"@antv/g-plugin-canvas-path-generator": "^1.1.50",
"@antv/g-plugin-canvas-picker": "^1.8.49",
"@antv/g-plugin-canvas-renderer": "^1.7.57",
"@antv/g-plugin-image-loader": "^1.1.51",
"@antv/g-plugin-mobile-interaction": "^0.7.48",
"@antv/util": "^3.3.1",
"tslib": "^2.3.1"
},
Expand Down
8 changes: 4 additions & 4 deletions 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.8.56",
"version": "0.8.57",
"description": "A renderer implemented by SVG in mobile environment",
"keywords": [
"antv",
Expand Down Expand Up @@ -30,9 +30,9 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-plugin-mobile-interaction": "^0.7.47",
"@antv/g-plugin-svg-picker": "^1.7.49",
"@antv/g-plugin-svg-renderer": "^1.8.56",
"@antv/g-plugin-mobile-interaction": "^0.7.48",
"@antv/g-plugin-svg-picker": "^1.7.50",
"@antv/g-plugin-svg-renderer": "^1.8.57",
"@antv/util": "^3.3.1",
"tslib": "^2.3.1"
},
Expand Down
14 changes: 7 additions & 7 deletions 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.7.64",
"version": "0.7.66",
"description": "A renderer implemented by WebGL1/2 in mobile environment",
"keywords": [
"antv",
Expand Down Expand Up @@ -30,12 +30,12 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-plugin-device-renderer": "^1.7.60",
"@antv/g-plugin-dragndrop": "^1.6.47",
"@antv/g-plugin-html-renderer": "^1.7.52",
"@antv/g-plugin-image-loader": "^1.1.50",
"@antv/g-plugin-mobile-interaction": "^0.7.47",
"@antv/g-plugin-webgl-device": "^1.7.49",
"@antv/g-plugin-device-renderer": "^1.7.62",
"@antv/g-plugin-dragndrop": "^1.6.48",
"@antv/g-plugin-html-renderer": "^1.7.53",
"@antv/g-plugin-image-loader": "^1.1.51",
"@antv/g-plugin-mobile-interaction": "^0.7.48",
"@antv/g-plugin-webgl-device": "^1.7.50",
"@antv/util": "^3.3.1"
},
"devDependencies": {
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.0.17",
"version": "1.0.18",
"description": "A pattern libs for G",
"keywords": [
"antv",
Expand Down
4 changes: 2 additions & 2 deletions 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.7.49",
"version": "1.7.51",
"description": "Provide 3D extension for G",
"keywords": [
"antv",
Expand Down Expand Up @@ -30,7 +30,7 @@
"sync": "tnpm sync"
},
"dependencies": {
"@antv/g-shader-components": "^1.7.47",
"@antv/g-shader-components": "^1.7.49",
"gl-matrix": "^3.1.0",
"tslib": "^2.3.1"
},
Expand Down

0 comments on commit 419704b

Please sign in to comment.