@visactor/vrender-core 1.1.0-alpha.25 → 1.1.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/cjs/allocator/bounds-allocate.js +2 -1
- package/cjs/canvas/constants.js +1 -2
- package/cjs/common/bezier-utils.js +2 -1
- package/cjs/common/event-listener-manager.js +1 -2
- package/cjs/common/performance-raf.js +2 -1
- package/cjs/common/polygon.js +2 -2
- package/cjs/common/rect-utils.js +1 -1
- package/cjs/common/render-area.js +1 -1
- package/cjs/common/render-command-list.js +1 -1
- package/cjs/common/render-curve.js +1 -1
- package/cjs/common/render-utils.js +1 -1
- package/cjs/common/seg-context.js +1 -1
- package/cjs/common/xml/is-xml.d.ts +2 -0
- package/cjs/common/xml/is-xml.js +14 -0
- package/cjs/common/xml/is-xml.js.map +1 -0
- package/cjs/common/xml/parser.d.ts +2 -2
- package/cjs/common/xml/parser.js +14 -11
- package/cjs/common/xml/parser.js.map +1 -1
- package/cjs/core/camera.js +1 -1
- package/cjs/core/constants.js +1 -1
- package/cjs/core/core-modules.js +1 -1
- package/cjs/core/global.js +1 -1
- package/cjs/core/graphic-utils.js +1 -2
- package/cjs/core/index.js +1 -1
- package/cjs/core/layer-service.js +1 -1
- package/cjs/core/layer.js +1 -1
- package/cjs/core/light.js +1 -1
- package/cjs/core/stage.js +1 -1
- package/cjs/core/window.js +1 -1
- package/cjs/graphic/graphic-service/graphic-service.d.ts +0 -1
- package/cjs/graphic/graphic-service/graphic-service.js +1 -8
- package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
- package/cjs/graphic/graphic.js +3 -3
- package/cjs/graphic/graphic.js.map +1 -1
- package/cjs/graphic/tools.js +3 -3
- package/cjs/graphic/tools.js.map +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +389 -393
- package/es/allocator/bounds-allocate.js +2 -1
- package/es/canvas/constants.js +1 -2
- package/es/common/bezier-utils.js +2 -1
- package/es/common/event-listener-manager.js +1 -2
- package/es/common/performance-raf.js +2 -1
- package/es/common/polygon.js +1 -1
- package/es/common/rect-utils.js +1 -1
- package/es/common/render-area.js +1 -1
- package/es/common/render-command-list.js +1 -1
- package/es/common/render-curve.js +1 -1
- package/es/common/render-utils.js +1 -1
- package/es/common/seg-context.js +1 -1
- package/es/common/xml/is-xml.d.ts +2 -0
- package/es/common/xml/is-xml.js +8 -0
- package/es/common/xml/is-xml.js.map +1 -0
- package/es/common/xml/parser.d.ts +2 -2
- package/es/common/xml/parser.js +3 -7
- package/es/common/xml/parser.js.map +1 -1
- package/es/core/camera.js +1 -1
- package/es/core/constants.js +1 -1
- package/es/core/core-modules.js +1 -1
- package/es/core/global.js +1 -1
- package/es/core/graphic-utils.js +1 -2
- package/es/core/index.js +1 -1
- package/es/core/layer-service.js +1 -1
- package/es/core/layer.js +1 -1
- package/es/core/light.js +1 -1
- package/es/core/stage.js +1 -1
- package/es/core/window.js +1 -1
- package/es/graphic/graphic-service/graphic-service.d.ts +0 -1
- package/es/graphic/graphic-service/graphic-service.js +0 -10
- package/es/graphic/graphic-service/graphic-service.js.map +1 -1
- package/es/graphic/graphic.js +3 -3
- package/es/graphic/graphic.js.map +1 -1
- package/es/graphic/tools.js +3 -3
- package/es/graphic/tools.js.map +1 -1
- package/es/index.js.map +1 -1
- package/package.json +3 -3
- package/cjs/allocator/constants.d.ts +0 -9
- package/cjs/allocator/constants.js +0 -11
- package/cjs/allocator/constants.js.map +0 -1
- package/cjs/common/Reflect-metadata.d.ts +0 -2
- package/cjs/common/Reflect-metadata.js +0 -182
- package/cjs/common/Reflect-metadata.js.map +0 -1
- package/cjs/common/segment/curve/arc.d.ts +0 -17
- package/cjs/common/segment/curve/arc.js +0 -38
- package/cjs/common/segment/curve/arc.js.map +0 -1
- package/cjs/common/segment/curve/ellipse.d.ts +0 -21
- package/cjs/common/segment/curve/ellipse.js +0 -39
- package/cjs/common/segment/curve/ellipse.js.map +0 -1
- package/cjs/common/segment/curve/move.d.ts +0 -16
- package/cjs/common/segment/curve/move.js +0 -37
- package/cjs/common/segment/curve/move.js.map +0 -1
- package/cjs/common/store.d.ts +0 -2
- package/cjs/common/store.js +0 -2
- package/cjs/common/store.js.map +0 -1
- package/cjs/core/application.d.ts +0 -1
- package/cjs/core/application.js +0 -6
- package/cjs/core/application.js.map +0 -1
- package/cjs/core/global-module.d.ts +0 -1
- package/cjs/core/global-module.js +0 -3
- package/cjs/core/global-module.js.map +0 -1
- package/cjs/export.d.ts +0 -1
- package/cjs/export.js +0 -1
- package/cjs/export.js.map +0 -1
- package/cjs/interface/creator.d.ts +0 -4
- package/cjs/interface/creator.js +0 -6
- package/cjs/interface/creator.js.map +0 -1
- package/cjs/interface/graphic/dynamic-path.d.ts +0 -1
- package/cjs/interface/graphic/dynamic-path.js +0 -3
- package/cjs/interface/graphic/dynamic-path.js.map +0 -1
- package/cjs/interface/graphic-utils.d.ts +0 -1
- package/cjs/interface/graphic-utils.js +0 -3
- package/cjs/interface/graphic-utils.js.map +0 -1
- package/cjs/interface/theme-service.d.ts +0 -1
- package/cjs/interface/theme-service.js +0 -3
- package/cjs/interface/theme-service.js.map +0 -1
- package/cjs/plugins/builtin-plugin/poptip-plugin.d.ts +0 -1
- package/cjs/plugins/builtin-plugin/poptip-plugin.js +0 -3
- package/cjs/plugins/builtin-plugin/poptip-plugin.js.map +0 -1
- package/cjs/render/contributions/render/clear-screen.d.ts +0 -1
- package/cjs/render/contributions/render/clear-screen.js +0 -3
- package/cjs/render/contributions/render/clear-screen.js.map +0 -1
- package/cjs/render/contributions/render/render-slector.d.ts +0 -1
- package/cjs/render/contributions/render/render-slector.js +0 -3
- package/cjs/render/contributions/render/render-slector.js.map +0 -1
- package/es/allocator/constants.d.ts +0 -9
- package/es/allocator/constants.js +0 -18
- package/es/allocator/constants.js.map +0 -1
- package/es/common/Reflect-metadata.d.ts +0 -2
- package/es/common/Reflect-metadata.js +0 -178
- package/es/common/Reflect-metadata.js.map +0 -1
- package/es/common/segment/curve/arc.d.ts +0 -17
- package/es/common/segment/curve/arc.js +0 -31
- package/es/common/segment/curve/arc.js.map +0 -1
- package/es/common/segment/curve/ellipse.d.ts +0 -21
- package/es/common/segment/curve/ellipse.js +0 -33
- package/es/common/segment/curve/ellipse.js.map +0 -1
- package/es/common/segment/curve/move.d.ts +0 -16
- package/es/common/segment/curve/move.js +0 -31
- package/es/common/segment/curve/move.js.map +0 -1
- package/es/common/store.d.ts +0 -2
- package/es/common/store.js +0 -2
- package/es/common/store.js.map +0 -1
- package/es/core/application.d.ts +0 -1
- package/es/core/application.js +0 -2
- package/es/core/application.js.map +0 -1
- package/es/core/global-module.d.ts +0 -1
- package/es/core/global-module.js +0 -3
- package/es/core/global-module.js.map +0 -1
- package/es/export.d.ts +0 -1
- package/es/export.js +0 -1
- package/es/export.js.map +0 -1
- package/es/interface/creator.d.ts +0 -4
- package/es/interface/creator.js +0 -2
- package/es/interface/creator.js.map +0 -1
- package/es/interface/graphic/dynamic-path.d.ts +0 -1
- package/es/interface/graphic/dynamic-path.js +0 -3
- package/es/interface/graphic/dynamic-path.js.map +0 -1
- package/es/interface/graphic-utils.d.ts +0 -1
- package/es/interface/graphic-utils.js +0 -3
- package/es/interface/graphic-utils.js.map +0 -1
- package/es/interface/theme-service.d.ts +0 -1
- package/es/interface/theme-service.js +0 -3
- package/es/interface/theme-service.js.map +0 -1
- package/es/plugins/builtin-plugin/poptip-plugin.d.ts +0 -1
- package/es/plugins/builtin-plugin/poptip-plugin.js +0 -3
- package/es/plugins/builtin-plugin/poptip-plugin.js.map +0 -1
- package/es/render/contributions/render/clear-screen.d.ts +0 -1
- package/es/render/contributions/render/clear-screen.js +0 -3
- package/es/render/contributions/render/clear-screen.js.map +0 -1
- package/es/render/contributions/render/render-slector.d.ts +0 -1
- package/es/render/contributions/render/render-slector.js +0 -3
- package/es/render/contributions/render/render-slector.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/common/segment/curve/arc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAG/B,MAAM,OAAO,QAAS,SAAQ,KAAK;IAKjC,YAAY,EAAU,EAAE,EAAU,EAAE,MAAc;QAChD,KAAK,EAAE,CAAC;QALV,SAAI,GAAW,aAAa,CAAC,QAAQ,CAAC;QAMpC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IACD,UAAU,CAAC,CAAS;QAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACS,UAAU;QAClB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;IACS,cAAc,CAAC,SAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,UAAU,CAAC,CAAS;QAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAC,IAAa,EAAE,OAAe;QACjC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;IACD,MAAM,CAAC,CAAS;QACd,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IACD,QAAQ,CAAC,CAAS;QAChB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;CACF","file":"arc.js","sourcesContent":["import type { IDirection, IArcCurve, IPath2D } from '../../../interface';\nimport { CurveTypeEnum } from '../../enums';\nimport { Curve } from './base';\nimport type { IPoint, IPointLike } from '@visactor/vutils';\n\nexport class ArcCurve extends Curve implements IArcCurve {\n type: number = CurveTypeEnum.ArcCurve;\n declare readonly p0: IPoint;\n declare readonly p1: IPoint;\n declare radius: number;\n constructor(p0: IPoint, p1: IPoint, radius: number) {\n super();\n this.p0 = p0;\n this.p1 = p1;\n this.radius = radius;\n }\n getPointAt(t: number): IPointLike {\n throw new Error('ArcCurve暂不支持getPointAt');\n }\n protected calcLength(): number {\n throw new Error('ArcCurve暂不支持updateLength');\n }\n protected calcProjLength(direction: IDirection): number {\n throw new Error('QuadraticBezierCurve暂不支持updateLength');\n }\n getAngleAt(t: number): number {\n throw new Error('ArcCurve暂不支持getAngleAt');\n }\n\n draw(path: IPath2D, percent: number) {\n throw new Error('暂不支持');\n }\n getYAt(x: number): number {\n throw new Error('ArcCurve暂不支持getYAt');\n }\n includeX(x: number): boolean {\n throw new Error('ArcCurve暂不支持includeX');\n }\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { IPoint, IPointLike } from '@visactor/vutils';
|
|
2
|
-
import type { IEllipseCurve, IDirection, IPath2D } from '../../../interface';
|
|
3
|
-
import { Curve } from './base';
|
|
4
|
-
export declare class EllipseCurve extends Curve implements IEllipseCurve {
|
|
5
|
-
type: number;
|
|
6
|
-
p0: IPoint;
|
|
7
|
-
radiusX: number;
|
|
8
|
-
radiusY: number;
|
|
9
|
-
rotation: number;
|
|
10
|
-
startAngle: number;
|
|
11
|
-
endAngle: number;
|
|
12
|
-
anticlockwise?: boolean;
|
|
13
|
-
constructor(p0: IPoint, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean);
|
|
14
|
-
getPointAt(t: number): IPointLike;
|
|
15
|
-
getAngleAt(t: number): number;
|
|
16
|
-
protected calcLength(): number;
|
|
17
|
-
protected calcProjLength(direction: IDirection): number;
|
|
18
|
-
draw(path: IPath2D, percent: number): void;
|
|
19
|
-
getYAt(x: number): number;
|
|
20
|
-
includeX(x: number): boolean;
|
|
21
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Curve } from "./base";
|
|
2
|
-
|
|
3
|
-
import { CurveTypeEnum } from "../../enums";
|
|
4
|
-
|
|
5
|
-
export class EllipseCurve extends Curve {
|
|
6
|
-
constructor(p0, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) {
|
|
7
|
-
super(), this.type = CurveTypeEnum.EllipseCurve, this.p0 = p0, this.radiusX = radiusX,
|
|
8
|
-
this.radiusY = radiusY, this.rotation = rotation, this.startAngle = startAngle,
|
|
9
|
-
this.endAngle = endAngle, this.anticlockwise = anticlockwise;
|
|
10
|
-
}
|
|
11
|
-
getPointAt(t) {
|
|
12
|
-
throw new Error("EllipseCurve暂不支持getPointAt");
|
|
13
|
-
}
|
|
14
|
-
getAngleAt(t) {
|
|
15
|
-
throw new Error("ArcCurve暂不支持getAngleAt");
|
|
16
|
-
}
|
|
17
|
-
calcLength() {
|
|
18
|
-
throw new Error("EllipseCurve暂不支持updateLength");
|
|
19
|
-
}
|
|
20
|
-
calcProjLength(direction) {
|
|
21
|
-
throw new Error("QuadraticBezierCurve暂不支持updateLength");
|
|
22
|
-
}
|
|
23
|
-
draw(path, percent) {
|
|
24
|
-
throw new Error("暂不支持");
|
|
25
|
-
}
|
|
26
|
-
getYAt(x) {
|
|
27
|
-
throw new Error("QuadraticBezierCurve暂不支持getYAt");
|
|
28
|
-
}
|
|
29
|
-
includeX(x) {
|
|
30
|
-
throw new Error("QuadraticBezierCurve暂不支持includeX");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=ellipse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/common/segment/curve/ellipse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,KAAK;IASrC,YACE,EAAU,EACV,OAAe,EACf,OAAe,EACf,QAAgB,EAChB,UAAkB,EAClB,QAAgB,EAChB,aAAuB;QAEvB,KAAK,EAAE,CAAC;QAjBV,SAAI,GAAW,aAAa,CAAC,YAAY,CAAC;QAkBxC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IACD,UAAU,CAAC,CAAS;QAClB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IACD,UAAU,CAAC,CAAS;QAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACS,UAAU;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IACS,cAAc,CAAC,SAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,CAAC,IAAa,EAAE,OAAe;QACjC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;IACD,MAAM,CAAC,CAAS;QACd,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;IACD,QAAQ,CAAC,CAAS;QAChB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;CACF","file":"ellipse.js","sourcesContent":["import type { IPoint, IPointLike } from '@visactor/vutils';\nimport type { IEllipseCurve, IDirection, IPath2D } from '../../../interface';\nimport { Curve } from './base';\nimport { CurveTypeEnum } from '../../enums';\n\nexport class EllipseCurve extends Curve implements IEllipseCurve {\n type: number = CurveTypeEnum.EllipseCurve;\n declare p0: IPoint;\n declare radiusX: number;\n declare radiusY: number;\n declare rotation: number;\n declare startAngle: number;\n declare endAngle: number;\n declare anticlockwise?: boolean;\n constructor(\n p0: IPoint,\n radiusX: number,\n radiusY: number,\n rotation: number,\n startAngle: number,\n endAngle: number,\n anticlockwise?: boolean\n ) {\n super();\n this.p0 = p0;\n this.radiusX = radiusX;\n this.radiusY = radiusY;\n this.rotation = rotation;\n this.startAngle = startAngle;\n this.endAngle = endAngle;\n this.anticlockwise = anticlockwise;\n }\n getPointAt(t: number): IPointLike {\n throw new Error('EllipseCurve暂不支持getPointAt');\n }\n getAngleAt(t: number): number {\n throw new Error('ArcCurve暂不支持getAngleAt');\n }\n protected calcLength(): number {\n throw new Error('EllipseCurve暂不支持updateLength');\n }\n protected calcProjLength(direction: IDirection): number {\n throw new Error('QuadraticBezierCurve暂不支持updateLength');\n }\n\n draw(path: IPath2D, percent: number) {\n throw new Error('暂不支持');\n }\n getYAt(x: number): number {\n throw new Error('QuadraticBezierCurve暂不支持getYAt');\n }\n includeX(x: number): boolean {\n throw new Error('QuadraticBezierCurve暂不支持includeX');\n }\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { IPoint, IPointLike } from '@visactor/vutils';
|
|
2
|
-
import type { IMoveCurve, IDirection, IPath2D } from '../../../interface';
|
|
3
|
-
import { Curve } from './base';
|
|
4
|
-
export declare class MoveCurve extends Curve implements IMoveCurve {
|
|
5
|
-
type: number;
|
|
6
|
-
p0: IPoint;
|
|
7
|
-
p1: IPoint;
|
|
8
|
-
constructor(p0: IPoint, p1: IPoint);
|
|
9
|
-
getAngleAt(t: number): number;
|
|
10
|
-
getPointAt(t: number): IPointLike;
|
|
11
|
-
protected calcLength(): number;
|
|
12
|
-
protected calcProjLength(direction: IDirection): number;
|
|
13
|
-
draw(path: IPath2D, x: number, y: number, sx: number, sy: number, percent: number): void;
|
|
14
|
-
includeX(x: number): boolean;
|
|
15
|
-
getYAt(x: number): number;
|
|
16
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Curve } from "./base";
|
|
2
|
-
|
|
3
|
-
import { CurveTypeEnum } from "../../enums";
|
|
4
|
-
|
|
5
|
-
export class MoveCurve extends Curve {
|
|
6
|
-
constructor(p0, p1) {
|
|
7
|
-
super(), this.type = CurveTypeEnum.MoveCurve, this.p0 = p0, this.p1 = p1;
|
|
8
|
-
}
|
|
9
|
-
getAngleAt(t) {
|
|
10
|
-
throw new Error("ArcCurve暂不支持getAngleAt");
|
|
11
|
-
}
|
|
12
|
-
getPointAt(t) {
|
|
13
|
-
throw new Error("MoveCurve暂不支持getPointAt");
|
|
14
|
-
}
|
|
15
|
-
calcLength() {
|
|
16
|
-
throw new Error("MoveCurve暂不支持updateLength");
|
|
17
|
-
}
|
|
18
|
-
calcProjLength(direction) {
|
|
19
|
-
throw new Error("QuadraticBezierCurve暂不支持updateLength");
|
|
20
|
-
}
|
|
21
|
-
draw(path, x, y, sx, sy, percent) {
|
|
22
|
-
path.moveTo(this.p1.x * sx + x, this.p1.y * sy + y);
|
|
23
|
-
}
|
|
24
|
-
includeX(x) {
|
|
25
|
-
return !1;
|
|
26
|
-
}
|
|
27
|
-
getYAt(x) {
|
|
28
|
-
return 1 / 0;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=move.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/common/segment/curve/move.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,KAAK;IAIlC,YAAY,EAAU,EAAE,EAAU;QAChC,KAAK,EAAE,CAAC;QAJV,SAAI,GAAW,aAAa,CAAC,SAAS,CAAC;QAKrC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IACD,UAAU,CAAC,CAAS;QAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,UAAU,CAAC,CAAS;QAClB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACS,UAAU;QAClB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,CAAC;IACS,cAAc,CAAC,SAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,CAAC,IAAa,EAAE,CAAS,EAAE,CAAS,EAAE,EAAU,EAAE,EAAU,EAAE,OAAe;QAC/E,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACtD,CAAC;IACD,QAAQ,CAAC,CAAS;QAChB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,CAAC,CAAS;QACd,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","file":"move.js","sourcesContent":["import type { IPoint, IPointLike } from '@visactor/vutils';\nimport type { IMoveCurve, IDirection, IPath2D } from '../../../interface';\nimport { Curve } from './base';\nimport { CurveTypeEnum } from '../../enums';\n\nexport class MoveCurve extends Curve implements IMoveCurve {\n type: number = CurveTypeEnum.MoveCurve;\n declare p0: IPoint;\n declare p1: IPoint;\n constructor(p0: IPoint, p1: IPoint) {\n super();\n this.p0 = p0;\n this.p1 = p1;\n }\n getAngleAt(t: number): number {\n throw new Error('ArcCurve暂不支持getAngleAt');\n }\n getPointAt(t: number): IPointLike {\n throw new Error('MoveCurve暂不支持getPointAt');\n }\n protected calcLength(): number {\n throw new Error('MoveCurve暂不支持updateLength');\n }\n protected calcProjLength(direction: IDirection): number {\n throw new Error('QuadraticBezierCurve暂不支持updateLength');\n }\n\n draw(path: IPath2D, x: number, y: number, sx: number, sy: number, percent: number) {\n path.moveTo(this.p1.x * sx + x, this.p1.y * sy + y);\n }\n includeX(x: number): boolean {\n return false;\n }\n getYAt(x: number): number {\n return Infinity;\n }\n}\n"]}
|
package/es/common/store.d.ts
DELETED
package/es/common/store.js
DELETED
package/es/common/store.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/common/store.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU;CAAG","file":"store.js","sourcesContent":["class StageStore {}\n"]}
|
package/es/core/application.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ApplicationContribution: unique symbol;
|
package/es/core/application.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/application.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC","file":"application.js","sourcesContent":["export const ApplicationContribution = Symbol('ApplicationContribution');\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/es/core/global-module.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/global-module.ts"],"names":[],"mappings":"","file":"global-module.js","sourcesContent":["// import type { IGlobal } from '../interface';\n// legacy container bootstrap has been removed in major cleanup.\n// import { DefaultGlobal } from './global';\n// import envModules from './contributions/env/modules';\n// import { Global } from '../constants';\n\n// const globalModule = new ContainerModule((bind, unbind, isBound) => {\n// // global对象,全局单例模式\n// if (!isBound(Global)) {\n// bind(DefaultGlobal).toSelf().inSingletonScope();\n// bind(Global).toService(DefaultGlobal);\n// }\n// });\n\n// container.load(globalModule);\n// container.load(envModules);\n\n// export const global = container.get<IGlobal>(Global);\n\n// export default globalModule;\n"]}
|
package/es/export.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/es/export.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=export.js.map
|
package/es/export.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/export.ts"],"names":[],"mappings":"","file":"export.js","sourcesContent":["// // 导出所有扩展需要的模块\n// // graphic\n// export * from './interface/graphic/circle';\n// export * from './interface/graphic/rect';\n// export * from './interface/graphic/arc';\n// export * from './interface/graphic/area';\n// export * from './interface/graphic/image';\n// export * from './interface/graphic/line';\n// export * from './interface/graphic/path';\n// export * from './interface/graphic/symbol';\n// export * from './interface/graphic/text';\n\n// // render-service\n// export * from './render/render-service';\n// export * from './render/contributions/render/graphic-render';\n// export * from './render/contributions/render/circle-render';\n"]}
|
package/es/interface/creator.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interface/creator.ts"],"names":[],"mappings":"","file":"creator.js","sourcesContent":["import type { ILayer } from './layer';\nimport type { IStage } from './stage';\n\nexport declare function createLayer(canvasId?: string): ILayer;\nexport declare function createStage(w: number, h: number): IStage;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interface/graphic/dynamic-path.ts"],"names":[],"mappings":"","file":"dynamic-path.js","sourcesContent":["// import { IGraphic, IStyle } from '../Graphic';\n// import { IPath2D } from '../Path';\n\n// // TODO: Path svg <Path path='' />\n\n// export interface IDynamicPathShape {\n// path: IPath2D;\n// }\n\n// type ShapeType = 'area' | 'circle' | 'ellipse' | 'line' | 'rect' | 'path';\n\n// export interface IDynamicPath extends IGraphic, Partial<IDynamicPathShape> {\n// type: ShapeType;\n// style?: Partial<IStyle>; // 用户传入什么就是什么\n// }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interface/graphic-utils.ts"],"names":[],"mappings":"","file":"graphic-utils.js","sourcesContent":["// import { IPoint } from \"@visactor/vutils\";\n// import { IContext2d } from \"./context\";\n// import { IGraphicAttribute } from \"./graphic\";\n\n// interface TextType {\n// text: string;\n// fontFamily: string;\n// fontSize: number;\n// }\n\n// export declare function measureText(\n// params: TextType,\n// ctx?: IContext2d\n// ): { width: number; height: number };\n\n// export * from \"./graphic/bounds\";\n\n// // export type TransformType = Pick<IGraphicAttribute, 'x' | 'y' | 'scaleX' | 'scaleY' | 'angle'> & {\n// // anchor?: IGraphicAttribute['anchor'];\n// // };\n\n// // export interface Transform {\n// // init: (origin: TransformType) => Transform;\n// // translate: (x: number, y: number) => Transform;\n// // translateTo: (x: number, y: number) => Transform;\n// // scale: (sx: number, sy: number, center: IPoint) => Transform;\n// // scaleTo: (sx: number, sy: number, center: IPoint) => Transform;\n// // rotate: (rx: number, ry: number, center: IPoint) => Transform;\n// // rotateTo: (rx: number, ry: number, center: IPoint) => Transform;\n// // // 语法糖\n// // interactive: (dx: number, dy: number, dsx: number, dsy: number, drx: number, dry: number) => Transform;\n// // // 扩展padding像素,用于外描边,内描边\n// // extend: (origin: TransformType, padding: number) => Transform;\n// // // 将所有的transform生成为一次的transform\n// // simplify: (target?: TransformType) => TransformType;\n// // }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interface/theme-service.ts"],"names":[],"mappings":"","file":"theme-service.js","sourcesContent":["// import { ContributionProvider } from '../../common/contribution-provider';\n// import {\n// ICircleGraphicAttribute,\n// ILineGraphicAttribute,\n// IPathGraphicAttribute,\n// IRectGraphicAttribute,\n// ISymbolGraphicAttribute,\n// ITextGraphicAttribute,\n// IArcGraphicAttribute,\n// IAreaGraphicAttribute,\n// IGroupGraphicAttribute,\n// IPolygonGraphicAttribute\n// } from '../../interface';\n\n// export interface ITheme {\n// readonly id: string;\n// circleAttribute: Required<ICircleGraphicAttribute>;\n// textAttribute: Required<ITextGraphicAttribute>;\n// symbolAttribute: Required<ISymbolGraphicAttribute>;\n// lineAttribute: Required<ILineGraphicAttribute>;\n// areaAttribute: Required<IAreaGraphicAttribute>;\n// rectAttribute: Required<IRectGraphicAttribute>;\n// pathAttribute: Required<IPathGraphicAttribute>;\n// arcAttribute: Required<IArcGraphicAttribute>;\n// groupAttribute: Required<IGroupGraphicAttribute>;\n// polygonAttribute: Required<IPolygonGraphicAttribute>;\n\n// configure: (themeService: IThemeService) => void;\n\n// activate: () => void;\n// deactivate: () => void;\n// }\n\n// export const Theme = Symbol.for('Theme');\n\n// export const DEFAULT_THEME_ID = 'DEFAULT_THEME_ID';\n\n// export interface IThemeService {\n// register: (theme: ITheme) => void;\n// getThemes: () => ITheme[];\n\n// getTheme: (themeId: string) => ITheme;\n\n// setCurrentTheme: (themeId: string) => void;\n\n// getCurrentTheme: () => ITheme;\n\n// defaultTheme: ITheme;\n\n// reset: () => void;\n// }\n\n// export const ThemeServce = Symbol.for('ThemeServce');\n\n// export class DefaultThemeService implements IThemeService {\n// protected themeMap: Record<string, ITheme> = {};\n// protected activeTheme?: ITheme;\n\n// constructor(\n// @named(Theme)\n// protected readonly contributions: ContributionProvider<ITheme>\n// ) {}\n\n// @postConstruct()\n// init() {\n// this.contributions.getContributions().forEach(theme => {\n// theme.configure(this);\n// });\n// this.setCurrentTheme(this.defaultTheme.id);\n// }\n\n// register(theme: ITheme) {\n// this.themeMap[theme.id] = theme;\n// }\n// getThemes(): ITheme[] {\n// return Object.keys(this.themeMap).map(k => this.themeMap[k]);\n// }\n\n// getTheme(themeId: string): ITheme {\n// return this.themeMap[themeId];\n// }\n\n// setCurrentTheme(themeId: string): void {\n// this.activeTheme = this.themeMap[themeId] || this.defaultTheme;\n// }\n\n// getCurrentTheme(): ITheme {\n// return this.activeTheme as ITheme;\n// }\n\n// get defaultTheme(): ITheme {\n// return this.themeMap[DEFAULT_THEME_ID];\n// }\n\n// reset(): void {\n// this.setCurrentTheme(this.defaultTheme.id);\n// }\n// }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/plugins/builtin-plugin/poptip-plugin.ts"],"names":[],"mappings":"","file":"poptip-plugin.js","sourcesContent":["// import type { FederatedPointerEvent } from '../../event';\n// import { Generator } from '../../common/generator';\n// import type { IGraphic, IPlugin, IPluginService } from '../../interface';\n\n// export class PopTipPlugin implements IPlugin {\n// name: 'PopTipPlugin' = 'PopTipPlugin';\n// activeEvent: 'onRegister' = 'onRegister';\n// pluginService: IPluginService;\n// _uid: number = Generator.GenAutoIncrementId();\n// key: string = this.name + this._uid;\n// activeGraphic: IGraphic;\n\n// activate(context: IPluginService): void {\n// this.pluginService = context;\n// const { stage } = this.pluginService;\n\n// stage.addEventListener('pointerover', this.poptip);\n// }\n// poptip = (e: FederatedPointerEvent) => {\n// const graphic = e.target as any;\n// if (graphic.isContainer || !graphic.attribute || graphic === this.activeGraphic) {\n// this.unpoptip(e);\n// return;\n// }\n// const { poptip } = graphic.attribute;\n// if (poptip) {\n// graphic._showPoptip = true;\n// }\n\n// if (this.activeGraphic) {\n// this.activeGraphic._showPoptip = false;\n// }\n// console.log(graphic)\n// this.setActiveGraphic(graphic, true);\n// }\n\n// unpoptip = (e: FederatedPointerEvent) => {\n// if (!this.activeGraphic) {\n// return;\n// }\n// this.activeGraphic._showPoptip = false;\n// this.setActiveGraphic(null, true);\n// }\n\n// setActiveGraphic(graphic: any | null, rerender?: boolean) {\n// this.activeGraphic = graphic;\n// // 触发重绘\n// this.pluginService.stage.renderNextFrame();\n// }\n\n// deactivate(context: IPluginService): void {\n// const { stage } = this.pluginService;\n// stage.removeEventListener('pointerover', this.poptip);\n// }\n// }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/render/contributions/render/clear-screen.ts"],"names":[],"mappings":"","file":"clear-screen.js","sourcesContent":["// export class ClearScreenContribution extends Be\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/render/contributions/render/render-slector.ts"],"names":[],"mappings":"","file":"render-slector.js","sourcesContent":["// import type { IGraphic, IGraphicRender, IRenderSelector } from '../../../interface';\n\n// export class DefaultRenderSelector implements IRenderSelector {\n// selector(graphic: IGraphic): IGraphicRender | null {\n// return null;\n// }\n// }\n"]}
|