@kepler.gl/schemas 3.3.0-alpha.26 → 3.3.0-alpha.27
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.
|
@@ -531,6 +531,27 @@ var VisConfigSchemaV1 = /*#__PURE__*/function (_Schema1) {
|
|
|
531
531
|
}
|
|
532
532
|
}]);
|
|
533
533
|
}(_schema["default"]);
|
|
534
|
+
var LayerPropertyTransitionsSchema = /*#__PURE__*/function (_Schema10) {
|
|
535
|
+
function LayerPropertyTransitionsSchema() {
|
|
536
|
+
(0, _classCallCheck2["default"])(this, LayerPropertyTransitionsSchema);
|
|
537
|
+
return _callSuper(this, LayerPropertyTransitionsSchema, arguments);
|
|
538
|
+
}
|
|
539
|
+
(0, _inherits2["default"])(LayerPropertyTransitionsSchema, _Schema10);
|
|
540
|
+
return (0, _createClass2["default"])(LayerPropertyTransitionsSchema, [{
|
|
541
|
+
key: "save",
|
|
542
|
+
value: function save(value) {
|
|
543
|
+
var propertyTransitions = (0, _utils.normalizeLayerPropertyTransitions)(value);
|
|
544
|
+
return propertyTransitions !== undefined ? {
|
|
545
|
+
propertyTransitions: propertyTransitions
|
|
546
|
+
} : {};
|
|
547
|
+
}
|
|
548
|
+
}, {
|
|
549
|
+
key: "load",
|
|
550
|
+
value: function load(value) {
|
|
551
|
+
return this.save(value);
|
|
552
|
+
}
|
|
553
|
+
}]);
|
|
554
|
+
}(_schema["default"]);
|
|
534
555
|
var layerPropsV1 = exports.layerPropsV1 = {
|
|
535
556
|
id: null,
|
|
536
557
|
type: null,
|
|
@@ -550,6 +571,9 @@ var layerPropsV1 = exports.layerPropsV1 = {
|
|
|
550
571
|
}),
|
|
551
572
|
isVisible: null,
|
|
552
573
|
isIncludedInLegend: null,
|
|
574
|
+
propertyTransitions: new LayerPropertyTransitionsSchema({
|
|
575
|
+
key: 'propertyTransitions'
|
|
576
|
+
}),
|
|
553
577
|
visConfig: new VisConfigSchemaV1({
|
|
554
578
|
version: _versions.VERSIONS.v1
|
|
555
579
|
}),
|
|
@@ -565,7 +589,7 @@ var layerPropsV1 = exports.layerPropsV1 = {
|
|
|
565
589
|
key: 'visualChannels'
|
|
566
590
|
})
|
|
567
591
|
};
|
|
568
|
-
var LayerSchemaV0 = exports.LayerSchemaV0 = /*#__PURE__*/function (
|
|
592
|
+
var LayerSchemaV0 = exports.LayerSchemaV0 = /*#__PURE__*/function (_Schema11) {
|
|
569
593
|
function LayerSchemaV0() {
|
|
570
594
|
var _this9;
|
|
571
595
|
(0, _classCallCheck2["default"])(this, LayerSchemaV0);
|
|
@@ -576,7 +600,7 @@ var LayerSchemaV0 = exports.LayerSchemaV0 = /*#__PURE__*/function (_Schema10) {
|
|
|
576
600
|
(0, _defineProperty2["default"])(_this9, "key", 'layers');
|
|
577
601
|
return _this9;
|
|
578
602
|
}
|
|
579
|
-
(0, _inherits2["default"])(LayerSchemaV0,
|
|
603
|
+
(0, _inherits2["default"])(LayerSchemaV0, _Schema11);
|
|
580
604
|
return (0, _createClass2["default"])(LayerSchemaV0, [{
|
|
581
605
|
key: "save",
|
|
582
606
|
value: function save(layers, parents) {
|
|
@@ -617,7 +641,7 @@ var LayerSchemaV0 = exports.LayerSchemaV0 = /*#__PURE__*/function (_Schema10) {
|
|
|
617
641
|
}
|
|
618
642
|
}]);
|
|
619
643
|
}(_schema["default"]);
|
|
620
|
-
var FilterSchemaV0 = exports.FilterSchemaV0 = /*#__PURE__*/function (
|
|
644
|
+
var FilterSchemaV0 = exports.FilterSchemaV0 = /*#__PURE__*/function (_Schema12) {
|
|
621
645
|
function FilterSchemaV0() {
|
|
622
646
|
var _this10;
|
|
623
647
|
(0, _classCallCheck2["default"])(this, FilterSchemaV0);
|
|
@@ -628,7 +652,7 @@ var FilterSchemaV0 = exports.FilterSchemaV0 = /*#__PURE__*/function (_Schema11)
|
|
|
628
652
|
(0, _defineProperty2["default"])(_this10, "key", 'filters');
|
|
629
653
|
return _this10;
|
|
630
654
|
}
|
|
631
|
-
(0, _inherits2["default"])(FilterSchemaV0,
|
|
655
|
+
(0, _inherits2["default"])(FilterSchemaV0, _Schema12);
|
|
632
656
|
return (0, _createClass2["default"])(FilterSchemaV0, [{
|
|
633
657
|
key: "save",
|
|
634
658
|
value: function save(filters) {
|
|
@@ -663,7 +687,7 @@ var FilterSchemaV0 = exports.FilterSchemaV0 = /*#__PURE__*/function (_Schema11)
|
|
|
663
687
|
}]);
|
|
664
688
|
}(_schema["default"]);
|
|
665
689
|
var interactionPropsV0 = ['tooltip', 'brush'];
|
|
666
|
-
var InteractionSchemaV0 = /*#__PURE__*/function (
|
|
690
|
+
var InteractionSchemaV0 = /*#__PURE__*/function (_Schema13) {
|
|
667
691
|
function InteractionSchemaV0() {
|
|
668
692
|
var _this13;
|
|
669
693
|
(0, _classCallCheck2["default"])(this, InteractionSchemaV0);
|
|
@@ -674,7 +698,7 @@ var InteractionSchemaV0 = /*#__PURE__*/function (_Schema12) {
|
|
|
674
698
|
(0, _defineProperty2["default"])(_this13, "key", 'interactionConfig');
|
|
675
699
|
return _this13;
|
|
676
700
|
}
|
|
677
|
-
(0, _inherits2["default"])(InteractionSchemaV0,
|
|
701
|
+
(0, _inherits2["default"])(InteractionSchemaV0, _Schema13);
|
|
678
702
|
return (0, _createClass2["default"])(InteractionSchemaV0, [{
|
|
679
703
|
key: "save",
|
|
680
704
|
value: function save(interactionConfig) {
|
|
@@ -696,7 +720,7 @@ var InteractionSchemaV0 = /*#__PURE__*/function (_Schema12) {
|
|
|
696
720
|
}]);
|
|
697
721
|
}(_schema["default"]);
|
|
698
722
|
var interactionPropsV1 = ['tooltip', 'legend', 'brush', 'geocoder', 'coordinate', 'annotation', 'zoomOpacity'];
|
|
699
|
-
var InteractionSchemaV1 = exports.InteractionSchemaV1 = /*#__PURE__*/function (
|
|
723
|
+
var InteractionSchemaV1 = exports.InteractionSchemaV1 = /*#__PURE__*/function (_Schema14) {
|
|
700
724
|
function InteractionSchemaV1() {
|
|
701
725
|
var _this14;
|
|
702
726
|
(0, _classCallCheck2["default"])(this, InteractionSchemaV1);
|
|
@@ -707,7 +731,7 @@ var InteractionSchemaV1 = exports.InteractionSchemaV1 = /*#__PURE__*/function (_
|
|
|
707
731
|
(0, _defineProperty2["default"])(_this14, "key", 'interactionConfig');
|
|
708
732
|
return _this14;
|
|
709
733
|
}
|
|
710
|
-
(0, _inherits2["default"])(InteractionSchemaV1,
|
|
734
|
+
(0, _inherits2["default"])(InteractionSchemaV1, _Schema14);
|
|
711
735
|
return (0, _createClass2["default"])(InteractionSchemaV1, [{
|
|
712
736
|
key: "save",
|
|
713
737
|
value: function save(interactionConfig) {
|
|
@@ -763,12 +787,12 @@ var filterPropsV0 = exports.filterPropsV0 = {
|
|
|
763
787
|
// deprecated
|
|
764
788
|
enlarged: null
|
|
765
789
|
};
|
|
766
|
-
var DimensionFieldSchema = exports.DimensionFieldSchema = /*#__PURE__*/function (
|
|
790
|
+
var DimensionFieldSchema = exports.DimensionFieldSchema = /*#__PURE__*/function (_Schema15) {
|
|
767
791
|
function DimensionFieldSchema() {
|
|
768
792
|
(0, _classCallCheck2["default"])(this, DimensionFieldSchema);
|
|
769
793
|
return _callSuper(this, DimensionFieldSchema, arguments);
|
|
770
794
|
}
|
|
771
|
-
(0, _inherits2["default"])(DimensionFieldSchema,
|
|
795
|
+
(0, _inherits2["default"])(DimensionFieldSchema, _Schema15);
|
|
772
796
|
return (0, _createClass2["default"])(DimensionFieldSchema, [{
|
|
773
797
|
key: "save",
|
|
774
798
|
value: function save(field) {
|
|
@@ -781,12 +805,12 @@ var DimensionFieldSchema = exports.DimensionFieldSchema = /*#__PURE__*/function
|
|
|
781
805
|
}
|
|
782
806
|
}]);
|
|
783
807
|
}(_schema["default"]);
|
|
784
|
-
var SplitMapsSchema = exports.SplitMapsSchema = /*#__PURE__*/function (
|
|
808
|
+
var SplitMapsSchema = exports.SplitMapsSchema = /*#__PURE__*/function (_Schema16) {
|
|
785
809
|
function SplitMapsSchema() {
|
|
786
810
|
(0, _classCallCheck2["default"])(this, SplitMapsSchema);
|
|
787
811
|
return _callSuper(this, SplitMapsSchema, arguments);
|
|
788
812
|
}
|
|
789
|
-
(0, _inherits2["default"])(SplitMapsSchema,
|
|
813
|
+
(0, _inherits2["default"])(SplitMapsSchema, _Schema16);
|
|
790
814
|
return (0, _createClass2["default"])(SplitMapsSchema, [{
|
|
791
815
|
key: "convertLayerSettings",
|
|
792
816
|
value: function convertLayerSettings(accu, _ref17) {
|
|
@@ -821,7 +845,7 @@ var SplitMapsSchema = exports.SplitMapsSchema = /*#__PURE__*/function (_Schema15
|
|
|
821
845
|
}
|
|
822
846
|
}]);
|
|
823
847
|
}(_schema["default"]);
|
|
824
|
-
var PlotTypeSchema = exports.PlotTypeSchema = /*#__PURE__*/function (
|
|
848
|
+
var PlotTypeSchema = exports.PlotTypeSchema = /*#__PURE__*/function (_Schema17) {
|
|
825
849
|
function PlotTypeSchema() {
|
|
826
850
|
var _this17;
|
|
827
851
|
(0, _classCallCheck2["default"])(this, PlotTypeSchema);
|
|
@@ -832,7 +856,7 @@ var PlotTypeSchema = exports.PlotTypeSchema = /*#__PURE__*/function (_Schema16)
|
|
|
832
856
|
(0, _defineProperty2["default"])(_this17, "key", 'plotType');
|
|
833
857
|
return _this17;
|
|
834
858
|
}
|
|
835
|
-
(0, _inherits2["default"])(PlotTypeSchema,
|
|
859
|
+
(0, _inherits2["default"])(PlotTypeSchema, _Schema17);
|
|
836
860
|
return (0, _createClass2["default"])(PlotTypeSchema, [{
|
|
837
861
|
key: "load",
|
|
838
862
|
value: function load(plotType) {
|
|
@@ -877,7 +901,7 @@ var chartPropsV1 = exports.chartPropsV1 = {
|
|
|
877
901
|
layerId: null,
|
|
878
902
|
layerChartType: null
|
|
879
903
|
};
|
|
880
|
-
var ChartsSchema = exports.ChartsSchema = /*#__PURE__*/function (
|
|
904
|
+
var ChartsSchema = exports.ChartsSchema = /*#__PURE__*/function (_Schema18) {
|
|
881
905
|
function ChartsSchema() {
|
|
882
906
|
var _this18;
|
|
883
907
|
(0, _classCallCheck2["default"])(this, ChartsSchema);
|
|
@@ -888,7 +912,7 @@ var ChartsSchema = exports.ChartsSchema = /*#__PURE__*/function (_Schema17) {
|
|
|
888
912
|
(0, _defineProperty2["default"])(_this18, "key", 'charts');
|
|
889
913
|
return _this18;
|
|
890
914
|
}
|
|
891
|
-
(0, _inherits2["default"])(ChartsSchema,
|
|
915
|
+
(0, _inherits2["default"])(ChartsSchema, _Schema18);
|
|
892
916
|
return (0, _createClass2["default"])(ChartsSchema, [{
|
|
893
917
|
key: "save",
|
|
894
918
|
value: function save(charts) {
|
|
@@ -923,7 +947,7 @@ var ChartsSchema = exports.ChartsSchema = /*#__PURE__*/function (_Schema17) {
|
|
|
923
947
|
}
|
|
924
948
|
}]);
|
|
925
949
|
}(_schema["default"]);
|
|
926
|
-
var EffectsSchema = exports.EffectsSchema = /*#__PURE__*/function (
|
|
950
|
+
var EffectsSchema = exports.EffectsSchema = /*#__PURE__*/function (_Schema19) {
|
|
927
951
|
function EffectsSchema() {
|
|
928
952
|
var _this21;
|
|
929
953
|
(0, _classCallCheck2["default"])(this, EffectsSchema);
|
|
@@ -934,7 +958,7 @@ var EffectsSchema = exports.EffectsSchema = /*#__PURE__*/function (_Schema18) {
|
|
|
934
958
|
(0, _defineProperty2["default"])(_this21, "key", 'effects');
|
|
935
959
|
return _this21;
|
|
936
960
|
}
|
|
937
|
-
(0, _inherits2["default"])(EffectsSchema,
|
|
961
|
+
(0, _inherits2["default"])(EffectsSchema, _Schema19);
|
|
938
962
|
return (0, _createClass2["default"])(EffectsSchema, [{
|
|
939
963
|
key: "save",
|
|
940
964
|
value: function save(effects, parents) {
|
|
@@ -974,6 +998,9 @@ var annotationPropsV1 = {
|
|
|
974
998
|
id: null,
|
|
975
999
|
kind: null,
|
|
976
1000
|
isVisible: null,
|
|
1001
|
+
propertyTransitions: new LayerPropertyTransitionsSchema({
|
|
1002
|
+
key: 'propertyTransitions'
|
|
1003
|
+
}),
|
|
977
1004
|
autoSize: null,
|
|
978
1005
|
autoSizeY: null,
|
|
979
1006
|
anchorPoint: null,
|
|
@@ -994,7 +1021,7 @@ var annotationPropsV1 = {
|
|
|
994
1021
|
showCustomText: null,
|
|
995
1022
|
showDistance: null
|
|
996
1023
|
};
|
|
997
|
-
var AnnotationsSchema = exports.AnnotationsSchema = /*#__PURE__*/function (
|
|
1024
|
+
var AnnotationsSchema = exports.AnnotationsSchema = /*#__PURE__*/function (_Schema20) {
|
|
998
1025
|
function AnnotationsSchema() {
|
|
999
1026
|
var _this24;
|
|
1000
1027
|
(0, _classCallCheck2["default"])(this, AnnotationsSchema);
|
|
@@ -1005,7 +1032,7 @@ var AnnotationsSchema = exports.AnnotationsSchema = /*#__PURE__*/function (_Sche
|
|
|
1005
1032
|
(0, _defineProperty2["default"])(_this24, "key", 'annotations');
|
|
1006
1033
|
return _this24;
|
|
1007
1034
|
}
|
|
1008
|
-
(0, _inherits2["default"])(AnnotationsSchema,
|
|
1035
|
+
(0, _inherits2["default"])(AnnotationsSchema, _Schema20);
|
|
1009
1036
|
return (0, _createClass2["default"])(AnnotationsSchema, [{
|
|
1010
1037
|
key: "save",
|
|
1011
1038
|
value: function save(annotations) {
|
|
@@ -1069,7 +1096,7 @@ var propertiesV0 = exports.propertiesV0 = {
|
|
|
1069
1096
|
layerBlending: null,
|
|
1070
1097
|
overlayBlending: null
|
|
1071
1098
|
};
|
|
1072
|
-
var CameraBookmarksSchema = /*#__PURE__*/function (
|
|
1099
|
+
var CameraBookmarksSchema = /*#__PURE__*/function (_Schema21) {
|
|
1073
1100
|
function CameraBookmarksSchema() {
|
|
1074
1101
|
var _this27;
|
|
1075
1102
|
(0, _classCallCheck2["default"])(this, CameraBookmarksSchema);
|
|
@@ -1080,7 +1107,7 @@ var CameraBookmarksSchema = /*#__PURE__*/function (_Schema20) {
|
|
|
1080
1107
|
(0, _defineProperty2["default"])(_this27, "key", 'cameraBookmarks');
|
|
1081
1108
|
return _this27;
|
|
1082
1109
|
}
|
|
1083
|
-
(0, _inherits2["default"])(CameraBookmarksSchema,
|
|
1110
|
+
(0, _inherits2["default"])(CameraBookmarksSchema, _Schema21);
|
|
1084
1111
|
return (0, _createClass2["default"])(CameraBookmarksSchema, [{
|
|
1085
1112
|
key: "save",
|
|
1086
1113
|
value: function save(value) {
|
|
@@ -1094,7 +1121,7 @@ var CameraBookmarksSchema = /*#__PURE__*/function (_Schema20) {
|
|
|
1094
1121
|
}
|
|
1095
1122
|
}]);
|
|
1096
1123
|
}(_schema["default"]);
|
|
1097
|
-
var CameraTourSchema = /*#__PURE__*/function (
|
|
1124
|
+
var CameraTourSchema = /*#__PURE__*/function (_Schema22) {
|
|
1098
1125
|
function CameraTourSchema() {
|
|
1099
1126
|
var _this28;
|
|
1100
1127
|
(0, _classCallCheck2["default"])(this, CameraTourSchema);
|
|
@@ -1105,7 +1132,7 @@ var CameraTourSchema = /*#__PURE__*/function (_Schema21) {
|
|
|
1105
1132
|
(0, _defineProperty2["default"])(_this28, "key", 'cameraTour');
|
|
1106
1133
|
return _this28;
|
|
1107
1134
|
}
|
|
1108
|
-
(0, _inherits2["default"])(CameraTourSchema,
|
|
1135
|
+
(0, _inherits2["default"])(CameraTourSchema, _Schema22);
|
|
1109
1136
|
return (0, _createClass2["default"])(CameraTourSchema, [{
|
|
1110
1137
|
key: "save",
|
|
1111
1138
|
value: function save(value) {
|
|
@@ -1176,12 +1203,12 @@ var propertiesV1 = exports.propertiesV1 = {
|
|
|
1176
1203
|
// suitabilities is intentionally absent: the op config is ephemeral and only the
|
|
1177
1204
|
// derived dataset is persisted. A `null` entry here would write it to saved maps.
|
|
1178
1205
|
};
|
|
1179
|
-
var VisStateSchemaV1 = exports.VisStateSchemaV1 = /*#__PURE__*/function (
|
|
1206
|
+
var VisStateSchemaV1 = exports.VisStateSchemaV1 = /*#__PURE__*/function (_Schema23) {
|
|
1180
1207
|
function VisStateSchemaV1() {
|
|
1181
1208
|
(0, _classCallCheck2["default"])(this, VisStateSchemaV1);
|
|
1182
1209
|
return _callSuper(this, VisStateSchemaV1, arguments);
|
|
1183
1210
|
}
|
|
1184
|
-
(0, _inherits2["default"])(VisStateSchemaV1,
|
|
1211
|
+
(0, _inherits2["default"])(VisStateSchemaV1, _Schema23);
|
|
1185
1212
|
return (0, _createClass2["default"])(VisStateSchemaV1, [{
|
|
1186
1213
|
key: "save",
|
|
1187
1214
|
value: function save(node) {
|