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.
- package/README.md +159 -0
- package/dist/486.droneView.js +1 -0
- package/dist/514.droneView.js +1 -0
- package/dist/645.droneView.js +1 -0
- package/dist/800.droneView.js +1 -0
- package/dist/_382d.droneView.js +14 -0
- package/dist/_6b2a.droneView.js +14 -0
- package/dist/_9839.droneView.js +14 -0
- package/dist/_afdc.droneView.js +14 -0
- package/dist/droneView.js +2 -0
- package/dist/droneView.js.LICENSE.txt +80 -0
- package/jspm_packages/.bin/acorn +26 -0
- package/jspm_packages/.bin/acorn.cmd +8 -0
- package/jspm_packages/.bin/errno +26 -0
- package/jspm_packages/.bin/errno.cmd +8 -0
- package/jspm_packages/.bin/esparse +26 -0
- package/jspm_packages/.bin/esparse.cmd +8 -0
- package/jspm_packages/.bin/esvalidate +26 -0
- package/jspm_packages/.bin/esvalidate.cmd +8 -0
- package/jspm_packages/.bin/husky +26 -0
- package/jspm_packages/.bin/husky.cmd +8 -0
- package/jspm_packages/.bin/json5 +26 -0
- package/jspm_packages/.bin/json5.cmd +8 -0
- package/jspm_packages/.bin/mkdirp +26 -0
- package/jspm_packages/.bin/mkdirp.cmd +8 -0
- package/jspm_packages/.bin/node-pre-gyp +26 -0
- package/jspm_packages/.bin/node-pre-gyp.cmd +8 -0
- package/jspm_packages/.bin/node-which +26 -0
- package/jspm_packages/.bin/node-which.cmd +8 -0
- package/jspm_packages/.bin/rc +26 -0
- package/jspm_packages/.bin/rc.cmd +8 -0
- package/jspm_packages/.bin/rimraf +26 -0
- package/jspm_packages/.bin/rimraf.cmd +8 -0
- package/jspm_packages/.bin/uuid +26 -0
- package/jspm_packages/.bin/uuid.cmd +8 -0
- package/jspm_packages/.bin/which +26 -0
- package/jspm_packages/.bin/which.cmd +8 -0
- package/package.json +50 -0
- package/tsconfig.json +20 -0
- package/webpack.config.dev.js +81 -0
- 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
|
+
};
|