@visactor/vrender-core 0.21.12-alpha.2 → 0.21.12-alpha.4

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.
Files changed (45) hide show
  1. package/cjs/common/3d-interceptor.js +1 -1
  2. package/cjs/common/Reflect-metadata.js +1 -1
  3. package/cjs/common/bezier-utils.js +1 -1
  4. package/cjs/common/bounds-context.js +1 -2
  5. package/cjs/common/canvas-utils.js +1 -1
  6. package/cjs/common/color-utils.js +1 -1
  7. package/cjs/common/contribution-provider.js +1 -1
  8. package/cjs/common/custom-path2d.js +1 -1
  9. package/cjs/common/enums.js +1 -1
  10. package/cjs/common/generator.js +1 -1
  11. package/cjs/common/matrix.js +1 -1
  12. package/cjs/event/constant.js +1 -1
  13. package/cjs/event/event-manager.js +1 -1
  14. package/cjs/event/event-system.js +1 -1
  15. package/cjs/event/event-target.js +2 -1
  16. package/cjs/event/index.js +1 -1
  17. package/cjs/event/util.js +1 -1
  18. package/cjs/graphic/arc.js +1 -1
  19. package/cjs/graphic/arc3d.js +1 -1
  20. package/cjs/graphic/area.js +1 -1
  21. package/cjs/graphic/bounds.js +1 -1
  22. package/cjs/graphic/circle.js +1 -1
  23. package/es/common/3d-interceptor.js +1 -1
  24. package/es/common/Reflect-metadata.js +1 -1
  25. package/es/common/bezier-utils.js +1 -1
  26. package/es/common/bounds-context.js +1 -2
  27. package/es/common/canvas-utils.js +1 -1
  28. package/es/common/color-utils.js +1 -1
  29. package/es/common/contribution-provider.js +1 -1
  30. package/es/common/custom-path2d.js +1 -1
  31. package/es/common/enums.js +1 -1
  32. package/es/common/generator.js +1 -1
  33. package/es/common/matrix.js +1 -1
  34. package/es/event/constant.js +1 -1
  35. package/es/event/event-manager.js +1 -1
  36. package/es/event/event-system.js +1 -1
  37. package/es/event/event-target.js +2 -1
  38. package/es/event/index.js +1 -1
  39. package/es/event/util.js +1 -1
  40. package/es/graphic/arc.js +1 -1
  41. package/es/graphic/arc3d.js +1 -1
  42. package/es/graphic/area.js +1 -1
  43. package/es/graphic/bounds.js +1 -1
  44. package/es/graphic/circle.js +1 -1
  45. package/package.json +19 -19
@@ -48,4 +48,4 @@ const vutils_1 = require("@visactor/vutils"), constants_1 = require("../graphic/
48
48
  };
49
49
 
50
50
  exports.draw3dItem = draw3dItem;
51
- //# sourceMappingURL=3d-interceptor.js.map
51
+ //# sourceMappingURL=3d-interceptor.js.map
@@ -179,4 +179,4 @@ Object.defineProperty(exports, "__esModule", {
179
179
  }), previous && previous(key, value);
180
180
  })), Reflect;
181
181
  }({});
182
- //# sourceMappingURL=Reflect-metadata.js.map
182
+ //# sourceMappingURL=Reflect-metadata.js.map
@@ -32,4 +32,4 @@ function cubicPointAt(p0, p1, p2, p3, t) {
32
32
 
33
33
  exports.snapLength = snapLength, exports.cubicLength = cubicLength, exports.cubicCalc = cubicCalc,
34
34
  exports.cubicPointAt = cubicPointAt;
35
- //# sourceMappingURL=bezier-utils.js.map
35
+ //# sourceMappingURL=bezier-utils.js.map
@@ -56,5 +56,4 @@ class BoundsContext {
56
56
  release(...params) {}
57
57
  }
58
58
 
59
- exports.BoundsContext = BoundsContext;
60
- //# sourceMappingURL=bounds-context.js.map
59
+ exports.BoundsContext = BoundsContext;
@@ -54,5 +54,5 @@ function createConicGradient(context, color, x, y, w, h) {
54
54
  })), canvasGradient.GetPattern(w + x, h + y, undefined);
55
55
  }
56
56
 
