@vtx/cs-map 1.0.59 → 1.0.61

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.
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _cesium = require("cesium");
9
+ var _renderer = require("../renderer");
10
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
11
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
14
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
15
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
19
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
24
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ var Wall = exports["default"] = /*#__PURE__*/function (_Primitive) {
29
+ _inherits(Wall, _Primitive);
30
+ var _super = _createSuper(Wall);
31
+ function Wall(option) {
32
+ var _ref, _ref2;
33
+ var _this;
34
+ _classCallCheck(this, Wall);
35
+ var data = option.data,
36
+ _option$style = option.style,
37
+ style = _option$style === void 0 ? {
38
+ extrudedHeight: 1000,
39
+ fill: {
40
+ color: '#119FFB',
41
+ opacity: 0.4
42
+ }
43
+ } : _option$style,
44
+ key = option.key;
45
+ var wall = new _cesium.WallGeometry({
46
+ positions: _cesium.Cartesian3.fromDegreesArray([].concat(_toConsumableArray(data[0]), [data[0][0]]).flat(Infinity)),
47
+ maximumHeights: (_ref = [].concat(_toConsumableArray(data[0]), [data[0][0]])) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
48
+ return style.height;
49
+ }),
50
+ minimumHeights: (_ref2 = [].concat(_toConsumableArray(data[0]), [data[0][0]])) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (item) {
51
+ return 0;
52
+ })
53
+ });
54
+ var instance = new _cesium.GeometryInstance({
55
+ geometry: wall,
56
+ attributes: {
57
+ color: _cesium.ColorGeometryInstanceAttribute.fromColor((0, _renderer.getColor)(style.fill))
58
+ }
59
+ });
60
+ var primitive = new _cesium.Primitive({
61
+ geometryInstances: [instance],
62
+ appearance: new _cesium.PerInstanceColorAppearance()
63
+ });
64
+ _this = _super.call(this, primitive);
65
+ // 图层标识
66
+ _this.key = key;
67
+ _this.data = data;
68
+ return _this;
69
+ }
70
+ return _createClass(Wall);
71
+ }(_cesium.Primitive);
72
+ //# sourceMappingURL=WallGeometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WallGeometry.js","names":["_cesium","require","_renderer","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","iter","Symbol","iterator","isArray","len","length","i","arr2","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","t","_toPrimitive","_typeof","String","r","e","toPrimitive","Number","_classCallCheck","instance","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","Wall","exports","_Primitive","_super","option","_ref","_ref2","_this","data","_option$style","style","extrudedHeight","fill","color","opacity","wall","WallGeometry","positions","Cartesian3","fromDegreesArray","concat","flat","Infinity","maximumHeights","map","item","height","minimumHeights","GeometryInstance","geometry","attributes","ColorGeometryInstanceAttribute","fromColor","getColor","primitive","Primitive","geometryInstances","appearance","PerInstanceColorAppearance"],"sources":["wall/WallGeometry.js"],"sourcesContent":["import {\n WallGeometry,\n PerInstanceColorAppearance,\n Cartesian3,\n ColorGeometryInstanceAttribute,\n GeometryInstance,\n Color,\n Primitive,\n} from 'cesium';\nimport { getColor } from '../renderer';\n\nexport default class Wall extends Primitive {\n constructor(option) {\n const {\n data,\n style = { extrudedHeight: 1000, fill: { color: '#119FFB', opacity: 0.4 } },\n key,\n } = option;\n var wall = new WallGeometry({\n positions: Cartesian3.fromDegreesArray([...data[0], data[0][0]].flat(Infinity)),\n maximumHeights: [...data[0], data[0][0]]?.map(item => style.height),\n minimumHeights: [...data[0], data[0][0]]?.map(item => 0),\n });\n const instance = new GeometryInstance({\n geometry: wall,\n attributes: {\n color: ColorGeometryInstanceAttribute.fromColor(getColor(style.fill)),\n },\n });\n\n const primitive = new Primitive({\n geometryInstances: [instance],\n appearance: new PerInstanceColorAppearance(),\n });\n\n super(primitive);\n // 图层标识\n this.key = key;\n\n this.data = data;\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AASA,IAAAC,SAAA,GAAAD,OAAA;AAAuC,SAAAE,mBAAAC,GAAA,WAAAC,kBAAA,CAAAD,GAAA,KAAAE,gBAAA,CAAAF,GAAA,KAAAG,2BAAA,CAAAH,GAAA,KAAAI,kBAAA;AAAA,SAAAA,mBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAG,CAAA,EAAAC,MAAA,SAAAD,CAAA,qBAAAA,CAAA,sBAAAE,iBAAA,CAAAF,CAAA,EAAAC,MAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,IAAA,CAAAP,CAAA,EAAAQ,KAAA,aAAAL,CAAA,iBAAAH,CAAA,CAAAS,WAAA,EAAAN,CAAA,GAAAH,CAAA,CAAAS,WAAA,CAAAC,IAAA,MAAAP,CAAA,cAAAA,CAAA,mBAAAQ,KAAA,CAAAC,IAAA,CAAAZ,CAAA,OAAAG,CAAA,+DAAAU,IAAA,CAAAV,CAAA,UAAAD,iBAAA,CAAAF,CAAA,EAAAC,MAAA;AAAA,SAAAL,iBAAAkB,IAAA,eAAAC,MAAA,oBAAAD,IAAA,CAAAC,MAAA,CAAAC,QAAA,aAAAF,IAAA,+BAAAH,KAAA,CAAAC,IAAA,CAAAE,IAAA;AAAA,SAAAnB,mBAAAD,GAAA,QAAAiB,KAAA,CAAAM,OAAA,CAAAvB,GAAA,UAAAQ,iBAAA,CAAAR,GAAA;AAAA,SAAAQ,kBAAAR,GAAA,EAAAwB,GAAA,QAAA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OAAArD,YAAA,CAAA8C,IAAA;AAAA,EA7B6BmC,iBAAS"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = _default;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _useProps2 = _interopRequireDefault(require("../_util/useProps"));
10
+ var _events = require("../events");
11
+ var _WallGeometry = _interopRequireDefault(require("./WallGeometry"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
+ function _default(props) {
16
+ var _useProps = (0, _useProps2["default"])(),
17
+ map = _useProps.map;
18
+ (0, _react.useEffect)(function () {
19
+ var primitive = new _WallGeometry["default"](props);
20
+ (0, _events.registerEventLayer)(primitive, props);
21
+ map.scene.primitives.add(primitive);
22
+ return function () {
23
+ map.scene.primitives.remove(primitive);
24
+ };
25
+ }, []);
26
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
27
+ }
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_useProps2","_interopRequireDefault","_events","_WallGeometry","obj","__esModule","_getRequireWildcardCache","e","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_default","props","_useProps","useProps","map","useEffect","primitive","WallGeometry","registerEventLayer","scene","primitives","add","remove","createElement","Fragment"],"sources":["wall/index.jsx"],"sourcesContent":["import React, { useEffect } from 'react';\r\nimport useProps from '../_util/useProps';\r\nimport { registerEventLayer } from '../events';\r\nimport WallGeometry from './WallGeometry';\r\n\r\nexport default function(props) {\r\n const { map } = useProps();\r\n\r\n useEffect(() => {\r\n const primitive = new WallGeometry(props);\r\n registerEventLayer(primitive, props);\r\n map.scene.primitives.add(primitive);\r\n return () => {\r\n map.scene.primitives.remove(primitive);\r\n };\r\n }, []);\r\n\r\n return <></>;\r\n}\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAF,sBAAA,CAAAF,OAAA;AAA0C,SAAAE,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAF,UAAA,SAAAE,CAAA,eAAAA,CAAA,gBA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,EAAE,CAAC;EAEN,oBAAOnC,MAAA,YAAA0C,aAAA,CAAA1C,MAAA,YAAA2C,QAAA,MAAI,CAAC;AAChB"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
4
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","names":["require"],"sources":["wall/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"}
File without changes
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["require"],"sources":["wall/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA"}
File without changes
@@ -1,60 +0,0 @@
1
- .cs-tools-legend {
2
- position: absolute;
3
- bottom: 10px;
4
- left: 10px;
5
- padding: 6px 10px;
6
- background: rgba(0, 35, 65, 0.9);
7
- border: 1px solid #26425F;
8
- -webkit-box-shadow: 0 2px 7px 0 rgba(6, 93, 181, 0.5);
9
- box-shadow: 0 2px 7px 0 rgba(6, 93, 181, 0.5);
10
- border-radius: 8px;
11
- color: #97e0ff;
12
- -webkit-user-select: none;
13
- -moz-user-select: none;
14
- -ms-user-select: none;
15
- user-select: none;
16
- width: -webkit-max-content;
17
- width: -moz-max-content;
18
- width: max-content;
19
- }
20
- .cs-tools-legend .cs-tools-legend-title {
21
- font-size: 16px;
22
- letter-spacing: 2px;
23
- }
24
- .cs-tools-legend .cs-tools-legend-content {
25
- cursor: pointer;
26
- }
27
- .cs-tools-legend .cs-tools-legend-list-wrap {
28
- min-width: 60px;
29
- }
30
- .cs-tools-legend .cs-tools-legend-list {
31
- display: -webkit-box;
32
- display: -ms-flexbox;
33
- display: flex;
34
- -ms-flex-wrap: wrap;
35
- flex-wrap: wrap;
36
- max-width: 270px;
37
- max-height: 270px;
38
- overflow-y: auto;
39
- }
40
- .cs-tools-legend .cs-tools-legend-list .cs-tools-legend-item {
41
- text-align: center;
42
- padding: 4px;
43
- min-width: 50px;
44
- }
45
- .cs-tools-legend .cs-tools-legend-list .cs-tools-legend-item .cs-tools-legend-item-img {
46
- max-height: 40px;
47
- }
48
- .cs-tools-legend .cs-tools-legend-list .cs-tools-legend-item .cs-tools-legend-item-title {
49
- font-size: 12px;
50
- }
51
- .cs-tools-legend-close-btn {
52
- position: absolute;
53
- top: 10px;
54
- right: 10px;
55
- z-index: 999;
56
- color: #fff;
57
- font-size: 18px;
58
- font-weight: bold;
59
- cursor: pointer;
60
- }
@@ -1,63 +0,0 @@
1
- .cs-tools-legend {
2
- position: absolute;
3
- bottom: 10px;
4
- left: 10px;
5
-
6
- padding: 6px 10px;
7
-
8
- background: rgba(0, 35, 65, 0.9);
9
- border: 1px solid #26425F;
10
- box-shadow: 0 2px 7px 0 rgba(6, 93, 181, .5);
11
- border-radius: 8px;
12
-
13
- color: #97e0ff;
14
- user-select: none;
15
-
16
- width: max-content;
17
-
18
- .cs-tools-legend-title {
19
- font-size: 16px;
20
- letter-spacing: 2px;
21
- }
22
-
23
- .cs-tools-legend-content {
24
- cursor: pointer;
25
- }
26
-
27
- .cs-tools-legend-list-wrap {
28
- min-width: 60px;
29
- }
30
-
31
- .cs-tools-legend-list {
32
- display: flex;
33
- flex-wrap: wrap;
34
- max-width: 270px;
35
- max-height: 270px;
36
- overflow-y: auto;
37
-
38
- .cs-tools-legend-item {
39
- text-align: center;
40
- padding: 4px;
41
- min-width: 50px;
42
-
43
- .cs-tools-legend-item-img {
44
- max-height: 40px;
45
- }
46
-
47
- .cs-tools-legend-item-title {
48
- font-size: 12px;
49
- }
50
- }
51
- }
52
- }
53
-
54
- .cs-tools-legend-close-btn {
55
- position: absolute;
56
- top: 10px;
57
- right: 10px;
58
- z-index: 999;
59
- color: #fff;
60
- font-size: 18px;
61
- font-weight: bold;
62
- cursor: pointer;
63
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/cs-map",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",