@dra2020/dra-types 1.8.129 → 1.8.130
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/colordata.d.ts +35 -0
- package/dist/datasets.d.ts +3 -0
- package/dist/dra-types.js.map +1 -1
- package/dist/gencolor.d.ts +1 -0
- package/dist/layer.d.ts +6 -0
- package/lib/datasets.ts +1 -0
- package/lib/layer.ts +6 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function genColor(i: number, useFirstColor: boolean): string;
|
package/dist/layer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as G from './groups';
|
|
1
2
|
export interface UserLayerMeta {
|
|
2
3
|
createdBy: string;
|
|
3
4
|
id: string;
|
|
@@ -9,6 +10,11 @@ export interface UserLayerMeta {
|
|
|
9
10
|
deleted?: boolean;
|
|
10
11
|
published?: string;
|
|
11
12
|
official?: boolean;
|
|
13
|
+
groups?: G.GroupMapIndex;
|
|
14
|
+
labels?: string[];
|
|
15
|
+
labelupdate?: {
|
|
16
|
+
[name: string]: boolean | null;
|
|
17
|
+
};
|
|
12
18
|
}
|
|
13
19
|
export type UserLayerMetaIndex = {
|
|
14
20
|
[id: string]: UserLayerMeta;
|
package/lib/datasets.ts
CHANGED
|
@@ -106,6 +106,7 @@ export interface Dataset
|
|
|
106
106
|
meta?: DatasetsMeta,
|
|
107
107
|
groups?: G.GroupMapIndex,
|
|
108
108
|
labels?: string[],
|
|
109
|
+
labelupdate?: { [name: string]: boolean|null }, // just for update purposes, not stored
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
export function datasetRestrict(ds: Dataset): { [key: string]: boolean }
|
package/lib/layer.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as G from './groups';
|
|
2
|
+
|
|
1
3
|
export interface UserLayerMeta
|
|
2
4
|
{
|
|
3
5
|
createdBy: string,
|
|
@@ -9,7 +11,10 @@ export interface UserLayerMeta
|
|
|
9
11
|
modifyTime?: string,
|
|
10
12
|
deleted?: boolean,
|
|
11
13
|
published?: string,
|
|
12
|
-
official?: boolean
|
|
14
|
+
official?: boolean,
|
|
15
|
+
groups?: G.GroupMapIndex,
|
|
16
|
+
labels?: string[],
|
|
17
|
+
labelupdate?: { [name: string]: boolean|null }, // just for update purposes, not stored
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export type UserLayerMetaIndex = {
|