|
61 | 61 | inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0/mapbox-gl-enhance.js');
|
62 | 62 | }
|
63 | 63 | if (inArray(includes, 'draw')) {
|
64 |
| - inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.css'); |
65 |
| - inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.js'); |
| 64 | + inputCSS( |
| 65 | + 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.css' |
| 66 | + ); |
| 67 | + inputScript( |
| 68 | + 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.js' |
| 69 | + ); |
66 | 70 | }
|
67 | 71 | if (inArray(includes, 'compare')) {
|
68 |
| - inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.css'); |
69 |
| - inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.js'); |
| 72 | + inputCSS( |
| 73 | + 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.css' |
| 74 | + ); |
| 75 | + inputScript( |
| 76 | + 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.js' |
| 77 | + ); |
70 | 78 | }
|
71 | 79 | if (inArray(includes, 'mapv')) {
|
72 | 80 | inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js');
|
|
119 | 127 | inputScript('https://iclient.supermap.io/web/libs/xml-js/1.6.8/xml-js.min.js');
|
120 | 128 | }
|
121 | 129 | if (inArray(includes, 'LegacyJSONLoader')) {
|
122 |
| - inputScript('https://cdn.jsdelivr.net/npm/three@0.110.0/examples/js/loaders/deprecated/LegacyJSONLoader.js'); |
| 130 | + inputScript( |
| 131 | + 'https://cdn.jsdelivr.net/npm/three@0.110.0/examples/js/loaders/deprecated/LegacyJSONLoader.js' |
| 132 | + ); |
123 | 133 | }
|
124 | 134 | if (inArray(includes, 'OBJLoader')) {
|
125 | 135 | inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/examples/js/loaders/OBJLoader.js');
|
126 | 136 | }
|
| 137 | + |
| 138 | + if (inArray(includes, 'three92')) { |
| 139 | + inputScript('https://cdn.bootcss.com/three.js/92/three.min.js'); |
| 140 | + } |
| 141 | + if (inArray(includes, 'LoaderSupport')) { |
| 142 | + inputScript('https://iclient.supermap.io/web/libs/three/plugins/loaders/LoaderCommons.js'); |
| 143 | + inputScript('https://iclient.supermap.io/web/libs/three/plugins/loaders/LoaderBuilder.js'); |
| 144 | + inputScript('https://iclient.supermap.io/web/libs/three/plugins/loaders/LoaderWorkerSupport.js'); |
| 145 | + } |
| 146 | + if (inArray(includes, 'OBJLoader2')) { |
| 147 | + inputScript('https://iclient.supermap.io/web/libs/three/plugins/loaders/OBJLoader2.js'); |
| 148 | + } |
127 | 149 | if (inArray(includes, 'MTLLoader')) {
|
128 | 150 | inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/examples/js/loaders/MTLLoader.js');
|
129 | 151 | }
|
|
136 | 158 | if (inArray(includes, 'mapbox-print-pdf')) {
|
137 | 159 | inputScript('https://iclient.supermap.io/web/libs/mapbox-print-pdf/0.4.4/mapbox-print-pdf.min.js');
|
138 | 160 | }
|
| 161 | + if (inArray(includes, 'moment')) { |
| 162 | + inputScript('https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js'); |
| 163 | + } |
| 164 | + if (inArray(includes, 'lodash')) { |
| 165 | + inputScript('https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js'); |
| 166 | + } |
| 167 | + |
139 | 168 | // dist
|
140 | 169 | if (!inArray(excludes, 'iclient-mapboxgl')) {
|
141 | 170 | if (supportES6()) {
|
|
0 commit comments