@antv/g-gesture
Advanced tools
Comparing version 0.0.2-alpha.1 to 0.0.2
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as CanvasPathGenerator from '@antv/g-plugin-canvas-path-generator'; | ||
import * as CanvasPicker from '@antv/g-plugin-canvas-picker'; | ||
import * as CanvasRenderer from '@antv/g-plugin-canvas-renderer'; | ||
import * as DomInteraction from '@antv/g-plugin-dom-interaction'; | ||
import * as HTMLRenderer from '@antv/g-plugin-html-renderer'; | ||
import * as ImageLoader from '@antv/g-plugin-image-loader'; | ||
export { CanvasPathGenerator, CanvasPicker, CanvasRenderer, DomInteraction, HTMLRenderer, ImageLoader, }; | ||
export declare class Renderer extends AbstractRenderer { | ||
@@ -4,0 +11,0 @@ constructor(config?: Partial<RendererConfig>); |
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as CanvasPathGenerator from '@antv/g-plugin-canvas-path-generator'; | ||
import * as CanvasPicker from '@antv/g-plugin-canvas-picker'; | ||
@@ -7,4 +8,5 @@ import * as CanvaskitRenderer from '@antv/g-plugin-canvaskit-renderer'; | ||
import * as HTMLRenderer from '@antv/g-plugin-html-renderer'; | ||
import * as ImageLoader from '@antv/g-plugin-image-loader'; | ||
export * from './CanvasKitContextService'; | ||
export { DomInteraction, CanvaskitRenderer, CanvasPicker, HTMLRenderer }; | ||
export { CanvasPathGenerator, CanvasPicker, CanvaskitRenderer, DomInteraction, HTMLRenderer, ImageLoader, }; | ||
interface CanvaskitRendererConfig extends RendererConfig { | ||
@@ -11,0 +13,0 @@ wasmDir?: string; |
import type { DisplayObject, RenderingPlugin, RenderingService } from '@antv/g'; | ||
import { SceneGraphService } from '@antv/g'; | ||
import 'box2d-wasm'; | ||
export declare class Box2DPlugin implements RenderingPlugin { | ||
@@ -5,0 +4,0 @@ static tag: string; |
@@ -1,3 +0,3 @@ | ||
import type { DisplayObject, RectStyleProps, Point } from '@antv/g'; | ||
import type { DisplayObject, Point, RectStyleProps } from '@antv/g'; | ||
export declare function isPointInPath(displayObject: DisplayObject<RectStyleProps>, position: Point, isPointInPath: (displayObject: DisplayObject<RectStyleProps>, position: Point) => boolean): boolean; | ||
//# sourceMappingURL=Rect.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { RenderingPlugin, RenderingService } from '@antv/g'; | ||
import type { RenderingPlugin, RenderingService } from '@antv/g'; | ||
import type { Canvas, InputRect, ManagedSkottieAnimation, Particles } from 'canvaskit-wasm'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { DisplayObject } from '@antv/g'; | ||
import type { DisplayObject } from '@antv/g'; | ||
import type { RendererContribution, RendererContributionContext } from '../interfaces'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { RenderPipelineDescriptor, InputState, Program, MegaStateDescriptor, InputLayout, BindingLayoutDescriptor, SamplerBinding, RenderPass } from '../platform'; | ||
import type { BindingLayoutDescriptor, InputLayout, InputState, MegaStateDescriptor, Program, RenderPass, RenderPipelineDescriptor, SamplerBinding } from '../platform'; | ||
import type { DynamicUniformBuffer } from './DynamicUniformBuffer'; | ||
@@ -3,0 +3,0 @@ import type { RenderCache } from './RenderCache'; |
@@ -11,3 +11,8 @@ import { Syringe } from '@antv/g'; | ||
overlap: 'pointer' | 'center'; | ||
/** | ||
* Since Canvas & Document don't have `draggable` attribute, | ||
* we need to add an extra option. | ||
*/ | ||
isDocumentDraggable: boolean; | ||
} | ||
//# sourceMappingURL=tokens.d.ts.map |
import type { RendererPlugin, Syringe } from '@antv/g'; | ||
import { BufferUsage } from '@antv/g-plugin-device-renderer'; | ||
export * from './interface'; | ||
export * from './Kernel'; | ||
export { BufferUsage }; | ||
export declare class Plugin implements RendererPlugin { | ||
@@ -7,0 +5,0 @@ name: string; |
@@ -1,2 +0,2 @@ | ||
import type { Buffer, Device } from '@antv/g-plugin-device-renderer'; | ||
import { DeviceRenderer } from '@antv/g-webgpu'; | ||
import type { KernelBundle } from './interface'; | ||
@@ -27,3 +27,3 @@ export interface KernelOptions { | ||
private buffers; | ||
constructor(device: Device, { computeShader, bundle }: KernelOptions); | ||
constructor(device: DeviceRenderer.Device, { computeShader, bundle }: KernelOptions); | ||
private init; | ||
@@ -34,3 +34,3 @@ /** | ||
*/ | ||
setBinding(binding: number, buffer: Buffer): any; | ||
setBinding(binding: number, buffer: DeviceRenderer.Buffer): any; | ||
dispatch(x: [number, number, number] | number, y?: number, z?: number): void; | ||
@@ -40,5 +40,5 @@ /** | ||
*/ | ||
readBuffer(buffer: Buffer): Promise<ArrayBufferView>; | ||
readBuffer(buffer: DeviceRenderer.Buffer): Promise<ArrayBufferView>; | ||
destroy(): void; | ||
} | ||
//# sourceMappingURL=Kernel.d.ts.map |
import type { DisplayObject, ParsedBaseStyleProps, ParsedCircleStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class CircleRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class CircleRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedCircleStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject, ParsedBaseStyleProps, ParsedEllipseStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class EllipseRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class EllipseRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedEllipseStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject, ParsedBaseStyleProps, ParsedLineStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class LineRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class LineRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedLineStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject, ParsedBaseStyleProps, ParsedPathStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class PathRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class PathRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedPathStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject, ParsedBaseStyleProps, ParsedPolygonStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class PolygonRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class PolygonRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedPolygonStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject, ParsedBaseStyleProps, ParsedPolylineStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class PolylineRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class PolylineRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedPolylineStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject, ParsedBaseStyleProps, ParsedRectStyleProps } from '@antv/g'; | ||
import type { StyleRenderer } from '@antv/g-plugin-canvas-renderer'; | ||
export declare class RectRenderer implements StyleRenderer { | ||
import { CanvasRenderer } from '@antv/g-canvas'; | ||
export declare class RectRenderer implements CanvasRenderer.StyleRenderer { | ||
hash: (parsedStyle: ParsedBaseStyleProps) => string; | ||
@@ -5,0 +5,0 @@ render(context: CanvasRenderingContext2D, parsedStyle: ParsedRectStyleProps, object: DisplayObject<any, any>): void; |
import type { DisplayObject } from '@antv/g'; | ||
import { CreateElementContribution } from '@antv/g-plugin-svg-renderer'; | ||
export declare class RoughCreateElementContribution implements CreateElementContribution { | ||
import { SVGRenderer } from '@antv/g-svg'; | ||
export declare class RoughCreateElementContribution implements SVGRenderer.CreateElementContribution { | ||
private canvasConfig; | ||
@@ -5,0 +5,0 @@ private contextService; |
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as DomInteraction from '@antv/g-plugin-dom-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 { DomInteraction, SVGRenderer, SVGPicker }; | ||
export { DomInteraction, SVGPicker, SVGRenderer }; | ||
export declare class Renderer extends AbstractRenderer { | ||
@@ -8,0 +8,0 @@ constructor(config?: Partial<RendererConfig>); |
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
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 WebGLDevice from '@antv/g-plugin-webgl-device'; | ||
export { DomInteraction, DeviceRenderer, WebGLDevice }; | ||
export { DomInteraction, DeviceRenderer, WebGLDevice, HTMLRenderer }; | ||
interface WebGLRendererConfig extends RendererConfig { | ||
@@ -8,0 +9,0 @@ targets: ('webgl1' | 'webgl2')[]; |
import type { RendererConfig } from '@antv/g'; | ||
import { AbstractRenderer } from '@antv/g'; | ||
import * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
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 WebGPUDevice from '@antv/g-plugin-webgpu-device'; | ||
export { DomInteraction, DeviceRenderer, WebGPUDevice }; | ||
export { DomInteraction, DeviceRenderer, WebGPUDevice, HTMLRenderer }; | ||
declare type WebGPURendererConfig = RendererConfig; | ||
@@ -8,0 +9,0 @@ export declare class Renderer extends AbstractRenderer { |
@@ -5,6 +5,2 @@ import type { DisplayObject } from '../display-objects/DisplayObject'; | ||
private camera; | ||
/** | ||
* RBush used in dirty rectangle rendering | ||
*/ | ||
private rBush; | ||
isVisible(object: DisplayObject): boolean; | ||
@@ -11,0 +7,0 @@ /** |
@@ -27,4 +27,5 @@ import { Syringe } from 'mana-syringe'; | ||
renderListCurrentFrame: DisplayObject[]; | ||
unculledEntities: number[]; | ||
dirty: boolean; | ||
} | ||
//# sourceMappingURL=RenderingContext.d.ts.map |
import { Syringe } from 'mana-syringe'; | ||
import { Camera } from '../camera'; | ||
import type { DisplayObject } from '../display-objects'; | ||
@@ -34,2 +35,3 @@ import type { CanvasConfig, EventPosition, InteractivePointerEvent } from '../types'; | ||
private styleValueRegistry; | ||
private camera; | ||
private inited; | ||
@@ -50,3 +52,3 @@ private stats; | ||
*/ | ||
cull: SyncWaterfallHook<[DisplayObject<any, any>], import("../utils/tapable/Hook").UnsetAdditionalOptions>; | ||
cull: SyncWaterfallHook<[DisplayObject<any, any>, Camera], import("../utils/tapable/Hook").UnsetAdditionalOptions>; | ||
/** | ||
@@ -53,0 +55,0 @@ * called at beginning of each frame, won't get called if nothing to re-render |
@@ -1,2 +0,2 @@ | ||
import type { Circle, Ellipse, Line, Path, Polyline, Polygon, Rect } from '../display-objects'; | ||
import type { Circle, Ellipse, Line, Path, Polygon, Polyline, Rect } from '../display-objects'; | ||
import type { PathCommand } from '../types'; | ||
@@ -3,0 +3,0 @@ export declare function equalizeSegments(path1: PathCommand[], path2: PathCommand[], TL?: number): PathCommand[][]; |
{ | ||
"name": "@antv/g-gesture", | ||
"version": "0.0.2-alpha.1", | ||
"version": "0.0.2", | ||
"description": "G Gesture", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@antv/g-mobile-canvas": "^0.1.8-alpha.1", | ||
"@antv/g-mobile-canvas": "^0.1.8", | ||
"@antv/g-mobile-canvas-element": "^0.0.4-alpha.1" | ||
@@ -41,3 +41,3 @@ }, | ||
}, | ||
"gitHead": "a57232cfdc74aaf0a9812feea28d5b7c8ca243a8" | ||
"gitHead": "837340c2bd89a9b40f94602485647b0ee798ff43" | ||
} |
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
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
956789
13564