@dra2020/dra-types 1.5.17 → 1.6.0

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface UserLayer {
1
+ export interface UserLayerMeta {
2
2
  createdBy: string;
3
3
  id: string;
4
4
  name?: string;
@@ -10,3 +10,16 @@ export interface UserLayer {
10
10
  published?: string;
11
11
  official?: boolean;
12
12
  }
13
+ export declare type UserLayerRef = {
14
+ id: string;
15
+ fill: boolean;
16
+ stroke: boolean;
17
+ label: boolean;
18
+ strokeColor: string;
19
+ strokeOpacity: number;
20
+ fillColor: string;
21
+ fillOpacity: number;
22
+ };
23
+ export declare type UserLayerRefIndex = {
24
+ [id: string]: UserLayerRef;
25
+ };
package/lib/layer.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface UserLayer
1
+ export interface UserLayerMeta
2
2
  {
3
3
  createdBy: string,
4
4
  id: string,
@@ -11,3 +11,18 @@ export interface UserLayer
11
11
  published?: string,
12
12
  official?: boolean
13
13
  }
14
+
15
+ export type UserLayerRef = {
16
+ id: string,
17
+ fill: boolean,
18
+ stroke: boolean,
19
+ label: boolean
20
+ strokeColor: string,
21
+ strokeOpacity: number,
22
+ fillColor: string,
23
+ fillOpacity: number,
24
+ }
25
+
26
+ export type UserLayerRefIndex = {
27
+ [id: string]: UserLayerRef
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/dra-types",
3
- "version": "1.5.17",
3
+ "version": "1.6.0",
4
4
  "description": "Shared types used between client and server.",
5
5
  "main": "dist/dra-types.js",
6
6
  "types": "./dist/all.d.ts",