@visactor/vrender-components 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
@@ -571,400 +571,393 @@
571
571
  return Metadata;
572
572
  }();
573
573
 
574
- var Reflect$1;
575
- var Reflect$2 = (function (Reflect) {
576
- return function (factory) {
577
- 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;")();
578
- var exporter = makeExporter(Reflect);
579
- function makeExporter(target, previous) {
580
- return function (key, value) {
581
- "function" != typeof target[key] && Object.defineProperty(target, key, {
582
- configurable: !0,
583
- writable: !0,
584
- value: value
585
- }), previous && previous(key, value);
586
- };
587
- }
588
- void 0 === root.Reflect ? root.Reflect = Reflect : exporter = makeExporter(root.Reflect, exporter), function (exporter) {
589
- var hasOwn = Object.prototype.hasOwnProperty,
590
- supportsSymbol = "function" == typeof Symbol,
591
- toPrimitiveSymbol = supportsSymbol && void 0 !== Symbol.toPrimitive ? Symbol.toPrimitive : "@@toPrimitive",
592
- iteratorSymbol = supportsSymbol && void 0 !== Symbol.iterator ? Symbol.iterator : "@@iterator",
593
- supportsCreate = "function" == typeof Object.create,
594
- supportsProto = {
595
- __proto__: []
596
- } instanceof Array,
597
- downLevel = !supportsCreate && !supportsProto,
598
- HashMap = {
599
- create: supportsCreate ? function () {
600
- return MakeDictionary(Object.create(null));
601
- } : supportsProto ? function () {
602
- return MakeDictionary({
603
- __proto__: null
604
- });
605
- } : function () {
606
- return MakeDictionary({});
607
- },
608
- has: downLevel ? function (map, key) {
609
- return hasOwn.call(map, key);
610
- } : function (map, key) {
611
- return key in map;
612
- },
613
- get: downLevel ? function (map, key) {
614
- return hasOwn.call(map, key) ? map[key] : void 0;
615
- } : function (map, key) {
616
- return map[key];
617
- }
574
+ var Reflect$1 = (function (Reflect) {
575
+ var target;
576
+ return function (exporter) {
577
+ var hasOwn = Object.prototype.hasOwnProperty,
578
+ supportsSymbol = "function" == typeof Symbol,
579
+ toPrimitiveSymbol = supportsSymbol && void 0 !== Symbol.toPrimitive ? Symbol.toPrimitive : "@@toPrimitive",
580
+ iteratorSymbol = supportsSymbol && void 0 !== Symbol.iterator ? Symbol.iterator : "@@iterator",
581
+ supportsCreate = "function" == typeof Object.create,
582
+ supportsProto = {
583
+ __proto__: []
584
+ } instanceof Array,
585
+ downLevel = !supportsCreate && !supportsProto,
586
+ HashMap = {
587
+ create: supportsCreate ? function () {
588
+ return MakeDictionary(Object.create(null));
589
+ } : supportsProto ? function () {
590
+ return MakeDictionary({
591
+ __proto__: null
592
+ });
593
+ } : function () {
594
+ return MakeDictionary({});
618
595
  },
619
- functionPrototype = Object.getPrototypeOf(Function),
620
- usePolyfill = "object" == (typeof process === "undefined" ? "undefined" : _typeof(process)) && process.env && "true" === process.env.REFLECT_METADATA_USE_MAP_POLYFILL,
621
- _Map = usePolyfill || "function" != typeof Map || "function" != typeof Map.prototype.entries ? CreateMapPolyfill() : Map,
622
- Metadata = (usePolyfill || "function" != typeof Set || "function" != typeof Set.prototype.entries ? CreateSetPolyfill() : Set, new (usePolyfill || "function" != typeof WeakMap ? CreateWeakMapPolyfill() : WeakMap)());
623
- function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
624
- if (!IsObject(target)) throw new TypeError();
625
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
626
- }
627
- function hasMetadata(metadataKey, target, propertyKey) {
628
- if (!IsObject(target)) throw new TypeError();
629
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasMetadata(metadataKey, target, propertyKey);
630
- }
631
- function hasOwnMetadata(metadataKey, target, propertyKey) {
632
- if (!IsObject(target)) throw new TypeError();
633
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
634
- }
635
- function getMetadata(metadataKey, target, propertyKey) {
636
- if (!IsObject(target)) throw new TypeError();
637
- return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryGetMetadata(metadataKey, target, propertyKey);
638
- }
639
- function GetOrCreateMetadataMap(O, P, Create) {
640
- var targetMetadata = Metadata.get(O);
641
- if (IsUndefined(targetMetadata)) {
642
- if (!Create) return;
643
- targetMetadata = new _Map(), Metadata.set(O, targetMetadata);
644
- }
645
- var metadataMap = targetMetadata.get(P);
646
- if (IsUndefined(metadataMap)) {
647
- if (!Create) return;
648
- metadataMap = new _Map(), targetMetadata.set(P, metadataMap);
649
- }
650
- return metadataMap;
651
- }
652
- function OrdinaryHasMetadata(MetadataKey, O, P) {
653
- if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return !0;
654
- var parent = OrdinaryGetPrototypeOf(O);
655
- return !IsNull(parent) && OrdinaryHasMetadata(MetadataKey, parent, P);
596
+ has: downLevel ? function (map, key) {
597
+ return hasOwn.call(map, key);
598
+ } : function (map, key) {
599
+ return key in map;
600
+ },
601
+ get: downLevel ? function (map, key) {
602
+ return hasOwn.call(map, key) ? map[key] : void 0;
603
+ } : function (map, key) {
604
+ return map[key];
605
+ }
606
+ },
607
+ functionPrototype = Object.getPrototypeOf(Function),
608
+ usePolyfill = "object" == (typeof process === "undefined" ? "undefined" : _typeof(process)) && process.env && "true" === process.env.REFLECT_METADATA_USE_MAP_POLYFILL,
609
+ _Map = usePolyfill || "function" != typeof Map || "function" != typeof Map.prototype.entries ? CreateMapPolyfill() : Map,
610
+ Metadata = (usePolyfill || "function" != typeof Set || "function" != typeof Set.prototype.entries ? CreateSetPolyfill() : Set, new (usePolyfill || "function" != typeof WeakMap ? CreateWeakMapPolyfill() : WeakMap)());
611
+ function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
612
+ if (!IsObject(target)) throw new TypeError();
613
+ return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
614
+ }
615
+ function hasMetadata(metadataKey, target, propertyKey) {
616
+ if (!IsObject(target)) throw new TypeError();
617
+ return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasMetadata(metadataKey, target, propertyKey);
618
+ }
619
+ function hasOwnMetadata(metadataKey, target, propertyKey) {
620
+ if (!IsObject(target)) throw new TypeError();
621
+ return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
622
+ }
623
+ function getMetadata(metadataKey, target, propertyKey) {
624
+ if (!IsObject(target)) throw new TypeError();
625
+ return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryGetMetadata(metadataKey, target, propertyKey);
626
+ }
627
+ function GetOrCreateMetadataMap(O, P, Create) {
628
+ var targetMetadata = Metadata.get(O);
629
+ if (IsUndefined(targetMetadata)) {
630
+ if (!Create) return;
631
+ targetMetadata = new _Map(), Metadata.set(O, targetMetadata);
656
632
  }
657
- function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
658
- var metadataMap = GetOrCreateMetadataMap(O, P, !1);
659
- return !IsUndefined(metadataMap) && ToBoolean(metadataMap.has(MetadataKey));
633
+ var metadataMap = targetMetadata.get(P);
634
+ if (IsUndefined(metadataMap)) {
635
+ if (!Create) return;
636
+ metadataMap = new _Map(), targetMetadata.set(P, metadataMap);
660
637
  }
661
- function OrdinaryGetMetadata(MetadataKey, O, P) {
662
- if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
663
- var parent = OrdinaryGetPrototypeOf(O);
664
- return IsNull(parent) ? void 0 : OrdinaryGetMetadata(MetadataKey, parent, P);
638
+ return metadataMap;
639
+ }
640
+ function OrdinaryHasMetadata(MetadataKey, O, P) {
641
+ if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return !0;
642
+ var parent = OrdinaryGetPrototypeOf(O);
643
+ return !IsNull(parent) && OrdinaryHasMetadata(MetadataKey, parent, P);
644
+ }
645
+ function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
646
+ var metadataMap = GetOrCreateMetadataMap(O, P, !1);
647
+ return !IsUndefined(metadataMap) && ToBoolean(metadataMap.has(MetadataKey));
648
+ }
649
+ function OrdinaryGetMetadata(MetadataKey, O, P) {
650
+ if (OrdinaryHasOwnMetadata(MetadataKey, O, P)) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
651
+ var parent = OrdinaryGetPrototypeOf(O);
652
+ return IsNull(parent) ? void 0 : OrdinaryGetMetadata(MetadataKey, parent, P);
653
+ }
654
+ function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
655
+ var metadataMap = GetOrCreateMetadataMap(O, P, !1);
656
+ if (!IsUndefined(metadataMap)) return metadataMap.get(MetadataKey);
657
+ }
658
+ function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
659
+ GetOrCreateMetadataMap(O, P, !0).set(MetadataKey, MetadataValue);
660
+ }
661
+ function Type(x) {
662
+ if (null === x) return 1;
663
+ switch (_typeof(x)) {
664
+ case "undefined":
665
+ return 0;
666
+ case "boolean":
667
+ return 2;
668
+ case "string":
669
+ return 3;
670
+ case "symbol":
671
+ return 4;
672
+ case "number":
673
+ return 5;
674
+ case "object":
675
+ return null === x ? 1 : 6;
676
+ default:
677
+ return 6;
665
678
  }
666
- function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
667
- var metadataMap = GetOrCreateMetadataMap(O, P, !1);
668
- if (!IsUndefined(metadataMap)) return metadataMap.get(MetadataKey);
679
+ }
680
+ function IsUndefined(x) {
681
+ return void 0 === x;
682
+ }
683
+ function IsNull(x) {
684
+ return null === x;
685
+ }
686
+ function IsSymbol(x) {
687
+ return "symbol" == _typeof(x);
688
+ }
689
+ function IsObject(x) {
690
+ return "object" == _typeof(x) ? null !== x : "function" == typeof x;
691
+ }
692
+ function ToPrimitive(input, PreferredType) {
693
+ switch (Type(input)) {
694
+ case 0:
695
+ case 1:
696
+ case 2:
697
+ case 3:
698
+ case 4:
699
+ case 5:
700
+ return input;
669
701
  }
670
- function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
671
- GetOrCreateMetadataMap(O, P, !0).set(MetadataKey, MetadataValue);
702
+ var hint = 3 === PreferredType ? "string" : 5 === PreferredType ? "number" : "default",
703
+ exoticToPrim = GetMethod(input, toPrimitiveSymbol);
704
+ if (void 0 !== exoticToPrim) {
705
+ var result = exoticToPrim.call(input, hint);
706
+ if (IsObject(result)) throw new TypeError();
707
+ return result;
672
708
  }
673
- function Type(x) {
674
- if (null === x) return 1;
675
- switch (_typeof(x)) {
676
- case "undefined":
677
- return 0;
678
- case "boolean":
679
- return 2;
680
- case "string":
681
- return 3;
682
- case "symbol":
683
- return 4;
684
- case "number":
685
- return 5;
686
- case "object":
687
- return null === x ? 1 : 6;
688
- default:
689
- return 6;
709
+ return OrdinaryToPrimitive(input, "default" === hint ? "number" : hint);
710
+ }
711
+ function OrdinaryToPrimitive(O, hint) {
712
+ if ("string" === hint) {
713
+ var toString_1 = O.toString;
714
+ if (IsCallable(toString_1)) {
715
+ var result = toString_1.call(O);
716
+ if (!IsObject(result)) return result;
717
+ }
718
+ var _valueOf = O.valueOf;
719
+ if (IsCallable(_valueOf)) {
720
+ var _result = _valueOf.call(O);
721
+ if (!IsObject(_result)) return _result;
722
+ }
723
+ } else {
724
+ var _valueOf2 = O.valueOf;
725
+ if (IsCallable(_valueOf2)) {
726
+ var _result2 = _valueOf2.call(O);
727
+ if (!IsObject(_result2)) return _result2;
728
+ }
729
+ var toString_2 = O.toString;
730
+ if (IsCallable(toString_2)) {
731
+ var _result3 = toString_2.call(O);
732
+ if (!IsObject(_result3)) return _result3;
690
733
  }
691
734
  }
692
- function IsUndefined(x) {
693
- return void 0 === x;
694
- }
695
- function IsNull(x) {
696
- return null === x;
697
- }
698
- function IsSymbol(x) {
699
- return "symbol" == _typeof(x);
700
- }
701
- function IsObject(x) {
702
- return "object" == _typeof(x) ? null !== x : "function" == typeof x;
703
- }
704
- function ToPrimitive(input, PreferredType) {
705
- switch (Type(input)) {
706
- case 0:
707
- case 1:
708
- case 2:
709
- case 3:
710
- case 4:
711
- case 5:
712
- return input;
713
- }
714
- var hint = 3 === PreferredType ? "string" : 5 === PreferredType ? "number" : "default",
715
- exoticToPrim = GetMethod(input, toPrimitiveSymbol);
716
- if (void 0 !== exoticToPrim) {
717
- var result = exoticToPrim.call(input, hint);
718
- if (IsObject(result)) throw new TypeError();
719
- return result;
720
- }
721
- return OrdinaryToPrimitive(input, "default" === hint ? "number" : hint);
735
+ throw new TypeError();
736
+ }
737
+ function ToBoolean(argument) {
738
+ return !!argument;
739
+ }
740
+ function ToString(argument) {
741
+ return "" + argument;
742
+ }
743
+ function ToPropertyKey(argument) {
744
+ var key = ToPrimitive(argument, 3);
745
+ return IsSymbol(key) ? key : ToString(key);
746
+ }
747
+ function IsCallable(argument) {
748
+ return "function" == typeof argument;
749
+ }
750
+ function GetMethod(V, P) {
751
+ var func = V[P];
752
+ if (null != func) {
753
+ if (!IsCallable(func)) throw new TypeError();
754
+ return func;
722
755
  }
723
- function OrdinaryToPrimitive(O, hint) {
724
- if ("string" === hint) {
725
- var toString_1 = O.toString;
726
- if (IsCallable(toString_1)) {
727
- var result = toString_1.call(O);
728
- if (!IsObject(result)) return result;
729
- }
730
- var _valueOf = O.valueOf;
731
- if (IsCallable(_valueOf)) {
732
- var _result = _valueOf.call(O);
733
- if (!IsObject(_result)) return _result;
734
- }
735
- } else {
736
- var _valueOf2 = O.valueOf;
737
- if (IsCallable(_valueOf2)) {
738
- var _result2 = _valueOf2.call(O);
739
- if (!IsObject(_result2)) return _result2;
740
- }
741
- var toString_2 = O.toString;
742
- if (IsCallable(toString_2)) {
743
- var _result3 = toString_2.call(O);
744
- if (!IsObject(_result3)) return _result3;
756
+ }
757
+ function OrdinaryGetPrototypeOf(O) {
758
+ var proto = Object.getPrototypeOf(O);
759
+ if ("function" != typeof O || O === functionPrototype) return proto;
760
+ if (proto !== functionPrototype) return proto;
761
+ var prototype = O.prototype,
762
+ prototypeProto = prototype && Object.getPrototypeOf(prototype);
763
+ if (null == prototypeProto || prototypeProto === Object.prototype) return proto;
764
+ var constructor = prototypeProto.constructor;
765
+ return "function" != typeof constructor || constructor === O ? proto : constructor;
766
+ }
767
+ function CreateMapPolyfill() {
768
+ var cacheSentinel = {},
769
+ arraySentinel = [],
770
+ MapIterator = function () {
771
+ function MapIterator(keys, values, selector) {
772
+ this._index = 0, this._keys = keys, this._values = values, this._selector = selector;
745
773
  }
774
+ return MapIterator.prototype["@@iterator"] = function () {
775
+ return this;
776
+ }, MapIterator.prototype[iteratorSymbol] = function () {
777
+ return this;
778
+ }, MapIterator.prototype.next = function () {
779
+ var index = this._index;
780
+ if (index >= 0 && index < this._keys.length) {
781
+ var result = this._selector(this._keys[index], this._values[index]);
782
+ return index + 1 >= this._keys.length ? (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel) : this._index++, {
783
+ value: result,
784
+ done: !1
785
+ };
786
+ }
787
+ return {
788
+ value: void 0,
789
+ done: !0
790
+ };
791
+ }, MapIterator.prototype["throw"] = function (error) {
792
+ throw this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), error;
793
+ }, MapIterator.prototype["return"] = function (value) {
794
+ return this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), {
795
+ value: value,
796
+ done: !0
797
+ };
798
+ }, MapIterator;
799
+ }();
800
+ return function () {
801
+ function Map() {
802
+ this._keys = [], this._values = [], this._cacheKey = cacheSentinel, this._cacheIndex = -2;
746
803
  }
747
- throw new TypeError();
748
- }
749
- function ToBoolean(argument) {
750
- return !!argument;
751
- }
752
- function ToString(argument) {
753
- return "" + argument;
804
+ return Object.defineProperty(Map.prototype, "size", {
805
+ get: function get() {
806
+ return this._keys.length;
807
+ },
808
+ enumerable: !0,
809
+ configurable: !0
810
+ }), Map.prototype.has = function (key) {
811
+ return this._find(key, !1) >= 0;
812
+ }, Map.prototype.get = function (key) {
813
+ var index = this._find(key, !1);
814
+ return index >= 0 ? this._values[index] : void 0;
815
+ }, Map.prototype.set = function (key, value) {
816
+ var index = this._find(key, !0);
817
+ return this._values[index] = value, this;
818
+ }, Map.prototype["delete"] = function (key) {
819
+ var index = this._find(key, !1);
820
+ if (index >= 0) {
821
+ var size = this._keys.length;
822
+ for (var i = index + 1; i < size; i++) this._keys[i - 1] = this._keys[i], this._values[i - 1] = this._values[i];
823
+ return this._keys.length--, this._values.length--, key === this._cacheKey && (this._cacheKey = cacheSentinel, this._cacheIndex = -2), !0;
824
+ }
825
+ return !1;
826
+ }, Map.prototype.clear = function () {
827
+ this._keys.length = 0, this._values.length = 0, this._cacheKey = cacheSentinel, this._cacheIndex = -2;
828
+ }, Map.prototype.keys = function () {
829
+ return new MapIterator(this._keys, this._values, getKey);
830
+ }, Map.prototype.values = function () {
831
+ return new MapIterator(this._keys, this._values, getValue);
832
+ }, Map.prototype.entries = function () {
833
+ return new MapIterator(this._keys, this._values, getEntry);
834
+ }, Map.prototype["@@iterator"] = function () {
835
+ return this.entries();
836
+ }, Map.prototype[iteratorSymbol] = function () {
837
+ return this.entries();
838
+ }, Map.prototype._find = function (key, insert) {
839
+ 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;
840
+ }, Map;
841
+ }();
842
+ function getKey(key, _) {
843
+ return key;
754
844
  }
755
- function ToPropertyKey(argument) {
756
- var key = ToPrimitive(argument, 3);
757
- return IsSymbol(key) ? key : ToString(key);
845
+ function getValue(_, value) {
846
+ return value;
758
847
  }
759
- function IsCallable(argument) {
760
- return "function" == typeof argument;
848
+ function getEntry(key, value) {
849
+ return [key, value];
761
850
  }
762
- function GetMethod(V, P) {
763
- var func = V[P];
764
- if (null != func) {
765
- if (!IsCallable(func)) throw new TypeError();
766
- return func;
851
+ }
852
+ function CreateSetPolyfill() {
853
+ return function () {
854
+ function Set() {
855
+ this._map = new _Map();
767
856
  }
857
+ return Object.defineProperty(Set.prototype, "size", {
858
+ get: function get() {
859
+ return this._map.size;
860
+ },
861
+ enumerable: !0,
862
+ configurable: !0
863
+ }), Set.prototype.has = function (value) {
864
+ return this._map.has(value);
865
+ }, Set.prototype.add = function (value) {
866
+ return this._map.set(value, value), this;
867
+ }, Set.prototype["delete"] = function (value) {
868
+ return this._map["delete"](value);
869
+ }, Set.prototype.clear = function () {
870
+ this._map.clear();
871
+ }, Set.prototype.keys = function () {
872
+ return this._map.keys();
873
+ }, Set.prototype.values = function () {
874
+ return this._map.values();
875
+ }, Set.prototype.entries = function () {
876
+ return this._map.entries();
877
+ }, Set.prototype["@@iterator"] = function () {
878
+ return this.keys();
879
+ }, Set.prototype[iteratorSymbol] = function () {
880
+ return this.keys();
881
+ }, Set;
882
+ }();
883
+ }
884
+ function CreateWeakMapPolyfill() {
885
+ var UUID_SIZE = 16,
886
+ keys = HashMap.create(),
887
+ rootKey = CreateUniqueKey();
888
+ return function () {
889
+ function WeakMap() {
890
+ this._key = CreateUniqueKey();
891
+ }
892
+ return WeakMap.prototype.has = function (target) {
893
+ var table = GetOrCreateWeakMapTable(target, !1);
894
+ return void 0 !== table && HashMap.has(table, this._key);
895
+ }, WeakMap.prototype.get = function (target) {
896
+ var table = GetOrCreateWeakMapTable(target, !1);
897
+ return void 0 !== table ? HashMap.get(table, this._key) : void 0;
898
+ }, WeakMap.prototype.set = function (target, value) {
899
+ return GetOrCreateWeakMapTable(target, !0)[this._key] = value, this;
900
+ }, WeakMap.prototype["delete"] = function (target) {
901
+ var table = GetOrCreateWeakMapTable(target, !1);
902
+ return void 0 !== table && delete table[this._key];
903
+ }, WeakMap.prototype.clear = function () {
904
+ this._key = CreateUniqueKey();
905
+ }, WeakMap;
906
+ }();
907
+ function CreateUniqueKey() {
908
+ var key;
909
+ do {
910
+ key = "@@WeakMap@@" + CreateUUID();
911
+ } while (HashMap.has(keys, key));
912
+ return keys[key] = !0, key;
768
913
  }
769
- function OrdinaryGetPrototypeOf(O) {
770
- var proto = Object.getPrototypeOf(O);
771
- if ("function" != typeof O || O === functionPrototype) return proto;
772
- if (proto !== functionPrototype) return proto;
773
- var prototype = O.prototype,
774
- prototypeProto = prototype && Object.getPrototypeOf(prototype);
775
- if (null == prototypeProto || prototypeProto === Object.prototype) return proto;
776
- var constructor = prototypeProto.constructor;
777
- return "function" != typeof constructor || constructor === O ? proto : constructor;
778
- }
779
- function CreateMapPolyfill() {
780
- var cacheSentinel = {},
781
- arraySentinel = [],
782
- MapIterator = function () {
783
- function MapIterator(keys, values, selector) {
784
- this._index = 0, this._keys = keys, this._values = values, this._selector = selector;
785
- }
786
- return MapIterator.prototype["@@iterator"] = function () {
787
- return this;
788
- }, MapIterator.prototype[iteratorSymbol] = function () {
789
- return this;
790
- }, MapIterator.prototype.next = function () {
791
- var index = this._index;
792
- if (index >= 0 && index < this._keys.length) {
793
- var result = this._selector(this._keys[index], this._values[index]);
794
- return index + 1 >= this._keys.length ? (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel) : this._index++, {
795
- value: result,
796
- done: !1
797
- };
798
- }
799
- return {
800
- value: void 0,
801
- done: !0
802
- };
803
- }, MapIterator.prototype["throw"] = function (error) {
804
- throw this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), error;
805
- }, MapIterator.prototype["return"] = function (value) {
806
- return this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), {
807
- value: value,
808
- done: !0
809
- };
810
- }, MapIterator;
811
- }();
812
- return function () {
813
- function Map() {
814
- this._keys = [], this._values = [], this._cacheKey = cacheSentinel, this._cacheIndex = -2;
815
- }
816
- return Object.defineProperty(Map.prototype, "size", {
817
- get: function get() {
818
- return this._keys.length;
819
- },
820
- enumerable: !0,
821
- configurable: !0
822
- }), Map.prototype.has = function (key) {
823
- return this._find(key, !1) >= 0;
824
- }, Map.prototype.get = function (key) {
825
- var index = this._find(key, !1);
826
- return index >= 0 ? this._values[index] : void 0;
827
- }, Map.prototype.set = function (key, value) {
828
- var index = this._find(key, !0);
829
- return this._values[index] = value, this;
830
- }, Map.prototype["delete"] = function (key) {
831
- var index = this._find(key, !1);
832
- if (index >= 0) {
833
- var size = this._keys.length;
834
- for (var i = index + 1; i < size; i++) this._keys[i - 1] = this._keys[i], this._values[i - 1] = this._values[i];
835
- return this._keys.length--, this._values.length--, key === this._cacheKey && (this._cacheKey = cacheSentinel, this._cacheIndex = -2), !0;
836
- }
837
- return !1;
838
- }, Map.prototype.clear = function () {
839
- this._keys.length = 0, this._values.length = 0, this._cacheKey = cacheSentinel, this._cacheIndex = -2;
840
- }, Map.prototype.keys = function () {
841
- return new MapIterator(this._keys, this._values, getKey);
842
- }, Map.prototype.values = function () {
843
- return new MapIterator(this._keys, this._values, getValue);
844
- }, Map.prototype.entries = function () {
845
- return new MapIterator(this._keys, this._values, getEntry);
846
- }, Map.prototype["@@iterator"] = function () {
847
- return this.entries();
848
- }, Map.prototype[iteratorSymbol] = function () {
849
- return this.entries();
850
- }, Map.prototype._find = function (key, insert) {
851
- 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;
852
- }, Map;
853
- }();
854
- function getKey(key, _) {
855
- return key;
856
- }
857
- function getValue(_, value) {
858
- return value;
859
- }
860
- function getEntry(key, value) {
861
- return [key, value];
914
+ function GetOrCreateWeakMapTable(target, create) {
915
+ if (!hasOwn.call(target, rootKey)) {
916
+ if (!create) return;
917
+ Object.defineProperty(target, rootKey, {
918
+ value: HashMap.create()
919
+ });
862
920
  }
921
+ return target[rootKey];
863
922
  }
864
- function CreateSetPolyfill() {
865
- return function () {
866
- function Set() {
867
- this._map = new _Map();
868
- }
869
- return Object.defineProperty(Set.prototype, "size", {
870
- get: function get() {
871
- return this._map.size;
872
- },
873
- enumerable: !0,
874
- configurable: !0
875
- }), Set.prototype.has = function (value) {
876
- return this._map.has(value);
877
- }, Set.prototype.add = function (value) {
878
- return this._map.set(value, value), this;
879
- }, Set.prototype["delete"] = function (value) {
880
- return this._map["delete"](value);
881
- }, Set.prototype.clear = function () {
882
- this._map.clear();
883
- }, Set.prototype.keys = function () {
884
- return this._map.keys();
885
- }, Set.prototype.values = function () {
886
- return this._map.values();
887
- }, Set.prototype.entries = function () {
888
- return this._map.entries();
889
- }, Set.prototype["@@iterator"] = function () {
890
- return this.keys();
891
- }, Set.prototype[iteratorSymbol] = function () {
892
- return this.keys();
893
- }, Set;
894
- }();
923
+ function FillRandomBytes(buffer, size) {
924
+ for (var i = 0; i < size; ++i) buffer[i] = 255 * Math.random() | 0;
925
+ return buffer;
895
926
  }
896
- function CreateWeakMapPolyfill() {
897
- var UUID_SIZE = 16,
898
- keys = HashMap.create(),
899
- rootKey = CreateUniqueKey();
900
- return function () {
901
- function WeakMap() {
902
- this._key = CreateUniqueKey();
903
- }
904
- return WeakMap.prototype.has = function (target) {
905
- var table = GetOrCreateWeakMapTable(target, !1);
906
- return void 0 !== table && HashMap.has(table, this._key);
907
- }, WeakMap.prototype.get = function (target) {
908
- var table = GetOrCreateWeakMapTable(target, !1);
909
- return void 0 !== table ? HashMap.get(table, this._key) : void 0;
910
- }, WeakMap.prototype.set = function (target, value) {
911
- return GetOrCreateWeakMapTable(target, !0)[this._key] = value, this;
912
- }, WeakMap.prototype["delete"] = function (target) {
913
- var table = GetOrCreateWeakMapTable(target, !1);
914
- return void 0 !== table && delete table[this._key];
915
- }, WeakMap.prototype.clear = function () {
916
- this._key = CreateUniqueKey();
917
- }, WeakMap;
918
- }();
919
- function CreateUniqueKey() {
920
- var key;
921
- do {
922
- key = "@@WeakMap@@" + CreateUUID();
923
- } while (HashMap.has(keys, key));
924
- return keys[key] = !0, key;
925
- }
926
- function GetOrCreateWeakMapTable(target, create) {
927
- if (!hasOwn.call(target, rootKey)) {
928
- if (!create) return;
929
- Object.defineProperty(target, rootKey, {
930
- value: HashMap.create()
931
- });
932
- }
933
- return target[rootKey];
934
- }
935
- function FillRandomBytes(buffer, size) {
936
- for (var i = 0; i < size; ++i) buffer[i] = 255 * Math.random() | 0;
937
- return buffer;
938
- }
939
- function GenRandomBytes(size) {
940
- return "function" == typeof Uint8Array ? "undefined" != typeof crypto ? crypto.getRandomValues(new Uint8Array(size)) : FillRandomBytes(new Uint8Array(size), size) : FillRandomBytes(new Array(size), size);
941
- }
942
- function CreateUUID() {
943
- var data = GenRandomBytes(UUID_SIZE);
944
- data[6] = 79 & data[6] | 64, data[8] = 191 & data[8] | 128;
945
- var result = "";
946
- for (var offset = 0; offset < UUID_SIZE; ++offset) {
947
- var _byte = data[offset];
948
- 4 !== offset && 6 !== offset && 8 !== offset || (result += "-"), _byte < 16 && (result += "0"), result += _byte.toString(16).toLowerCase();
949
- }
950
- return result;
951
- }
927
+ function GenRandomBytes(size) {
928
+ return "function" == typeof Uint8Array ? "undefined" != typeof crypto ? crypto.getRandomValues(new Uint8Array(size)) : FillRandomBytes(new Uint8Array(size), size) : FillRandomBytes(new Array(size), size);
952
929
  }
953
- function MakeDictionary(obj) {
954
- return obj.__ = void 0, delete obj.__, obj;
930
+ function CreateUUID() {
931
+ var data = GenRandomBytes(UUID_SIZE);
932
+ data[6] = 79 & data[6] | 64, data[8] = 191 & data[8] | 128;
933
+ var result = "";
934
+ for (var offset = 0; offset < UUID_SIZE; ++offset) {
935
+ var _byte = data[offset];
936
+ 4 !== offset && 6 !== offset && 8 !== offset || (result += "-"), _byte < 16 && (result += "0"), result += _byte.toString(16).toLowerCase();
937
+ }
938
+ return result;
955
939
  }
956
- exporter("defineMetadata", defineMetadata), exporter("hasMetadata", hasMetadata), exporter("hasOwnMetadata", hasOwnMetadata), exporter("getMetadata", getMetadata);
957
- }(exporter);
958
- }(), Reflect;
959
- })(Reflect$1 || (Reflect$1 = {}));
940
+ }
941
+ function MakeDictionary(obj) {
942
+ return obj.__ = void 0, delete obj.__, obj;
943
+ }
944
+ exporter("defineMetadata", defineMetadata), exporter("hasMetadata", hasMetadata), exporter("hasOwnMetadata", hasOwnMetadata), exporter("getMetadata", getMetadata);
945
+ }((target = Reflect, function (key, value) {
946
+ "function" != typeof target[key] && Object.defineProperty(target, key, {
947
+ configurable: !0,
948
+ writable: !0,
949
+ value: value
950
+ });
951
+ })), Reflect;
952
+ })({});
960
953
 
961
954
  function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
962
955
  var _paramOrPropertyMetad;
963
956
  var metadatas = [metadata];
964
957
  var paramsOrPropertiesMetadata = {};
965
- Reflect$2.hasOwnMetadata(metadataKey, annotationTarget) && (paramsOrPropertiesMetadata = Reflect$2.getMetadata(metadataKey, annotationTarget));
958
+ Reflect$1.hasOwnMetadata(metadataKey, annotationTarget) && (paramsOrPropertiesMetadata = Reflect$1.getMetadata(metadataKey, annotationTarget));
966
959
  var paramOrPropertyMetadata = paramsOrPropertiesMetadata[key];
967
- void 0 === paramOrPropertyMetadata && (paramOrPropertyMetadata = []), (_paramOrPropertyMetad = paramOrPropertyMetadata).push.apply(_paramOrPropertyMetad, metadatas), paramsOrPropertiesMetadata[key] = paramOrPropertyMetadata, Reflect$2.defineMetadata(metadataKey, paramsOrPropertiesMetadata, annotationTarget);
960
+ void 0 === paramOrPropertyMetadata && (paramOrPropertyMetadata = []), (_paramOrPropertyMetad = paramOrPropertyMetadata).push.apply(_paramOrPropertyMetad, metadatas), paramsOrPropertiesMetadata[key] = paramOrPropertyMetadata, Reflect$1.defineMetadata(metadataKey, paramsOrPropertiesMetadata, annotationTarget);
968
961
  }
969
962
  function tagParameter(annotationTarget, parameterName, parameterIndex, metadata) {
970
963
  _tagParameterOrProperty(TAGGED, annotationTarget, parameterIndex.toString(), metadata);
@@ -988,7 +981,7 @@
988
981
 
989
982
  function injectable() {
990
983
  return function (target) {
991
- return Reflect$2.defineMetadata(PARAM_TYPES, null, target), target;
984
+ return Reflect$1.defineMetadata(PARAM_TYPES, null, target), target;
992
985
  };
993
986
  }
994
987
 
@@ -1036,8 +1029,8 @@
1036
1029
  key: "getConstructorMetadata",
1037
1030
  value: function getConstructorMetadata(constructorFunc) {
1038
1031
  return {
1039
- compilerGeneratedMetadata: Reflect$2.getMetadata(PARAM_TYPES, constructorFunc),
1040
- userGeneratedMetadata: Reflect$2.getMetadata(TAGGED, constructorFunc) || {}
1032
+ compilerGeneratedMetadata: Reflect$1.getMetadata(PARAM_TYPES, constructorFunc),
1033
+ userGeneratedMetadata: Reflect$1.getMetadata(TAGGED, constructorFunc) || {}
1041
1034
  };
1042
1035
  }
1043
1036
  }, {
@@ -1479,7 +1472,7 @@
1479
1472
  var EnvContribution = Symbol["for"]("EnvContribution");
1480
1473
  var VGlobal = Symbol["for"]("VGlobal");
1481
1474
 
1482
- var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
1475
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
1483
1476
  var d,
1484
1477
  c = arguments.length,
1485
1478
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -1729,7 +1722,7 @@
1729
1722
  }]);
1730
1723
  return DefaultGlobal;
1731
1724
  }();
1732
- DefaultGlobal = __decorate$H([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(EnvContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGlobal);
1725
+ DefaultGlobal = __decorate$G([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(EnvContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGlobal);
1733
1726
 
1734
1727
  var circleThreshold = vutils.tau - 1e-8;
1735
1728
  var BoundsContext = /*#__PURE__*/function () {
@@ -3452,7 +3445,7 @@
3452
3445
  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;
3453
3446
  }
3454
3447
 
3455
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
3448
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
3456
3449
  var d,
3457
3450
  c = arguments.length,
3458
3451
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -3658,9 +3651,9 @@
3658
3651
  }]);
3659
3652
  return ATextMeasure;
3660
3653
  }();
3661
- ATextMeasure = __decorate$G([injectable()], ATextMeasure);
3654
+ ATextMeasure = __decorate$F([injectable()], ATextMeasure);
3662
3655
 
3663
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
3656
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
3664
3657
  var d,
3665
3658
  c = arguments.length,
3666
3659
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -3677,7 +3670,7 @@
3677
3670
  }
3678
3671
  return _createClass(DefaultTextMeasureContribution);
3679
3672
  }(ATextMeasure);
3680
- DefaultTextMeasureContribution = __decorate$F([injectable()], DefaultTextMeasureContribution);
3673
+ DefaultTextMeasureContribution = __decorate$E([injectable()], DefaultTextMeasureContribution);
3681
3674
 
3682
3675
  var container = new Container();
3683
3676
 
@@ -4113,7 +4106,7 @@
4113
4106
  }();
4114
4107
  var canvasAllocate = new DefaultCanvasAllocate();
4115
4108
 
4116
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4109
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
4117
4110
  var d,
4118
4111
  c = arguments.length,
4119
4112
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -4205,7 +4198,7 @@
4205
4198
  }]);
