@visactor/vrender 0.17.0-alpha.2 → 0.17.0-alpha.3

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/index.js CHANGED
@@ -622,400 +622,393 @@
622
622
  return Metadata;
623
623
  }();
624
624
 
625
- var Reflect$1;
626
- var Reflect$2 = (function (Reflect) {
627
- return function (factory) {
628
- var root = "object" == (typeof global === "undefined" ? "undefined" : _typeof(global)) ? global : "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) ? self : "object" == _typeof(this) ? this : Function("return this;")();
629
- var exporter = makeExporter(Reflect);
630
- function makeExporter(target, previous) {
631
- return function (key, value) {
632
- "function" != typeof target[key] && Object.defineProperty(target, key, {
633
- configurable: !0,
634
- writable: !0,
635
- value: value
636
- }), previous && previous(key, value);
637
- };
638
- }
639
- void 0 === root.Reflect ? root.Reflect = Reflect : exporter = makeExporter(root.Reflect, exporter), function (exporter) {
640
- var hasOwn = Object.prototype.hasOwnProperty,
641
- supportsSymbol = "function" == typeof Symbol,
642
- toPrimitiveSymbol = supportsSymbol && void 0 !== Symbol.toPrimitive ? Symbol.toPrimitive : "@@toPrimitive",
643
- iteratorSymbol = supportsSymbol && void 0 !== Symbol.iterator ? Symbol.iterator : "@@iterator",
644
- supportsCreate = "function" == typeof Object.create,
645
- supportsProto = {
646
- __proto__: []
647
- } instanceof Array,
648
- downLevel = !supportsCreate && !supportsProto,
649
- HashMap = {
650
- create: supportsCreate ? function () {
651
- return MakeDictionary(Object.create(null));
652
- } : supportsProto ? function () {
653
- return MakeDictionary({
654
- __proto__: null
655
- });
656
- } : function () {
657
- return MakeDictionary({});
658
- },
659
- has: downLevel ? function (map, key) {
660
- return hasOwn.call(map, key);
661
- } : function (map, key) {
662
- return key in map;
663
- },
664
- get: downLevel ? function (map, key) {
665
- return hasOwn.call(map, key) ? map[key] : void 0;
666
- } : function (map, key) {
667
- return map[key];
668
- }
625
+ var Reflect$1 = (function (Reflect) {
626
+ var target;
627
+ return function (exporter) {
628
+ var hasOwn = Object.prototype.hasOwnProperty,
629
+ supportsSymbol = "function" == typeof Symbol,
630
+ toPrimitiveSymbol = supportsSymbol && void 0 !== Symbol.toPrimitive ? Symbol.toPrimitive : "@@toPrimitive",
631
+ iteratorSymbol = supportsSymbol && void 0 !== Symbol.iterator ? Symbol.iterator : "@@iterator",
632
+ supportsCreate = "function" == typeof Object.create,
633
+ supportsProto = {
634
+ __proto__: []
635
+ } instanceof Array,
636
+ downLevel = !supportsCreate && !supportsProto,
637
+ HashMap = {
638
+ create: supportsCreate ? function () {
639
+ return MakeDictionary(Object.create(null));
640
+ } : supportsProto ? function () {
641
+ return MakeDictionary({
642
+ __proto__: null
643
+ });
644
+ } : function () {
645
+ return MakeDictionary({});
669
646
  },
670
- functionPrototype = Object.getPrototypeOf(Function),
671
- usePolyfill = "object" == (typeof process === "undefined" ? "undefined" : _typeof(process)) && process.env && "true" === process.env.REFLECT_METADATA_USE_MAP_POLYFILL,
672
- _Map = usePolyfill || "function" != typeof Map || "function" != typeof Map.prototype.entries ? CreateMapPolyfill() : Map,
673
- Metadata = (usePolyfill || "function" != typeof Set || "function" != typeof Set.prototype.entries ? CreateSetPolyfill() : Set, new (usePolyfill || "function" != typeof WeakMap ? CreateWeakMapPolyfill() : WeakMap)());
674
- function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
675
- if (!IsObject(target)) throw new TypeError();
676
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
677
- }
678
- function hasMetadata(metadataKey, target, propertyKey) {
679
- if (!IsObject(target)) throw new TypeError();
680
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasMetadata(metadataKey, target, propertyKey);
681
- }
682
- function hasOwnMetadata(metadataKey, target, propertyKey) {
683
- if (!IsObject(target)) throw new TypeError();
684
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
685
- }
686
- function getMetadata(metadataKey, target, propertyKey) {
687
- if (!IsObject(target)) throw new TypeError();
688
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryGetMetadata(metadataKey, target, propertyKey);
689
- }
690
- function GetOrCreateMetadataMap(O, P, Create) {
691
- var targetMetadata = Metadata.get(O);
692
- if (IsUndefined(targetMetadata)) {
693
- if (!Create) return;
694
- targetMetadata = new _Map(), Metadata.set(O, targetMetadata);
695
- }
696
- var metadataMap = targetMetadata.get(P);
697
- if (IsUndefined(metadataMap)) {
698
- if (!Create) return;
699
- metadataMap = new _Map(), targetMetadata.set(P, metadataMap);
700
- }
701
- return metadataMap;
702
- }
703
- function OrdinaryHasMetadata(MetadataKey, O, P) {
704
- if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return !0;
705
- var parent = OrdinaryGetPrototypeOf(O);
706
- return !IsNull(parent) && OrdinaryHasMetadata(MetadataKey, parent, P);
707
- }
708
- function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
709
- var metadataMap = GetOrCreateMetadataMap(O, P, !1);
710
- return !IsUndefined(metadataMap) && ToBoolean(metadataMap.has(MetadataKey));
711
- }
712
- function OrdinaryGetMetadata(MetadataKey, O, P) {
713
- if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
714
- var parent = OrdinaryGetPrototypeOf(O);
715
- return IsNull(parent) ? void 0 : OrdinaryGetMetadata(MetadataKey, parent, P);
716
- }
717
- function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
718
- var metadataMap = GetOrCreateMetadataMap(O, P, !1);
719
- if (!IsUndefined(metadataMap)) return metadataMap.get(MetadataKey);
720
- }
721
- function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
722
- GetOrCreateMetadataMap(O, P, !0).set(MetadataKey, MetadataValue);
723
- }
724
- function Type(x) {
725
- if (null === x) return 1;
726
- switch (_typeof(x)) {
727
- case "undefined":
728
- return 0;
729
- case "boolean":
730
- return 2;
731
- case "string":
732
- return 3;
733
- case "symbol":
734
- return 4;
735
- case "number":
736
- return 5;
737
- case "object":
738
- return null === x ? 1 : 6;
739
- default:
740
- return 6;
741
- }
742
- }
743
- function IsUndefined(x) {
744
- return void 0 === x;
745
- }
746
- function IsNull(x) {
747
- return null === x;
748
- }
749
- function IsSymbol(x) {
750
- return "symbol" == _typeof(x);
751
- }
752
- function IsObject(x) {
753
- return "object" == _typeof(x) ? null !== x : "function" == typeof x;
754
- }
755
- function ToPrimitive(input, PreferredType) {
756
- switch (Type(input)) {
757
- case 0:
758
- case 1:
759
- case 2:
760
- case 3:
761
- case 4:
762
- case 5:
763
- return input;
764
- }
765
- var hint = 3 === PreferredType ? "string" : 5 === PreferredType ? "number" : "default",
766
- exoticToPrim = GetMethod(input, toPrimitiveSymbol);
767
- if (void 0 !== exoticToPrim) {
768
- var result = exoticToPrim.call(input, hint);
769
- if (IsObject(result)) throw new TypeError();
770
- return result;
771
- }
772
- return OrdinaryToPrimitive(input, "default" === hint ? "number" : hint);
773
- }
774
- function OrdinaryToPrimitive(O, hint) {
775
- if ("string" === hint) {
776
- var toString_1 = O.toString;
777
- if (IsCallable(toString_1)) {
778
- var result = toString_1.call(O);
779
- if (!IsObject(result)) return result;
780
- }
781
- var _valueOf = O.valueOf;
782
- if (IsCallable(_valueOf)) {
783
- var _result = _valueOf.call(O);
784
- if (!IsObject(_result)) return _result;
785
- }
786
- } else {
787
- var _valueOf2 = O.valueOf;
788
- if (IsCallable(_valueOf2)) {
789
- var _result2 = _valueOf2.call(O);
790
- if (!IsObject(_result2)) return _result2;
791
- }
792
- var toString_2 = O.toString;
793
- if (IsCallable(toString_2)) {
794
- var _result3 = toString_2.call(O);
795
- if (!IsObject(_result3)) return _result3;
796
- }
647
+ has: downLevel ? function (map, key) {
648
+ return hasOwn.call(map, key);
649
+ } : function (map, key) {
650
+ return key in map;
651
+ },
652
+ get: downLevel ? function (map, key) {
653
+ return hasOwn.call(map, key) ? map[key] : void 0;
654
+ } : function (map, key) {
655
+ return map[key];
797
656
  }
798
- throw new TypeError();
799
- }
800
- function ToBoolean(argument) {
801
- return !!argument;
802
- }
803
- function ToString(argument) {
804
- return "" + argument;
805
- }
806
- function ToPropertyKey(argument) {
807
- var key = ToPrimitive(argument, 3);
808
- return IsSymbol(key) ? key : ToString(key);
809
- }
810
- function IsCallable(argument) {
811
- return "function" == typeof argument;
657
+ },
658
+ functionPrototype = Object.getPrototypeOf(Function),
659
+ usePolyfill = "object" == (typeof process === "undefined" ? "undefined" : _typeof(process)) && process.env && "true" === process.env.REFLECT_METADATA_USE_MAP_POLYFILL,
660
+ _Map = usePolyfill || "function" != typeof Map || "function" != typeof Map.prototype.entries ? CreateMapPolyfill() : Map,
661
+ Metadata = (usePolyfill || "function" != typeof Set || "function" != typeof Set.prototype.entries ? CreateSetPolyfill() : Set, new (usePolyfill || "function" != typeof WeakMap ? CreateWeakMapPolyfill() : WeakMap)());
662
+ function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
663
+ if (!IsObject(target)) throw new TypeError();
664
+ return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
665
+ }
666
+ function hasMetadata(metadataKey, target, propertyKey) {
667
+ if (!IsObject(target)) throw new TypeError();
668
+ return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasMetadata(metadataKey, target, propertyKey);
669
+ }
670
+ function hasOwnMetadata(metadataKey, target, propertyKey) {
671
+ if (!IsObject(target)) throw new TypeError();
672
+ return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
673
+ }
674
+ function getMetadata(metadataKey, target, propertyKey) {
675
+ if (!IsObject(target)) throw new TypeError();
676
+ return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryGetMetadata(metadataKey, target, propertyKey);
677
+ }
678
+ function GetOrCreateMetadataMap(O, P, Create) {
679
+ var targetMetadata = Metadata.get(O);
680
+ if (IsUndefined(targetMetadata)) {
681
+ if (!Create) return;
682
+ targetMetadata = new _Map(), Metadata.set(O, targetMetadata);
683
+ }
684
+ var metadataMap = targetMetadata.get(P);
685
+ if (IsUndefined(metadataMap)) {
686
+ if (!Create) return;
687
+ metadataMap = new _Map(), targetMetadata.set(P, metadataMap);
688
+ }
689
+ return metadataMap;
690
+ }
691
+ function OrdinaryHasMetadata(MetadataKey, O, P) {
692
+ if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return !0;
693
+ var parent = OrdinaryGetPrototypeOf(O);
694
+ return !IsNull(parent) && OrdinaryHasMetadata(MetadataKey, parent, P);
695
+ }
696
+ function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
697
+ var metadataMap = GetOrCreateMetadataMap(O, P, !1);
698
+ return !IsUndefined(metadataMap) && ToBoolean(metadataMap.has(MetadataKey));
699
+ }
700
+ function OrdinaryGetMetadata(MetadataKey, O, P) {
701
+ if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
702
+ var parent = OrdinaryGetPrototypeOf(O);
703
+ return IsNull(parent) ? void 0 : OrdinaryGetMetadata(MetadataKey, parent, P);
704
+ }
705
+ function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
706
+ var metadataMap = GetOrCreateMetadataMap(O, P, !1);
707
+ if (!IsUndefined(metadataMap)) return metadataMap.get(MetadataKey);
708
+ }
709
+ function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
710
+ GetOrCreateMetadataMap(O, P, !0).set(MetadataKey, MetadataValue);
711
+ }
712
+ function Type(x) {
713
+ if (null === x) return 1;
714
+ switch (_typeof(x)) {
715
+ case "undefined":
716
+ return 0;
717
+ case "boolean":
718
+ return 2;
719
+ case "string":
720
+ return 3;
721
+ case "symbol":
722
+ return 4;
723
+ case "number":
724
+ return 5;
725
+ case "object":
726
+ return null === x ? 1 : 6;
727
+ default:
728
+ return 6;
812
729
  }
813
- function GetMethod(V, P) {
814
- var func = V[P];
815
- if (null != func) {
816
- if (!IsCallable(func)) throw new TypeError();
817
- return func;
730
+ }
731
+ function IsUndefined(x) {
732
+ return void 0 === x;
733
+ }
734
+ function IsNull(x) {
735
+ return null === x;
736
+ }
737
+ function IsSymbol(x) {
738
+ return "symbol" == _typeof(x);
739
+ }
740
+ function IsObject(x) {
741
+ return "object" == _typeof(x) ? null !== x : "function" == typeof x;
742
+ }
743
+ function ToPrimitive(input, PreferredType) {
744
+ switch (Type(input)) {
745
+ case 0:
746
+ case 1:
747
+ case 2:
748
+ case 3:
749
+ case 4:
750
+ case 5:
751
+ return input;
752
+ }
753
+ var hint = 3 === PreferredType ? "string" : 5 === PreferredType ? "number" : "default",
754
+ exoticToPrim = GetMethod(input, toPrimitiveSymbol);
755
+ if (void 0 !== exoticToPrim) {
756
+ var result = exoticToPrim.call(input, hint);
757
+ if (IsObject(result)) throw new TypeError();
758
+ return result;
759
+ }
760
+ return OrdinaryToPrimitive(input, "default" === hint ? "number" : hint);
761
+ }
762
+ function OrdinaryToPrimitive(O, hint) {
763
+ if ("string" === hint) {
764
+ var toString_1 = O.toString;
765
+ if (IsCallable(toString_1)) {
766
+ var result = toString_1.call(O);
767
+ if (!IsObject(result)) return result;
818
768
  }
819
- }
820
- function OrdinaryGetPrototypeOf(O) {
821
- var proto = Object.getPrototypeOf(O);
822
- if ("function" != typeof O || O === functionPrototype) return proto;
823
- if (proto !== functionPrototype) return proto;
824
- var prototype = O.prototype,
825
- prototypeProto = prototype && Object.getPrototypeOf(prototype);
826
- if (null == prototypeProto || prototypeProto === Object.prototype) return proto;
827
- var constructor = prototypeProto.constructor;
828
- return "function" != typeof constructor || constructor === O ? proto : constructor;
829
- }
830
- function CreateMapPolyfill() {
831
- var cacheSentinel = {},
832
- arraySentinel = [],
833
- MapIterator = function () {
834
- function MapIterator(keys, values, selector) {
835
- this._index = 0, this._keys = keys, this._values = values, this._selector = selector;
836
- }
837
- return MapIterator.prototype["@@iterator"] = function () {
838
- return this;
839
- }, MapIterator.prototype[iteratorSymbol] = function () {
840
- return this;
841
- }, MapIterator.prototype.next = function () {
842
- var index = this._index;
843
- if (index >= 0 && index < this._keys.length) {
844
- var result = this._selector(this._keys[index], this._values[index]);
845
- return index + 1 >= this._keys.length ? (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel) : this._index++, {
846
- value: result,
847
- done: !1
848
- };
849
- }
850
- return {
851
- value: void 0,
852
- done: !0
853
- };
854
- }, MapIterator.prototype["throw"] = function (error) {
855
- throw this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), error;
856
- }, MapIterator.prototype["return"] = function (value) {
857
- return this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), {
858
- value: value,
859
- done: !0
860
- };
861
- }, MapIterator;
862
- }();
863
- return function () {
864
- function Map() {
865
- this._keys = [], this._values = [], this._cacheKey = cacheSentinel, this._cacheIndex = -2;
866
- }
867
- return Object.defineProperty(Map.prototype, "size", {
868
- get: function get() {
869
- return this._keys.length;
870
- },
871
- enumerable: !0,
872
- configurable: !0
873
- }), Map.prototype.has = function (key) {
874
- return this._find(key, !1) >= 0;
875
- }, Map.prototype.get = function (key) {
876
- var index = this._find(key, !1);
877
- return index >= 0 ? this._values[index] : void 0;
878
- }, Map.prototype.set = function (key, value) {
879
- var index = this._find(key, !0);
880
- return this._values[index] = value, this;
881
- }, Map.prototype["delete"] = function (key) {
882
- var index = this._find(key, !1);
883
- if (index >= 0) {
884
- var size = this._keys.length;
885
- for (var i = index + 1; i < size; i++) this._keys[i - 1] = this._keys[i], this._values[i - 1] = this._values[i];
886
- return this._keys.length--, this._values.length--, key === this._cacheKey && (this._cacheKey = cacheSentinel, this._cacheIndex = -2), !0;
887
- }
888
- return !1;
889
- }, Map.prototype.clear = function () {
890
- this._keys.length = 0, this._values.length = 0, this._cacheKey = cacheSentinel, this._cacheIndex = -2;
891
- }, Map.prototype.keys = function () {
892
- return new MapIterator(this._keys, this._values, getKey);
893
- }, Map.prototype.values = function () {
894
- return new MapIterator(this._keys, this._values, getValue);
895
- }, Map.prototype.entries = function () {
896
- return new MapIterator(this._keys, this._values, getEntry);
897
- }, Map.prototype["@@iterator"] = function () {
898
- return this.entries();
899
- }, Map.prototype[iteratorSymbol] = function () {
900
- return this.entries();
901
- }, Map.prototype._find = function (key, insert) {
902
- return this._cacheKey !== key && (this._cacheIndex = this._keys.indexOf(this._cacheKey = key)), this._cacheIndex < 0 && insert && (this._cacheIndex = this._keys.length, this._keys.push(key), this._values.push(void 0)), this._cacheIndex;
903
- }, Map;
904
- }();
905
- function getKey(key, _) {
906
- return key;
769
+ var _valueOf = O.valueOf;
770
+ if (IsCallable(_valueOf)) {
771
+ var _result = _valueOf.call(O);
772
+ if (!IsObject(_result)) return _result;
907
773
  }
908
- function getValue(_, value) {
909
- return value;
774
+ } else {
775
+ var _valueOf2 = O.valueOf;
776
+ if (IsCallable(_valueOf2)) {
777
+ var _result2 = _valueOf2.call(O);
778
+ if (!IsObject(_result2)) return _result2;
910
779
  }
911
- function getEntry(key, value) {
912
- return [key, value];
780
+ var toString_2 = O.toString;
781
+ if (IsCallable(toString_2)) {
782
+ var _result3 = toString_2.call(O);
783
+ if (!IsObject(_result3)) return _result3;
913
784
  }
914
785
  }
915
- function CreateSetPolyfill() {
916
- return function () {
917
- function Set() {
918
- this._map = new _Map();
919
- }
920
- return Object.defineProperty(Set.prototype, "size", {
921
- get: function get() {
922
- return this._map.size;
923
- },
924
- enumerable: !0,
925
- configurable: !0
926
- }), Set.prototype.has = function (value) {
927
- return this._map.has(value);
928
- }, Set.prototype.add = function (value) {
929
- return this._map.set(value, value), this;
930
- }, Set.prototype["delete"] = function (value) {
931
- return this._map["delete"](value);
932
- }, Set.prototype.clear = function () {
933
- this._map.clear();
934
- }, Set.prototype.keys = function () {
935
- return this._map.keys();
936
- }, Set.prototype.values = function () {
937
- return this._map.values();
938
- }, Set.prototype.entries = function () {
939
- return this._map.entries();
940
- }, Set.prototype["@@iterator"] = function () {
941
- return this.keys();
942
- }, Set.prototype[iteratorSymbol] = function () {
943
- return this.keys();
944
- }, Set;
945
- }();
786
+ throw new TypeError();
787
+ }
788
+ function ToBoolean(argument) {
789
+ return !!argument;
790
+ }
791
+ function ToString(argument) {
792
+ return "" + argument;
793
+ }
794
+ function ToPropertyKey(argument) {
795
+ var key = ToPrimitive(argument, 3);
796
+ return IsSymbol(key) ? key : ToString(key);
797
+ }
798
+ function IsCallable(argument) {
799
+ return "function" == typeof argument;
800
+ }
801
+ function GetMethod(V, P) {
802
+ var func = V[P];
803
+ if (null != func) {
804
+ if (!IsCallable(func)) throw new TypeError();
805
+ return func;
946
806
  }
947
- function CreateWeakMapPolyfill() {
948
- var UUID_SIZE = 16,
949
- keys = HashMap.create(),
950
- rootKey = CreateUniqueKey();
951
- return function () {
952
- function WeakMap() {
953
- this._key = CreateUniqueKey();
807
+ }
808
+ function OrdinaryGetPrototypeOf(O) {
809
+ var proto = Object.getPrototypeOf(O);
810
+ if ("function" != typeof O || O === functionPrototype) return proto;
811
+ if (proto !== functionPrototype) return proto;
812
+ var prototype = O.prototype,
813
+ prototypeProto = prototype && Object.getPrototypeOf(prototype);
814
+ if (null == prototypeProto || prototypeProto === Object.prototype) return proto;
815
+ var constructor = prototypeProto.constructor;
816
+ return "function" != typeof constructor || constructor === O ? proto : constructor;
817
+ }
818
+ function CreateMapPolyfill() {
819
+ var cacheSentinel = {},
820
+ arraySentinel = [],
821
+ MapIterator = function () {
822
+ function MapIterator(keys, values, selector) {
823
+ this._index = 0, this._keys = keys, this._values = values, this._selector = selector;
954
824
  }
955
- return WeakMap.prototype.has = function (target) {
956
- var table = GetOrCreateWeakMapTable(target, !1);
957
- return void 0 !== table && HashMap.has(table, this._key);
958
- }, WeakMap.prototype.get = function (target) {
959
- var table = GetOrCreateWeakMapTable(target, !1);
960
- return void 0 !== table ? HashMap.get(table, this._key) : void 0;
961
- }, WeakMap.prototype.set = function (target, value) {
962
- return GetOrCreateWeakMapTable(target, !0)[this._key] = value, this;
963
- }, WeakMap.prototype["delete"] = function (target) {
964
- var table = GetOrCreateWeakMapTable(target, !1);
965
- return void 0 !== table && delete table[this._key];
966
- }, WeakMap.prototype.clear = function () {
967
- this._key = CreateUniqueKey();
968
- }, WeakMap;
825
+ return MapIterator.prototype["@@iterator"] = function () {
826
+ return this;
827
+ }, MapIterator.prototype[iteratorSymbol] = function () {
828
+ return this;
829
+ }, MapIterator.prototype.next = function () {
830
+ var index = this._index;
831
+ if (index >= 0 && index < this._keys.length) {
832
+ var result = this._selector(this._keys[index], this._values[index]);
833
+ return index + 1 >= this._keys.length ? (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel) : this._index++, {
834
+ value: result,
835
+ done: !1
836
+ };
837
+ }
838
+ return {
839
+ value: void 0,
840
+ done: !0
841
+ };
842
+ }, MapIterator.prototype["throw"] = function (error) {
843
+ throw this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), error;
844
+ }, MapIterator.prototype["return"] = function (value) {
845
+ return this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), {
846
+ value: value,
847
+ done: !0
848
+ };
849
+ }, MapIterator;
969
850
  }();
970
- function CreateUniqueKey() {
971
- var key;
972
- do {
973
- key = "@@WeakMap@@" + CreateUUID();
974
- } while (HashMap.has(keys, key));
975
- return keys[key] = !0, key;
851
+ return function () {
852
+ function Map() {
853
+ this._keys = [], this._values = [], this._cacheKey = cacheSentinel, this._cacheIndex = -2;
976
854
  }
977
- function GetOrCreateWeakMapTable(target, create) {
978
- if (!hasOwn.call(target, rootKey)) {
979
- if (!create) return;
980
- Object.defineProperty(target, rootKey, {
981
- value: HashMap.create()
982
- });
855
+ return Object.defineProperty(Map.prototype, "size", {
856
+ get: function get() {
857
+ return this._keys.length;
858
+ },
859
+ enumerable: !0,
860
+ configurable: !0
861
+ }), Map.prototype.has = function (key) {
862
+ return this._find(key, !1) >= 0;
863
+ }, Map.prototype.get = function (key) {
864
+ var index = this._find(key, !1);
865
+ return index >= 0 ? this._values[index] : void 0;
866
+ }, Map.prototype.set = function (key, value) {
867
+ var index = this._find(key, !0);
868
+ return this._values[index] = value, this;
869
+ }, Map.prototype["delete"] = function (key) {
870
+ var index = this._find(key, !1);
871
+ if (index >= 0) {
872
+ var size = this._keys.length;
873
+ for (var i = index + 1; i < size; i++) this._keys[i - 1] = this._keys[i], this._values[i - 1] = this._values[i];
874
+ return this._keys.length--, this._values.length--, key === this._cacheKey && (this._cacheKey = cacheSentinel, this._cacheIndex = -2), !0;
983
875
  }
984
- return target[rootKey];
876
+ return !1;
877
+ }, Map.prototype.clear = function () {
878
+ this._keys.length = 0, this._values.length = 0, this._cacheKey = cacheSentinel, this._cacheIndex = -2;
879
+ }, Map.prototype.keys = function () {
880
+ return new MapIterator(this._keys, this._values, getKey);
881
+ }, Map.prototype.values = function () {
882
+ return new MapIterator(this._keys, this._values, getValue);
883
+ }, Map.prototype.entries = function () {
884
+ return new MapIterator(this._keys, this._values, getEntry);
885
+ }, Map.prototype["@@iterator"] = function () {
886
+ return this.entries();
887
+ }, Map.prototype[iteratorSymbol] = function () {
888
+ return this.entries();
889
+ }, Map.prototype._find = function (key, insert) {
890
+ return this._cacheKey !== key && (this._cacheIndex = this._keys.indexOf(this._cacheKey = key)), this._cacheIndex < 0 && insert && (this._cacheIndex = this._keys.length, this._keys.push(key), this._values.push(void 0)), this._cacheIndex;
891
+ }, Map;
892
+ }();
893
+ function getKey(key, _) {
894
+ return key;
895
+ }
896
+ function getValue(_, value) {
897
+ return value;
898
+ }
899
+ function getEntry(key, value) {
900
+ return [key, value];
901
+ }
902
+ }
903
+ function CreateSetPolyfill() {
904
+ return function () {
905
+ function Set() {
906
+ this._map = new _Map();
985
907
  }
986
- function FillRandomBytes(buffer, size) {
987
- for (var i = 0; i < size; ++i) buffer[i] = 255 * Math.random() | 0;
988
- return buffer;
908
+ return Object.defineProperty(Set.prototype, "size", {
909
+ get: function get() {
910
+ return this._map.size;
911
+ },
912
+ enumerable: !0,
913
+ configurable: !0
914
+ }), Set.prototype.has = function (value) {
915
+ return this._map.has(value);
916
+ }, Set.prototype.add = function (value) {
917
+ return this._map.set(value, value), this;
918
+ }, Set.prototype["delete"] = function (value) {
919
+ return this._map["delete"](value);
920
+ }, Set.prototype.clear = function () {
921
+ this._map.clear();
922
+ }, Set.prototype.keys = function () {
923
+ return this._map.keys();
924
+ }, Set.prototype.values = function () {
925
+ return this._map.values();
926
+ }, Set.prototype.entries = function () {
927
+ return this._map.entries();
928
+ }, Set.prototype["@@iterator"] = function () {
929
+ return this.keys();
930
+ }, Set.prototype[iteratorSymbol] = function () {
931
+ return this.keys();
932
+ }, Set;
933
+ }();
934
+ }
935
+ function CreateWeakMapPolyfill() {
936
+ var UUID_SIZE = 16,
937
+ keys = HashMap.create(),
938
+ rootKey = CreateUniqueKey();
939
+ return function () {
940
+ function WeakMap() {
941
+ this._key = CreateUniqueKey();
989
942
  }
990
- function GenRandomBytes(size) {
991
- return "function" == typeof Uint8Array ? "undefined" != typeof crypto ? crypto.getRandomValues(new Uint8Array(size)) : FillRandomBytes(new Uint8Array(size), size) : FillRandomBytes(new Array(size), size);
943
+ return WeakMap.prototype.has = function (target) {
944
+ var table = GetOrCreateWeakMapTable(target, !1);
945
+ return void 0 !== table && HashMap.has(table, this._key);
946
+ }, WeakMap.prototype.get = function (target) {
947
+ var table = GetOrCreateWeakMapTable(target, !1);
948
+ return void 0 !== table ? HashMap.get(table, this._key) : void 0;
949
+ }, WeakMap.prototype.set = function (target, value) {
950
+ return GetOrCreateWeakMapTable(target, !0)[this._key] = value, this;
951
+ }, WeakMap.prototype["delete"] = function (target) {
952
+ var table = GetOrCreateWeakMapTable(target, !1);
953
+ return void 0 !== table && delete table[this._key];
954
+ }, WeakMap.prototype.clear = function () {
955
+ this._key = CreateUniqueKey();
956
+ }, WeakMap;
957
+ }();
958
+ function CreateUniqueKey() {
959
+ var key;
960
+ do {
961
+ key = "@@WeakMap@@" + CreateUUID();
962
+ } while (HashMap.has(keys, key));
963
+ return keys[key] = !0, key;
964
+ }
965
+ function GetOrCreateWeakMapTable(target, create) {
966
+ if (!hasOwn.call(target, rootKey)) {
967
+ if (!create) return;
968
+ Object.defineProperty(target, rootKey, {
969
+ value: HashMap.create()
970
+ });
992
971
  }
993
- function CreateUUID() {
994
- var data = GenRandomBytes(UUID_SIZE);
995
- data[6] = 79 & data[6] | 64, data[8] = 191 & data[8] | 128;
996
- var result = "";
997
- for (var offset = 0; offset < UUID_SIZE; ++offset) {
998
- var _byte = data[offset];
999
- 4 !== offset && 6 !== offset && 8 !== offset || (result += "-"), _byte < 16 && (result += "0"), result += _byte.toString(16).toLowerCase();
1000
- }
1001
- return result;
972
+ return target[rootKey];
973
+ }
974
+ function FillRandomBytes(buffer, size) {
975
+ for (var i = 0; i < size; ++i) buffer[i] = 255 * Math.random() | 0;
976
+ return buffer;
977
+ }
978
+ function GenRandomBytes(size) {
979
+ return "function" == typeof Uint8Array ? "undefined" != typeof crypto ? crypto.getRandomValues(new Uint8Array(size)) : FillRandomBytes(new Uint8Array(size), size) : FillRandomBytes(new Array(size), size);
980
+ }
981
+ function CreateUUID() {
982
+ var data = GenRandomBytes(UUID_SIZE);
983
+ data[6] = 79 & data[6] | 64, data[8] = 191 & data[8] | 128;
984
+ var result = "";
985
+ for (var offset = 0; offset < UUID_SIZE; ++offset) {
986
+ var _byte = data[offset];
987
+ 4 !== offset && 6 !== offset && 8 !== offset || (result += "-"), _byte < 16 && (result += "0"), result += _byte.toString(16).toLowerCase();
1002
988
  }
989
+ return result;
1003
990
  }
1004
- function MakeDictionary(obj) {
1005
- return obj.__ = void 0, delete obj.__, obj;
1006
- }
1007
- exporter("defineMetadata", defineMetadata), exporter("hasMetadata", hasMetadata), exporter("hasOwnMetadata", hasOwnMetadata), exporter("getMetadata", getMetadata);
1008
- }(exporter);
1009
- }(), Reflect;
1010
- })(Reflect$1 || (Reflect$1 = {}));
991
+ }
992
+ function MakeDictionary(obj) {
993
+ return obj.__ = void 0, delete obj.__, obj;
994
+ }
995
+ exporter("defineMetadata", defineMetadata), exporter("hasMetadata", hasMetadata), exporter("hasOwnMetadata", hasOwnMetadata), exporter("getMetadata", getMetadata);
996
+ }((target = Reflect, function (key, value) {
997
+ "function" != typeof target[key] && Object.defineProperty(target, key, {
998
+ configurable: !0,
999
+ writable: !0,
1000
+ value: value
1001
+ });
1002
+ })), Reflect;
1003
+ })({});
1011
1004
 
1012
1005
  function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
1013
1006
  var _paramOrPropertyMetad;
1014
1007
  var metadatas = [metadata];
1015
1008
  var paramsOrPropertiesMetadata = {};
1016
- Reflect$2.hasOwnMetadata(metadataKey, annotationTarget) && (paramsOrPropertiesMetadata = Reflect$2.getMetadata(metadataKey, annotationTarget));
1009
+ Reflect$1.hasOwnMetadata(metadataKey, annotationTarget) && (paramsOrPropertiesMetadata = Reflect$1.getMetadata(metadataKey, annotationTarget));
1017
1010
  var paramOrPropertyMetadata = paramsOrPropertiesMetadata[key];
1018
- void 0 === paramOrPropertyMetadata && (paramOrPropertyMetadata = []), (_paramOrPropertyMetad = paramOrPropertyMetadata).push.apply(_paramOrPropertyMetad, metadatas), paramsOrPropertiesMetadata[key] = paramOrPropertyMetadata, Reflect$2.defineMetadata(metadataKey, paramsOrPropertiesMetadata, annotationTarget);
1011
+ void 0 === paramOrPropertyMetadata && (paramOrPropertyMetadata = []), (_paramOrPropertyMetad = paramOrPropertyMetadata).push.apply(_paramOrPropertyMetad, metadatas), paramsOrPropertiesMetadata[key] = paramOrPropertyMetadata, Reflect$1.defineMetadata(metadataKey, paramsOrPropertiesMetadata, annotationTarget);
1019
1012
  }
1020
1013
  function tagParameter(annotationTarget, parameterName, parameterIndex, metadata) {
1021
1014
  _tagParameterOrProperty(TAGGED, annotationTarget, parameterIndex.toString(), metadata);
@@ -1039,7 +1032,7 @@
1039
1032
 
1040
1033
  function injectable() {
1041
1034
  return function (target) {
1042
- return Reflect$2.defineMetadata(PARAM_TYPES, null, target), target;
1035
+ return Reflect$1.defineMetadata(PARAM_TYPES, null, target), target;
1043
1036
  };
1044
1037
  }
1045
1038
 
@@ -1087,8 +1080,8 @@
1087
1080
  key: "getConstructorMetadata",
1088
1081
  value: function getConstructorMetadata(constructorFunc) {
1089
1082
  return {
1090
- compilerGeneratedMetadata: Reflect$2.getMetadata(PARAM_TYPES, constructorFunc),
1091
- userGeneratedMetadata: Reflect$2.getMetadata(TAGGED, constructorFunc) || {}
1083
+ compilerGeneratedMetadata: Reflect$1.getMetadata(PARAM_TYPES, constructorFunc),
1084
+ userGeneratedMetadata: Reflect$1.getMetadata(TAGGED, constructorFunc) || {}
1092
1085
  };
1093
1086
  }
1094
1087
  }, {
@@ -1530,7 +1523,7 @@
1530
1523
  var EnvContribution = Symbol["for"]("EnvContribution");
1531
1524
  var VGlobal = Symbol["for"]("VGlobal");
1532
1525
 
1533
- var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
1526
+ var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
1534
1527
  var d,
1535
1528
  c = arguments.length,
1536
1529
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -1780,7 +1773,7 @@
1780
1773
  }]);
1781
1774
  return DefaultGlobal;
1782
1775
  }();
1783
- exports.DefaultGlobal = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(EnvContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultGlobal);
1776
+ exports.DefaultGlobal = __decorate$1B([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(EnvContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultGlobal);
1784
1777
 
1785
1778
  function getDefaultExportFromCjs (x) {
1786
1779
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -5298,7 +5291,7 @@
5298
5291
  return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
5299
5292
  }
5300
5293
 
5301
- var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5294
+ var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5302
5295
  var d,
5303
5296
  c = arguments.length,
5304
5297
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5504,9 +5497,9 @@
5504
5497
  }]);
5505
5498
  return ATextMeasure;
5506
5499
  }();
