@visactor/vrender-core 0.22.9-alpha.2 → 0.22.9
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/common/polygon.js +1 -0
- package/cjs/common/render-area.js +0 -1
- package/cjs/common/segment/index.js +3 -0
- package/cjs/common/segment/index.js.map +1 -1
- package/cjs/common/segment/step.d.ts +6 -0
- package/cjs/common/segment/step.js +19 -2
- package/cjs/common/segment/step.js.map +1 -1
- package/cjs/common/sort.js +1 -1
- package/cjs/common/split-path.js +1 -1
- package/cjs/core/global.d.ts +5 -7
- package/cjs/core/global.js +13 -13
- package/cjs/core/global.js.map +1 -1
- package/cjs/core/window.d.ts +4 -5
- package/cjs/core/window.js +13 -14
- package/cjs/core/window.js.map +1 -1
- package/cjs/event/event-system.js +10 -11
- package/cjs/event/event-system.js.map +1 -1
- package/cjs/graphic/graphic.d.ts +1 -1
- package/cjs/graphic/graphic.js +5 -12
- package/cjs/graphic/graphic.js.map +1 -1
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +1 -2
- package/cjs/index.js.map +1 -1
- package/cjs/interface/common.d.ts +1 -1
- package/cjs/interface/common.js.map +1 -1
- package/cjs/interface/global.d.ts +1 -2
- package/cjs/interface/global.js.map +1 -1
- package/cjs/interface/window.d.ts +0 -1
- package/cjs/interface/window.js.map +1 -1
- package/dist/index.es.js +94 -230
- package/es/common/polygon.js +2 -1
- package/es/common/render-area.js +1 -2
- package/es/common/segment/index.js +4 -1
- package/es/common/segment/index.js.map +1 -1
- package/es/common/segment/step.d.ts +6 -0
- package/es/common/segment/step.js +13 -0
- package/es/common/segment/step.js.map +1 -1
- package/es/common/sort.js +1 -1
- package/es/common/split-path.js +1 -1
- package/es/core/global.d.ts +5 -7
- package/es/core/global.js +12 -14
- package/es/core/global.js.map +1 -1
- package/es/core/window.d.ts +4 -5
- package/es/core/window.js +12 -15
- package/es/core/window.js.map +1 -1
- package/es/event/event-system.js +10 -11
- package/es/event/event-system.js.map +1 -1
- package/es/graphic/graphic.d.ts +1 -1
- package/es/graphic/graphic.js +5 -12
- package/es/graphic/graphic.js.map +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -2
- package/es/index.js.map +1 -1
- package/es/interface/common.d.ts +1 -1
- package/es/interface/common.js.map +1 -1
- package/es/interface/global.d.ts +1 -2
- package/es/interface/global.js.map +1 -1
- package/es/interface/window.d.ts +0 -1
- package/es/interface/window.js.map +1 -1
- package/package.json +3 -3
- package/cjs/common/event-listener-manager.d.ts +0 -14
- package/cjs/common/event-listener-manager.js +0 -52
- package/cjs/common/event-listener-manager.js.map +0 -1
- package/cjs/common/event-transformer.d.ts +0 -12
- package/cjs/common/event-transformer.js +0 -91
- package/cjs/common/event-transformer.js.map +0 -1
- package/cjs/interface/event-listener-manager.d.ts +0 -7
- package/cjs/interface/event-listener-manager.js +0 -6
- package/cjs/interface/event-listener-manager.js.map +0 -1
- package/es/common/event-listener-manager.d.ts +0 -14
- package/es/common/event-listener-manager.js +0 -44
- package/es/common/event-listener-manager.js.map +0 -1
- package/es/common/event-transformer.d.ts +0 -12
- package/es/common/event-transformer.js +0 -81
- package/es/common/event-transformer.js.map +0 -1
- package/es/interface/event-listener-manager.d.ts +0 -7
- package/es/interface/event-listener-manager.js +0 -2
- package/es/interface/event-listener-manager.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tau, halfPi as halfPi$1, AABBBounds, degreeToRadian, PointService, Point, abs, max, min, atan2, epsilon, Matrix, pi2, Logger, pi, isArray, isPointInLine, isNumberClose, TextMeasure, EventEmitter, isBoolean, isObject, isFunction, isString, has, isUndefined, cos, sin, pointAt, isNumber
|
|
1
|
+
import { tau, halfPi as halfPi$1, AABBBounds, degreeToRadian, PointService, Point, abs, max, min, atan2, epsilon, Matrix, pi2, Logger, pi, isArray, isPointInLine, isNumberClose, TextMeasure, EventEmitter, isBoolean, isObject, isFunction, isString, has, isUndefined, cos, sin, pointAt, isNumber, getDecimalPlaces, isValidNumber, clamp, getAngleByPoint, isNil, Bounds, getIntersectPoint, Color, DEFAULT_COLORS, sqrt, OBBBounds, normalTransform, isValidUrl, isBase64, acos, LRU, lowerCamelCaseToMiddle, isValid, transformBoundsWithMatrix, getContextFont, rotatePoint, clampAngleByRadian, asin, arrayEqual, getRectIntersect, isRectIntersect, merge, calculateAnchorOfBounds, styleStringToObject } from '@visactor/vutils';
|
|
2
2
|
|
|
3
3
|
class Generator {
|
|
4
4
|
static GenAutoIncrementId() {
|
|
@@ -852,71 +852,8 @@ const EnvContribution = Symbol.for('EnvContribution');
|
|
|
852
852
|
const VGlobal = Symbol.for('VGlobal');
|
|
853
853
|
const DEFAULT_TEXT_FONT_FAMILY = 'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol';
|
|
854
854
|
|
|
855
|
-
class EventListenerManager {
|
|
856
|
-
constructor() {
|
|
857
|
-
this._listenerMap = new Map();
|
|
858
|
-
this._eventListenerTransformer = event => event;
|
|
859
|
-
}
|
|
860
|
-
setEventListenerTransformer(transformer) {
|
|
861
|
-
this._eventListenerTransformer = transformer || (event => event);
|
|
862
|
-
}
|
|
863
|
-
addEventListener(type, listener, options) {
|
|
864
|
-
if (!listener) {
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
const wrappedListener = (event) => {
|
|
868
|
-
const transformedEvent = this._eventListenerTransformer(event);
|
|
869
|
-
if (typeof listener === 'function') {
|
|
870
|
-
listener(transformedEvent);
|
|
871
|
-
}
|
|
872
|
-
else if (listener.handleEvent) {
|
|
873
|
-
listener.handleEvent(transformedEvent);
|
|
874
|
-
}
|
|
875
|
-
};
|
|
876
|
-
if (!this._listenerMap.has(type)) {
|
|
877
|
-
this._listenerMap.set(type, new Map());
|
|
878
|
-
}
|
|
879
|
-
this._listenerMap.get(type).set(listener, wrappedListener);
|
|
880
|
-
this._nativeAddEventListener(type, wrappedListener, options);
|
|
881
|
-
}
|
|
882
|
-
removeEventListener(type, listener, options) {
|
|
883
|
-
var _a;
|
|
884
|
-
if (!listener) {
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
const wrappedListener = (_a = this._listenerMap.get(type)) === null || _a === void 0 ? void 0 : _a.get(listener);
|
|
888
|
-
if (wrappedListener) {
|
|
889
|
-
this._nativeRemoveEventListener(type, wrappedListener, options);
|
|
890
|
-
this._listenerMap.get(type).delete(listener);
|
|
891
|
-
if (this._listenerMap.get(type).size === 0) {
|
|
892
|
-
this._listenerMap.delete(type);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
dispatchEvent(event) {
|
|
897
|
-
return this._nativeDispatchEvent(event);
|
|
898
|
-
}
|
|
899
|
-
clearAllEventListeners() {
|
|
900
|
-
this._listenerMap.forEach((listenersMap, type) => {
|
|
901
|
-
listenersMap.forEach((wrappedListener, originalListener) => {
|
|
902
|
-
this._nativeRemoveEventListener(type, wrappedListener, undefined);
|
|
903
|
-
});
|
|
904
|
-
});
|
|
905
|
-
this._listenerMap.clear();
|
|
906
|
-
}
|
|
907
|
-
_nativeAddEventListener(type, listener, options) {
|
|
908
|
-
throw new Error('_nativeAddEventListener must be implemented by derived classes');
|
|
909
|
-
}
|
|
910
|
-
_nativeRemoveEventListener(type, listener, options) {
|
|
911
|
-
throw new Error('_nativeRemoveEventListener must be implemented by derived classes');
|
|
912
|
-
}
|
|
913
|
-
_nativeDispatchEvent(event) {
|
|
914
|
-
throw new Error('_nativeDispatchEvent must be implemented by derived classes');
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
|
|
918
855
|
const defaultEnv = 'browser';
|
|
919
|
-
let DefaultGlobal = class DefaultGlobal
|
|
856
|
+
let DefaultGlobal = class DefaultGlobal {
|
|
920
857
|
get env() {
|
|
921
858
|
return this._env;
|
|
922
859
|
}
|
|
@@ -993,10 +930,8 @@ let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
|
|
|
993
930
|
this.envContribution.applyStyles = support;
|
|
994
931
|
}
|
|
995
932
|
constructor(contributions) {
|
|
996
|
-
super();
|
|
997
933
|
this.contributions = contributions;
|
|
998
934
|
this._isImageAnonymous = true;
|
|
999
|
-
this.eventListenerTransformer = event => event;
|
|
1000
935
|
this.id = Generator.GenAutoIncrementId();
|
|
1001
936
|
this.hooks = {
|
|
1002
937
|
onSetEnv: new SyncHook(['lastEnv', 'env', 'global'])
|
|
@@ -1004,24 +939,6 @@ let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
|
|
|
1004
939
|
this.measureTextMethod = 'native';
|
|
1005
940
|
this.optimizeVisible = false;
|
|
1006
941
|
}
|
|
1007
|
-
_nativeAddEventListener(type, listener, options) {
|
|
1008
|
-
if (!this._env) {
|
|
1009
|
-
this.setEnv(defaultEnv);
|
|
1010
|
-
}
|
|
1011
|
-
return this.envContribution.addEventListener(type, listener, options);
|
|
1012
|
-
}
|
|
1013
|
-
_nativeRemoveEventListener(type, listener, options) {
|
|
1014
|
-
if (!this._env) {
|
|
1015
|
-
this.setEnv(defaultEnv);
|
|
1016
|
-
}
|
|
1017
|
-
return this.envContribution.removeEventListener(type, listener, options);
|
|
1018
|
-
}
|
|
1019
|
-
_nativeDispatchEvent(event) {
|
|
1020
|
-
if (!this._env) {
|
|
1021
|
-
this.setEnv(defaultEnv);
|
|
1022
|
-
}
|
|
1023
|
-
return this.envContribution.dispatchEvent(event);
|
|
1024
|
-
}
|
|
1025
942
|
bindContribution(params) {
|
|
1026
943
|
const promiseArr = [];
|
|
1027
944
|
this.contributions.getContributions().forEach(contribution => {
|
|
@@ -1090,6 +1007,24 @@ let DefaultGlobal = class DefaultGlobal extends EventListenerManager {
|
|
|
1090
1007
|
}
|
|
1091
1008
|
return this.envContribution.releaseCanvas(canvas);
|
|
1092
1009
|
}
|
|
1010
|
+
addEventListener(type, listener, options) {
|
|
1011
|
+
if (!this._env) {
|
|
1012
|
+
this.setEnv(defaultEnv);
|
|
1013
|
+
}
|
|
1014
|
+
return this.envContribution.addEventListener(type, listener, options);
|
|
1015
|
+
}
|
|
1016
|
+
removeEventListener(type, listener, options) {
|
|
1017
|
+
if (!this._env) {
|
|
1018
|
+
this.setEnv(defaultEnv);
|
|
1019
|
+
}
|
|
1020
|
+
return this.envContribution.removeEventListener(type, listener, options);
|
|
1021
|
+
}
|
|
1022
|
+
dispatchEvent(event) {
|
|
1023
|
+
if (!this._env) {
|
|
1024
|
+
this.setEnv(defaultEnv);
|
|
1025
|
+
}
|
|
1026
|
+
return this.envContribution.dispatchEvent(event);
|
|
1027
|
+
}
|
|
1093
1028
|
getRequestAnimationFrame() {
|
|
1094
1029
|
if (!this._env) {
|
|
1095
1030
|
this.setEnv(defaultEnv);
|
|
@@ -2448,6 +2383,11 @@ let Step$1 = class Step {
|
|
|
2448
2383
|
return this.context.tryUpdateLength();
|
|
2449
2384
|
}
|
|
2450
2385
|
};
|
|
2386
|
+
class StepClosed extends Step$1 {
|
|
2387
|
+
lineEnd() {
|
|
2388
|
+
this.context.closePath();
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2451
2391
|
function genStepSegments(points, t, params = {}) {
|
|
2452
2392
|
const { direction, startPoint } = params;
|
|
2453
2393
|
if (points.length < 2 - Number(!!startPoint)) {
|
|
@@ -2463,6 +2403,18 @@ function genStepSegments(points, t, params = {}) {
|
|
|
2463
2403
|
function genStepTypeSegments(path, points) {
|
|
2464
2404
|
return genCurveSegments(path, points, 1);
|
|
2465
2405
|
}
|
|
2406
|
+
function genStepClosedSegments(points, t, params = {}) {
|
|
2407
|
+
const { direction, startPoint } = params;
|
|
2408
|
+
if (points.length < 2 - Number(!!startPoint)) {
|
|
2409
|
+
return null;
|
|
2410
|
+
}
|
|
2411
|
+
const segContext = new SegContext('step', direction !== null && direction !== void 0 ? direction : (abs(points[points.length - 1].x - points[0].x) > abs(points[points.length - 1].y - points[0].y)
|
|
2412
|
+
? Direction$1.ROW
|
|
2413
|
+
: Direction$1.COLUMN));
|
|
2414
|
+
const step = new StepClosed(segContext, t, startPoint);
|
|
2415
|
+
genStepTypeSegments(step, points);
|
|
2416
|
+
return segContext;
|
|
2417
|
+
}
|
|
2466
2418
|
|
|
2467
2419
|
class LinearClosed extends Linear {
|
|
2468
2420
|
lineEnd() {
|
|
@@ -2737,6 +2689,8 @@ function calcLineCache(points, curveType, params) {
|
|
|
2737
2689
|
return genMonotoneYSegments(points, params);
|
|
2738
2690
|
case 'step':
|
|
2739
2691
|
return genStepSegments(points, 0.5, params);
|
|
2692
|
+
case 'stepClosed':
|
|
2693
|
+
return genStepClosedSegments(points, 0.5, params);
|
|
2740
2694
|
case 'stepBefore':
|
|
2741
2695
|
return genStepSegments(points, 0, params);
|
|
2742
2696
|
case 'stepAfter':
|
|
@@ -4548,9 +4502,6 @@ function isAroundZero(val) {
|
|
|
4548
4502
|
function isNotAroundZero(val) {
|
|
4549
4503
|
return val > EPSILON || val < -EPSILON;
|
|
4550
4504
|
}
|
|
4551
|
-
function isNumber(data) {
|
|
4552
|
-
return typeof data === 'number' && Number.isFinite(data);
|
|
4553
|
-
}
|
|
4554
4505
|
const _v0 = [0, 0];
|
|
4555
4506
|
const _v1 = [0, 0];
|
|
4556
4507
|
const _v2 = [0, 0];
|
|
@@ -5287,7 +5238,7 @@ const canvasAllocate = new DefaultCanvasAllocate();
|
|
|
5287
5238
|
|
|
5288
5239
|
const VWindow = Symbol.for('VWindow');
|
|
5289
5240
|
const WindowHandlerContribution = Symbol.for('WindowHandlerContribution');
|
|
5290
|
-
let DefaultWindow = class DefaultWindow
|
|
5241
|
+
let DefaultWindow = class DefaultWindow {
|
|
5291
5242
|
get width() {
|
|
5292
5243
|
if (this._handler) {
|
|
5293
5244
|
const wh = this._handler.getWH();
|
|
@@ -5306,7 +5257,6 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
|
|
|
5306
5257
|
return this._handler.getDpr();
|
|
5307
5258
|
}
|
|
5308
5259
|
constructor() {
|
|
5309
|
-
super();
|
|
5310
5260
|
this.hooks = {
|
|
5311
5261
|
onChange: new SyncHook(['x', 'y', 'width', 'height'])
|
|
5312
5262
|
};
|
|
@@ -5323,15 +5273,6 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
|
|
|
5323
5273
|
this.global = application.global;
|
|
5324
5274
|
this.postInit();
|
|
5325
5275
|
}
|
|
5326
|
-
_nativeAddEventListener(type, listener, options) {
|
|
5327
|
-
return this._handler.addEventListener(type, listener, options);
|
|
5328
|
-
}
|
|
5329
|
-
_nativeRemoveEventListener(type, listener, options) {
|
|
5330
|
-
return this._handler.removeEventListener(type, listener, options);
|
|
5331
|
-
}
|
|
5332
|
-
_nativeDispatchEvent(event) {
|
|
5333
|
-
return this._handler.dispatchEvent(event);
|
|
5334
|
-
}
|
|
5335
5276
|
postInit() {
|
|
5336
5277
|
this.global.hooks.onSetEnv.tap('window', this.active);
|
|
5337
5278
|
this.active();
|
|
@@ -5377,7 +5318,6 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
|
|
|
5377
5318
|
}
|
|
5378
5319
|
release() {
|
|
5379
5320
|
this.global.hooks.onSetEnv.unTap('window', this.active);
|
|
5380
|
-
this.clearAllEventListeners();
|
|
5381
5321
|
return this._handler.releaseWindow();
|
|
5382
5322
|
}
|
|
5383
5323
|
getContext() {
|
|
@@ -5392,6 +5332,15 @@ let DefaultWindow = class DefaultWindow extends EventListenerManager {
|
|
|
5392
5332
|
}
|
|
5393
5333
|
return this._handler.getImageBuffer(type);
|
|
5394
5334
|
}
|
|
5335
|
+
addEventListener(type, listener, options) {
|
|
5336
|
+
return this._handler.addEventListener(type, listener, options);
|
|
5337
|
+
}
|
|
5338
|
+
removeEventListener(type, listener, options) {
|
|
5339
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
5340
|
+
}
|
|
5341
|
+
dispatchEvent(event) {
|
|
5342
|
+
return this._handler.dispatchEvent(event);
|
|
5343
|
+
}
|
|
5395
5344
|
getBoundingClientRect() {
|
|
5396
5345
|
return this._handler.getBoundingClientRect();
|
|
5397
5346
|
}
|
|
@@ -7451,8 +7400,8 @@ class EventSystem {
|
|
|
7451
7400
|
const { globalObj, domElement } = this;
|
|
7452
7401
|
if (this.supportsPointerEvents) {
|
|
7453
7402
|
if (globalObj.getDocument()) {
|
|
7454
|
-
globalObj.addEventListener('pointermove', this.onPointerMove, true);
|
|
7455
|
-
globalObj.addEventListener('pointerup', this.onPointerUp, true);
|
|
7403
|
+
globalObj.getDocument().addEventListener('pointermove', this.onPointerMove, true);
|
|
7404
|
+
globalObj.getDocument().addEventListener('pointerup', this.onPointerUp, true);
|
|
7456
7405
|
}
|
|
7457
7406
|
else {
|
|
7458
7407
|
domElement.addEventListener('pointermove', this.onPointerMove, true);
|
|
@@ -7464,8 +7413,8 @@ class EventSystem {
|
|
|
7464
7413
|
}
|
|
7465
7414
|
else {
|
|
7466
7415
|
if (globalObj.getDocument()) {
|
|
7467
|
-
globalObj.addEventListener('mousemove', this.onPointerMove, true);
|
|
7468
|
-
globalObj.addEventListener('mouseup', this.onPointerUp, true);
|
|
7416
|
+
globalObj.getDocument().addEventListener('mousemove', this.onPointerMove, true);
|
|
7417
|
+
globalObj.getDocument().addEventListener('mouseup', this.onPointerUp, true);
|
|
7469
7418
|
}
|
|
7470
7419
|
else {
|
|
7471
7420
|
domElement.addEventListener('mousemove', this.onPointerMove, true);
|
|
@@ -7486,32 +7435,22 @@ class EventSystem {
|
|
|
7486
7435
|
this.eventsAdded = true;
|
|
7487
7436
|
}
|
|
7488
7437
|
removeEvents() {
|
|
7438
|
+
var _a;
|
|
7489
7439
|
if (!this.eventsAdded || !this.domElement) {
|
|
7490
7440
|
return;
|
|
7491
7441
|
}
|
|
7492
7442
|
const { globalObj, domElement } = this;
|
|
7443
|
+
const globalDocument = (_a = globalObj.getDocument()) !== null && _a !== void 0 ? _a : domElement;
|
|
7493
7444
|
if (this.supportsPointerEvents) {
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
globalObj.removeEventListener('pointerup', this.onPointerUp, true);
|
|
7497
|
-
}
|
|
7498
|
-
else {
|
|
7499
|
-
domElement.removeEventListener('pointermove', this.onPointerMove, true);
|
|
7500
|
-
domElement.removeEventListener('pointerup', this.onPointerUp, true);
|
|
7501
|
-
}
|
|
7445
|
+
globalDocument.removeEventListener('pointermove', this.onPointerMove, true);
|
|
7446
|
+
globalDocument.removeEventListener('pointerup', this.onPointerUp, true);
|
|
7502
7447
|
domElement.removeEventListener('pointerdown', this.onPointerDown, true);
|
|
7503
7448
|
domElement.removeEventListener('pointerleave', this.onPointerOverOut, true);
|
|
7504
7449
|
domElement.removeEventListener('pointerover', this.onPointerOverOut, true);
|
|
7505
7450
|
}
|
|
7506
7451
|
else {
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
globalObj.removeEventListener('mouseup', this.onPointerUp, true);
|
|
7510
|
-
}
|
|
7511
|
-
else {
|
|
7512
|
-
domElement.removeEventListener('mousemove', this.onPointerMove, true);
|
|
7513
|
-
domElement.removeEventListener('mouseup', this.onPointerUp, true);
|
|
7514
|
-
}
|
|
7452
|
+
globalDocument.removeEventListener('mousemove', this.onPointerMove, true);
|
|
7453
|
+
globalDocument.removeEventListener('mouseup', this.onPointerUp, true);
|
|
7515
7454
|
domElement.removeEventListener('mousedown', this.onPointerDown, true);
|
|
7516
7455
|
domElement.removeEventListener('mouseout', this.onPointerOverOut, true);
|
|
7517
7456
|
domElement.removeEventListener('mouseover', this.onPointerOverOut, true);
|
|
@@ -9292,8 +9231,8 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
9292
9231
|
}
|
|
9293
9232
|
onBind() {
|
|
9294
9233
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9295
|
-
this.fromNumber = isNumber
|
|
9296
|
-
this.toNumber = isNumber
|
|
9234
|
+
this.fromNumber = isNumber((_a = this.from) === null || _a === void 0 ? void 0 : _a.text) ? (_b = this.from) === null || _b === void 0 ? void 0 : _b.text : Number.parseFloat((_c = this.from) === null || _c === void 0 ? void 0 : _c.text);
|
|
9235
|
+
this.toNumber = isNumber((_d = this.to) === null || _d === void 0 ? void 0 : _d.text) ? (_e = this.to) === null || _e === void 0 ? void 0 : _e.text : Number.parseFloat((_f = this.to) === null || _f === void 0 ? void 0 : _f.text);
|
|
9297
9236
|
if (!Number.isFinite(this.toNumber)) {
|
|
9298
9237
|
this.fromNumber = 0;
|
|
9299
9238
|
}
|
|
@@ -10861,7 +10800,7 @@ const splitCircle = (arc, count) => {
|
|
|
10861
10800
|
return res;
|
|
10862
10801
|
};
|
|
10863
10802
|
const samplingPoints = (points, count) => {
|
|
10864
|
-
const validatePoints = points.filter(point => point.defined !== false && isNumber
|
|
10803
|
+
const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
|
|
10865
10804
|
if (validatePoints.length === 0) {
|
|
10866
10805
|
return [];
|
|
10867
10806
|
}
|
|
@@ -10915,7 +10854,7 @@ const splitArea = (area, count) => {
|
|
|
10915
10854
|
return res.concat((_a = seg.points) !== null && _a !== void 0 ? _a : []);
|
|
10916
10855
|
}, []);
|
|
10917
10856
|
}
|
|
10918
|
-
const validatePoints = points.filter(point => point.defined !== false && isNumber
|
|
10857
|
+
const validatePoints = points.filter(point => point.defined !== false && isNumber(point.x) && isNumber(point.y));
|
|
10919
10858
|
if (!validatePoints.length) {
|
|
10920
10859
|
return [];
|
|
10921
10860
|
}
|
|
@@ -11149,7 +11088,7 @@ ColorStore.store255 = {};
|
|
|
11149
11088
|
ColorStore.store1 = {};
|
|
11150
11089
|
|
|
11151
11090
|
function colorArrayToString(color, alphaChannel = false) {
|
|
11152
|
-
if (Array.isArray(color) && isNumber
|
|
11091
|
+
if (Array.isArray(color) && isNumber(color[0])) {
|
|
11153
11092
|
return alphaChannel
|
|
11154
11093
|
? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})`
|
|
11155
11094
|
: `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})`;
|
|
@@ -11157,7 +11096,7 @@ function colorArrayToString(color, alphaChannel = false) {
|
|
|
11157
11096
|
return color;
|
|
11158
11097
|
}
|
|
11159
11098
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
11160
|
-
if ((Array.isArray(from) && !isNumber
|
|
11099
|
+
if ((Array.isArray(from) && !isNumber(from[0])) || (Array.isArray(to) && !isNumber(to[0]))) {
|
|
11161
11100
|
const out = new Array(4).fill(0).map((_, index) => {
|
|
11162
11101
|
return _interpolateColor(isArray(from) ? from[index] : from, isArray(to) ? to[index] : to, ratio, alphaChannel);
|
|
11163
11102
|
});
|
|
@@ -11975,7 +11914,7 @@ function getIndex(url, arr) {
|
|
|
11975
11914
|
|
|
11976
11915
|
class BaseSymbol {
|
|
11977
11916
|
bounds(size, bounds) {
|
|
11978
|
-
if (isNumber
|
|
11917
|
+
if (isNumber(size)) {
|
|
11979
11918
|
const halfS = size / 2;
|
|
11980
11919
|
bounds.x1 = -halfS;
|
|
11981
11920
|
bounds.x2 = halfS;
|
|
@@ -11990,7 +11929,7 @@ class BaseSymbol {
|
|
|
11990
11929
|
}
|
|
11991
11930
|
}
|
|
11992
11931
|
parseSize(size) {
|
|
11993
|
-
return isNumber
|
|
11932
|
+
return isNumber(size) ? size : Math.min(size[0], size[1]);
|
|
11994
11933
|
}
|
|
11995
11934
|
}
|
|
11996
11935
|
|
|
@@ -12601,13 +12540,13 @@ class RectSymbol extends BaseSymbol {
|
|
|
12601
12540
|
this.pathStr = 'M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z';
|
|
12602
12541
|
}
|
|
12603
12542
|
draw(ctx, size, x, y) {
|
|
12604
|
-
if (isNumber
|
|
12543
|
+
if (isNumber(size)) {
|
|
12605
12544
|
return rectSize(ctx, size, x, y);
|
|
12606
12545
|
}
|
|
12607
12546
|
return rectSizeArray(ctx, size, x, y);
|
|
12608
12547
|
}
|
|
12609
12548
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
12610
|
-
if (isNumber
|
|
12549
|
+
if (isNumber(size)) {
|
|
12611
12550
|
size = [size, size / 2];
|
|
12612
12551
|
}
|
|
12613
12552
|
const totalLength = (size[0] + size[1]) * 2;
|
|
@@ -12639,7 +12578,7 @@ class RectSymbol extends BaseSymbol {
|
|
|
12639
12578
|
return false;
|
|
12640
12579
|
}
|
|
12641
12580
|
drawOffset(ctx, size, x, y, offset) {
|
|
12642
|
-
if (isNumber
|
|
12581
|
+
if (isNumber(size)) {
|
|
12643
12582
|
return rectSize(ctx, size + 2 * offset, x, y);
|
|
12644
12583
|
}
|
|
12645
12584
|
return rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
@@ -12647,7 +12586,7 @@ class RectSymbol extends BaseSymbol {
|
|
|
12647
12586
|
}
|
|
12648
12587
|
var rect = new RectSymbol();
|
|
12649
12588
|
|
|
12650
|
-
const tempBounds
|
|
12589
|
+
const tempBounds = new AABBBounds();
|
|
12651
12590
|
class CustomSymbolClass {
|
|
12652
12591
|
constructor(type, path, isSvg = false) {
|
|
12653
12592
|
this.pathStr = '';
|
|
@@ -12681,7 +12620,7 @@ class CustomSymbolClass {
|
|
|
12681
12620
|
return this.drawOffset(ctx, size, x, y, 0, z, cb);
|
|
12682
12621
|
}
|
|
12683
12622
|
parseSize(size) {
|
|
12684
|
-
return isNumber
|
|
12623
|
+
return isNumber(size) ? size : Math.min(size[0], size[1]);
|
|
12685
12624
|
}
|
|
12686
12625
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
12687
12626
|
size = this.parseSize(size);
|
|
@@ -12706,11 +12645,11 @@ class CustomSymbolClass {
|
|
|
12706
12645
|
}
|
|
12707
12646
|
bounds.clear();
|
|
12708
12647
|
this.svgCache.forEach(({ path }) => {
|
|
12709
|
-
tempBounds
|
|
12710
|
-
tempBounds
|
|
12711
|
-
tempBounds
|
|
12712
|
-
tempBounds
|
|
12713
|
-
bounds.union(tempBounds
|
|
12648
|
+
tempBounds.x1 = path.bounds.x1 * size;
|
|
12649
|
+
tempBounds.y1 = path.bounds.y1 * size;
|
|
12650
|
+
tempBounds.x2 = path.bounds.x2 * size;
|
|
12651
|
+
tempBounds.y2 = path.bounds.y2 * size;
|
|
12652
|
+
bounds.union(tempBounds);
|
|
12714
12653
|
});
|
|
12715
12654
|
return;
|
|
12716
12655
|
}
|
|
@@ -13285,7 +13224,7 @@ const SVG_PARSE_ATTRIBUTE_MAP_KEYS = Object.keys(SVG_PARSE_ATTRIBUTE_MAP);
|
|
|
13285
13224
|
|
|
13286
13225
|
const _tempBounds$1 = new AABBBounds();
|
|
13287
13226
|
const tempMatrix = new Matrix();
|
|
13288
|
-
|
|
13227
|
+
new AABBBounds();
|
|
13289
13228
|
const PURE_STYLE_KEY = [
|
|
13290
13229
|
'stroke',
|
|
13291
13230
|
'opacity',
|
|
@@ -14139,18 +14078,20 @@ class Graphic extends Node {
|
|
|
14139
14078
|
needUpdateLayout() {
|
|
14140
14079
|
return !!(this._updateTag & UpdateTag.UPDATE_LAYOUT);
|
|
14141
14080
|
}
|
|
14142
|
-
getAnchor(anchor, params) {
|
|
14081
|
+
getAnchor(anchor, params, resetScale) {
|
|
14143
14082
|
const _anchor = [0, 0];
|
|
14144
14083
|
const getBounds = () => {
|
|
14145
14084
|
if (params.b) {
|
|
14146
14085
|
return params.b;
|
|
14147
14086
|
}
|
|
14148
|
-
const
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14087
|
+
const graphic = this.clone();
|
|
14088
|
+
graphic.attribute.angle = 0;
|
|
14089
|
+
graphic.attribute.scaleCenter = null;
|
|
14090
|
+
if (resetScale) {
|
|
14091
|
+
graphic.attribute.scaleX = 1;
|
|
14092
|
+
graphic.attribute.scaleY = 1;
|
|
14093
|
+
}
|
|
14094
|
+
params.b = graphic.AABBBounds;
|
|
14154
14095
|
return params.b;
|
|
14155
14096
|
};
|
|
14156
14097
|
if (typeof anchor[0] === 'string') {
|
|
@@ -14185,7 +14126,7 @@ class Graphic extends Node {
|
|
|
14185
14126
|
m.rotate(angle);
|
|
14186
14127
|
m.translate(-_anchor[0], -_anchor[1]);
|
|
14187
14128
|
m.translate(x, y);
|
|
14188
|
-
_anchor = this.getAnchor(scaleCenter, params);
|
|
14129
|
+
_anchor = this.getAnchor(scaleCenter, params, true);
|
|
14189
14130
|
application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, { x: _anchor[0], y: _anchor[1] });
|
|
14190
14131
|
}
|
|
14191
14132
|
else {
|
|
@@ -16317,12 +16258,12 @@ let DefaultGraphicService = class DefaultGraphicService {
|
|
|
16317
16258
|
updateHTMLTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
|
|
16318
16259
|
const { textAlign, textBaseline } = attribute;
|
|
16319
16260
|
if (attribute.forceBoundsHeight != null) {
|
|
16320
|
-
const h = isNumber
|
|
16261
|
+
const h = isNumber(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight();
|
|
16321
16262
|
const dy = textLayoutOffsetY(textBaseline, h, h);
|
|
16322
16263
|
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
16323
16264
|
}
|
|
16324
16265
|
if (attribute.forceBoundsWidth != null) {
|
|
16325
|
-
const w = isNumber
|
|
16266
|
+
const w = isNumber(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth();
|
|
16326
16267
|
const dx = textDrawOffsetX(textAlign, w);
|
|
16327
16268
|
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
16328
16269
|
}
|
|
@@ -19184,7 +19125,7 @@ class RichText extends Graphic {
|
|
|
19184
19125
|
}
|
|
19185
19126
|
else {
|
|
19186
19127
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
19187
|
-
if (isNumber
|
|
19128
|
+
if (isNumber(richTextConfig.text)) {
|
|
19188
19129
|
richTextConfig.text = `${richTextConfig.text}`;
|
|
19189
19130
|
}
|
|
19190
19131
|
if (richTextConfig.text && richTextConfig.text.includes('\n')) {
|
|
@@ -19606,7 +19547,7 @@ class Arc extends Graphic {
|
|
|
19606
19547
|
}
|
|
19607
19548
|
const deltaRadius = Math.abs(outerRadius - innerRadius);
|
|
19608
19549
|
const parseCR = (cornerRadius) => {
|
|
19609
|
-
return Math.min(isNumber
|
|
19550
|
+
return Math.min(isNumber(cornerRadius, true)
|
|
19610
19551
|
? cornerRadius
|
|
19611
19552
|
: (deltaRadius * parseFloat(cornerRadius)) / 100, deltaRadius / 2);
|
|
19612
19553
|
};
|
|
@@ -20832,7 +20773,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius, roundCorner
|
|
|
20832
20773
|
height = -height;
|
|
20833
20774
|
}
|
|
20834
20775
|
let cornerRadius;
|
|
20835
|
-
if (isNumber
|
|
20776
|
+
if (isNumber(rectCornerRadius, true)) {
|
|
20836
20777
|
rectCornerRadius = abs(rectCornerRadius);
|
|
20837
20778
|
cornerRadius = [
|
|
20838
20779
|
rectCornerRadius,
|
|
@@ -27387,83 +27328,6 @@ function flatten_simplify(points, tolerance, highestQuality) {
|
|
|
27387
27328
|
return points;
|
|
27388
27329
|
}
|
|
27389
27330
|
|
|
27390
|
-
function isIdentityMatrix(matrix) {
|
|
27391
|
-
return matrix.a === 1 && matrix.b === 0 && matrix.c === 0 && matrix.d === 1 && matrix.e === 0 && matrix.f === 0;
|
|
27392
|
-
}
|
|
27393
|
-
function createEventTransformer(containerElement, getMatrix, getRect, transformPoint) {
|
|
27394
|
-
return (event) => {
|
|
27395
|
-
if (!(event instanceof MouseEvent) && !(event instanceof TouchEvent) && !(event instanceof PointerEvent)) {
|
|
27396
|
-
return event;
|
|
27397
|
-
}
|
|
27398
|
-
const transformMatrix = getMatrix();
|
|
27399
|
-
if (isIdentityMatrix(transformMatrix)) {
|
|
27400
|
-
return event;
|
|
27401
|
-
}
|
|
27402
|
-
const containerRect = getRect();
|
|
27403
|
-
const transformedEvent = new event.constructor(event.type, event);
|
|
27404
|
-
Object.defineProperties(transformedEvent, {
|
|
27405
|
-
target: { value: event.target },
|
|
27406
|
-
currentTarget: { value: event.currentTarget }
|
|
27407
|
-
});
|
|
27408
|
-
if (event instanceof MouseEvent || event instanceof PointerEvent) {
|
|
27409
|
-
transformPoint(event.clientX, event.clientY, transformMatrix, containerRect, transformedEvent);
|
|
27410
|
-
}
|
|
27411
|
-
else if (event instanceof TouchEvent) {
|
|
27412
|
-
if (event.touches.length > 0) {
|
|
27413
|
-
const touch = transformedEvent.touches[0];
|
|
27414
|
-
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
27415
|
-
}
|
|
27416
|
-
if (event.changedTouches.length > 0) {
|
|
27417
|
-
const touch = transformedEvent.changedTouches[0];
|
|
27418
|
-
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
27419
|
-
}
|
|
27420
|
-
}
|
|
27421
|
-
return transformedEvent;
|
|
27422
|
-
};
|
|
27423
|
-
}
|
|
27424
|
-
function createCanvasEventTransformer(canvasElement, getMatrix, getRect, transformPoint) {
|
|
27425
|
-
return createEventTransformer(canvasElement.parentElement || canvasElement, getMatrix, getRect, transformPoint);
|
|
27426
|
-
}
|
|
27427
|
-
function registerWindowEventTransformer(window, container, getMatrix, getRect, transformPoint) {
|
|
27428
|
-
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
27429
|
-
window.setEventListenerTransformer(transformer);
|
|
27430
|
-
}
|
|
27431
|
-
function registerGlobalEventTransformer(global, container, getMatrix, getRect, transformPoint) {
|
|
27432
|
-
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
27433
|
-
global.setEventListenerTransformer(transformer);
|
|
27434
|
-
}
|
|
27435
|
-
function transformPointForCanvas(clientX, clientY, matrix, rect, transformedEvent) {
|
|
27436
|
-
const transformedPoint = { x: clientX, y: clientY };
|
|
27437
|
-
matrix.transformPoint(transformedPoint, transformedPoint);
|
|
27438
|
-
Object.defineProperties(transformedEvent, {
|
|
27439
|
-
_canvasX: { value: transformedPoint.x },
|
|
27440
|
-
_canvasY: { value: transformedPoint.y }
|
|
27441
|
-
});
|
|
27442
|
-
return;
|
|
27443
|
-
}
|
|
27444
|
-
function mapToCanvasPointForCanvas(nativeEvent) {
|
|
27445
|
-
var _a;
|
|
27446
|
-
if (isNumber(nativeEvent._canvasX) && isNumber(nativeEvent._canvasY)) {
|
|
27447
|
-
return {
|
|
27448
|
-
x: nativeEvent._canvasX,
|
|
27449
|
-
y: nativeEvent._canvasY
|
|
27450
|
-
};
|
|
27451
|
-
}
|
|
27452
|
-
else if (nativeEvent.changedTouches) {
|
|
27453
|
-
const data = (_a = nativeEvent.changedTouches[0]) !== null && _a !== void 0 ? _a : {};
|
|
27454
|
-
return {
|
|
27455
|
-
x: data._canvasX,
|
|
27456
|
-
y: data._canvasY
|
|
27457
|
-
};
|
|
27458
|
-
}
|
|
27459
|
-
const x = nativeEvent._canvasX || 0;
|
|
27460
|
-
const y = nativeEvent._canvasY || 0;
|
|
27461
|
-
return {
|
|
27462
|
-
x,
|
|
27463
|
-
y
|
|
27464
|
-
};
|
|
27465
|
-
}
|
|
27466
|
-
|
|
27467
27331
|
function getDefaultCharacterConfig(attribute) {
|
|
27468
27332
|
const { fill = 'black', stroke = false, fontWeight = 'normal', lineHeight, fontFamily = 'Arial', textAlign } = attribute;
|
|
27469
27333
|
let { fontSize = 12 } = attribute;
|
|
@@ -30661,4 +30525,4 @@ function generatorPathEasingFunc(path) {
|
|
|
30661
30525
|
};
|
|
30662
30526
|
}
|
|
30663
30527
|
|
|
30664
|
-
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasFactory, CanvasTextLayout, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, STAR_NUMBER_TYPE, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VGlobal, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCanvasEventTransformer, createCircle, createColor, createConicalGradient, createEventTransformer, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphModule, graphicCreator, graphicService, graphicUtil, identityMat4, imageModule, incrementalAddTo, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, layerService, lineModule, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonModule, preLoadAllModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc3dGraphic, registerArcGraphic, registerAreaGraphic, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlobalEventTransformer, registerGlyphGraphic, registerGroupGraphic, registerHtmlAttributePlugin, registerImageGraphic, registerLineGraphic, registerOrthoCamera, registerPathGraphic, registerPolygonGraphic, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect3dGraphic, registerRectGraphic, registerRichtextGraphic, registerShadowRootGraphic, registerStarGraphic, registerSymbolGraphic, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapTextGraphic, renderCommandList, rewriteProto, richtextModule, rotateX, rotateY, rotateZ, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textModule, transformKeys, transformMat4, transformPointForCanvas, transformUtil, translate, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
|
|
30528
|
+
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasFactory, CanvasTextLayout, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, STAR_NUMBER_TYPE, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VGlobal, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphModule, graphicCreator, graphicService, graphicUtil, identityMat4, imageModule, incrementalAddTo, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, layerService, lineModule, lookAt, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonModule, preLoadAllModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc3dGraphic, registerArcGraphic, registerAreaGraphic, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlyphGraphic, registerGroupGraphic, registerHtmlAttributePlugin, registerImageGraphic, registerLineGraphic, registerOrthoCamera, registerPathGraphic, registerPolygonGraphic, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect3dGraphic, registerRectGraphic, registerRichtextGraphic, registerShadowRootGraphic, registerStarGraphic, registerSymbolGraphic, registerTextGraphic, registerViewTransform3dPlugin, registerWrapTextGraphic, renderCommandList, rewriteProto, richtextModule, rotateX, rotateY, rotateZ, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textModule, transformKeys, transformMat4, transformUtil, translate, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
|
package/es/common/polygon.js
CHANGED
package/es/common/render-area.js
CHANGED