4206
4199
  return DefaultGraphicUtil;
4207
4200
  }();
4208
- DefaultGraphicUtil = __decorate$E([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(TextMeasureContribution)), __metadata$q("design:paramtypes", [Object])], DefaultGraphicUtil);
4201
+ DefaultGraphicUtil = __decorate$D([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(TextMeasureContribution)), __metadata$q("design:paramtypes", [Object])], DefaultGraphicUtil);
4209
4202
  var TransformMode;
4210
4203
  !function (TransformMode) {
4211
4204
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -4282,7 +4275,7 @@
4282
4275
  }]);
4283
4276
  return DefaultTransformUtil;
4284
4277
  }();
4285
- DefaultTransformUtil = __decorate$E([injectable(), __metadata$q("design:paramtypes", [])], DefaultTransformUtil);
4278
+ DefaultTransformUtil = __decorate$D([injectable(), __metadata$q("design:paramtypes", [])], DefaultTransformUtil);
4286
4279
 
4287
4280
  var defaultThemeObj = {
4288
4281
  arc: DefaultArcAttribute,
@@ -8088,7 +8081,7 @@
8088
8081
  var DynamicLayerHandlerContribution = Symbol["for"]("DynamicLayerHandlerContribution");
8089
8082
  var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
8090
8083
 
8091
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8084
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8092
8085
  var d,
8093
8086
  c = arguments.length,
8094
8087
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -8175,9 +8168,9 @@
8175
8168
  }]);