57
- exports.getScaledStroke = getScaledStroke, exports.createColor = createColor;
58
57
  //# sourceMappingURL=canvas-utils.js.map
58
+ exports.getScaledStroke = getScaledStroke, exports.createColor = createColor;
@@ -228,4 +228,4 @@ class GradientParser {
228
228
  }
229
229
 
230
230
  exports.GradientParser = GradientParser;
231
- //# sourceMappingURL=color-utils.js.map
231
+ //# sourceMappingURL=color-utils.js.map
@@ -24,4 +24,4 @@ function bindContributionProviderNoSingletonScope(bind, id) {
24
24
  }
25
25
 
26
26
  exports.bindContributionProvider = bindContributionProvider, exports.bindContributionProviderNoSingletonScope = bindContributionProviderNoSingletonScope;
27
- //# sourceMappingURL=contribution-provider.js.map
27
+ //# sourceMappingURL=contribution-provider.js.map
@@ -334,4 +334,4 @@ function scale(current, sX, sY) {
334
334
  temp[7] = sY * current[7]; else if ("h" === c || "H" === c) temp[1] = sX * current[1]; else if ("v" === c || "V" === c) temp[1] = sY * current[1]; else for (let i = 1, n = current.length; i < n; ++i) temp[i] = (i % 2 == 1 ? sX : sY) * current[i];
335
335
  return temp;
336
336
  }
337
- //# sourceMappingURL=custom-path2d.js.map
337
+ //# sourceMappingURL=custom-path2d.js.map
@@ -46,4 +46,4 @@ function(Direction) {
46
46
  BaseRenderContributionTime[BaseRenderContributionTime.beforeFillStroke = 0] = "beforeFillStroke",
47
47
  BaseRenderContributionTime[BaseRenderContributionTime.afterFillStroke = 1] = "afterFillStroke";
48
48
  }(BaseRenderContributionTime = exports.BaseRenderContributionTime || (exports.BaseRenderContributionTime = {}));
49
- //# sourceMappingURL=enums.js.map
49
+ //# sourceMappingURL=enums.js.map
@@ -11,4 +11,4 @@ class Generator {
11
11
  }
12
12
 
13
13
  exports.Generator = Generator, Generator.auto_increment_id = 0;
14
- //# sourceMappingURL=generator.js.map
14
+ //# sourceMappingURL=generator.js.map
@@ -129,4 +129,4 @@ exports.identityMat4 = identityMat4, exports.rotateX = rotateX, exports.rotateY
129
129
  exports.rotateZ = rotateZ, exports.translate = translate, exports.mat3Tomat4 = mat3Tomat4,
130
130
  exports.multiplyMat4Mat3 = multiplyMat4Mat3, exports.scaleMat4 = scaleMat4, exports.multiplyMat4Mat4 = multiplyMat4Mat4,
131
131
  exports.lookAt = lookAt, exports.ortho = ortho, exports.transformMat4 = transformMat4;
132
- //# sourceMappingURL=matrix.js.map
132
+ //# sourceMappingURL=matrix.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.WILDCARD = void 0, exports.WILDCARD = "*";
6
- //# sourceMappingURL=constant.js.map
6
+ //# sourceMappingURL=constant.js.map
@@ -296,4 +296,4 @@ class EventManager {
296
296
  }
297
297
 
298
298
  exports.EventManager = EventManager;
299
- //# sourceMappingURL=event-manager.js.map
299
+ //# sourceMappingURL=event-manager.js.map
@@ -218,4 +218,4 @@ class EventSystem {
218
218
  }
219
219
 
220
220
  exports.EventSystem = EventSystem;
