drone_view 3.0.60 → 3.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.
@@ -1,74 +1,81 @@
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
- */
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 */
50
52
 
51
53
  /*! https://mths.be/punycode v1.4.0 by @mathias */
52
54
 
53
55
  /**
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
- */
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
+ */
72
79
 
73
80
  /**
74
81
  * @license
package/package.json CHANGED
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "drone_view",
3
- "version": "3.0.60",
3
+ "version": "3.0.61",
4
4
  "main": "dist/droneView.js",
5
+ "module": "dist/droneView.js",
6
+ "types": "build/typings/droneView.d.ts",
7
+ "exports": {
8
+ "import": "./dist/droneView.js",
9
+ "require": "./dist/droneView.js"
10
+ },
5
11
  "license": "MIT",
6
12
  "scripts": {
7
13
  "build": "tsc",
@@ -4,28 +4,36 @@ const path = require("path");
4
4
  const webpack = require("webpack");
5
5
  const CopyWebpackPlugin = require("copy-webpack-plugin");
6
6
 
7
- // Cesium 1.135.0 uses ES modules only
8
- const cesiumESM = "node_modules/cesium";
9
- const cesiumUnmin = "node_modules/cesium/Build/CesiumUnminified";
7
+ const cesiumUnmin = path.resolve(__dirname, "node_modules/cesium/Build/CesiumUnminified");
10
8
 
11
9
  module.exports = {
12
- entry: {
13
- main: "./src/droneView.ts",
14
- },
10
+ entry: "./src/droneView.ts",
15
11
 
16
12
  stats: {
17
13
  children: true,
18
14
  errorDetails: true,
19
15
  },
20
16
 
17
+ // allow Cesium's AMD modules to resolve "toUrl" properly
18
+ amd: {
19
+ toUrlUndefined: true,
20
+ },
21
+
21
22
  output: {
22
23
  filename: "droneView.js",
23
24
  path: path.resolve(__dirname, "dist"),
24
- library: "DroneView",
25
- libraryTarget: "umd",
26
- publicPath: "build",
25
+ module: true, // Key for ESM output
26
+ library: {
27
+ type: "module",
28
+ },
29
+ publicPath: "",
27
30
  sourcePrefix: "",
28
31
  clean: true,
32
+ globalObject: "this",
33
+ },
34
+
35
+ experiments: {
36
+ outputModule: true, // required for ES module output
29
37
  },
30
38
 
31
39
  resolve: {
@@ -35,12 +43,12 @@ module.exports = {
35
43
  zlib: false,
36
44
  http: false,
37
45
  url: false,
38
- fs: false, // <-- required for Cesium ESM
46
+ fs: false, // required for Cesium ESM/Node polyfills
39
47
  },
40
48
 
41
49
  alias: {
42
- // MUST point to ESM folder, not Build/Cesium
43
- cesium: path.resolve(__dirname, cesiumESM),
50
+ // Point to Build/CesiumUnminified for Cesium 1.135+
51
+ cesium: cesiumUnmin,
44
52
  },
45
53
  },
46
54
 
@@ -72,17 +80,14 @@ module.exports = {
72
80
  },
73
81
 
74
82
  plugins: [
75
- // Copy Cesium Assets, Widgets, Workers, and ThirdParty
83
+ // Copy Cesium static assets (Workers, Widgets, Assets, ThirdParty)
76
84
  new CopyWebpackPlugin({
77
85
  patterns: [
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
- },
86
+ { from: path.join(cesiumUnmin, "Workers"), to: path.resolve(__dirname, "service/3d/Workers") },
87
+ { from: path.join(cesiumUnmin, "ThirdParty"), to: path.resolve(__dirname, "service/3d/ThirdParty") },
88
+ { from: path.join(cesiumUnmin, "Assets"), to: path.resolve(__dirname, "service/3d/Assets") },
89
+ { from: path.join(cesiumUnmin, "Widgets"), to: path.resolve(__dirname, "service/3d/Widgets") },
90
+ { from: path.join(cesiumUnmin, "Cesium.js"), to: path.resolve(__dirname, "service/3d/Cesium.js") },
86
91
  ],
87
92
  }),
88
93