5507
- ATextMeasure = __decorate$1B([injectable()], ATextMeasure);
5500
+ ATextMeasure = __decorate$1A([injectable()], ATextMeasure);
5508
5501
 
5509
- var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5502
+ var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5510
5503
  var d,
5511
5504
  c = arguments.length,
5512
5505
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5523,7 +5516,7 @@
5523
5516
  }
5524
5517
  return _createClass(DefaultTextMeasureContribution);
5525
5518
  }(ATextMeasure);
5526
- exports.DefaultTextMeasureContribution = __decorate$1A([injectable()], exports.DefaultTextMeasureContribution);
5519
+ exports.DefaultTextMeasureContribution = __decorate$1z([injectable()], exports.DefaultTextMeasureContribution);
5527
5520
 
5528
5521
  var container = new Container();
5529
5522
 
@@ -5966,7 +5959,7 @@
5966
5959
  }();
5967
5960
  var canvasAllocate = new DefaultCanvasAllocate();
5968
5961
 
5969
- var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5962
+ var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5970
5963
  var d,
5971
5964
  c = arguments.length,
5972
5965
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -6058,7 +6051,7 @@
6058
6051
  }]);
6059
6052
  return DefaultGraphicUtil;
6060
6053
  }();
6061
- exports.DefaultGraphicUtil = __decorate$1z([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(TextMeasureContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
6054
+ exports.DefaultGraphicUtil = __decorate$1y([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(TextMeasureContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
6062
6055
  var TransformMode;
6063
6056
  !function (TransformMode) {
6064
6057
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -6135,7 +6128,7 @@
6135
6128
  }]);
6136
6129
  return DefaultTransformUtil;
6137
6130
  }();
6138
- exports.DefaultTransformUtil = __decorate$1z([injectable(), __metadata$1b("design:paramtypes", [])], exports.DefaultTransformUtil);
6131
+ exports.DefaultTransformUtil = __decorate$1y([injectable(), __metadata$1b("design:paramtypes", [])], exports.DefaultTransformUtil);
6139
6132
 
6140
6133
  var defaultThemeObj = {
6141
6134
  arc: DefaultArcAttribute,
@@ -7133,7 +7126,7 @@
7133
7126
  timeStamp: now
7134
7127
  });
7135
7128
  var clickHistory = trackingData.clicksByButton[from.button];
7136
- clickHistory.target === clickEvent.target && now - clickHistory.timeStamp < 200 ? ++clickHistory.clickCount : clickHistory.clickCount = 1, clickHistory.target = clickEvent.target, clickHistory.timeStamp = now, clickEvent.detail = clickHistory.clickCount, isMouseLike(clickEvent.pointerType) ? (_this.dispatchEvent(clickEvent, "click"), 2 === clickHistory.clickCount && _this.dispatchEvent(clickEvent, "dblclick")) : "touch" === clickEvent.pointerType && _this.dispatchEvent(clickEvent, "tap"), _this.dispatchEvent(clickEvent, "pointertap"), _this.freeEvent(clickEvent);
7129
+ clickHistory.target === clickEvent.target && now - clickHistory.timeStamp < 200 ? ++clickHistory.clickCount : clickHistory.clickCount = 1, clickHistory.target = clickEvent.target, clickHistory.timeStamp = now, clickEvent.detail = clickHistory.clickCount, isMouseLike(clickEvent.pointerType) ? (_this.dispatchEvent(clickEvent, "click"), 2 === clickHistory.clickCount && _this.dispatchEvent(clickEvent, "dblclick")) : "touch" === clickEvent.pointerType && (_this.dispatchEvent(clickEvent, "tap"), 2 === clickHistory.clickCount && _this.dispatchEvent(clickEvent, "dbltap")), _this.dispatchEvent(clickEvent, "pointertap"), _this.freeEvent(clickEvent);
7137
7130
  }
7138
7131
  _this.freeEvent(e);
7139
7132
  }, this.onPointerUpOutside = function (from, target) {
@@ -12490,7 +12483,7 @@
12490
12483
  var DynamicLayerHandlerContribution = Symbol["for"]("DynamicLayerHandlerContribution");
12491
12484
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
12492
12485
 
12493
- var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12486
+ var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12494
12487
  var d,
12495
12488
  c = arguments.length,
12496
12489
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12577,9 +12570,9 @@
12577
12570
  }]);