8176
8169
  return DefaultLayerService;
8177
8170
  }();
8178
- DefaultLayerService = __decorate$D([injectable(), __metadata$p("design:paramtypes", [])], DefaultLayerService);
8171
+ DefaultLayerService = __decorate$C([injectable(), __metadata$p("design:paramtypes", [])], DefaultLayerService);
8179
8172
 
8180
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8173
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8181
8174
  var d,
8182
8175
  c = arguments.length,
8183
8176
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -8337,7 +8330,7 @@
8337
8330
  }]);
8338
8331
  return DefaultWindow;
8339
8332
  }();
8340
- DefaultWindow = __decorate$C([injectable(), __metadata$o("design:paramtypes", [])], DefaultWindow);
8333
+ DefaultWindow = __decorate$B([injectable(), __metadata$o("design:paramtypes", [])], DefaultWindow);
8341
8334
 
8342
8335
  var coreModule = new ContainerModule(function (bind) {
8343
8336
  bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
@@ -11972,7 +11965,7 @@
11972
11965
  var matrixAllocate = new DefaultMatrixAllocate();
11973
11966
  var mat4Allocate = new DefaultMat4Allocate();
11974
11967
 
11975
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11968
+ var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11976
11969
  var d,
11977
11970
  c = arguments.length,
11978
11971
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -12609,7 +12602,7 @@
12609
12602
  }]);
