|
1 | 1 | /* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved. |
2 | 2 | * This program are made available under the terms of the Apache License, Version 2.0 |
3 | 3 | * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ |
4 | | -(function () { |
| 4 | + (function () { |
5 | 5 | var r = new RegExp('(^|(.*?\\/))(include-mapboxgl.js)(\\?|$)'), |
6 | 6 | s = document.getElementsByTagName('script'), |
7 | 7 | targetScript; |
|
96 | 96 | inputScript('https://iclient.supermap.io/web/libs/echartsLayer/EchartsLayer.min.js'); |
97 | 97 | } |
98 | 98 | if (inArray(includes, 'three')) { |
| 99 | + inputScript('https://iclient.supermap.io/web/libs/three/0.129.0/build/three.min.js'); |
| 100 | + } |
| 101 | + if (inArray(includes, 'three@0.121.1')) { |
99 | 102 | inputScript('https://iclient.supermap.io/web/libs/three/0.121.1/build/three.js'); |
100 | 103 | } |
101 | 104 | if (inArray(includes, 'xlsx')) { |
|
137 | 140 | ); |
138 | 141 | } |
139 | 142 | if (inArray(includes, 'OBJLoader')) { |
140 | | - inputScript('https://iclient.supermap.io/web/libs/three/0.121.1/examples/js/loaders/OBJLoader.js'); |
| 143 | + inputScript('https://iclient.supermap.io/web/libs/three/0.129.0/examples/js/loaders/OBJLoader.js'); |
141 | 144 | } |
142 | 145 |
|
143 | 146 | if (inArray(includes, 'three92')) { |
|
149 | 152 | inputScript('https://iclient.supermap.io/web/libs/three/plugins/loaders/LoaderWorkerSupport.js'); |
150 | 153 | } |
151 | 154 | if (inArray(includes, 'OBJLoader2')) { |
152 | | - inputScript('https://iclient.supermap.io/web/libs/three/0.129.0/build/three.min.js'); |
153 | 155 | inputScript('https://iclient.supermap.io/web/libs/three-wtm/1.0.0/three-wtm.js'); |
154 | 156 | inputScript('https://iclient.supermap.io/web/libs/wwobjloader2/4.0.0/wwobjloader2.js'); |
155 | 157 | } |
156 | 158 | if (inArray(includes, 'MTLLoader')) { |
157 | | - inputScript('https://iclient.supermap.io/web/libs/three/0.121.1/examples/js/loaders/MTLLoader.js'); |
| 159 | + inputScript('https://iclient.supermap.io/web/libs/three/0.129.0/examples/js/loaders/MTLLoader.js'); |
158 | 160 | } |
159 | 161 | if (inArray(includes, 'GLTFLoader')) { |
160 | | - inputScript('https://iclient.supermap.io/web/libs/three/0.121.1/examples/js/loaders/GLTFLoader.js'); |
| 162 | + inputScript('https://iclient.supermap.io/web/libs/three/0.129.0/examples/js/loaders/GLTFLoader.js'); |
161 | 163 | } |
162 | 164 | if (inArray(includes, 'echarts-gl')) { |
163 | 165 | inputScript('https://iclient.supermap.io/web/libs/echarts-gl/1.1.2-fix/echarts-gl.min.js'); |
|
0 commit comments