12578
12571
  return DefaultLayerService;
12579
12572
  }();
12580
- exports.DefaultLayerService = __decorate$1y([injectable(), __metadata$1a("design:paramtypes", [])], exports.DefaultLayerService);
12573
+ exports.DefaultLayerService = __decorate$1x([injectable(), __metadata$1a("design:paramtypes", [])], exports.DefaultLayerService);
12581
12574
 
12582
- var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12575
+ var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12583
12576
  var d,
12584
12577
  c = arguments.length,
12585
12578
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12739,7 +12732,7 @@
12739
12732
  }]);
12740
12733
  return DefaultWindow;
12741
12734
  }();
12742
- exports.DefaultWindow = __decorate$1x([injectable(), __metadata$19("design:paramtypes", [])], exports.DefaultWindow);
12735
+ exports.DefaultWindow = __decorate$1w([injectable(), __metadata$19("design:paramtypes", [])], exports.DefaultWindow);
12743
12736
 
12744
12737
  var coreModule = new ContainerModule(function (bind) {
12745
12738
  bind(VGlobal).to(exports.DefaultGlobal).inSingletonScope(), bind(VWindow).to(exports.DefaultWindow), bind(GraphicUtil).to(exports.DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(exports.DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(exports.DefaultLayerService).inSingletonScope();
@@ -16821,7 +16814,7 @@
16821
16814
  var matrixAllocate = new DefaultMatrixAllocate();
16822
16815
  var mat4Allocate = new DefaultMat4Allocate();
16823
16816
 
16824
- var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16817
+ var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16825
16818
  var d,
16826
16819
  c = arguments.length,
16827
16820
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17509,7 +17502,7 @@
17509
17502
  }]);
17510
17503
  return DefaultGraphicService;
17511
17504
  }();
