drone_view 3.0.58 → 3.0.60

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.
@@ -1,81 +1,74 @@
1
1
  /* Copyright 2015-2018 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */
2
2
 
3
3
  /*!
4
- * URI.js - Mutating URLs
5
- *
6
- * Version: 1.19.11
7
- *
8
- * Author: Rodney Rehm
9
- * Web: http://medialize.github.io/URI.js/
10
- *
11
- * Licensed under
12
- * MIT License http://www.opensource.org/licenses/mit-license
13
- *
14
- */
4
+ * URI.js - Mutating URLs
5
+ *
6
+ * Version: 1.19.11
7
+ *
8
+ * Author: Rodney Rehm
9
+ * Web: http://medialize.github.io/URI.js/
10
+ *
11
+ * Licensed under
12
+ * MIT License http://www.opensource.org/licenses/mit-license
13
+ *
14
+ */
15
15
 
16
16
  /*!
17
- * URI.js - Mutating URLs
18
- * IPv6 Support
19
- *
20
- * Version: 1.19.11
21
- *
22
- * Author: Rodney Rehm
23
- * Web: http://medialize.github.io/URI.js/
24
- *
25
- * Licensed under
26
- * MIT License http://www.opensource.org/licenses/mit-license
27
- *
28
- */
17
+ * URI.js - Mutating URLs
18
+ * IPv6 Support
19
+ *
20
+ * Version: 1.19.11
21
+ *
22
+ * Author: Rodney Rehm
23
+ * Web: http://medialize.github.io/URI.js/
24
+ *
25
+ * Licensed under
26
+ * MIT License http://www.opensource.org/licenses/mit-license
27
+ *
28
+ */
29
29
 
30
30
  /*!
31
- * URI.js - Mutating URLs
32
- * Second Level Domain (SLD) Support
33
- *
34
- * Version: 1.19.11
35
- *
36
- * Author: Rodney Rehm
37
- * Web: http://medialize.github.io/URI.js/
38
- *
39
- * Licensed under
40
- * MIT License http://www.opensource.org/licenses/mit-license
41
- *
42
- */
31
+ * URI.js - Mutating URLs
32
+ * Second Level Domain (SLD) Support
33
+ *
34
+ * Version: 1.19.11
35
+ *
36
+ * Author: Rodney Rehm
37
+ * Web: http://medialize.github.io/URI.js/
38
+ *
39
+ * Licensed under
40
+ * MIT License http://www.opensource.org/licenses/mit-license
41
+ *
42
+ */
43
43
 
44
44
  /*!
45
- * protobuf.js v7.5.4 (c) 2016, daniel wirtz
46
- * compiled fri, 15 aug 2025 23:28:54 utc
47
- * licensed under the bsd-3-clause license
48
- * see: https://github.com/dcodeio/protobuf.js for details
49
- */
50
-
51
- /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
45
+ * protobuf.js v7.5.4 (c) 2016, daniel wirtz
46
+ * compiled fri, 15 aug 2025 23:28:54 utc
47
+ * licensed under the bsd-3-clause license
48
+ * see: https://github.com/dcodeio/protobuf.js for details
49
+ */
52
50
 
53
51
  /*! https://mths.be/punycode v1.4.0 by @mathias */
54
52
 
55
53
  /**
56
- * @license
57
- * Cesium - https://github.com/CesiumGS/cesium
58
- * Version 1.135.0
59
- *
60
- * Copyright 2011-2022 Cesium Contributors
61
- *
62
- * Licensed under the Apache License, Version 2.0 (the "License");
63
- * you may not use this file except in compliance with the License.
64
- * You may obtain a copy of the License at
65
- *
66
- * http://www.apache.org/licenses/LICENSE-2.0
67
- *
68
- * Unless required by applicable law or agreed to in writing, software
69
- * distributed under the License is distributed on an "AS IS" BASIS,
70
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
71
- * See the License for the specific language governing permissions and
72
- * limitations under the License.
73
- *
74
- * Columbus View (Pat. Pend.)
75
- *
76
- * Portions licensed separately.
77
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
78
- */
54
+ * @license
55
+ * Copyright 2009 The Closure Library Authors
56
+ * Copyright 2020 Daniel Wirtz / The long.js Authors.
57
+ *
58
+ * Licensed under the Apache License, Version 2.0 (the "License");
59
+ * you may not use this file except in compliance with the License.
60
+ * You may obtain a copy of the License at
61
+ *
62
+ * http://www.apache.org/licenses/LICENSE-2.0
63
+ *
64
+ * Unless required by applicable law or agreed to in writing, software
65
+ * distributed under the License is distributed on an "AS IS" BASIS,
66
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
67
+ * See the License for the specific language governing permissions and
68
+ * limitations under the License.
69
+ *
70
+ * SPDX-License-Identifier: Apache-2.0
71
+ */
79
72
 