221
- //# sourceMappingURL=event-system.js.map
221
+ //# sourceMappingURL=event-system.js.map
@@ -17,4 +17,5 @@ exports.EventTarget = {
17
17
  emit(eventName, object) {
18
18
  return this.dispatchEvent(new federated_event_1.CustomEvent(eventName, object));
19
19
  }
20
- };
20
+ };
21
+ //# sourceMappingURL=event-target.js.map
@@ -21,4 +21,4 @@ Object.defineProperty(exports, "__esModule", {
21
21
  __exportStar(require("./event-target"), exports), __exportStar(require("./event-system"), exports),
22
22
  __exportStar(require("../interface/event"), exports), __exportStar(require("./util"), exports),
23
23
  __exportStar(require("./constant"), exports);
24
- //# sourceMappingURL=index.js.map
24
+ //# sourceMappingURL=index.js.map
package/cjs/event/util.js CHANGED
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.clock = void 0, exports.clock = "object" == typeof performance && performance.now ? performance : Date;
6
- //# sourceMappingURL=util.js.map
6
+ //# sourceMappingURL=util.js.map
@@ -167,4 +167,4 @@ function createArc(attributes) {
167
167
  exports.Arc = Arc, Arc.NOWORK_ANIMATE_ATTR = Object.assign({
168
168
  cap: 1
169
169
  }, graphic_1.NOWORK_ANIMATE_ATTR), exports.createArc = createArc;
170
- //# sourceMappingURL=arc.js.map
170
+ //# sourceMappingURL=arc.js.map
@@ -30,4 +30,4 @@ function createArc3d(attributes) {
30
30
  exports.Arc3d = Arc3d, Arc3d.NOWORK_ANIMATE_ATTR = Object.assign({
31
31
  cap: 1
32
32
  }, graphic_1.NOWORK_ANIMATE_ATTR), exports.createArc3d = createArc3d;
33
- //# sourceMappingURL=arc3d.js.map
33
+ //# sourceMappingURL=arc3d.js.map
@@ -91,4 +91,4 @@ exports.Area = Area, Area.NOWORK_ANIMATE_ATTR = Object.assign({
91
91
  segments: 1,
92
92
  curveType: 1
93
93
  }, graphic_1.NOWORK_ANIMATE_ATTR), exports.createArea = createArea;
94
- //# sourceMappingURL=area.js.map
94
+ //# sourceMappingURL=area.js.map
@@ -19,4 +19,4 @@ function getRichTextBounds(params) {
19
19
  }
20
20
 
21
21
  exports.getTextBounds = getTextBounds, exports.getRichTextBounds = getRichTextBounds;
22
- //# sourceMappingURL=bounds.js.map
22
+ //# sourceMappingURL=bounds.js.map
@@ -63,4 +63,4 @@ function createCircle(attributes) {
63
63
 
64
64
  exports.Circle = Circle, Circle.NOWORK_ANIMATE_ATTR = graphic_1.NOWORK_ANIMATE_ATTR,
65
65
  exports.createCircle = createCircle;
66
- //# sourceMappingURL=circle.js.map
66
+ //# sourceMappingURL=circle.js.map
@@ -44,4 +44,4 @@ export const draw3dItem = (context, graphic, callback, output) => {
44
44
  } else result = callback(isPie, is3d);
45
45
  return result;
46
46
  };
47
- //# sourceMappingURL=3d-interceptor.js.map
47
+ //# sourceMappingURL=3d-interceptor.js.map
@@ -175,4 +175,4 @@ export default (function(Reflect) {
175
175
  }), previous && previous(key, value);
176
176
  })), Reflect;
177
177
  }({}));
178
- //# sourceMappingURL=Reflect-metadata.js.map
178
+ //# sourceMappingURL=Reflect-metadata.js.map
@@ -23,4 +23,4 @@ export function cubicPointAt(p0, p1, p2, p3, t) {
23
23
  const x = cubicCalc(p0.x, p1.x, p2.x, p3.x, t), y = cubicCalc(p0.y, p1.y, p2.y, p3.y, t);
24
24
  return new Point(x, y);
25
25
  }
26
- //# sourceMappingURL=bezier-utils.js.map
26
+ //# sourceMappingURL=bezier-utils.js.map
@@ -49,5 +49,4 @@ export class BoundsContext {
49
49
  this.bounds.clear();
50
50
  }
51
51
  release(...params) {}
52
- }
53
- //# sourceMappingURL=bounds-context.js.map
52
+ }
@@ -49,4 +49,4 @@ function createConicGradient(context, color, x, y, w, h) {
49
49
  canvasGradient.addColorStop(stop.offset, stop.color);
50
50
  })), canvasGradient.GetPattern(w + x, h + y, undefined);
51
51
  }
52
- //# sourceMappingURL=canvas-utils.js.map
52
+ //# sourceMappingURL=canvas-utils.js.map
@@ -221,4 +221,4 @@ export class GradientParser {
221
221
  };
222
222
  }
223
223
  }