17512
- exports.DefaultGraphicService = __decorate$1w([injectable(), __param$P(0, inject(GraphicCreator)), __metadata$18("design:paramtypes", [Object])], exports.DefaultGraphicService);
17505
+ exports.DefaultGraphicService = __decorate$1v([injectable(), __param$P(0, inject(GraphicCreator)), __metadata$18("design:paramtypes", [Object])], exports.DefaultGraphicService);
17513
17506
 
17514
17507
  var ShadowRoot = /*#__PURE__*/function (_Group) {
17515
17508
  _inherits(ShadowRoot, _Group);
@@ -17643,14 +17636,7 @@
17643
17636
  return richText.setAttributes(params), richText.AABBBounds;
17644
17637
  }
17645
17638
 
17646
- var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17647
- var d,
17648
- c = arguments.length,
17649
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17650
- if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17651
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17652
- };
17653
- exports.BaseRender = /*#__PURE__*/function () {
17639
+ var BaseRender = /*#__PURE__*/function () {
17654
17640
  function BaseRender() {
17655
17641
  _classCallCheck(this, BaseRender);
17656
17642
  }
@@ -17816,7 +17802,6 @@
17816
17802
  }]);
17817
17803
  return BaseRender;
17818
17804
  }();
17819
- exports.BaseRender = __decorate$1v([injectable()], exports.BaseRender);
17820
17805
 
