|
53 | 53 | var includes = (targetScript.getAttribute('include') || '').split(','); |
54 | 54 | var excludes = (targetScript.getAttribute('exclude') || '').split(','); |
55 | 55 | if (!inArray(includes, 'mapbox-gl-enhance') && !inArray(excludes, 'mapbox-gl')) { |
56 | | - inputCSS('https://cdn.jsdelivr.net/npm/mapbox-gl@1.12.0/dist/mapbox-gl.min.css'); |
57 | | - inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl@1.12.0/dist/mapbox-gl.min.js'); |
| 56 | + inputCSS('https://cdn.jsdelivr.net/npm/mapbox-gl@1.13.1/dist/mapbox-gl.min.css'); |
| 57 | + inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl@1.13.1/dist/mapbox-gl.min.js'); |
58 | 58 | } |
59 | 59 | if (inArray(includes, 'mapbox-gl-enhance')) { |
60 | 60 | inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0/mapbox-gl-enhance.css'); |
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, 'turf')) { |
64 | | - inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/5.1.6/turf.min.js'); |
| 64 | + inputScript('https://cdn.bootcdn.net/ajax/libs/Turf.js/6.5.0/turf.min.js'); |
65 | 65 | } |
66 | 66 | if (inArray(includes, 'draw')) { |
67 | | - inputCSS( |
68 | | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.css' |
69 | | - ); |
70 | | - inputScript( |
71 | | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.2.0/mapbox-gl-draw.js' |
72 | | - ); |
| 67 | + inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.3.0/mapbox-gl-draw.css'); |
| 68 | + inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.3.0/mapbox-gl-draw.js'); |
73 | 69 | } |
| 70 | + |
74 | 71 | if (inArray(includes, 'mapboxgl-draw-rectangle-drag')) { |
75 | | - inputScript( |
76 | | - 'https://cdn.jsdelivr.net/gh/CartoDB/mapboxgl-draw-rectangle-drag@1.0.1/build/mapboxgl-draw-rectangle-drag.browser.js' |
77 | | - ); |
78 | | - } |
| 72 | + inputScript('https://cdn.jsdelivr.net/gh/CartoDB/mapboxgl-draw-rectangle-drag@1.0.1/build/mapboxgl-draw-rectangle-drag.browser.js'); |
| 73 | + } |
79 | 74 | if (inArray(includes, 'compare')) { |
80 | | - inputCSS( |
81 | | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.css' |
82 | | - ); |
83 | | - inputScript( |
84 | | - 'https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.js' |
85 | | - ); |
| 75 | + inputCSS('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.css'); |
| 76 | + inputScript('https://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-compare/0.4.0/mapbox-gl-compare.js'); |
86 | 77 | } |
87 | 78 | if (inArray(includes, 'mapv')) { |
88 | | - inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.56/build/mapv.min.js'); |
| 79 | + inputScript('https://cdn.jsdelivr.net/npm/mapv@2.0.62/build/mapv.min.js'); |
89 | 80 | } |
90 | 81 | if (inArray(includes, 'echarts')) { |
91 | 82 | inputScript('https://cdn.jsdelivr.net/npm/echarts@4.9.0/dist/echarts.min.js'); |
|
102 | 93 | inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/build/three.js'); |
103 | 94 | } |
104 | 95 | if (inArray(includes, 'xlsx')) { |
105 | | - inputScript('https://cdn.bootcdn.net/ajax/libs/xlsx/0.16.7/xlsx.core.min.js'); |
| 96 | + inputScript('https://cdn.jsdelivr.net/npm/xlsx@0.17.2/dist/xlsx.core.min.js'); |
106 | 97 | } |
107 | 98 | if (inArray(includes, 'proj4')) { |
108 | | - inputScript('https://cdn.bootcdn.net/ajax/libs/proj4js/2.6.2/proj4.js'); |
| 99 | + inputScript('https://cdn.jsdelivr.net/npm/proj4@2.7.5/dist/proj4.js'); |
109 | 100 | } |
110 | 101 | if (inArray(includes, 'shapefile')) { |
111 | 102 | inputScript('https://cdn.jsdelivr.net/npm/shapefile@0.6.6/dist/shapefile.js'); |
112 | 103 | } |
113 | 104 | if (inArray(includes, 'ant-design-vue')) { |
114 | | - inputCSS('https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.css'); |
115 | | - inputScript('https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.js'); |
| 105 | + inputCSS('https://cdn.jsdelivr.net/npm/ant-design-vue@1.7.8/dist/antd.min.css'); |
| 106 | + inputScript('https://cdn.jsdelivr.net/npm/ant-design-vue@1.7.8/dist/antd.min.js'); |
116 | 107 | } |
117 | 108 | if (inArray(includes, 'antd')) { |
118 | | - inputCSS('https://cdn.bootcdn.net/ajax/libs/antd/3.25.3/antd.min.css'); |
119 | | - inputScript('https://cdn.bootcdn.net/ajax/libs/moment.js/2.24.0/moment.min.js'); |
120 | | - inputScript('https://cdn.bootcdn.net/ajax/libs/antd/3.25.3/antd.js'); |
| 109 | + inputCSS('https://cdn.jsdelivr.net/npm/antd@3.25.3/dist/antd.min.css'); |
| 110 | + inputScript('https://cdn.jsdelivr.net/npm/moment@2.29.1/min/moment.min.js'); |
| 111 | + inputScript('https://cdn.jsdelivr.net/npm/antd@3.25.3/dist/antd.min.js'); |
121 | 112 | } |
122 | 113 | if (inArray(includes, 'deck')) { |
123 | 114 | inputScript('https://iclient.supermap.io/web/libs/deck.gl/5.1.3/deck.gl.min.js'); |
|
129 | 120 | inputScript('https://iclient.supermap.io/web/libs/geostats/geostats.js'); |
130 | 121 | } |
131 | 122 | if (inArray(includes, 'canvg')) { |
132 | | - inputScript('https://cdn.jsdelivr.net/npm/canvg@3.0.6/lib/umd.min.js'); |
| 123 | + inputScript('https://iclient.supermap.io/web/libs/canvg/canvg.min.js'); |
133 | 124 | } |
134 | 125 | if (inArray(includes, 'convert')) { |
135 | 126 | inputScript('https://iclient.supermap.io/web/libs/xml-js/1.6.8/xml-js.min.js'); |
136 | 127 | } |
137 | 128 | if (inArray(includes, 'LegacyJSONLoader')) { |
138 | | - inputScript( |
139 | | - 'https://cdn.jsdelivr.net/npm/three@0.110.0/examples/js/loaders/deprecated/LegacyJSONLoader.js' |
140 | | - ); |
| 129 | + inputScript('https://cdn.jsdelivr.net/npm/three@0.110.0/examples/js/loaders/deprecated/LegacyJSONLoader.js'); |
141 | 130 | } |
142 | 131 | if (inArray(includes, 'OBJLoader')) { |
143 | 132 | inputScript('https://cdn.jsdelivr.net/npm/three@0.121.1/examples/js/loaders/OBJLoader.js'); |
|
167 | 156 | inputScript('https://iclient.supermap.io/web/libs/mapbox-print-pdf/0.4.4/mapbox-print-pdf.min.js'); |
168 | 157 | } |
169 | 158 | if (inArray(includes, 'moment')) { |
170 | | - inputScript('https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js'); |
| 159 | + inputScript('https://cdn.jsdelivr.net/npm/moment@2.29.1/min/moment.min.js'); |
171 | 160 | } |
172 | 161 | if (inArray(includes, 'lodash')) { |
173 | | - inputScript('https://cdn.jsdelivr.net/npm/lodash@4.17.20/lodash.min.js'); |
| 162 | + inputScript('https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js'); |
174 | 163 | } |
175 | 164 | if (inArray(includes, 'tensorflow')) { |
176 | | - inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js'); |
| 165 | + inputScript('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.9.0/dist/tf.min.js'); |
177 | 166 | } |
178 | 167 |
|
179 | 168 | // dist |
|
0 commit comments