@antv/g-gesture
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,2 +0,2 @@ | ||
import { mat4, vec3 } from 'gl-matrix'; | ||
import { mat4, vec2, vec3 } from 'gl-matrix'; | ||
/** | ||
@@ -18,2 +18,6 @@ * do RTS transformation for 2D/3D | ||
/** | ||
* @see https://www.w3.org/TR/css-transforms-1/#SkewDefined | ||
*/ | ||
localSkew: vec2; | ||
/** | ||
* world space RTS | ||
@@ -20,0 +24,0 @@ */ |
@@ -91,3 +91,3 @@ import { Syringe } from 'mana-syringe'; | ||
*/ | ||
defaultValue?: string; | ||
defaultValue?: string | ((nodeName: string) => string); | ||
/** | ||
@@ -94,0 +94,0 @@ * The resolved value used for getComputedStyle() depends on layout for this |
@@ -1,6 +0,6 @@ | ||
import type { CurveArray } from '@antv/util'; | ||
import type { CurveArray, PathArray } from '@antv/util'; | ||
import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects'; | ||
import type { IElement } from '../../dom'; | ||
export declare function parsePath(path: string, object: DisplayObject): ParsedPathStyleProps['path']; | ||
export declare function parsePath(path: string | PathArray, object: DisplayObject): ParsedPathStyleProps['path']; | ||
export declare function mergePaths(left: ParsedPathStyleProps['path'], right: ParsedPathStyleProps['path'], object: IElement): [CurveArray, CurveArray, (b: CurveArray) => CurveArray]; | ||
//# sourceMappingURL=path.d.ts.map |
@@ -13,3 +13,4 @@ import type { DisplayObject } from '../../display-objects'; | ||
export declare function parseTransform(string: string): ParsedTransform[]; | ||
export declare function convertItemToMatrix(item: ParsedTransform): number[]; | ||
export declare function mergeTransforms(left: ParsedTransform[], right: ParsedTransform[], target: DisplayObject | null): [number[][], number[][], (d: number[][]) => string]; | ||
//# sourceMappingURL=transform.d.ts.map |
@@ -115,4 +115,6 @@ import type { mat3, vec2 } from 'gl-matrix'; | ||
setLocalRotation(rotation: quat | number, y?: number, z?: number, w?: number): this; | ||
setLocalSkew(skew: vec2 | number, y?: number): this; | ||
getRotation(): quat; | ||
getLocalRotation(): quat; | ||
getLocalSkew(): vec2; | ||
getLocalTransform(): mat4; | ||
@@ -119,0 +121,0 @@ getWorldTransform(): mat4; |
@@ -49,3 +49,2 @@ import type { Camera } from '../camera'; | ||
BOUNDS_CHANGED = "bounds-changed", | ||
GEOMETRY_BOUNDS_CHANGED = "geometry-bounds-changed", | ||
/** | ||
@@ -52,0 +51,0 @@ * trigger when z-index changed |
@@ -1,3 +0,2 @@ | ||
import type { vec2 } from 'gl-matrix'; | ||
import { mat4, quat, vec3 } from 'gl-matrix'; | ||
import { mat4, quat, vec2, vec3 } from 'gl-matrix'; | ||
import { Syringe } from 'mana-syringe'; | ||
@@ -24,2 +23,3 @@ import type { Transform } from '../components'; | ||
getScale: (element: INode) => vec3; | ||
getLocalSkew: (element: INode) => vec2; | ||
translate: (element: INode, translation: vec3 | number, y?: number, z?: number) => void; | ||
@@ -29,2 +29,3 @@ translateLocal: (element: INode, translation: vec3 | number, y?: number, z?: number) => void; | ||
getLocalPosition: (element: INode) => vec3; | ||
setLocalSkew: (element: INode, skew: vec2 | number, y?: number) => void; | ||
setEulerAngles: (element: INode, degrees: vec3 | number, y?: number, z?: number) => void; | ||
@@ -125,2 +126,3 @@ setLocalEulerAngles: (element: INode, degrees: vec3 | number, y?: number, z?: number) => void; | ||
setLocalRotation(element: INode, rotation: quat | number, y?: number, z?: number, w?: number): void; | ||
setLocalSkew(element: INode, skew: vec2 | number, y?: number): void; | ||
dirtifyLocal(element: INode, transform: Transform): void; | ||
@@ -135,2 +137,4 @@ dirtifyWorld(element: INode, transform: Transform): void; | ||
getLocalScale(element: INode): vec3; | ||
getLocalSkew(element: INode): vec2; | ||
private calcLocalTransform; | ||
getLocalTransform(element: INode): mat4; | ||
@@ -137,0 +141,0 @@ setLocalTransform(element: INode, transform: mat4): void; |
@@ -51,7 +51,2 @@ import type { vec2, vec3 } from 'gl-matrix'; | ||
/** | ||
* use `pointerEvents` instead | ||
* @deprecated | ||
*/ | ||
interactive?: boolean; | ||
/** | ||
* @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/pointer-events | ||
@@ -58,0 +53,0 @@ */ |
@@ -1,3 +0,6 @@ | ||
export declare function camelCase(str?: string): any; | ||
export declare const camelCase: { | ||
(...args: any[]): any; | ||
cache: Map<any, any>; | ||
}; | ||
export declare function isString(str: any): str is string; | ||
//# sourceMappingURL=string.d.ts.map |
{ | ||
"name": "@antv/g-gesture", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "G Gesture", | ||
@@ -34,4 +34,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@antv/g-mobile-canvas": "^0.4.0", | ||
"@antv/g-mobile-canvas-element": "^0.3.0" | ||
"@antv/g-mobile-canvas": "^0.5.0", | ||
"@antv/g-mobile-canvas-element": "^0.4.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "e080a6f903694e931383943c5ad8fbf84731c460" | ||
"gitHead": "464ea5f09af7cd041434233f113feeec3912357e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
978473
13877