224
- //# sourceMappingURL=color-utils.js.map
224
+ //# sourceMappingURL=color-utils.js.map
@@ -17,4 +17,4 @@ export function bindContributionProvider(bind, id) {
17
17
  export function bindContributionProviderNoSingletonScope(bind, id) {
18
18
  bind(ContributionProvider).toDynamicValue((({container: container}) => new ContributionProviderCache(id, container))).whenTargetNamed(id);
19
19
  }
20
- //# sourceMappingURL=contribution-provider.js.map
20
+ //# sourceMappingURL=contribution-provider.js.map
@@ -339,4 +339,4 @@ function scale(current, sX, sY) {
339
339
  temp[7] = sY * current[7]; else if ("h" === c || "H" === c) temp[1] = sX * current[1]; else if ("v" === c || "V" === c) temp[1] = sY * current[1]; else for (let i = 1, n = current.length; i < n; ++i) temp[i] = (i % 2 == 1 ? sX : sY) * current[i];
340
340
  return temp;
341
341
  }
342
- //# sourceMappingURL=custom-path2d.js.map
342
+ //# sourceMappingURL=custom-path2d.js.map
@@ -70,4 +70,4 @@ export var BaseRenderContributionTime;
70
70
  BaseRenderContributionTime[BaseRenderContributionTime.beforeFillStroke = 0] = "beforeFillStroke",
71
71
  BaseRenderContributionTime[BaseRenderContributionTime.afterFillStroke = 1] = "afterFillStroke";
72
72
  }(BaseRenderContributionTime || (BaseRenderContributionTime = {}));
73
- //# sourceMappingURL=enums.js.map
73
+ //# sourceMappingURL=enums.js.map
@@ -5,4 +5,4 @@ export class Generator {
5
5
  }
6
6
 
7
7
  Generator.auto_increment_id = 0;
8
- //# sourceMappingURL=generator.js.map
8
+ //# sourceMappingURL=generator.js.map
@@ -118,4 +118,4 @@ export function transformMat4(out, a, m) {
118
118
  return w = w || 1, out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w, out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w,
119
119
  out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w, out;
120
120
  }
121
- //# sourceMappingURL=matrix.js.map
121
+ //# sourceMappingURL=matrix.js.map
@@ -1,2 +1,2 @@
1
1
  export const WILDCARD = "*";
2
- //# sourceMappingURL=constant.js.map
2
+ //# sourceMappingURL=constant.js.map
@@ -296,4 +296,4 @@ export class EventManager {
296
296
  this.mappingTable = null, this.mappingState = null, this.cursorTarget = null;
297
297
  }
298
298
  }
299
- //# sourceMappingURL=event-manager.js.map
299
+ //# sourceMappingURL=event-manager.js.map
@@ -212,4 +212,4 @@ export class EventSystem {
212
212
  this.manager.pauseNotify = !1;
213
213
  }
214
214
  }
215
- //# sourceMappingURL=event-system.js.map
215
+ //# sourceMappingURL=event-system.js.map
@@ -11,4 +11,5 @@ export const EventTarget = {
11
11
  emit(eventName, object) {
12
12
  return this.dispatchEvent(new CustomEvent(eventName, object));
13
13
  }
14
- };
14
+ };
15
+ //# sourceMappingURL=event-target.js.map
package/es/event/index.js CHANGED
@@ -11,4 +11,4 @@ export * from "../interface/event";
11
11
  export * from "./util";
12
12
 
13
13
  export * from "./constant";