12610
12603
  return DefaultGraphicService;
12611
12604
  }();
12612
- DefaultGraphicService = __decorate$B([injectable(), __param$g(0, inject(GraphicCreator)), __metadata$n("design:paramtypes", [Object])], DefaultGraphicService);
12605
+ DefaultGraphicService = __decorate$A([injectable(), __param$g(0, inject(GraphicCreator)), __metadata$n("design:paramtypes", [Object])], DefaultGraphicService);
12613
12606
 
12614
12607
  var ShadowRoot = /*#__PURE__*/function (_Group) {
12615
12608
  _inherits(ShadowRoot, _Group);
@@ -12731,13 +12724,6 @@
12731
12724
  }
12732
12725
  createRichText({});
12733
12726
 
12734
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
12735
- var d,
12736
- c = arguments.length,
12737
- r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
12738
- 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);
12739
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12740
- };
12741
12727
  var BaseRender = /*#__PURE__*/function () {
12742
12728
  function BaseRender() {
12743
12729
  _classCallCheck(this, BaseRender);
@@ -12904,7 +12890,6 @@
12904
12890
  }]);
12905
12891
  return BaseRender;
12906
12892
  }();
12907
- BaseRender = __decorate$A([injectable()], BaseRender);
12908
12893
 
12909
12894
  function getScaledStroke(context, width, dpr) {
12910
12895
  var strokeWidth = width;
@@ -14478,32 +14463,82 @@
14478
14463
  return _this;
14479
14464
  }
