mirage2d 1.2.35 → 1.2.37
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/Layer/tileLayer/TifLayer.d.ts +23 -0
- package/dist/Tools/util/tools.d.ts +8 -0
- package/dist/mirage2d.cjs.js +13 -13
- package/dist/mirage2d.umd.js +13 -13
- package/package.json +1 -1
|
@@ -14,6 +14,29 @@ import { ITileLayerOption } from "src/base/baseOptionType";
|
|
|
14
14
|
* @api
|
|
15
15
|
*/
|
|
16
16
|
export declare class TifLayer extends baseTileLayer {
|
|
17
|
+
segments: number;
|
|
18
|
+
defaultMinValue: number;
|
|
19
|
+
defaultMaxValue: number;
|
|
20
|
+
colorsList: string[];
|
|
17
21
|
constructor(layerid: any, options: ITileLayerOption);
|
|
22
|
+
/**
|
|
23
|
+
* : 设置线性拉伸颜色
|
|
24
|
+
* @param {number} MinValue 像素最小值
|
|
25
|
+
* @param {number} MaxValue 像素最大值
|
|
26
|
+
* @param {number} segments 分级渲染间隔总数 一般为10
|
|
27
|
+
* @param {string[]} colorsList 颜色列表 hex值 可传递开始颜色 中间色 终点色
|
|
28
|
+
*/
|
|
29
|
+
setLinearStyle(MinValue: number, MaxValue: number, segments: number, colorsList: string[]): void;
|
|
30
|
+
colors(): any[];
|
|
31
|
+
getVariables(): {};
|
|
32
|
+
getGradientColor(index: any): number[];
|
|
33
|
+
/**
|
|
34
|
+
* 获取影像中心 注意:这是一个异步函数
|
|
35
|
+
*/
|
|
36
|
+
getCenter(): Promise<any>;
|
|
37
|
+
/**
|
|
38
|
+
* 更新参数值到影像
|
|
39
|
+
*/
|
|
40
|
+
update(): void;
|
|
18
41
|
padLeft(val: any, num: any, radix: any): string;
|
|
19
42
|
}
|
|
@@ -9,3 +9,11 @@
|
|
|
9
9
|
* Copyright (c) 2022 by xd, All Rights Reserved.
|
|
10
10
|
*/
|
|
11
11
|
export declare function fetchJson(url: string): Promise<any>;
|
|
12
|
+
export declare function getGradientColor3(startColor: any, midColor: any, endColor: any, progress: any): {
|
|
13
|
+
hex: string;
|
|
14
|
+
rgb: number[];
|
|
15
|
+
};
|
|
16
|
+
export declare function getGradientColor2(startColor: any, endColor: any, progress: any): {
|
|
17
|
+
hex: string;
|
|
18
|
+
rgb: number[];
|
|
19
|
+
};
|