17821
17806
  function getScaledStroke(context, width, dpr) {
17822
17807
  var strokeWidth = width;
@@ -18760,7 +18745,7 @@
18760
18745
  }
18761
18746
  }]);
18762
18747
  return DefaultCanvasArcRender;
18763
- }(exports.BaseRender);
18748
+ }(BaseRender);
18764
18749
  exports.DefaultCanvasArcRender = __decorate$1t([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(ArcRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
18765
18750
 
18766
18751
  var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -18818,7 +18803,7 @@
18818
18803
  }
18819
18804
  }]);
18820
18805
  return DefaultCanvasCircleRender;
18821
- }(exports.BaseRender);
18806
+ }(BaseRender);
18822
18807
  exports.DefaultCanvasCircleRender = __decorate$1s([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(CircleRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
18823
18808
 
18824
18809
  function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
@@ -19142,7 +19127,7 @@
19142
19127
  }
19143
19128
  }]);
19144
19129
  return DefaultCanvasLineRender;
19145
- }(exports.BaseRender);
19130
+ }(BaseRender);
19146
19131
  exports.DefaultCanvasLineRender = __decorate$1r([injectable()], exports.DefaultCanvasLineRender);
19147
19132
 
19148
19133
  function drawAreaSegments(path, segPath, percent, params) {
@@ -19390,32 +19375,82 @@
19390
19375
  return _this;
19391
19376
  }