14480
14465
  _createClass(DefaultCanvasAreaRender, [{
14466
+ key: "drawLinearAreaHighPerformance",
14467
+ value: function drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
14468
+ var _a, _b, _c, _d, _e;
14469
+ context.beginPath();
14470
+ var z = null !== (_a = this.z) && void 0 !== _a ? _a : 0,
14471
+ points = area.attribute.points,
14472
+ startP = points[0];
14473
+ context.moveTo(startP.x, startP.y, z);
14474
+ for (var i = 1; i < points.length; i++) {
14475
+ var p = points[i];
14476
+ context.lineTo(p.x, p.y, z);
14477
+ }
14478
+ for (var _i = points.length - 1; _i >= 0; _i--) {
14479
+ var _p = points[_i];
14480
+ context.lineTo(null !== (_b = _p.x1) && void 0 !== _b ? _b : _p.x, null !== (_c = _p.y1) && void 0 !== _c ? _c : _p.y, z);
14481
+ }
14482
+ context.closePath(), context.setShadowBlendStyle && context.setShadowBlendStyle(area, area.attribute, areaAttribute);
14483
+ var _area$attribute = area.attribute,
14484
+ _area$attribute$x = _area$attribute.x,
14485
+ originX = _area$attribute$x === void 0 ? 0 : _area$attribute$x,
14486
+ _area$attribute$x2 = _area$attribute.x,
14487
+ originY = _area$attribute$x2 === void 0 ? 0 : _area$attribute$x2;
14488
+ if (!1 !== fill && (fillCb ? fillCb(context, area.attribute, areaAttribute) : fillOpacity && (context.setCommonStyle(area, area.attribute, originX - offsetX, originY - offsetY, areaAttribute), context.fill())), stroke) {
14489
+ var _area$attribute$strok = area.attribute.stroke,
14490
+ _stroke = _area$attribute$strok === void 0 ? areaAttribute && areaAttribute.stroke : _area$attribute$strok;
14491
+ if (vutils.isArray(_stroke) && (_stroke[0] || _stroke[2]) && !1 === _stroke[1]) if (context.beginPath(), _stroke[0]) {
14492
+ context.moveTo(startP.x, startP.y, z);
14493
+ for (var _i2 = 1; _i2 < points.length; _i2++) {
14494
+ var _p2 = points[_i2];
14495
+ context.lineTo(_p2.x, _p2.y, z);
14496
+ }
14497
+ } else if (_stroke[2]) {
14498
+ var endP = points[points.length - 1];
14499
+ context.moveTo(endP.x, endP.y, z);
14500
+ for (var _i3 = points.length - 2; _i3 >= 0; _i3--) {
14501
+ var _p3 = points[_i3];
14502
+ context.lineTo(null !== (_d = _p3.x1) && void 0 !== _d ? _d : _p3.x, null !== (_e = _p3.y1) && void 0 !== _e ? _e : _p3.y, z);
14503
+ }
14504
+ }
14505
+ context.setStrokeStyle(area, area.attribute, originX - offsetX, originY - offsetY, areaAttribute), context.stroke();
14506
+ }
14507
+ }
14508
+ }, {
14481
14509
  key: "drawShape",
14482
14510
  value: function drawShape(area, context, x, y, drawContext, params, fillCb, strokeCb) {
14483
14511
  var _this2 = this;
14484
14512
  var _a, _b, _c, _d, _e, _f;
14485
14513
  var areaAttribute = getTheme(area, null == params ? void 0 : params.theme).area,
14486
- _area$attribute = area.attribute,
14487
- _area$attribute$fillO = _area$attribute.fillOpacity,
14488
- fillOpacity = _area$attribute$fillO === void 0 ? areaAttribute.fillOpacity : _area$attribute$fillO,
14489
- _area$attribute$z = _area$attribute.z,
14490
- z = _area$attribute$z === void 0 ? areaAttribute.z : _area$attribute$z,
14491
- _area$attribute$strok = _area$attribute.strokeOpacity,
14492
- strokeOpacity = _area$attribute$strok === void 0 ? areaAttribute.strokeOpacity : _area$attribute$strok,
14514
+ _area$attribute2 = area.attribute,
14515
+ _area$attribute2$fill = _area$attribute2.fill,
14516
+ fill = _area$attribute2$fill === void 0 ? areaAttribute.fill : _area$attribute2$fill,
14517
+ _area$attribute2$stro = _area$attribute2.stroke;
14518
+ _area$attribute2$stro === void 0 ? areaAttribute.stroke : _area$attribute2$stro;
14519
+ var _area$attribute2$fill2 = _area$attribute2.fillOpacity,
14520
+ fillOpacity = _area$attribute2$fill2 === void 0 ? areaAttribute.fillOpacity : _area$attribute2$fill2,
14521
+ _area$attribute2$z = _area$attribute2.z,
14522
+ z = _area$attribute2$z === void 0 ? areaAttribute.z : _area$attribute2$z,
14523
+ _area$attribute2$stro2 = _area$attribute2.strokeOpacity,
14524
+ strokeOpacity = _area$attribute2$stro2 === void 0 ? areaAttribute.strokeOpacity : _area$attribute2$stro2,
14493
14525
  data = this.valid(area, areaAttribute, fillCb, strokeCb);
14494
14526
  if (!data) return;
14495
14527
  var doFill = data.doFill,
14496
14528
  doStroke = data.doStroke,
14497
- _area$attribute$clipR = area.attribute.clipRange,
14498
- clipRange = _area$attribute$clipR === void 0 ? areaAttribute.clipRange : _area$attribute$clipR;
14529
+ _area$attribute3 = area.attribute,
14530
+ _area$attribute3$clip = _area$attribute3.clipRange,
14531
+ clipRange = _area$attribute3$clip === void 0 ? areaAttribute.clipRange : _area$attribute3$clip,
14532
+ closePath = _area$attribute3.closePath,
14533
+ points = _area$attribute3.points,
14534
+ segments = _area$attribute3.segments;
14535
+ var _area$attribute$curve = area.attribute.curveType,
14536
+ curveType = _area$attribute$curve === void 0 ? areaAttribute.curveType : _area$attribute$curve;
14537
+ if (closePath && "linear" === curveType && (curveType = "linearClosed"), 1 === clipRange && !segments && !points.some(function (p) {
14538
+ return !1 === p.defined;
14539
+ }) && "linear" === curveType) return this.drawLinearAreaHighPerformance(area, context, !!fill, doStroke, fillOpacity, strokeOpacity, x, y, areaAttribute, drawContext, params, fillCb, strokeCb);
14499
14540
  if (area.shouldUpdateShape()) {
14500
- var _area$attribute2 = area.attribute,
14501
- points = _area$attribute2.points,
14502
- segments = _area$attribute2.segments,
14503
- closePath = _area$attribute2.closePath;
14504
- var _area$attribute$curve = area.attribute.curveType,
14505
- curveType = _area$attribute$curve === void 0 ? areaAttribute.curveType : _area$attribute$curve;
14506
- if (closePath && "linear" === curveType && (curveType = "linearClosed"), segments && segments.length) {
14541
+ if (segments && segments.length) {
14507
14542
  var startPoint, lastTopSeg;
14508
14543
  var topCaches = segments.map(function (seg, index) {
14509
14544
  if (seg.points.length <= 1 && 0 === index) return seg.points[0] && (lastTopSeg = {
@@ -14526,9 +14561,9 @@
14526
14561
  for (var i = segments.length - 1; i >= 0; i--) {
14527
14562
  var _points = segments[i].points,
14528
14563
  bottomPoints = [];
14529
- for (var _i = _points.length - 1; _i >= 0; _i--) bottomPoints.push({
14530
- x: null !== (_a = _points[_i].x1) && void 0 !== _a ? _a : _points[_i].x,
14531
- y: null !== (_b = _points[_i].y1) && void 0 !== _b ? _b : _points[_i].y
14564
+ for (var _i4 = _points.length - 1; _i4 >= 0; _i4--) bottomPoints.push({
14565
+ x: null !== (_a = _points[_i4].x1) && void 0 !== _a ? _a : _points[_i4].x,
14566
+ y: null !== (_b = _points[_i4].y1) && void 0 !== _b ? _b : _points[_i4].y
14532
14567
  });
14533
14568
  if (0 !== i) {
14534
14569
  var lastSegmentPoints = segments[i - 1].points,
@@ -14551,9 +14586,9 @@
14551
14586
  {
14552
14587
  var topPoints = points,
14553
14588
  _bottomPoints = [];
14554
- for (var _i2 = points.length - 1; _i2 >= 0; _i2--) _bottomPoints.push({
14555
- x: null !== (_e = points[_i2].x1) && void 0 !== _e ? _e : points[_i2].x,
14556
- y: null !== (_f = points[_i2].y1) && void 0 !== _f ? _f : points[_i2].y
14589
+ for (var _i5 = points.length - 1; _i5 >= 0; _i5--) _bottomPoints.push({
14590
+ x: null !== (_e = points[_i5].x1) && void 0 !== _e ? _e : points[_i5].x,
14591
+ y: null !== (_f = points[_i5].y1) && void 0 !== _f ? _f : points[_i5].y
14557
14592
  });
14558
14593
  var topCache = calcLineCache(topPoints, curveType),
14559
14594
  bottomCache = calcLineCache(_bottomPoints, "stepBefore" === curveType ? "stepAfter" : "stepAfter" === curveType ? "stepBefore" : curveType);
@@ -14616,9 +14651,9 @@
14616
14651
  }) : da.push(defaultAttribute), da.push(attribute)), connect && "none" === connectedType) return !1;
14617
14652
  if (!cache) return;
14618
14653
  context.beginPath();
14619
- var _area$attribute3 = area.attribute,
14620
- points = _area$attribute3.points,
14621
- segments = _area$attribute3.segments;
14654
+ var _area$attribute4 = area.attribute,
14655
+ points = _area$attribute4.points,
14656
+ segments = _area$attribute4.segments;
14622
14657
  var endP,
14623
14658
  startP,
14624
14659
  direction = Direction$1.ROW;
@@ -14646,8 +14681,8 @@
14646
14681
  attribute: attribute
14647
14682
  }), !1 !== stroke) if (strokeCb) strokeCb(context, attribute, defaultAttribute);else {
14648
14683
  var _attribute$stroke = attribute.stroke,
14649
- _stroke = _attribute$stroke === void 0 ? defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke : _attribute$stroke;
14650
- vutils.isArray(_stroke) && (_stroke[0] || _stroke[2]) && !1 === _stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, _stroke[0] ? cache.top : cache.bottom, clipRange, direction === Direction$1.ROW ? "x" : "y", {
14684
+ _stroke2 = _attribute$stroke === void 0 ? defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke : _attribute$stroke;
14685
+ vutils.isArray(_stroke2) && (_stroke2[0] || _stroke2[2]) && !1 === _stroke2[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, _stroke2[0] ? cache.top : cache.bottom, clipRange, direction === Direction$1.ROW ? "x" : "y", {
14651
14686
  offsetX: offsetX,
14652
14687
  offsetY: offsetY,
14653
14688
  offsetZ: offsetZ,
@@ -17649,7 +17684,7 @@
17649
17684
  DefaultCanvasPyramid3dRender = __decorate$7([injectable()], DefaultCanvasPyramid3dRender);
17650
17685
 
17651
17686
  var renderModule = new ContainerModule(function (bind) {
17652
- bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bindContributionProvider(bind, CircleRenderContribution), bind(RectRender).to(DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender), bindContributionProvider(bind, RectRenderContribution), bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bindContributionProvider(bind, TextRenderContribution), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bindContributionProvider(bind, PathRenderContribution), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bindContributionProvider(bind, SymbolRenderContribution), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender), bindContributionProvider(bind, ArcRenderContribution), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bindContributionProvider(bind, AreaRenderContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bindContributionProvider(bind, PolygonRenderContribution), bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender), bind(ImageRender).to(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(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(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);
17687
+ bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender), bindContributionProvider(bind, RectRenderContribution), bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bindContributionProvider(bind, AreaRenderContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bindContributionProvider(bind, PolygonRenderContribution), bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender), bind(ImageRender).to(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(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(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);
17653
17688
  });
17654
17689
 
17655
17690
  function load(container) {
@@ -30125,7 +30160,7 @@
30125
30160
  }
30126
30161
  };
30127
30162
 
30128
- const version = "0.17.0-alpha.2";
30163
+ const version = "0.17.0-alpha.3";
30129
30164
 
30130
30165
  exports.AbstractComponent = AbstractComponent;
30131
30166
  exports.ArcInfo = ArcInfo;