gis-common 5.1.14 → 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.
@@ -3,10 +3,10 @@ import { ColorRGBA } from '../types';
3
3
  * 基本的颜色类,支持RGB颜色
4
4
  */
5
5
  export default class Color {
6
- private _r;
7
- private _g;
8
- private _b;
9
- private _alpha;
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[];
@@ -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);