19392
19377
  _createClass(DefaultCanvasAreaRender, [{
19378
+ key: "drawLinearAreaHighPerformance",
19379
+ value: function drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
19380
+ var _a, _b, _c, _d, _e;
19381
+ context.beginPath();
19382
+ var z = null !== (_a = this.z) && void 0 !== _a ? _a : 0,
19383
+ points = area.attribute.points,
19384
+ startP = points[0];
19385
+ context.moveTo(startP.x, startP.y, z);
19386
+ for (var i = 1; i < points.length; i++) {
19387
+ var p = points[i];
19388
+ context.lineTo(p.x, p.y, z);
19389
+ }
19390
+ for (var _i = points.length - 1; _i >= 0; _i--) {
19391
+ var _p = points[_i];
19392
+ context.lineTo(null !== (_b = _p.x1) && void 0 !== _b ? _b : _p.x, null !== (_c = _p.y1) && void 0 !== _c ? _c : _p.y, z);
19393
+ }
19394
+ context.closePath(), context.setShadowBlendStyle && context.setShadowBlendStyle(area, area.attribute, areaAttribute);
19395
+ var _area$attribute = area.attribute,
19396
+ _area$attribute$x = _area$attribute.x,
19397
+ originX = _area$attribute$x === void 0 ? 0 : _area$attribute$x,
19398
+ _area$attribute$x2 = _area$attribute.x,
19399
+ originY = _area$attribute$x2 === void 0 ? 0 : _area$attribute$x2;
19400
+ if (!1 !== fill && (fillCb ? fillCb(context, area.attribute, areaAttribute) : fillOpacity && (context.setCommonStyle(area, area.attribute, originX - offsetX, originY - offsetY, areaAttribute), context.fill())), stroke) {
19401
+ var _area$attribute$strok = area.attribute.stroke,
19402
+ _stroke = _area$attribute$strok === void 0 ? areaAttribute && areaAttribute.stroke : _area$attribute$strok;
19403
+ if (isArray$1(_stroke) && (_stroke[0] || _stroke[2]) && !1 === _stroke[1]) if (context.beginPath(), _stroke[0]) {
19404
+ context.moveTo(startP.x, startP.y, z);
19405
+ for (var _i2 = 1; _i2 < points.length; _i2++) {
19406
+ var _p2 = points[_i2];
19407
+ context.lineTo(_p2.x, _p2.y, z);
19408
+ }
19409
+ } else if (_stroke[2]) {
19410
+ var endP = points[points.length - 1];
19411
+ context.moveTo(endP.x, endP.y, z);
19412
+ for (var _i3 = points.length - 2; _i3 >= 0; _i3--) {
19413
+ var _p3 = points[_i3];
19414
+ context.lineTo(null !== (_d = _p3.x1) && void 0 !== _d ? _d : _p3.x, null !== (_e = _p3.y1) && void 0 !== _e ? _e : _p3.y, z);
19415
+ }
19416
+ }
19417
+ context.setStrokeStyle(area, area.attribute, originX - offsetX, originY - offsetY, areaAttribute), context.stroke();
19418
+ }
19419
+ }
19420
+ }, {
19393
19421
  key: "drawShape",
19394
19422
  value: function drawShape(area, context, x, y, drawContext, params, fillCb, strokeCb) {
19395
19423
  var _this2 = this;
19396
19424
  var _a, _b, _c, _d, _e, _f;
19397
19425
  var areaAttribute = getTheme(area, null == params ? void 0 : params.theme).area,
19398
- _area$attribute = area.attribute,
19399
- _area$attribute$fillO = _area$attribute.fillOpacity,
19400
- fillOpacity = _area$attribute$fillO === void 0 ? areaAttribute.fillOpacity : _area$attribute$fillO,
19401
- _area$attribute$z = _area$attribute.z,
19402
- z = _area$attribute$z === void 0 ? areaAttribute.z : _area$attribute$z,
19403
- _area$attribute$strok = _area$attribute.strokeOpacity,
19404
- strokeOpacity = _area$attribute$strok === void 0 ? areaAttribute.strokeOpacity : _area$attribute$strok,
19426
+ _area$attribute2 = area.attribute,
19427
+ _area$attribute2$fill = _area$attribute2.fill,
19428
+ fill = _area$attribute2$fill === void 0 ? areaAttribute.fill : _area$attribute2$fill,
19429
+ _area$attribute2$stro = _area$attribute2.stroke;
19430
+ _area$attribute2$stro === void 0 ? areaAttribute.stroke : _area$attribute2$stro;
19431
+ var _area$attribute2$fill2 = _area$attribute2.fillOpacity,
19432
+ fillOpacity = _area$attribute2$fill2 === void 0 ? areaAttribute.fillOpacity : _area$attribute2$fill2,
19433
+ _area$attribute2$z = _area$attribute2.z,
19434
+ z = _area$attribute2$z === void 0 ? areaAttribute.z : _area$attribute2$z,
19435
+ _area$attribute2$stro2 = _area$attribute2.strokeOpacity,
19436
+ strokeOpacity = _area$attribute2$stro2 === void 0 ? areaAttribute.strokeOpacity : _area$attribute2$stro2,
19405
19437
  data = this.valid(area, areaAttribute, fillCb, strokeCb);
19406
19438
  if (!data) return;
19407
19439
  var doFill = data.doFill,
19408
19440
  doStroke = data.doStroke,
19409
- _area$attribute$clipR = area.attribute.clipRange,
19410
- clipRange = _area$attribute$clipR === void 0 ? areaAttribute.clipRange : _area$attribute$clipR;
19441
+ _area$attribute3 = area.attribute,
19442
+ _area$attribute3$clip = _area$attribute3.clipRange,
19443
+ clipRange = _area$attribute3$clip === void 0 ? areaAttribute.clipRange : _area$attribute3$clip,
19444
+ closePath = _area$attribute3.closePath,
19445
+ points = _area$attribute3.points,
19446
+ segments = _area$attribute3.segments;
19447
+ var _area$attribute$curve = area.attribute.curveType,
19448
+ curveType = _area$attribute$curve === void 0 ? areaAttribute.curveType : _area$attribute$curve;
19449
+ if (closePath && "linear" === curveType && (curveType = "linearClosed"), 1 === clipRange && !segments && !points.some(function (p) {
19450
+ return !1 === p.defined;
19451
+ }) && "linear" === curveType) return this.drawLinearAreaHighPerformance(area, context, !!fill, doStroke, fillOpacity, strokeOpacity, x, y, areaAttribute, drawContext, params, fillCb, strokeCb);
19411
19452
  if (area.shouldUpdateShape()) {
19412
- var _area$attribute2 = area.attribute,
19413
- points = _area$attribute2.points,
19414
- segments = _area$attribute2.segments,
19415
- closePath = _area$attribute2.closePath;
19416
- var _area$attribute$curve = area.attribute.curveType,
19417
- curveType = _area$attribute$curve === void 0 ? areaAttribute.curveType : _area$attribute$curve;
19418
- if (closePath && "linear" === curveType && (curveType = "linearClosed"), segments && segments.length) {
19453
+ if (segments && segments.length) {
19419
19454
  var startPoint, lastTopSeg;
19420
19455
  var topCaches = segments.map(function (seg, index) {
19421
19456
  if (seg.points.length <= 1 && 0 === index) return seg.points[0] && (lastTopSeg = {
@@ -19438,9 +19473,9 @@
19438
19473
  for (var i = segments.length - 1; i >= 0; i--) {
19439
19474
  var _points = segments[i].points,
19440
19475
  bottomPoints = [];
19441
- for (var _i = _points.length - 1; _i >= 0; _i--) bottomPoints.push({
19442
- x: null !== (_a = _points[_i].x1) && void 0 !== _a ? _a : _points[_i].x,
19443
- y: null !== (_b = _points[_i].y1) && void 0 !== _b ? _b : _points[_i].y
19476
+ for (var _i4 = _points.length - 1; _i4 >= 0; _i4--) bottomPoints.push({
19477
+ x: null !== (_a = _points[_i4].x1) && void 0 !== _a ? _a : _points[_i4].x,
19478
+ y: null !== (_b = _points[_i4].y1) && void 0 !== _b ? _b : _points[_i4].y
19444
19479
  });
19445
19480
  if (0 !== i) {
19446
19481
  var lastSegmentPoints = segments[i - 1].points,
@@ -19463,9 +19498,9 @@
19463
19498
  {
19464
19499
  var topPoints = points,
19465
19500
  _bottomPoints = [];
19466
- for (var _i2 = points.length - 1; _i2 >= 0; _i2--) _bottomPoints.push({
19467
- x: null !== (_e = points[_i2].x1) && void 0 !== _e ? _e : points[_i2].x,
19468
- y: null !== (_f = points[_i2].y1) && void 0 !== _f ? _f : points[_i2].y
19501
+ for (var _i5 = points.length - 1; _i5 >= 0; _i5--) _bottomPoints.push({
19502
+ x: null !== (_e = points[_i5].x1) && void 0 !== _e ? _e : points[_i5].x,
19503
+ y: null !== (_f = points[_i5].y1) && void 0 !== _f ? _f : points[_i5].y
19469
19504
  });
19470
19505
  var topCache = calcLineCache(topPoints, curveType),
19471
19506
  bottomCache = calcLineCache(_bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType);
@@ -19528,9 +19563,9 @@
19528
19563
  }) : da.push(defaultAttribute), da.push(attribute)), connect && "none" === connectedType) return !1;
19529
19564
  if (!cache) return;
19530
19565
  context.beginPath();
19531
- var _area$attribute3 = area.attribute,
19532
- points = _area$attribute3.points,
19533
- segments = _area$attribute3.segments;
19566
+ var _area$attribute4 = area.attribute,
19567
+ points = _area$attribute4.points,
19568
+ segments = _area$attribute4.segments;
19534
19569
  var endP,
19535
19570
  startP,
19536
19571
  direction = exports.Direction.ROW;
@@ -19558,8 +19593,8 @@
19558
19593
  attribute: attribute
19559
19594
  }), !1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
19560
19595
  var _attribute$stroke = attribute.stroke,
19561
- _stroke = _attribute$stroke === void 0 ? defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke : _attribute$stroke;
19562
- isArray$1(_stroke) && (_stroke[0] || _stroke[2]) && !1 === _stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, _stroke[0] ? cache.top : cache.bottom, clipRange, direction === exports.Direction.ROW ? "x" : "y", {
19596
+ _stroke2 = _attribute$stroke === void 0 ? defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke : _attribute$stroke;
19597
+ isArray$1(_stroke2) && (_stroke2[0] || _stroke2[2]) && !1 === _stroke2[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, _stroke2[0] ? cache.top : cache.bottom, clipRange, direction === exports.Direction.ROW ? "x" : "y", {
19563
19598
  offsetX: offsetX,
19564
19599
  offsetY: offsetY,
19565
19600
  offsetZ: offsetZ,
@@ -19573,7 +19608,7 @@
19573
19608
  }
19574
19609
  }]);
19575
19610
  return DefaultCanvasAreaRender;
19576
- }(exports.BaseRender);
19611
+ }(BaseRender);
19577
19612
  exports.DefaultCanvasAreaRender = __decorate$1q([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(AreaRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
19578
19613
 
19579
19614
  var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
@@ -19634,7 +19669,7 @@
19634
19669
  }
19635
19670
  }]);
19636
19671
  return DefaultCanvasPathRender;
19637
- }(exports.BaseRender);
19672
+ }(BaseRender);
19638
19673
  exports.DefaultCanvasPathRender = __decorate$1p([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PathRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
19639
19674
 
19640
19675
  var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -19715,7 +19750,7 @@
19715
19750
  }
19716
19751
  }]);
19717
19752
  return DefaultCanvasRectRender;
19718
- }(exports.BaseRender);
19753
+ }(BaseRender);
19719
19754
  exports.DefaultCanvasRectRender = __decorate$1o([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(RectRenderContribution)), __metadata$12("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
19720
19755
 
19721
19756
  var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -19788,7 +19823,7 @@
19788
19823
  }
19789
19824
  }]);