14
- //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
package/es/event/util.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const clock = "object" == typeof performance && performance.now ? performance : Date;
2
- //# sourceMappingURL=util.js.map
2
+ //# sourceMappingURL=util.js.map
package/es/graphic/arc.js CHANGED
@@ -169,4 +169,4 @@ Arc.NOWORK_ANIMATE_ATTR = Object.assign({
169
169
  export function createArc(attributes) {
170
170
  return new Arc(attributes);
171
171
  }
172
- //# sourceMappingURL=arc.js.map
172
+ //# sourceMappingURL=arc.js.map
@@ -30,4 +30,4 @@ Arc3d.NOWORK_ANIMATE_ATTR = Object.assign({
30
30
  export function createArc3d(attributes) {
31
31
  return new Arc3d(attributes);
32
32
  }
33
- //# sourceMappingURL=arc3d.js.map
33
+ //# sourceMappingURL=arc3d.js.map
@@ -97,4 +97,4 @@ Area.NOWORK_ANIMATE_ATTR = Object.assign({
97
97
  export function createArea(attributes) {
98
98
  return new Area(attributes);
99
99
  }
100
- //# sourceMappingURL=area.js.map
100
+ //# sourceMappingURL=area.js.map
@@ -11,4 +11,4 @@ export function getRichTextBounds(params) {
11
11
  return richText || (richText = graphicCreator.CreateGraphic("richtext", {})), richText.setAttributes(params),
12
12
  richText.AABBBounds;
13
13
  }
14
- //# sourceMappingURL=bounds.js.map
14
+ //# sourceMappingURL=bounds.js.map
@@ -72,4 +72,4 @@ Circle.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
72
72
  export function createCircle(attributes) {
73
73
  return new Circle(attributes);
74
74
  }
75
- //# sourceMappingURL=circle.js.map
75
+ //# sourceMappingURL=circle.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-core",
3
- "version": "0.21.12-alpha.2",
3
+ "version": "0.21.12-alpha.4",
4
4
  "description": "",
5
5
  "sideEffects": [
6
6
  "./src/modules.ts",
@@ -15,27 +15,11 @@
15
15
  "es",
16
16
  "dist"
17
17
  ],
18
- "scripts": {
19
- "compile": "tsc --noEmit",
20
- "eslint": "eslint --debug --fix src/",
21
- "build": "cross-env DEBUG='Bundler*' bundle --clean",
22
- "build-umd": "cross-env DEBUG='Bundler*' bundle --clean -f umd",
23
- "dev": "cross-env DEBUG='Bundler*' bundle --clean -f es -w",
24
- "start": "vite ./__tests__/browser",
25
- "test": "jest",
26
- "test-live": "npm run test-watch __tests__/unit/theme/line.test.ts",
27
- "test-watch": "cross-env DEBUG_MODE=1 jest --watch",
28
- "test-cov": "jest -w 16 --coverage",
29
- "build:spec-types": "rm -rf ./spec-types && tsc -p ./tsconfig.spec.json --declaration --emitDeclarationOnly --outDir ./spec-types"
30
- },
31
18
  "dependencies": {
32
19
  "color-convert": "2.0.1",
33
20
  "@visactor/vutils": "~0.19.3"
34
21
  },
35
22
  "devDependencies": {
36
- "@internal/bundler": "workspace:*",
37
- "@internal/eslint-config": "workspace:*",
38
- "@internal/ts-config": "workspace:*",
39
23
  "@rushstack/eslint-patch": "~1.1.4",
40
24
  "react": "^18.0.0",
41
25
  "react-dom": "^18.0.0",
@@ -50,7 +34,10 @@
50
34
  "eslint": "~8.18.0",
51
35
  "vite": "3.2.6",
52
36
  "typescript": "4.9.5",
53
- "cross-env": "^7.0.3"
37
+ "cross-env": "^7.0.3",
38
+ "@internal/bundler": "0.0.1",
39
+ "@internal/eslint-config": "0.0.1",
40
+ "@internal/ts-config": "0.0.1"
54
41
  },
55
42
  "keywords": [
56
43
  "VisActor",
@@ -78,5 +65,18 @@
78
65
  },
79
66
  "publishConfig": {
80
67
  "access": "public"
68
+ },
69
+ "scripts": {
70
+ "compile": "tsc --noEmit",
71
+ "eslint": "eslint --debug --fix src/",
72
+ "build": "cross-env DEBUG='Bundler*' bundle --clean",
73
+ "build-umd": "cross-env DEBUG='Bundler*' bundle --clean -f umd",
74
+ "dev": "cross-env DEBUG='Bundler*' bundle --clean -f es -w",
75
+ "start": "vite ./__tests__/browser",
76
+ "test": "jest",
77
+ "test-live": "npm run test-watch __tests__/unit/theme/line.test.ts",
78
+ "test-watch": "cross-env DEBUG_MODE=1 jest --watch",
79
+ "test-cov": "jest -w 16 --coverage",
80
+ "build:spec-types": "rm -rf ./spec-types && tsc -p ./tsconfig.spec.json --declaration --emitDeclarationOnly --outDir ./spec-types"
81
81
  }
82
- }
82
+ }