@antv/g-lite 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts +0 -3
- package/dist/css/properties/CSSPropertyLengthOrPercentage.d.ts.map +1 -1
- package/dist/index.esm.js +13 -7
- package/dist/index.js +13 -7
- package/dist/index.umd.js +17 -9
- package/dist/index.umd.min.js +1 -1
- package/dist/services/TextService.d.ts.map +1 -1
- package/dist/utils/rbush.d.ts +36 -0
- package/dist/utils/rbush.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -9,9 +9,6 @@ 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
|
-
*/
|
|
15
12
|
cache: Map<any, any>;
|
|
16
13
|
};
|
|
17
14
|
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;;;MAA2B;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.esm.js
CHANGED
|
@@ -6857,12 +6857,13 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
|
|
|
6857
6857
|
this.getAnimations().forEach(function (animation) {
|
|
6858
6858
|
animation.cancel();
|
|
6859
6859
|
});
|
|
6860
|
-
|
|
6861
|
-
this.
|
|
6862
|
-
this.
|
|
6863
|
-
this.
|
|
6864
|
-
this.
|
|
6865
|
-
this.
|
|
6860
|
+
// FIXME
|
|
6861
|
+
// this.renderable = null;
|
|
6862
|
+
// this.cullable = null;
|
|
6863
|
+
// this.transformable = null;
|
|
6864
|
+
// this.rBushNode = null;
|
|
6865
|
+
// this.geometry = null;
|
|
6866
|
+
// this.sortable = null;
|
|
6866
6867
|
};
|
|
6867
6868
|
_proto.cloneNode = function cloneNode(deep, customCloneFunc) {
|
|
6868
6869
|
var clonedStyle = _extends({}, this.attributes);
|
|
@@ -15042,9 +15043,14 @@ var TextService = /*#__PURE__*/function () {
|
|
|
15042
15043
|
letterSpacing = parsedStyle.letterSpacing,
|
|
15043
15044
|
_parsedStyle$maxLines = parsedStyle.maxLines,
|
|
15044
15045
|
maxLines = _parsedStyle$maxLines === void 0 ? Infinity : _parsedStyle$maxLines,
|
|
15045
|
-
textOverflow = parsedStyle.textOverflow
|
|
15046
|
+
textOverflow = parsedStyle.textOverflow,
|
|
15047
|
+
metrics = parsedStyle.metrics;
|
|
15046
15048
|
var context = this.runtime.offscreenCanvas.getOrCreateContext(offscreenCanvas);
|
|
15047
15049
|
var maxWidth = wordWrapWidth + letterSpacing;
|
|
15050
|
+
// single line & no need to wrap
|
|
15051
|
+
if (maxLines === 1 && metrics.width <= maxWidth) {
|
|
15052
|
+
return text;
|
|
15053
|
+
}
|
|
15048
15054
|
var ellipsis = '';
|
|
15049
15055
|
if (textOverflow === 'ellipsis') {
|
|
15050
15056
|
ellipsis = '...';
|
package/dist/index.js
CHANGED
|
@@ -6857,12 +6857,13 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
|
|
|
6857
6857
|
this.getAnimations().forEach(function (animation) {
|
|
6858
6858
|
animation.cancel();
|
|
6859
6859
|
});
|
|
6860
|
-
|
|
6861
|
-
this.
|
|
6862
|
-
this.
|
|
6863
|
-
this.
|
|
6864
|
-
this.
|
|
6865
|
-
this.
|
|
6860
|
+
// FIXME
|
|
6861
|
+
// this.renderable = null;
|
|
6862
|
+
// this.cullable = null;
|
|
6863
|
+
// this.transformable = null;
|
|
6864
|
+
// this.rBushNode = null;
|
|
6865
|
+
// this.geometry = null;
|
|
6866
|
+
// this.sortable = null;
|
|
6866
6867
|
};
|
|
6867
6868
|
_proto.cloneNode = function cloneNode(deep, customCloneFunc) {
|
|
6868
6869
|
var clonedStyle = _extends({}, this.attributes);
|
|
@@ -15035,9 +15036,14 @@ var TextService = /*#__PURE__*/function () {
|
|
|
15035
15036
|
letterSpacing = parsedStyle.letterSpacing,
|
|
15036
15037
|
_parsedStyle$maxLines = parsedStyle.maxLines,
|
|
15037
15038
|
maxLines = _parsedStyle$maxLines === void 0 ? Infinity : _parsedStyle$maxLines,
|
|
15038
|
-
textOverflow = parsedStyle.textOverflow
|
|
15039
|
+
textOverflow = parsedStyle.textOverflow,
|
|
15040
|
+
metrics = parsedStyle.metrics;
|
|
15039
15041
|
var context = this.runtime.offscreenCanvas.getOrCreateContext(offscreenCanvas);
|
|
15040
15042
|
var maxWidth = wordWrapWidth + letterSpacing;
|
|
15043
|
+
// single line & no need to wrap
|
|
15044
|
+
if (maxLines === 1 && metrics.width <= maxWidth) {
|
|
15045
|
+
return text;
|
|
15046
|
+
}
|
|
15041
15047
|
var ellipsis = '';
|
|
15042
15048
|
if (textOverflow === 'ellipsis') {
|
|
15043
15049
|
ellipsis = '...';
|
package/dist/index.umd.js
CHANGED
|
@@ -13872,12 +13872,13 @@
|
|
|
13872
13872
|
this.getAnimations().forEach(function (animation) {
|
|
13873
13873
|
animation.cancel();
|
|
13874
13874
|
});
|
|
13875
|
-
|
|
13876
|
-
this.
|
|
13877
|
-
this.
|
|
13878
|
-
this.
|
|
13879
|
-
this.
|
|
13880
|
-
this.
|
|
13875
|
+
// FIXME
|
|
13876
|
+
// this.renderable = null;
|
|
13877
|
+
// this.cullable = null;
|
|
13878
|
+
// this.transformable = null;
|
|
13879
|
+
// this.rBushNode = null;
|
|
13880
|
+
// this.geometry = null;
|
|
13881
|
+
// this.sortable = null;
|
|
13881
13882
|
};
|
|
13882
13883
|
_proto.cloneNode = function cloneNode(deep, customCloneFunc) {
|
|
13883
13884
|
var clonedStyle = _extends({}, this.attributes);
|
|
@@ -22050,9 +22051,14 @@
|
|
|
22050
22051
|
letterSpacing = parsedStyle.letterSpacing,
|
|
22051
22052
|
_parsedStyle$maxLines = parsedStyle.maxLines,
|
|
22052
22053
|
maxLines = _parsedStyle$maxLines === void 0 ? Infinity : _parsedStyle$maxLines,
|
|
22053
|
-
textOverflow = parsedStyle.textOverflow
|
|
22054
|
+
textOverflow = parsedStyle.textOverflow,
|
|
22055
|
+
metrics = parsedStyle.metrics;
|
|
22054
22056
|
var context = this.runtime.offscreenCanvas.getOrCreateContext(offscreenCanvas);
|
|
22055
22057
|
var maxWidth = wordWrapWidth + letterSpacing;
|
|
22058
|
+
// single line & no need to wrap
|
|
22059
|
+
if (maxLines === 1 && metrics.width <= maxWidth) {
|
|
22060
|
+
return text;
|
|
22061
|
+
}
|
|
22056
22062
|
var ellipsis = '';
|
|
22057
22063
|
if (textOverflow === 'ellipsis') {
|
|
22058
22064
|
ellipsis = '...';
|
|
@@ -23142,8 +23148,10 @@
|
|
|
23142
23148
|
this.document.destroy();
|
|
23143
23149
|
this.getEventService().destroy();
|
|
23144
23150
|
// clear rbush
|
|
23145
|
-
this.context.rBushRoot
|
|
23146
|
-
|
|
23151
|
+
if (this.context.rBushRoot) {
|
|
23152
|
+
this.context.rBushRoot.clear();
|
|
23153
|
+
this.context.rBushRoot = null;
|
|
23154
|
+
}
|
|
23147
23155
|
this.context.renderingContext.root = null;
|
|
23148
23156
|
}
|
|
23149
23157
|
// destroy services
|