19790
19825
  return DefaultCanvasSymbolRender;
19791
- }(exports.BaseRender);
19826
+ }(BaseRender);
19792
19827
  exports.DefaultCanvasSymbolRender = __decorate$1n([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(SymbolRenderContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
19793
19828
 
19794
19829
  var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -20018,7 +20053,7 @@
20018
20053
  }
20019
20054
  }]);
20020
20055
  return DefaultCanvasTextRender;
20021
- }(exports.BaseRender);
20056
+ }(BaseRender);
20022
20057
  exports.DefaultCanvasTextRender = __decorate$1m([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(TextRenderContribution)), __metadata$10("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
20023
20058
 
20024
20059
  var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -20144,7 +20179,7 @@
20144
20179
  }
20145
20180
  }]);
20146
20181
  return DefaultCanvasPolygonRender;
20147
- }(exports.BaseRender);
20182
+ }(BaseRender);
20148
20183
  exports.DefaultCanvasPolygonRender = __decorate$1k([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PolygonRenderContribution)), __metadata$$("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
20149
20184
 
20150
20185
  var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -20224,7 +20259,7 @@
20224
20259
  }
20225
20260
  }]);
20226
20261
  return DefaultCanvasImageRender;
20227
- }(exports.BaseRender);
20262
+ }(BaseRender);
20228
20263
  exports.DefaultCanvasImageRender = __decorate$1j([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(ImageRenderContribution)), __metadata$_("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
20229
20264
 
20230
20265
  var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
@@ -22183,7 +22218,7 @@
22183
22218
  }
22184
22219
  }]);
