gis-common 5.1.13 → 5.1.15
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/dist/core/Color.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { ColorRGBA } from '../types';
|
|
|
3
3
|
* 基本的颜色类,支持RGB颜色
|
|
4
4
|
*/
|
|
5
5
|
export default class Color {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
_r: number;
|
|
7
|
+
_g: number;
|
|
8
|
+
_b: number;
|
|
9
|
+
_alpha: number;
|
|
10
10
|
constructor(r: number, g: number, b: number, a?: number);
|
|
11
11
|
private _validateColorChannel;
|
|
12
12
|
toArray(): number[];
|
package/dist/gis-common.es.js
CHANGED
|
@@ -285,7 +285,7 @@ const Util = {
|
|
|
285
285
|
* @returns 解码后的字符串
|
|
286
286
|
*/
|
|
287
287
|
decodeDict(...args) {
|
|
288
|
-
let res =
|
|
288
|
+
let res = null;
|
|
289
289
|
if (args.length > 1) {
|
|
290
290
|
const items = args.slice(1, args.length % 2 === 0 ? args.length - 1 : args.length);
|
|
291
291
|
for (let i = 0; i < items.length; i = i + 2) {
|
|
@@ -551,6 +551,7 @@ const ObjectUtil = {
|
|
|
551
551
|
};
|
|
552
552
|
const ImageUtil = {
|
|
553
553
|
emptyImageUrl: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
554
|
+
transparentImageUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==",
|
|
554
555
|
createCircle(radius, options = {}) {
|
|
555
556
|
const lineWidth = options.lineWidth || 1;
|
|
556
557
|
const canvas = CanvasDrawer.createCanvas(2 * radius, 2 * radius);
|