80
73
  /**
81
74
  * @license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drone_view",
3
- "version": "3.0.58",
3
+ "version": "3.0.60",
4
4
  "main": "dist/droneView.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -4,7 +4,9 @@ const path = require("path");
4
4
  const webpack = require("webpack");
5
5
  const CopyWebpackPlugin = require("copy-webpack-plugin");
6
6
 
7
- const cesiumUnmin = path.resolve(__dirname, "node_modules/cesium/Build/CesiumUnminified");
7
+ // Cesium 1.135.0 uses ES modules only
8
+ const cesiumESM = "node_modules/cesium";
9
+ const cesiumUnmin = "node_modules/cesium/Build/CesiumUnminified";
8
10
 
9
11
  module.exports = {
10
12
  entry: {
@@ -16,26 +18,14 @@ module.exports = {
16
18
  errorDetails: true,
17
19
  },
18
20
 
19
- // allow Cesium's AMD modules to resolve "toUrl" properly
20
- amd: {
21
- toUrlUndefined: true,
22
- },
23
-
24
21
  output: {
25
22
  filename: "droneView.js",
26
23
  path: path.resolve(__dirname, "dist"),
27
- // Export as an ES module for dynamic import
28
- library: {
29
- type: "module",
30
- },
31
- publicPath: "",
24
+ library: "DroneView",
25
+ libraryTarget: "umd",
26
+ publicPath: "build",
32
27
  sourcePrefix: "",
33
28
  clean: true,
34
- globalObject: "this",
35
- },
36
-
37
- experiments: {
38
- outputModule: true, // required for ES module output
39
29
  },
40
30
 
41
31
  resolve: {
@@ -45,12 +35,12 @@ module.exports = {
45
35
  zlib: false,
46
36
  http: false,
47
37
  url: false,
48
- fs: false, // required for Cesium ESM/Node polyfills
38
+ fs: false, // <-- required for Cesium ESM
49
39
  },
50
40
 
51
41
  alias: {
52
- // Point to Build/CesiumUnminified for Cesium 1.135+
53
- cesium: cesiumUnmin,
42
+ // MUST point to ESM folder, not Build/Cesium
43
+ cesium: path.resolve(__dirname, cesiumESM),
54
44
  },
55
45
  },
56
46
 
@@ -82,14 +72,17 @@ module.exports = {
82
72
  },
83
73
 
84
74
  plugins: [
85
- // Copy Cesium static assets (Workers, Widgets, Assets, ThirdParty)
75
+ // Copy Cesium Assets, Widgets, Workers, and ThirdParty
86
76
  new CopyWebpackPlugin({
87
77
  patterns: [
88
- { from: path.join(cesiumUnmin, "Workers"), to: path.resolve(__dirname, "service/3d/Workers") },
89
- { from: path.join(cesiumUnmin, "ThirdParty"), to: path.resolve(__dirname, "service/3d/ThirdParty") },
90
- { from: path.join(cesiumUnmin, "Assets"), to: path.resolve(__dirname, "service/3d/Assets") },
91
- { from: path.join(cesiumUnmin, "Widgets"), to: path.resolve(__dirname, "service/3d/Widgets") },
92
- { from: path.join(cesiumUnmin, "Cesium.js"), to: path.resolve(__dirname, "service/3d/Cesium.js") },
78
+ { from: `${cesiumUnmin}/Assets`, to: path.resolve(__dirname, "service/3d/Assets") },
79
+ { from: `${cesiumUnmin}/Workers`, to: path.resolve(__dirname, "service/3d/Workers") },
80
+ { from: `${cesiumUnmin}/Widgets`, to: path.resolve(__dirname, "service/3d/Widgets") },
81
+ { from: `${cesiumUnmin}/ThirdParty`, to: path.resolve(__dirname, "service/3d/ThirdParty") },
82
+ {
83
+ from: `${cesiumUnmin}/Cesium.js`,
84
+ to: path.resolve(__dirname, "service/3d/Cesium.js"),
85
+ },
93
86
  ],
94
87
  }),
95
88