drone_view 1.0.0

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.
Files changed (41) hide show
  1. package/README.md +159 -0
  2. package/dist/486.droneView.js +1 -0
  3. package/dist/514.droneView.js +1 -0
  4. package/dist/645.droneView.js +1 -0
  5. package/dist/800.droneView.js +1 -0
  6. package/dist/_382d.droneView.js +14 -0
  7. package/dist/_6b2a.droneView.js +14 -0
  8. package/dist/_9839.droneView.js +14 -0
  9. package/dist/_afdc.droneView.js +14 -0
  10. package/dist/droneView.js +2 -0
  11. package/dist/droneView.js.LICENSE.txt +80 -0
  12. package/jspm_packages/.bin/acorn +26 -0
  13. package/jspm_packages/.bin/acorn.cmd +8 -0
  14. package/jspm_packages/.bin/errno +26 -0
  15. package/jspm_packages/.bin/errno.cmd +8 -0
  16. package/jspm_packages/.bin/esparse +26 -0
  17. package/jspm_packages/.bin/esparse.cmd +8 -0
  18. package/jspm_packages/.bin/esvalidate +26 -0
  19. package/jspm_packages/.bin/esvalidate.cmd +8 -0
  20. package/jspm_packages/.bin/husky +26 -0
  21. package/jspm_packages/.bin/husky.cmd +8 -0
  22. package/jspm_packages/.bin/json5 +26 -0
  23. package/jspm_packages/.bin/json5.cmd +8 -0
  24. package/jspm_packages/.bin/mkdirp +26 -0
  25. package/jspm_packages/.bin/mkdirp.cmd +8 -0
  26. package/jspm_packages/.bin/node-pre-gyp +26 -0
  27. package/jspm_packages/.bin/node-pre-gyp.cmd +8 -0
  28. package/jspm_packages/.bin/node-which +26 -0
  29. package/jspm_packages/.bin/node-which.cmd +8 -0
  30. package/jspm_packages/.bin/rc +26 -0
  31. package/jspm_packages/.bin/rc.cmd +8 -0
  32. package/jspm_packages/.bin/rimraf +26 -0
  33. package/jspm_packages/.bin/rimraf.cmd +8 -0
  34. package/jspm_packages/.bin/uuid +26 -0
  35. package/jspm_packages/.bin/uuid.cmd +8 -0
  36. package/jspm_packages/.bin/which +26 -0
  37. package/jspm_packages/.bin/which.cmd +8 -0
  38. package/package.json +50 -0
  39. package/tsconfig.json +20 -0
  40. package/webpack.config.dev.js +81 -0
  41. package/webpack.config.prod.js +78 -0
