@antv/g-lite 1.0.53 → 1.0.55
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/display-objects/DisplayObject.d.ts.map +1 -1
- package/dist/global-runtime.d.ts +9 -0
- package/dist/global-runtime.d.ts.map +1 -1
- package/dist/index.esm.js +53 -66
- package/dist/index.js +53 -66
- package/dist/index.umd.js +53 -66
- package/dist/index.umd.min.js +1 -1
- package/dist/utils/tapable/AsyncParallelHook.d.ts +1 -1
- package/dist/utils/tapable/AsyncParallelHook.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayObject.d.ts","sourceRoot":"","sources":["../src/display-objects/DisplayObject.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,UAAU,EAGX,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAA+B,MAAM,QAAQ,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAcrE,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAElE;AAgGD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,aAAa,CACxB,UAAU,SAAS,cAAc,GAAG,GAAG,EACvC,gBAAgB,SAAS,oBAAoB,GAAG,GAAG,CACnD,SAAQ,OAAO,CAAC,UAAU,EAAE,gBAAgB,CAAC;IAC7C;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAExC,eAAe,UAAS;IA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/B;;;OAGG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAIpD;;;OAGG;IACH,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC;IAItD;;;OAGG;IACH,OAAO,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAItC;;;OAGG;IACH,OAAO,YAEL;IAEF;;OAEG;IACH,GAAG,CACD,UAAU,SAAS,cAAc,EACjC,GAAG,SAAS,MAAM,mBAAmB,CAAC,UAAU,CAAC,EACjD,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC;IAKxD;;OAEG;IACH,GAAG,CAAC,UAAU,SAAS,cAAc,EACnC,IAAI,EAAE,MAAM,mBAAmB,CAAC,UAAU,CAAC;IAK7C;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAKnD;;;OAGG;IACH,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAKjD;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM;CAMzB"}
|
package/dist/global-runtime.d.ts
CHANGED
|
@@ -23,5 +23,14 @@ export interface GlobalRuntime {
|
|
|
23
23
|
globalThis: any;
|
|
24
24
|
enableCSSParsing: boolean;
|
|
25
25
|
nativeHTMLMap: WeakMap<HTMLElement, HTML>;
|
|
26
|
+
/**
|
|
27
|
+
* Enable using dataset property.
|
|
28
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
|
|
29
|
+
*/
|
|
30
|
+
enableDataset: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* circle.style.r = 100;
|
|
33
|
+
*/
|
|
34
|
+
enableStyleSyntax: boolean;
|
|
26
35
|
}
|
|
27
36
|
//# sourceMappingURL=global-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-runtime.d.ts","sourceRoot":"","sources":["../src/global-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAuBrE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAML,sBAAsB,EAItB,WAAW,EAEZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,OAAO,EAAE,aAAmC,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,kBAAkB,EAAE,UAAU,MAAM,CAAC;IAErC,iBAAiB,EAAE,GAAG,CAAC;IACvB,cAAc,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,eAAe,EAAE,sBAAsB,CAAC;IACxC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,cAAc,EAAE,cAAc,CAAC;IAC/B,wBAAwB,E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AAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,cAAc,EAAE,cAAc,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAC9B,cAAc,EACd,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAC/B,CAAC;IACF,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IAE1C;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;CAC5B"}
|
package/dist/index.esm.js
CHANGED
|
@@ -3247,33 +3247,14 @@ var AsyncParallelHook = /*#__PURE__*/function () {
|
|
|
3247
3247
|
_proto.tapPromise = function tapPromise(options, fn) {
|
|
3248
3248
|
this.callbacks.push(fn);
|
|
3249
3249
|
};
|
|
3250
|
-
_proto.promise =
|
|
3251
|
-
var
|
|
3252
|
-
|
|
3253
|
-
args,
|
|
3254
|
-
_key,
|
|
3255
|
-
_args = arguments;
|
|
3256
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3257
|
-
while (1) switch (_context.prev = _context.next) {
|
|
3258
|
-
case 0:
|
|
3259
|
-
for (_len = _args.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3260
|
-
args[_key] = _args[_key];
|
|
3261
|
-
}
|
|
3262
|
-
_context.next = 3;
|
|
3263
|
-
return Promise.all(this.callbacks.map(function (callback) {
|
|
3264
|
-
return callback.apply(void 0, args);
|
|
3265
|
-
}));
|
|
3266
|
-
case 3:
|
|
3267
|
-
case "end":
|
|
3268
|
-
return _context.stop();
|
|
3269
|
-
}
|
|
3270
|
-
}, _callee, this);
|
|
3271
|
-
}));
|
|
3272
|
-
function promise() {
|
|
3273
|
-
return _promise.apply(this, arguments);
|
|
3250
|
+
_proto.promise = function promise() {
|
|
3251
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3252
|
+
args[_key] = arguments[_key];
|
|
3274
3253
|
}
|
|
3275
|
-
return
|
|
3276
|
-
|
|
3254
|
+
return Promise.all(this.callbacks.map(function (callback) {
|
|
3255
|
+
return callback.apply(void 0, args);
|
|
3256
|
+
}));
|
|
3257
|
+
};
|
|
3277
3258
|
return AsyncParallelHook;
|
|
3278
3259
|
}();
|
|
3279
3260
|
|
|
@@ -7847,48 +7828,52 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
|
|
|
7847
7828
|
// start to process attributes
|
|
7848
7829
|
_this.initAttributes(_this.config.style);
|
|
7849
7830
|
var Proxy = runtime.globalThis.Proxy ? runtime.globalThis.Proxy : function () {};
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7831
|
+
if (runtime.enableDataset) {
|
|
7832
|
+
_this.dataset = new Proxy({}, {
|
|
7833
|
+
get: function get(target, name) {
|
|
7834
|
+
var formattedName = "" + DATASET_PREFIX + kebabize(name);
|
|
7835
|
+
if (target[formattedName] !== undefined) {
|
|
7836
|
+
return target[formattedName];
|
|
7837
|
+
}
|
|
7838
|
+
return _this.getAttribute(formattedName);
|
|
7839
|
+
},
|
|
7840
|
+
set: function set(_, prop, value) {
|
|
7841
|
+
_this.setAttribute("" + DATASET_PREFIX + kebabize(prop), value);
|
|
7842
|
+
return true;
|
|
7855
7843
|
}
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
_this.removeAttribute(propertyName);
|
|
7875
|
-
},
|
|
7876
|
-
item: function item() {
|
|
7877
|
-
return '';
|
|
7878
|
-
}
|
|
7879
|
-
}, {
|
|
7880
|
-
get: function get(target, name) {
|
|
7881
|
-
if (target[name] !== undefined) {
|
|
7882
|
-
// if (name in target) {
|
|
7883
|
-
return target[name];
|
|
7844
|
+
});
|
|
7845
|
+
}
|
|
7846
|
+
if (runtime.enableStyleSyntax) {
|
|
7847
|
+
_this.style = new Proxy(
|
|
7848
|
+
// @ts-ignore
|
|
7849
|
+
{
|
|
7850
|
+
// ...this.attributes,
|
|
7851
|
+
setProperty: function setProperty(propertyName, value) {
|
|
7852
|
+
_this.setAttribute(propertyName, value);
|
|
7853
|
+
},
|
|
7854
|
+
getPropertyValue: function getPropertyValue(propertyName) {
|
|
7855
|
+
return _this.getAttribute(propertyName);
|
|
7856
|
+
},
|
|
7857
|
+
removeProperty: function removeProperty(propertyName) {
|
|
7858
|
+
_this.removeAttribute(propertyName);
|
|
7859
|
+
},
|
|
7860
|
+
item: function item() {
|
|
7861
|
+
return '';
|
|
7884
7862
|
}
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7863
|
+
}, {
|
|
7864
|
+
get: function get(target, name) {
|
|
7865
|
+
if (target[name] !== undefined) {
|
|
7866
|
+
// if (name in target) {
|
|
7867
|
+
return target[name];
|
|
7868
|
+
}
|
|
7869
|
+
return _this.getAttribute(name);
|
|
7870
|
+
},
|
|
7871
|
+
set: function set(_, prop, value) {
|
|
7872
|
+
_this.setAttribute(prop, value);
|
|
7873
|
+
return true;
|
|
7874
|
+
}
|
|
7875
|
+
});
|
|
7876
|
+
}
|
|
7892
7877
|
return _this;
|
|
7893
7878
|
}
|
|
7894
7879
|
var _proto = DisplayObject.prototype;
|
|
@@ -13820,6 +13805,8 @@ runtime.styleValueRegistry = new DefaultStyleValueRegistry();
|
|
|
13820
13805
|
runtime.layoutRegistry = null;
|
|
13821
13806
|
runtime.globalThis = getGlobalThis();
|
|
13822
13807
|
runtime.enableCSSParsing = true;
|
|
13808
|
+
runtime.enableDataset = false;
|
|
13809
|
+
runtime.enableStyleSyntax = true;
|
|
13823
13810
|
|
|
13824
13811
|
var AbstractRendererPlugin = /*#__PURE__*/function () {
|
|
13825
13812
|
function AbstractRendererPlugin() {
|
package/dist/index.js
CHANGED
|
@@ -3250,33 +3250,14 @@ var AsyncParallelHook = /*#__PURE__*/function () {
|
|
|
3250
3250
|
_proto.tapPromise = function tapPromise(options, fn) {
|
|
3251
3251
|
this.callbacks.push(fn);
|
|
3252
3252
|
};
|
|
3253
|
-
_proto.promise =
|
|
3254
|
-
var
|
|
3255
|
-
|
|
3256
|
-
args,
|
|
3257
|
-
_key,
|
|
3258
|
-
_args = arguments;
|
|
3259
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3260
|
-
while (1) switch (_context.prev = _context.next) {
|
|
3261
|
-
case 0:
|
|
3262
|
-
for (_len = _args.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3263
|
-
args[_key] = _args[_key];
|
|
3264
|
-
}
|
|
3265
|
-
_context.next = 3;
|
|
3266
|
-
return Promise.all(this.callbacks.map(function (callback) {
|
|
3267
|
-
return callback.apply(void 0, args);
|
|
3268
|
-
}));
|
|
3269
|
-
case 3:
|
|
3270
|
-
case "end":
|
|
3271
|
-
return _context.stop();
|
|
3272
|
-
}
|
|
3273
|
-
}, _callee, this);
|
|
3274
|
-
}));
|
|
3275
|
-
function promise() {
|
|
3276
|
-
return _promise.apply(this, arguments);
|
|
3253
|
+
_proto.promise = function promise() {
|
|
3254
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3255
|
+
args[_key] = arguments[_key];
|
|
3277
3256
|
}
|
|
3278
|
-
return
|
|
3279
|
-
|
|
3257
|
+
return Promise.all(this.callbacks.map(function (callback) {
|
|
3258
|
+
return callback.apply(void 0, args);
|
|
3259
|
+
}));
|
|
3260
|
+
};
|
|
3280
3261
|
return AsyncParallelHook;
|
|
3281
3262
|
}();
|
|
3282
3263
|
|
|
@@ -7847,48 +7828,52 @@ var DisplayObject = /*#__PURE__*/function (_Element) {
|
|
|
7847
7828
|
// start to process attributes
|
|
7848
7829
|
_this.initAttributes(_this.config.style);
|
|
7849
7830
|
var Proxy = runtime.globalThis.Proxy ? runtime.globalThis.Proxy : function () {};
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7831
|
+
if (runtime.enableDataset) {
|
|
7832
|
+
_this.dataset = new Proxy({}, {
|
|
7833
|
+
get: function get(target, name) {
|
|
7834
|
+
var formattedName = "" + DATASET_PREFIX + kebabize(name);
|
|
7835
|
+
if (target[formattedName] !== undefined) {
|
|
7836
|
+
return target[formattedName];
|
|
7837
|
+
}
|
|
7838
|
+
return _this.getAttribute(formattedName);
|
|
7839
|
+
},
|
|
7840
|
+
set: function set(_, prop, value) {
|
|
7841
|
+
_this.setAttribute("" + DATASET_PREFIX + kebabize(prop), value);
|
|
7842
|
+
return true;
|
|
7855
7843
|
}
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
_this.removeAttribute(propertyName);
|
|
7875
|
-
},
|
|
7876
|
-
item: function item() {
|
|
7877
|
-
return '';
|
|
7878
|
-
}
|
|
7879
|
-
}, {
|
|
7880
|
-
get: function get(target, name) {
|
|
7881
|
-
if (target[name] !== undefined) {
|
|
7882
|
-
// if (name in target) {
|
|
7883
|
-
return target[name];
|
|
7844
|
+
});
|
|
7845
|
+
}
|
|
7846
|
+
if (runtime.enableStyleSyntax) {
|
|
7847
|
+
_this.style = new Proxy(
|
|
7848
|
+
// @ts-ignore
|
|
7849
|
+
{
|
|
7850
|
+
// ...this.attributes,
|
|
7851
|
+
setProperty: function setProperty(propertyName, value) {
|
|
7852
|
+
_this.setAttribute(propertyName, value);
|
|
7853
|
+
},
|
|
7854
|
+
getPropertyValue: function getPropertyValue(propertyName) {
|
|
7855
|
+
return _this.getAttribute(propertyName);
|
|
7856
|
+
},
|
|
7857
|
+
removeProperty: function removeProperty(propertyName) {
|
|
7858
|
+
_this.removeAttribute(propertyName);
|
|
7859
|
+
},
|
|
7860
|
+
item: function item() {
|
|
7861
|
+
return '';
|
|
7884
7862
|
}
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7863
|
+
}, {
|
|
7864
|
+
get: function get(target, name) {
|
|
7865
|
+
if (target[name] !== undefined) {
|
|
7866
|
+
// if (name in target) {
|
|
7867
|
+
return target[name];
|
|
7868
|
+
}
|
|
7869
|
+
return _this.getAttribute(name);
|
|
7870
|
+
},
|
|
7871
|
+
set: function set(_, prop, value) {
|
|
7872
|
+
_this.setAttribute(prop, value);
|
|
7873
|
+
return true;
|
|
7874
|
+
}
|
|
7875
|
+
});
|
|
7876
|
+
}
|
|
7892
7877
|
return _this;
|
|
7893
7878
|
}
|
|
7894
7879
|
var _proto = DisplayObject.prototype;
|
|
@@ -13813,6 +13798,8 @@ runtime.styleValueRegistry = new DefaultStyleValueRegistry();
|
|
|
13813
13798
|
runtime.layoutRegistry = null;
|
|
13814
13799
|
runtime.globalThis = getGlobalThis();
|
|
13815
13800
|
runtime.enableCSSParsing = true;
|
|
13801
|
+
runtime.enableDataset = false;
|
|
13802
|
+
runtime.enableStyleSyntax = true;
|
|
13816
13803
|
|
|
13817
13804
|
var AbstractRendererPlugin = /*#__PURE__*/function () {
|
|
13818
13805
|
function AbstractRendererPlugin() {
|
package/dist/index.umd.js
CHANGED
|
@@ -9891,33 +9891,14 @@
|
|
|
9891
9891
|
_proto.tapPromise = function tapPromise(options, fn) {
|
|
9892
9892
|
this.callbacks.push(fn);
|
|
9893
9893
|
};
|
|
9894
|
-
_proto.promise =
|
|
9895
|
-
var
|
|
9896
|
-
|
|
9897
|
-
args,
|
|
9898
|
-
_key,
|
|
9899
|
-
_args = arguments;
|
|
9900
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9901
|
-
while (1) switch (_context.prev = _context.next) {
|
|
9902
|
-
case 0:
|
|
9903
|
-
for (_len = _args.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9904
|
-
args[_key] = _args[_key];
|
|
9905
|
-
}
|
|
9906
|
-
_context.next = 3;
|
|
9907
|
-
return Promise.all(this.callbacks.map(function (callback) {
|
|
9908
|
-
return callback.apply(void 0, args);
|
|
9909
|
-
}));
|
|
9910
|
-
case 3:
|
|
9911
|
-
case "end":
|
|
9912
|
-
return _context.stop();
|
|
9913
|
-
}
|
|
9914
|
-
}, _callee, this);
|
|
9915
|
-
}));
|
|
9916
|
-
function promise() {
|
|
9917
|
-
return _promise.apply(this, arguments);
|
|
9894
|
+
_proto.promise = function promise() {
|
|
9895
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9896
|
+
args[_key] = arguments[_key];
|
|
9918
9897
|
}
|
|
9919
|
-
return
|
|
9920
|
-
|
|
9898
|
+
return Promise.all(this.callbacks.map(function (callback) {
|
|
9899
|
+
return callback.apply(void 0, args);
|
|
9900
|
+
}));
|
|
9901
|
+
};
|
|
9921
9902
|
return AsyncParallelHook;
|
|
9922
9903
|
}();
|
|
9923
9904
|
|
|
@@ -14826,48 +14807,52 @@
|
|
|
14826
14807
|
// start to process attributes
|
|
14827
14808
|
_this.initAttributes(_this.config.style);
|
|
14828
14809
|
var Proxy = runtime.globalThis.Proxy ? runtime.globalThis.Proxy : function () {};
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14810
|
+
if (runtime.enableDataset) {
|
|
14811
|
+
_this.dataset = new Proxy({}, {
|
|
14812
|
+
get: function get(target, name) {
|
|
14813
|
+
var formattedName = "" + DATASET_PREFIX + kebabize(name);
|
|
14814
|
+
if (target[formattedName] !== undefined) {
|
|
14815
|
+
return target[formattedName];
|
|
14816
|
+
}
|
|
14817
|
+
return _this.getAttribute(formattedName);
|
|
14818
|
+
},
|
|
14819
|
+
set: function set(_, prop, value) {
|
|
14820
|
+
_this.setAttribute("" + DATASET_PREFIX + kebabize(prop), value);
|
|
14821
|
+
return true;
|
|
14834
14822
|
}
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
_this.removeAttribute(propertyName);
|
|
14854
|
-
},
|
|
14855
|
-
item: function item() {
|
|
14856
|
-
return '';
|
|
14857
|
-
}
|
|
14858
|
-
}, {
|
|
14859
|
-
get: function get(target, name) {
|
|
14860
|
-
if (target[name] !== undefined) {
|
|
14861
|
-
// if (name in target) {
|
|
14862
|
-
return target[name];
|
|
14823
|
+
});
|
|
14824
|
+
}
|
|
14825
|
+
if (runtime.enableStyleSyntax) {
|
|
14826
|
+
_this.style = new Proxy(
|
|
14827
|
+
// @ts-ignore
|
|
14828
|
+
{
|
|
14829
|
+
// ...this.attributes,
|
|
14830
|
+
setProperty: function setProperty(propertyName, value) {
|
|
14831
|
+
_this.setAttribute(propertyName, value);
|
|
14832
|
+
},
|
|
14833
|
+
getPropertyValue: function getPropertyValue(propertyName) {
|
|
14834
|
+
return _this.getAttribute(propertyName);
|
|
14835
|
+
},
|
|
14836
|
+
removeProperty: function removeProperty(propertyName) {
|
|
14837
|
+
_this.removeAttribute(propertyName);
|
|
14838
|
+
},
|
|
14839
|
+
item: function item() {
|
|
14840
|
+
return '';
|
|
14863
14841
|
}
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14842
|
+
}, {
|
|
14843
|
+
get: function get(target, name) {
|
|
14844
|
+
if (target[name] !== undefined) {
|
|
14845
|
+
// if (name in target) {
|
|
14846
|
+
return target[name];
|
|
14847
|
+
}
|
|
14848
|
+
return _this.getAttribute(name);
|
|
14849
|
+
},
|
|
14850
|
+
set: function set(_, prop, value) {
|
|
14851
|
+
_this.setAttribute(prop, value);
|
|
14852
|
+
return true;
|
|
14853
|
+
}
|
|
14854
|
+
});
|
|
14855
|
+
}
|
|
14871
14856
|
return _this;
|
|
14872
14857
|
}
|
|
14873
14858
|
var _proto = DisplayObject.prototype;
|
|
@@ -20792,6 +20777,8 @@
|
|
|
20792
20777
|
runtime.layoutRegistry = null;
|
|
20793
20778
|
runtime.globalThis = getGlobalThis();
|
|
20794
20779
|
runtime.enableCSSParsing = true;
|
|
20780
|
+
runtime.enableDataset = false;
|
|
20781
|
+
runtime.enableStyleSyntax = true;
|
|
20795
20782
|
|
|
20796
20783
|
var AbstractRendererPlugin = /*#__PURE__*/function () {
|
|
20797
20784
|
function AbstractRendererPlugin() {
|