Skip to content

Commit 539acfb

Browse files
committed
graphic 无法使用webgl渲染 自动使用canvas渲染
1 parent 574a2ee commit 539acfb

29 files changed

+1061
-857
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
- `ol.supermap.Theme` 及其子类
130130
- `addFeatures` 方法支持传入 `ol.supermap.ThemeFeature` 类型、`GeoJOSN` 规范数据类型,以及`ol.Feature`类型的 `feature` 数组
131131

132-
- `toFeature` 方法,由 `toiClientFeature` 方法代替
132+
- 废弃 `toFeature` 方法,由 `toiClientFeature` 方法代替
133133

134134
- 新增 `options.id` 参数
135135

@@ -143,7 +143,7 @@
143143

144144
- `options` 新增 `webgl` 渲染相关参数,如:`color` , `highlightColor`, `opacity`,`radius`,`radiusScale`,`radiusMinPixels`,`radiusMaxPixels`,`strokeWidth`,`outline``onClick`,`onHover`
145145

146-
- 废弃 `onClick` 参数, `options` 新增 `isHighLight` 参数,增加 `graphichighlighted` 事件,支持高亮响应
146+
- `options` 新增 `isHighLight` 参数 , 控制在 `onClick` 时是否高亮
147147

148148
- 增加 `setGraphics` 接口,支持设置点要素
149149

@@ -208,8 +208,6 @@
208208

209209
- 新增 `setVisibility`接口,支持设置图层的显示和隐藏
210210

211-
- 废弃 `toiClientFeature` 接口,由 `toFeature` 接口代替
212-
213211
- `SuperMap.ThemeStyle` 参数 `strokeDashstyle` 类型 `dashot` 更改为 `dashdot`
214212

215213
- 可视化 - 高性能点图层

dist/classic/iclient-classic-es6.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ module.exports = g;
237237
}
238238

239239
function Promise(fn) {
240-
if (typeof this !== 'object') throw new TypeError('Promises must be constructed via new');
240+
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
241241
if (typeof fn !== 'function') throw new TypeError('not a function');
242242
this._state = 0;
243243
this._handled = false;
@@ -361,9 +361,9 @@ module.exports = g;
361361
};
362362

363363
Promise.all = function (arr) {
364-
var args = Array.prototype.slice.call(arr);
365-
366364
return new Promise(function (resolve, reject) {
365+
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
366+
var args = Array.prototype.slice.call(arr);
367367
if (args.length === 0) return resolve([]);
368368
var remaining = args.length;
369369

dist/classic/iclient-classic-es6.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/classic/iclient-classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11258,7 +11258,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1125811258
}
1125911259

1126011260
function Promise(fn) {
11261-
if (_typeof(this) !== 'object') throw new TypeError('Promises must be constructed via new');
11261+
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
1126211262
if (typeof fn !== 'function') throw new TypeError('not a function');
1126311263
this._state = 0;
1126411264
this._handled = false;
@@ -11382,9 +11382,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1138211382
};
1138311383

1138411384
Promise.all = function (arr) {
11385-
var args = Array.prototype.slice.call(arr);
11386-
1138711385
return new Promise(function (resolve, reject) {
11386+
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
11387+
var args = Array.prototype.slice.call(arr);
1138811388
if (args.length === 0) return resolve([]);
1138911389
var remaining = args.length;
1139011390

dist/classic/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)