@antv/g-lite 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +3 -0
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +1 -1
- package/dist/index.umd.js +16 -8
- package/dist/index.umd.min.js +1 -1
- package/dist/utils/text.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/utils/rbush.d.ts +0 -36
- package/dist/utils/rbush.d.ts.map +0 -1
|
@@ -9,6 +9,9 @@ import { mergeNumbers } from '../parser';
|
|
|
9
9
|
export declare class CSSPropertyLengthOrPercentage implements Partial<CSSProperty<CSSUnitValue, number>> {
|
|
10
10
|
parser: {
|
|
11
11
|
(...args: any[]): any;
|
|
12
|
+
/**
|
|
13
|
+
* <length> & <percentage>
|
|
14
|
+
*/
|
|
12
15
|
cache: Map<any, any>;
|
|
13
16
|
};
|
|
14
17
|
mixer: typeof mergeNumbers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSSPropertyLengthOrPercentage.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyLengthOrPercentage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzC;;GAEG;AACH,qBAAa,6BAA8B,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC9F,MAAM
|
|
1
|
+
{"version":3,"file":"CSSPropertyLengthOrPercentage.d.ts","sourceRoot":"","sources":["../src/css/properties/CSSPropertyLengthOrPercentage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzC;;GAEG;AACH,qBAAa,6BAA8B,YAAW,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC9F,MAAM;;QAJR;;WAEG;;MAEgC;IAEjC,KAAK,sBAAgB;IAErB;;;;;OAKG;IACH,UAAU,CACR,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,EACvB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,kBAAkB,GAC3B,MAAM;CAyCV"}
|
package/dist/index.umd.js
CHANGED
|
@@ -9612,6 +9612,7 @@
|
|
|
9612
9612
|
function piMod(angle) {
|
|
9613
9613
|
return (angle + Math.PI * 2) % (Math.PI * 2);
|
|
9614
9614
|
}
|
|
9615
|
+
|
|
9615
9616
|
var line = {
|
|
9616
9617
|
/**
|
|
9617
9618
|
* 计算线段的包围盒
|
|
@@ -9706,6 +9707,7 @@
|
|
|
9706
9707
|
return Math.atan2(y2 - y1, x2 - x1);
|
|
9707
9708
|
}
|
|
9708
9709
|
};
|
|
9710
|
+
|
|
9709
9711
|
var EPSILON$1 = 0.0001;
|
|
9710
9712
|
/**
|
|
9711
9713
|
* 使用牛顿切割法求最近的点
|
|
@@ -9875,6 +9877,7 @@
|
|
|
9875
9877
|
return piMod(angle);
|
|
9876
9878
|
}
|
|
9877
9879
|
};
|
|
9880
|
+
|
|
9878
9881
|
function cubicAt(p0, p1, p2, p3, t) {
|
|
9879
9882
|
var onet = 1 - t; // t * t * t 的性能大概是 Math.pow(t, 3) 的三倍
|
|
9880
9883
|
return onet * onet * onet * p0 + 3 * p1 * t * onet * onet + 3 * p2 * t * t * onet + p3 * t * t * t;
|
|
@@ -10306,6 +10309,7 @@
|
|
|
10306
10309
|
return piMod(Math.atan2(dy, dx));
|
|
10307
10310
|
}
|
|
10308
10311
|
};
|
|
10312
|
+
|
|
10309
10313
|
function analyzePoints(points) {
|
|
10310
10314
|
// 计算每段的长度和总的长度
|
|
10311
10315
|
var totalLength = 0;
|
|
@@ -10418,6 +10422,7 @@
|
|
|
10418
10422
|
}
|
|
10419
10423
|
return minDistance;
|
|
10420
10424
|
}
|
|
10425
|
+
|
|
10421
10426
|
var polyline = {
|
|
10422
10427
|
/**
|
|
10423
10428
|
* 计算多折线的包围盒
|
|
@@ -13919,9 +13924,12 @@
|
|
|
13919
13924
|
// account for FCP, process properties as less as possible
|
|
13920
13925
|
runtime.styleValueRegistry.processProperties(this, attributes, {
|
|
13921
13926
|
forceUpdateGeometry: true,
|
|
13922
|
-
usedAttributes:
|
|
13923
|
-
//
|
|
13924
|
-
|
|
13927
|
+
usedAttributes: INHERITABLE_STYLE_PROPS
|
|
13928
|
+
// usedAttributes:
|
|
13929
|
+
// // only Group / Text should account for text relative props
|
|
13930
|
+
// this.tagName === Shape.GROUP || this.tagName === Shape.TEXT
|
|
13931
|
+
// ? INHERITABLE_STYLE_PROPS
|
|
13932
|
+
// : INHERITABLE_BASE_STYLE_PROPS,
|
|
13925
13933
|
});
|
|
13926
13934
|
// redraw at next frame
|
|
13927
13935
|
renderable.dirty = true;
|
|
@@ -23132,15 +23140,15 @@
|
|
|
23132
23140
|
if (destroyScenegraph) {
|
|
23133
23141
|
// destroy Document
|
|
23134
23142
|
this.document.destroy();
|
|
23143
|
+
this.getEventService().destroy();
|
|
23144
|
+
// clear rbush
|
|
23145
|
+
this.context.rBushRoot.clear();
|
|
23146
|
+
this.context.rBushRoot = null;
|
|
23147
|
+
this.context.renderingContext.root = null;
|
|
23135
23148
|
}
|
|
23136
23149
|
// destroy services
|
|
23137
23150
|
this.getRenderingService().destroy();
|
|
23138
23151
|
this.getContextService().destroy();
|
|
23139
|
-
this.getEventService().destroy();
|
|
23140
|
-
// clear rbush
|
|
23141
|
-
this.context.rBushRoot.clear();
|
|
23142
|
-
this.context.rBushRoot = null;
|
|
23143
|
-
this.context.renderingContext.root = null;
|
|
23144
23152
|
if (!skipTriggerEvent) {
|
|
23145
23153
|
this.dispatchEvent(new CustomEvent(exports.CanvasEvent.AFTER_DESTROY));
|
|
23146
23154
|
}
|