@antv/g 1.0.0-alpha.25 → 1.0.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AbstractRenderer.d.ts +3 -3
- package/dist/Canvas.d.ts +2 -2
- package/dist/canvas-module.d.ts +3 -2
- package/dist/display-objects/Circle.d.ts +2 -1
- package/dist/display-objects/CustomElement.d.ts +1 -1
- package/dist/display-objects/DisplayObject.d.ts +3 -2
- package/dist/display-objects/Ellipse.d.ts +2 -1
- package/dist/display-objects/Text.d.ts +3 -2
- package/dist/dom/CustomElementRegistry.d.ts +1 -1
- package/dist/dom/Document.d.ts +2 -1
- package/dist/dom/Element.d.ts +1 -27
- package/dist/dom/EventTarget.d.ts +1 -1
- package/dist/dom/KeyframeEffect.d.ts +4 -1
- package/dist/dom/interfaces.d.ts +26 -0
- package/dist/global-module.d.ts +1 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +4943 -4908
- package/dist/index.js +4966 -4924
- package/dist/plugins/CullingPlugin.d.ts +4 -3
- package/dist/plugins/FrustumCullingStrategy.d.ts +2 -2
- package/dist/property-handlers/index.d.ts +1 -20
- package/dist/property-handlers/interfaces.d.ts +20 -0
- package/dist/services/ContextService.d.ts +2 -1
- package/dist/services/RenderingService.d.ts +4 -2
- package/dist/services/SceneGraphService.d.ts +2 -2
- package/dist/services/aabb/CircleUpdater.d.ts +1 -1
- package/dist/services/aabb/EllipseUpdater.d.ts +1 -1
- package/dist/services/aabb/LineUpdater.d.ts +1 -1
- package/dist/services/aabb/PathUpdater.d.ts +1 -1
- package/dist/services/aabb/PolylineUpdater.d.ts +1 -1
- package/dist/services/aabb/RectUpdater.d.ts +1 -1
- package/dist/services/aabb/TextUpdater.d.ts +1 -1
- package/dist/utils/animation.d.ts +1 -4
- package/package.json +4 -4
- package/dist/contribution-provider.d.ts +0 -13
- package/dist/index.umd.js +0 -23613
- package/dist/index.umd.min.js +0 -44
- package/dist/inversify.config.d.ts +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Syringe } from 'mana-syringe';
|
|
2
2
|
import { RendererConfig } from './types';
|
|
3
3
|
export interface RendererPlugin {
|
|
4
|
-
init(container: Container): void;
|
|
5
|
-
destroy(container: Container): void;
|
|
4
|
+
init(container: Syringe.Container): void;
|
|
5
|
+
destroy(container: Syringe.Container): void;
|
|
6
6
|
}
|
|
7
7
|
export interface IRenderer {
|
|
8
8
|
getConfig(): RendererConfig;
|
package/dist/Canvas.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class Canvas extends EventTarget implements ICanvas {
|
|
|
26
26
|
/**
|
|
27
27
|
* child container of current canvas, use hierarchy container
|
|
28
28
|
*/
|
|
29
|
-
container: import("
|
|
29
|
+
container: import("mana-syringe").Syringe.Container;
|
|
30
30
|
/**
|
|
31
31
|
* window.document
|
|
32
32
|
*/
|
|
@@ -44,7 +44,7 @@ export declare class Canvas extends EventTarget implements ICanvas {
|
|
|
44
44
|
private initRenderingContext;
|
|
45
45
|
private initDefaultCamera;
|
|
46
46
|
getConfig(): Partial<CanvasConfig>;
|
|
47
|
-
getContainer(): import("
|
|
47
|
+
getContainer(): import("mana-syringe").Syringe.Container;
|
|
48
48
|
/**
|
|
49
49
|
* get the root displayObject in scenegraph
|
|
50
50
|
* @alias this.document.documentElement
|
package/dist/canvas-module.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const containerModule:
|
|
1
|
+
import { Syringe } from 'mana-syringe';
|
|
2
|
+
export declare const containerModule: import("mana-syringe").SyringeModule;
|
|
3
|
+
export declare function unload(container: Syringe.Container): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DisplayObjectConfig } from '../dom/interfaces';
|
|
2
|
+
import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
|
|
2
3
|
import { DisplayObject } from './DisplayObject';
|
|
3
4
|
export interface CircleStyleProps extends BaseStyleProps {
|
|
4
5
|
r: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DisplayObject } from './DisplayObject';
|
|
2
|
-
import type { DisplayObjectConfig } from '
|
|
2
|
+
import type { DisplayObjectConfig } from '../dom/interfaces';
|
|
3
3
|
export interface CustomElement<CustomElementStyleProps> {
|
|
4
4
|
/**
|
|
5
5
|
* fired after element insert into DOM tree
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { mat3, mat4, quat, vec2, vec3 } from 'gl-matrix';
|
|
2
|
-
import { Animation
|
|
3
|
-
import
|
|
2
|
+
import { Animation } from '../dom/Animation';
|
|
3
|
+
import { Element } from '../dom/Element';
|
|
4
|
+
import type { DisplayObjectConfig, INode } from '../dom/interfaces';
|
|
4
5
|
import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
|
|
5
6
|
import { StylePropertyParser, StylePropertyUpdater } from '../property-handlers';
|
|
6
7
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DisplayObjectConfig
|
|
1
|
+
import type { DisplayObjectConfig } from '../dom/interfaces';
|
|
2
|
+
import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
|
|
2
3
|
import { DisplayObject } from './DisplayObject';
|
|
3
4
|
export interface EllipseStyleProps extends BaseStyleProps {
|
|
4
5
|
rx: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextMetrics } from '../services/text';
|
|
2
|
+
import type { DisplayObjectConfig } from '../dom/interfaces';
|
|
3
|
+
import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
|
|
2
4
|
import { DisplayObject } from './DisplayObject';
|
|
3
|
-
import { TextMetrics } from '../services';
|
|
4
5
|
export interface TextStyleProps extends BaseStyleProps {
|
|
5
6
|
text: string;
|
|
6
7
|
/** 设置文本内容的当前对齐方式 */
|
package/dist/dom/Document.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Node } from './Node';
|
|
2
2
|
import { AnimationTimeline } from './AnimationTimeline';
|
|
3
|
-
import { Group
|
|
3
|
+
import { Group } from '../display-objects/Group';
|
|
4
|
+
import { DisplayObject } from '../display-objects/DisplayObject';
|
|
4
5
|
import type { IDocument, IElement, INode, ICanvas, DisplayObjectConfig } from './interfaces';
|
|
5
6
|
import { BaseStyleProps } from '../types';
|
|
6
7
|
/**
|
package/dist/dom/Element.d.ts
CHANGED
|
@@ -1,34 +1,8 @@
|
|
|
1
|
-
import { SceneGraphService } from '../services';
|
|
1
|
+
import { SceneGraphService } from '../services/SceneGraphService';
|
|
2
2
|
import { BaseStyleProps, ParsedBaseStyleProps } from '../types';
|
|
3
3
|
import { Node } from './Node';
|
|
4
4
|
import { AABB, Rectangle } from '../shapes';
|
|
5
5
|
import type { DisplayObjectConfig, IEventTarget, IChildNode, IElement, INode } from './interfaces';
|
|
6
|
-
/**
|
|
7
|
-
* built-in events for element
|
|
8
|
-
*/
|
|
9
|
-
export declare enum ElementEvent {
|
|
10
|
-
DESTROY = "destroy",
|
|
11
|
-
ATTRIBUTE_CHANGED = "attribute-changed",
|
|
12
|
-
/**
|
|
13
|
-
* it has been inserted
|
|
14
|
-
*/
|
|
15
|
-
INSERTED = "inserted",
|
|
16
|
-
/**
|
|
17
|
-
* it has had a child inserted
|
|
18
|
-
*/
|
|
19
|
-
CHILD_INSERTED = "child-inserted",
|
|
20
|
-
/**
|
|
21
|
-
* it has been removed
|
|
22
|
-
*/
|
|
23
|
-
REMOVED = "removed",
|
|
24
|
-
/**
|
|
25
|
-
* it has had a child removed
|
|
26
|
-
*/
|
|
27
|
-
CHILD_REMOVED = "child-removed",
|
|
28
|
-
MOUNTED = "mounted",
|
|
29
|
-
UNMOUNTED = "unmounted",
|
|
30
|
-
BOUNDS_CHANGED = "bounds-changed"
|
|
31
|
-
}
|
|
32
6
|
/**
|
|
33
7
|
* Has following capabilities:
|
|
34
8
|
* * Node insert/remove, eg. appendChild, removeChild, remove...
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { IElement } from '../dom/interfaces';
|
|
2
|
-
import
|
|
2
|
+
import { AnimationEffectTiming } from './AnimationEffectTiming';
|
|
3
3
|
import type { Animation } from './Animation';
|
|
4
|
+
export declare function makeTiming(timingInput: KeyframeEffectOptions, forGroup: boolean): AnimationEffectTiming;
|
|
5
|
+
export declare function normalizeTimingInput(timingInput: KeyframeEffectOptions | number | undefined, forGroup: boolean): AnimationEffectTiming;
|
|
6
|
+
export declare function numericTimingToObject(timingInput: KeyframeEffectOptions | number): KeyframeEffectOptions;
|
|
4
7
|
/**
|
|
5
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect
|
|
6
9
|
* @example
|
package/dist/dom/interfaces.d.ts
CHANGED
|
@@ -8,6 +8,32 @@ import { DisplayObject } from '..';
|
|
|
8
8
|
import type { PointLike } from '../shapes';
|
|
9
9
|
import type { Camera } from '../camera';
|
|
10
10
|
import { ContextService } from '../services';
|
|
11
|
+
/**
|
|
12
|
+
* built-in events for element
|
|
13
|
+
*/
|
|
14
|
+
export declare enum ElementEvent {
|
|
15
|
+
DESTROY = "destroy",
|
|
16
|
+
ATTRIBUTE_CHANGED = "attribute-changed",
|
|
17
|
+
/**
|
|
18
|
+
* it has been inserted
|
|
19
|
+
*/
|
|
20
|
+
INSERTED = "inserted",
|
|
21
|
+
/**
|
|
22
|
+
* it has had a child inserted
|
|
23
|
+
*/
|
|
24
|
+
CHILD_INSERTED = "child-inserted",
|
|
25
|
+
/**
|
|
26
|
+
* it has been removed
|
|
27
|
+
*/
|
|
28
|
+
REMOVED = "removed",
|
|
29
|
+
/**
|
|
30
|
+
* it has had a child removed
|
|
31
|
+
*/
|
|
32
|
+
CHILD_REMOVED = "child-removed",
|
|
33
|
+
MOUNTED = "mounted",
|
|
34
|
+
UNMOUNTED = "unmounted",
|
|
35
|
+
BOUNDS_CHANGED = "bounds-changed"
|
|
36
|
+
}
|
|
11
37
|
export interface IEventTarget {
|
|
12
38
|
entity: Entity;
|
|
13
39
|
getEntity(): Entity;
|
package/dist/global-module.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const containerModule: ContainerModule;
|
|
1
|
+
export declare const containerModule: import("mana-syringe").SyringeModule;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { World } from '@antv/g-ecs';
|
|
2
|
+
declare const world: World;
|
|
3
|
+
export { world };
|
|
2
4
|
export * from './types';
|
|
3
5
|
export * from './components';
|
|
4
|
-
export * from './inversify.config';
|
|
5
6
|
export * from './dom';
|
|
6
7
|
export * from './AbstractRenderer';
|
|
7
8
|
export * from './Canvas';
|