22185
22220
  return DefaultCanvasRect3dRender;
22186
- }(exports.BaseRender);
22221
+ }(BaseRender);
22187
22222
  DefaultCanvasRect3dRender = __decorate$16([injectable()], DefaultCanvasRect3dRender);
22188
22223
 
22189
22224
  var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -22267,7 +22302,7 @@
22267
22302
  }
22268
22303
  }]);
22269
22304
  return DefaultCanvasRichTextRender;
22270
- }(exports.BaseRender);
22305
+ }(BaseRender);
22271
22306
  DefaultCanvasRichTextRender = __decorate$15([injectable()], DefaultCanvasRichTextRender);
22272
22307
 
22273
22308
  var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -22434,7 +22469,7 @@
22434
22469
  }
22435
22470
  }]);
22436
22471
  return DefaultCanvasArc3DRender;
22437
- }(exports.BaseRender);
22472
+ }(BaseRender);
22438
22473
  DefaultCanvasArc3DRender = __decorate$13([injectable()], DefaultCanvasArc3DRender);
22439
22474
 
22440
22475
  var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -22561,11 +22596,11 @@
22561
22596
  }
22562
22597
  }]);
22563
22598
  return DefaultCanvasPyramid3dRender;
22564
- }(exports.BaseRender);
22599
+ }(BaseRender);
22565
22600
  DefaultCanvasPyramid3dRender = __decorate$12([injectable()], DefaultCanvasPyramid3dRender);
22566
22601
 
22567
22602
  var renderModule = new ContainerModule(function (bind) {
22568
- bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(CircleRender).to(exports.DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bindContributionProvider(bind, CircleRenderContribution), bind(RectRender).to(exports.DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender), bindContributionProvider(bind, RectRenderContribution), bind(TextRender).to(exports.DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bindContributionProvider(bind, TextRenderContribution), bind(PathRender).to(exports.DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bindContributionProvider(bind, PathRenderContribution), bind(SymbolRender).to(exports.DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bindContributionProvider(bind, SymbolRenderContribution), bind(ArcRender).to(exports.DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender), bindContributionProvider(bind, ArcRenderContribution), bind(LineRender).to(exports.DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(exports.DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bindContributionProvider(bind, AreaRenderContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bindContributionProvider(bind, PolygonRenderContribution), bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender), bind(ImageRender).to(exports.DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bindContributionProvider(bind, ImageRenderContribution), bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender), bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bind(InteractiveDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(InteractiveDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
22603
+ bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(exports.DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(exports.DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bindContributionProvider(bind, CircleRenderContribution), bind(exports.DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(exports.DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender), bindContributionProvider(bind, RectRenderContribution), bind(TextRender).to(exports.DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bindContributionProvider(bind, TextRenderContribution), bind(exports.DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(exports.DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bindContributionProvider(bind, PathRenderContribution), bind(exports.DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(exports.DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bindContributionProvider(bind, SymbolRenderContribution), bind(exports.DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(exports.DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender), bindContributionProvider(bind, ArcRenderContribution), bind(exports.DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(exports.DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(exports.DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(exports.DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bindContributionProvider(bind, AreaRenderContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bindContributionProvider(bind, PolygonRenderContribution), bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender), bind(ImageRender).to(exports.DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bindContributionProvider(bind, ImageRenderContribution), bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender), bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), bind(GraphicRender).toService(Pyramid3dRender), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bind(InteractiveDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(InteractiveDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
22569
22604
  });
22570
22605
 
22571
22606
  function load(container) {
@@ -23222,6 +23257,16 @@
23222
23257
  return OrthoCamera;
23223
23258
  }();
23224
23259
 
23260
+ function isBrowserEnv() {
23261
+ return new Function("try {return this===window;}catch(e){ return false;}")();
23262
+ }
23263
+ function isNodeEnv() {
23264
+ return new Function("try {return this===global;}catch(e){return false;}")();
23265
+ }
23266
+ function getCurrentEnv() {
23267
+ return isBrowserEnv() ? "browser" : "node";
23268
+ }
23269
+
23225
23270
  var DefaultConfig$1 = {
23226
23271
  WIDTH: 500,
23227
23272
  HEIGHT: 500,
@@ -23245,7 +23290,7 @@
23245
23290
  }, _this.params = params, _this.theme = new Theme(), _this.hooks = {
23246
23291
  beforeRender: new SyncHook(["stage"]),
23247
23292
  afterRender: new SyncHook(["stage"])
23248
- }, _this.global = application.global, _this.window = container.get(VWindow), _this.renderService = container.get(RenderService), _this.pluginService = container.get(PluginService), _this.layerService = container.get(LayerService), _this.pluginService.active(_assertThisInitialized(_this), params), _this.window.create({
23293
+ }, _this.global = application.global, !_this.global.env && isBrowserEnv() && _this.global.setEnv("browser"), _this.window = container.get(VWindow), _this.renderService = container.get(RenderService), _this.pluginService = container.get(PluginService), _this.layerService = container.get(LayerService), _this.pluginService.active(_assertThisInitialized(_this), params), _this.window.create({
23249
23294
  width: params.width,
23250
23295
  height: params.height,
23251
23296
  container: params.container,
@@ -24987,16 +25032,6 @@
24987
25032
  }();
24988
25033
  var defaultGraphicMemoryManager = new DefaultGraphicMemoryManager();
24989
25034
 
24990
- function isBrowserEnv() {
24991
- return new Function("try {return this===window;}catch(e){ return false;}")();
24992
- }
24993
- function isNodeEnv() {
24994
- return new Function("try {return this===global;}catch(e){return false;}")();
24995
- }
24996
- function getCurrentEnv() {
24997
- return isBrowserEnv() ? "browser" : "node";
24998
- }
24999
-
25000
25035
  function t(t, e, s) {
25001
25036
  if (t && t.length) {
25002
25037
  var _e = _slicedToArray(e, 2),
@@ -27652,7 +27687,7 @@
27652
27687
  }
27653
27688
  }]);
27654
27689
  return RoughCanvasSymbolRender;
27655
- }(exports.BaseRender);
27690
+ }(BaseRender);
27656
27691
  RoughCanvasSymbolRender = __decorate$R([injectable(), __param$u(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$I("design:paramtypes", [Object])], RoughCanvasSymbolRender);
27657
27692
 
27658
27693
  var _roughModule = new ContainerModule(function (bind) {
@@ -30435,7 +30470,7 @@
30435
30470
  return _super.apply(this, arguments);
30436
30471
  }
30437
30472
  return _createClass(BasePicker);
30438
- }(exports.BaseRender);
30473
+ }(BaseRender);
30439
30474
  BasePicker = __decorate$C([injectable()], BasePicker);
30440
30475
 
30441
30476
  var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -33361,7 +33396,7 @@
33361
33396
 
33362
33397
  var roughModule = _roughModule;
33363
33398
 
33364
- const version = "0.17.0-alpha.2";
33399
+ const version = "0.17.0-alpha.3";
33365
33400
  loadBrowserEnv(container);
33366
33401
 
33367
33402
  exports.ACustomAnimate = ACustomAnimate;
@@ -33382,6 +33417,7 @@
33382
33417
  exports.AreaRenderContribution = AreaRenderContribution;
33383
33418
  exports.AttributeAnimate = AttributeAnimate;
33384
33419
  exports.AutoEnablePlugins = AutoEnablePlugins;
33420
+ exports.BaseRender = BaseRender;
33385
33421
  exports.Basis = Basis;
33386
33422
  exports.BeforeRenderConstribution = BeforeRenderConstribution;
33387
33423
  exports.BoundsContext = BoundsContext;