@@ -0,0 +1,81 @@
1
+ /* eslint-disable linebreak-style */
2
+ // The path to the CesiumJS source code
3
+ const cesiumSource = 'node_modules/cesium/Source';
4
+ const cesiumWorkers = '../Build/Cesium/Workers';
5
+ const CopyWebpackPlugin = require('copy-webpack-plugin');
6
+ const path = require('path');
7
+ const webpack = require('webpack');
8
+ const WrapperPlugin = require('wrapper-webpack-plugin');
9
+
10
+ module.exports = {
11
+ context: __dirname,
12
+ devtool: 'inline-source-map',
13
+ watch: true,
14
+ entry: {
15
+ main: './src/droneView.ts',
16
+ },
17
+ stats: {
18
+ children: true,
19
+ errorDetails: true,
20
+ },
21
+ output: {
22
+ filename: 'droneView.js',
23
+ path: path.resolve(__dirname, 'dist'),
24
+ publicPath: 'build',
25
+ libraryTarget: 'umd',
26
+ library: 'DroneView',
27
+ sourcePrefix: '',
28
+ },
29
+ amd: {
30
+ // Enable webpack-friendly use of require in Cesium
31
+ toUrlUndefined: true,
32
+ },
33
+ resolve: {
34
+ extensions: ['.ts', '.tsx', '.js', '.cjs'],
35
+ fallback: {
36
+ https: false, zlib: false, http: false, url: false,
37
+ },
38
+ mainFiles: ['droneView', 'Cesium'],
39
+ alias: {
40
+ // CesiumJS module name
41
+ cesium: path.resolve(__dirname, cesiumSource),
42
+ },
43
+ },
44
+ module: {
45
+ rules: [{
46
+ test: /\.css$/,
47
+ use: ['style-loader', 'css-loader'],
48
+ exclude: /node_modules/,
49
+
50
+ }, {
51
+ test: /\.(png|gif|jpg|jpeg|svg|xml|json)$/,
52
+ use: ['url-loader'],
53
+ exclude: /node_modules/,
54
+
55
+ },
56
+ {
57
+ test: /\.tsx?$/,
58
+ use: 'ts-loader',
59
+ exclude: /node_modules/,
60
+ }],
61
+ },
62
+ plugins: [
63
+ // Copy Cesium Assets, Widgets, and Workers to a static directory
64
+ new CopyWebpackPlugin({
65
+ patterns: [
66
+ { from: path.join(cesiumSource, cesiumWorkers), to: 'Workers' },
67
+ { from: path.join(cesiumSource, 'Assets'), to: 'Assets' },
68
+ { from: path.join(cesiumSource, 'Widgets'), to: 'Widgets' },
69
+ { from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty' },
70
+ ],
71
+ }),
72
+ new webpack.ProvidePlugin({
73
+ process: 'process/browser',
74
+ }),
75
+ new webpack.DefinePlugin({
76
+ // Define relative base path in cesium for loading assets
77
+ CESIUM_BASE_URL: JSON.stringify('/'),
78
+ }),
79
+ ],
80
+ mode: 'development',
81
+ };
@@ -0,0 +1,78 @@
1
+ /* eslint-disable linebreak-style */
2
+ // The path to the CesiumJS source code
3
+ const cesiumSource = 'node_modules/cesium/Source';
4
+ const cesiumWorkers = '../Build/Cesium/Workers';
5
+ const CopyWebpackPlugin = require('copy-webpack-plugin');
6
+ const path = require('path');
7
+ const webpack = require('webpack');
8
+ const WrapperPlugin = require('wrapper-webpack-plugin');
9
+
10
+ module.exports = {
11
+ entry: {
12
+ main: './src/droneView.ts',
13
+ },
14
+ stats: {
15
+ children: true,
16
+ errorDetails: true,
17
+ },
18
+ output: {
19
+ filename: 'droneView.js',
20
+ path: path.resolve(__dirname, 'dist'),
21
+ library: 'DroneView',
22
+ publicPath: 'build',
23
+ libraryTarget: 'umd',
24
+ sourcePrefix: '',
25
+ },
26
+ amd: {
27
+ // Enable webpack-friendly use of require in Cesium
28
+ toUrlUndefined: true,
29
+ },
30
+ resolve: {
31
+ extensions: ['.ts', '.tsx', '.js'],
32
+ fallback: {
33
+ https: false, zlib: false, http: false, url: false,
34
+ },
35
+ mainFiles: ['viewer', 'Cesium'],
36
+ alias: {
37
+ // CesiumJS module name
38
+ cesium: path.resolve(__dirname, cesiumSource),
39
+ },
40
+ },
41
+ module: {
42
+ rules: [{
43
+ test: /\.css$/,
44
+ use: ['style-loader', 'css-loader'],
45
+ exclude: /node_modules/,
46
+
47
+ }, {
48
+ test: /\.(png|gif|jpg|jpeg|svg|xml|json)$/,
49
+ use: ['url-loader'],
50
+ exclude: /node_modules/,
51
+
52
+ },
53
+ {
54
+ test: /\.tsx?$/,
55
+ use: 'ts-loader',
56
+ exclude: /node_modules/,
57
+ }],
58
+ },
59
+ plugins: [
60
+ // Copy Cesium Assets, Widgets, and Workers to a static directory
61
+ new CopyWebpackPlugin({
62
+ patterns: [
63
+ { from: path.join(cesiumSource, cesiumWorkers), to: 'Workers' },
64
+ { from: path.join(cesiumSource, 'Assets'), to: 'Assets' },
65
+ { from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty' },
66
+ { from: path.join(cesiumSource, 'Widgets'), to: 'Widgets' },
67
+ ],
68
+ }),
69
+ new webpack.ProvidePlugin({
70
+ process: 'process/browser',
71
+ }),
72
+ new webpack.DefinePlugin({
73
+ // Define relative base path in cesium for loading assets
74
+ CESIUM_BASE_URL: JSON.stringify('/'),
75
+ }),
76
+ ],
77
+ mode: 'production',
78
+ };