@antv/g-gesture
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -341,2 +341,3 @@ import EE from 'eventemitter3'; | ||
var _el$ownerDocument, | ||
_el$document, | ||
_this2 = this; | ||
@@ -352,5 +353,6 @@ | ||
return; | ||
} | ||
} // @ts-ignore | ||
var global = (_el$ownerDocument = el.ownerDocument) === null || _el$ownerDocument === void 0 ? void 0 : _el$ownerDocument.defaultView; | ||
var global = ((_el$ownerDocument = el.ownerDocument) === null || _el$ownerDocument === void 0 ? void 0 : _el$ownerDocument.defaultView) || ((_el$document = el.document) === null || _el$document === void 0 ? void 0 : _el$document.defaultView); | ||
this.throttleTimer = global.requestAnimationFrame(function () { | ||
@@ -357,0 +359,0 @@ for (var i = 0, len = emitThrottles.length; i < len; i++) { |
@@ -347,2 +347,3 @@ 'use strict'; | ||
var _el$ownerDocument, | ||
_el$document, | ||
_this2 = this; | ||
@@ -358,5 +359,6 @@ | ||
return; | ||
} | ||
} // @ts-ignore | ||
var global = (_el$ownerDocument = el.ownerDocument) === null || _el$ownerDocument === void 0 ? void 0 : _el$ownerDocument.defaultView; | ||
var global = ((_el$ownerDocument = el.ownerDocument) === null || _el$ownerDocument === void 0 ? void 0 : _el$ownerDocument.defaultView) || ((_el$document = el.document) === null || _el$document === void 0 ? void 0 : _el$document.defaultView); | ||
this.throttleTimer = global.requestAnimationFrame(function () { | ||
@@ -363,0 +365,0 @@ for (var i = 0, len = emitThrottles.length; i < len; i++) { |
import type { CanvasLike, DataURLOptions } from '@antv/g'; | ||
import { ContextService, Syringe } from '@antv/g'; | ||
import type * as CanvaskitRenderer from '@antv/g-plugin-canvaskit-renderer'; | ||
import type { CanvasKitContext } from '@antv/g-plugin-canvaskit-renderer'; | ||
@@ -7,2 +8,3 @@ export declare const ContextRegisterPluginOptions: Syringe.DefinedToken; | ||
wasmDir: string; | ||
canvaskitRendererPlugin: CanvaskitRenderer.Plugin; | ||
} | ||
@@ -20,3 +22,3 @@ /** | ||
init(): Promise<void>; | ||
getContext(): CanvasKitContext; | ||
getContext(): CanvaskitRenderer.CanvasKitContext; | ||
getDomElement(): CanvasLike; | ||
@@ -28,5 +30,5 @@ getDPR(): number; | ||
applyCursorStyle(cursor: string): void; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<string>; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<any>; | ||
private loadCanvaskit; | ||
} | ||
//# sourceMappingURL=CanvasKitContextService.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export * from './Exporter'; | ||
export * from './ImageExporter'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,9 +0,11 @@ | ||
import type { Canvas, DataURLOptions } from '@antv/g'; | ||
export interface ExporterOptions { | ||
canvas: Canvas; | ||
defaultFilename?: string; | ||
import type { Rectangle } from '@antv/g'; | ||
export interface DownloadImageOptions { | ||
dataURL: string; | ||
name?: string; | ||
} | ||
export interface DownloadImageOptions extends DataURLOptions { | ||
name: string; | ||
export interface CanvasOptions { | ||
clippingRegion: Rectangle; | ||
beforeDrawImage: (context: CanvasRenderingContext2D) => void; | ||
afterDrawImage: (context: CanvasRenderingContext2D) => void; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -6,5 +6,11 @@ import type { RendererConfig } from '@antv/g'; | ||
export { CanvasRenderer, CanvasPicker }; | ||
declare type MobileRenderConfig = Partial<RendererConfig & { | ||
isDocumentDraggable: boolean; | ||
isDocumentDroppable: boolean; | ||
dragstartDistanceThreshold: number; | ||
dragstartTimeThreshold: number; | ||
}>; | ||
export declare class Renderer extends AbstractRenderer { | ||
constructor(config?: Partial<RendererConfig>); | ||
constructor(config?: MobileRenderConfig); | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as MobileInteraction from '@antv/g-plugin-mobile-interaction'; | ||
import * as SVGPicker from '@antv/g-plugin-svg-picker'; | ||
import * as SVGRenderer from '@antv/g-plugin-svg-renderer'; | ||
import * as SVGPicker from '@antv/g-plugin-svg-picker'; | ||
export { MobileInteraction, SVGRenderer, SVGPicker }; | ||
declare type MobileRenderConfig = Partial<RendererConfig & { | ||
isDocumentDraggable: boolean; | ||
isDocumentDroppable: boolean; | ||
dragstartDistanceThreshold: number; | ||
dragstartTimeThreshold: number; | ||
}>; | ||
export declare class Renderer extends AbstractRenderer { | ||
constructor(config?: Partial<RendererConfig>); | ||
constructor(config?: MobileRenderConfig); | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -16,4 +16,4 @@ import type { DataURLOptions } from '@antv/g'; | ||
applyCursorStyle(cursor: string): void; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<string>; | ||
toDataURL(options?: Partial<DataURLOptions>): Promise<string>; | ||
} | ||
//# sourceMappingURL=SVGContextService.d.ts.map |
import type { RendererPlugin, Syringe } from '@antv/g'; | ||
import * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
export declare class ContextRegisterPlugin implements RendererPlugin { | ||
private rendererPlugin; | ||
name: string; | ||
constructor(rendererPlugin: DeviceRenderer.Plugin); | ||
init(container: Syringe.Container): void; | ||
@@ -5,0 +8,0 @@ destroy(container: Syringe.Container): void; |
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as DomInteraction from '@antv/g-plugin-dom-interaction'; | ||
import * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
import * as HTMLRenderer from '@antv/g-plugin-html-renderer'; | ||
import * as DomInteraction from '@antv/g-plugin-mobile-interaction'; | ||
import * as WebGLDevice from '@antv/g-plugin-webgl-device'; | ||
export { DomInteraction, DeviceRenderer, WebGLDevice }; | ||
export { DomInteraction, DeviceRenderer, WebGLDevice, HTMLRenderer }; | ||
interface WebGLRendererConfig extends RendererConfig { | ||
targets: ('webgl1' | 'webgl2')[]; | ||
} | ||
declare type MobileWebglRenderConfig = Partial<WebGLRendererConfig & { | ||
isDocumentDraggable: boolean; | ||
isDocumentDroppable: boolean; | ||
dragstartDistanceThreshold: number; | ||
dragstartTimeThreshold: number; | ||
}>; | ||
export declare class Renderer extends AbstractRenderer { | ||
constructor(config?: Partial<WebGLRendererConfig>); | ||
constructor(config?: MobileWebglRenderConfig); | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,2 +8,3 @@ import type { CanvasLike, DataURLOptions } from '@antv/g'; | ||
private canvasConfig; | ||
private deviceRendererPlugin; | ||
init(): Promise<void>; | ||
@@ -17,4 +18,4 @@ getContext(): WebGLRenderingContext; | ||
applyCursorStyle(cursor: string): void; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<string>; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<any>; | ||
} | ||
//# sourceMappingURL=WebGLContextService.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { RenderingPlugin, RenderingService } from '@antv/g'; | ||
import type { DataURLOptions, RenderingPlugin, RenderingService } from '@antv/g'; | ||
import type { Canvas, InputRect, ManagedSkottieAnimation, Particles } from 'canvaskit-wasm'; | ||
@@ -20,2 +20,6 @@ /** | ||
private particlesList; | ||
private enableCapture; | ||
private captureOptions; | ||
private capturePromise; | ||
private resolveCapturePromise; | ||
playAnimation(name: string, jsonStr: string, bounds?: InputRect, assets?: any): ManagedSkottieAnimation; | ||
@@ -32,3 +36,4 @@ createParticles(jsonStr: string, onFrame?: (canvas: Canvas) => void, assets?: any): Particles; | ||
private renderDisplayObject; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<any>; | ||
} | ||
//# sourceMappingURL=CanvaskitRendererPlugin.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { RendererPlugin, Syringe } from '@antv/g'; | ||
import type { DataURLOptions, RendererPlugin, Syringe } from '@antv/g'; | ||
import type { Canvas, InputRect } from 'canvaskit-wasm'; | ||
@@ -14,3 +14,4 @@ import { CanvaskitRendererPluginOptions } from './interfaces'; | ||
createParticles(jsonStr: string, onFrame?: (canvas: Canvas) => void, assets?: any): import("canvaskit-wasm").Particles; | ||
toDataURL(options: Partial<DataURLOptions>): Promise<any>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
import type { CurveArray } 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 const parsePath: ((path: string, object: DisplayObject) => ParsedPathStyleProps['path']) & import("lodash").MemoizedFunction; | ||
export declare function mergePaths(left: ParsedPathStyleProps['path'], right: ParsedPathStyleProps['path'], object: IElement): [CurveArray, CurveArray, (b: CurveArray) => CurveArray]; | ||
//# sourceMappingURL=path.d.ts.map |
@@ -5,3 +5,3 @@ import type { AbsoluteArray, CurveArray } from '@antv/util'; | ||
import { CSSProperty } from '../CSSProperty'; | ||
import { mergePaths, parsePath } from '../parser/path'; | ||
import { mergePaths } from '../parser/path'; | ||
export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps['path'], ParsedPathStyleProps['path']>> { | ||
@@ -11,3 +11,13 @@ /** | ||
*/ | ||
parser: typeof parsePath; | ||
parser: ((path: string, object: DisplayObject<any, any>) => { | ||
absolutePath: AbsoluteArray; | ||
hasArc: boolean; | ||
segments: import("../../display-objects").PathSegment[]; | ||
polygons: [number, number][][]; | ||
polylines: [number, number][][]; | ||
curve: CurveArray; | ||
totalLength: number; | ||
zCommandIndexes: number[]; | ||
rect: Rectangle; | ||
}) & import("lodash").MemoizedFunction; | ||
calculator(name: string, oldParsed: ParsedPathStyleProps['path'], parsed: ParsedPathStyleProps['path']): { | ||
@@ -14,0 +24,0 @@ absolutePath: AbsoluteArray; |
{ | ||
"name": "@antv/g-gesture", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "G Gesture", | ||
@@ -34,4 +34,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@antv/g-mobile-canvas": "^0.2.3", | ||
"@antv/g-mobile-canvas-element": "^0.1.3" | ||
"@antv/g-mobile-canvas": "^0.3.0", | ||
"@antv/g-mobile-canvas-element": "^0.2.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "e83fa4cd73c6c22a60988c072275d2a191067b87" | ||
"gitHead": "d0d7ed366353cc551e34cd8163a379cd1a8789b6" | ||
} |
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
974617
1183
13822