@jupytergis/schema 0.1.6 → 0.2.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.
@@ -12,7 +12,7 @@
12
12
  "data": {
13
13
  "type": "object",
14
14
  "description": "The GeoJSON data",
15
- "$ref": "https://geojson.org/schema/GeoJSON.json"
15
+ "$ref": "./geojson.json"
16
16
  },
17
17
  "valid": {
18
18
  "type": "boolean",
@@ -15,6 +15,15 @@
15
15
  },
16
16
  "options": {
17
17
  "$ref": "#/definitions/jGISOptions"
18
+ },
19
+ "metadata": {
20
+ "type": "object",
21
+ "patternProperties": {
22
+ "^.*$": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "additionalProperties": false
18
27
  }
19
28
  },
20
29
  "definitions": {
@@ -30,6 +30,44 @@
30
30
  "multipleOf": 0.1,
31
31
  "minimum": 0,
32
32
  "maximum": 1
33
+ },
34
+ "symbologyState": {
35
+ "type": "object",
36
+ "description": "The state of the symbology panel options",
37
+ "required": ["renderType"],
38
+ "properties": {
39
+ "renderType": {
40
+ "type": "string",
41
+ "enum": ["Single Symbol", "Graduated", "Categorized"]
42
+ },
43
+ "value": {
44
+ "type": "string"
45
+ },
46
+ "method": {
47
+ "type": "string",
48
+ "enum": ["color", "radius"]
49
+ },
50
+ "colorRamp": {
51
+ "type": "string",
52
+ "default": "cool"
53
+ },
54
+ "nClasses": {
55
+ "type": "string",
56
+ "default": "9"
57
+ },
58
+ "mode": {
59
+ "type": "string",
60
+ "default": "equal interval",
61
+ "enum": [
62
+ "quantile",
63
+ "equal interval",
64
+ "jenks",
65
+ "pretty",
66
+ "logarithmic"
67
+ ]
68
+ }
69
+ },
70
+ "additionalProperties": false
33
71
  }
34
72
  }
35
73
  }
@@ -47,6 +47,44 @@
47
47
  }
48
48
  ],
49
49
  "description": "The color of the the object"
50
+ },
51
+ "symbologyState": {
52
+ "type": "object",
53
+ "description": "The state of the symbology panel options",
54
+ "required": [
55
+ "renderType",
56
+ "band",
57
+ "interpolation",
58
+ "colorRamp",
59
+ "nClasses",
60
+ "mode"
61
+ ],
62
+ "properties": {
63
+ "renderType": {
64
+ "type": "string"
65
+ },
66
+ "band": {
67
+ "type": "number"
68
+ },
69
+ "interpolation": {
70
+ "type": "string",
71
+ "enum": ["discrete", "linear", "exact"]
72
+ },
73
+ "colorRamp": {
74
+ "type": "string",
75
+ "default": "cool"
76
+ },
77
+ "nClasses": {
78
+ "type": "string",
79
+ "default": "9"
80
+ },
81
+ "mode": {
82
+ "type": "string",
83
+ "default": "equal interval",
84
+ "enum": ["continuous", "equal interval", "quantile"]
85
+ }
86
+ },
87
+ "additionalProperties": false
50
88
  }
51
89
  }
52
90
  }
package/lib/token.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Token } from '@lumino/coreutils';
2
- import { IJGISExternalCommandRegistry, IJGISFormSchemaRegistry, IJGISLayerBrowserRegistry, IJupyterGISTracker } from './interfaces';
2
+ import { IAnnotationModel, IJGISExternalCommandRegistry, IJGISFormSchemaRegistry, IJGISLayerBrowserRegistry, IJupyterGISTracker } from './interfaces';
3
3
  export declare const IJupyterGISDocTracker: Token<IJupyterGISTracker>;
4
4
  export declare const IJGISFormSchemaRegistryToken: Token<IJGISFormSchemaRegistry>;
5
5
  export declare const IJGISExternalCommandRegistryToken: Token<IJGISExternalCommandRegistry>;
6
6
  export declare const IJGISLayerBrowserRegistryToken: Token<IJGISLayerBrowserRegistry>;
7
+ export declare const IAnnotationToken: Token<IAnnotationModel>;
package/lib/token.js CHANGED
@@ -3,3 +3,4 @@ export const IJupyterGISDocTracker = new Token('jupyterGISDocTracker');
3
3
  export const IJGISFormSchemaRegistryToken = new Token('jupytergisFormSchemaRegistry');
4
4
  export const IJGISExternalCommandRegistryToken = new Token('jupytergisExternalCommandRegistry');
5
5
  export const IJGISLayerBrowserRegistryToken = new Token('jupytergisExternalCommandRegistry');
6
+ export const IAnnotationToken = new Token('jupytergisAnnotationModel');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/schema",
3
- "version": "0.1.6",
3
+ "version": "0.2.0",
4
4
  "description": "A JupyterGIS schema package.",
5
5
  "keywords": [
6
6
  "jupytergis"
@@ -25,12 +25,12 @@
25
25
  "url": "https://github.com/geojupyter/jupytergis.git"
26
26
  },
27
27
  "scripts": {
28
- "build": "jlpm build:schema && jlpm run build:lib",
29
- "build:schema": "jlpm build:schema:js && jlpm build:schema:py",
28
+ "build": "jlpm build:schema && jlpm build:lib",
29
+ "build:schema": "node ./cacheGeoJSONSchema.js && jlpm build:schema:js && jlpm build:schema:py",
30
30
  "build:schema:js": "json2ts -i src/schema -o src/_interface --no-unknownAny --unreachableDefinitions --cwd ./src/schema && cd src/schema && node ../../schema.js",
31
31
  "build:schema:py": "datamodel-codegen --input ./src/schema --output ../../python/jupytergis_lab/jupytergis_lab/notebook/objects/_schema --output-model-type pydantic_v2.BaseModel --input-file-type jsonschema",
32
32
  "build:prod": "jlpm run clean && jlpm build:schema && jlpm run build:lib",
33
- "build:lib": "tsc",
33
+ "build:lib": "tsc -b",
34
34
  "build:dev": "jlpm run build",
35
35
  "clean": "rimraf tsconfig.tsbuildinfo",
36
36
  "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
@@ -39,13 +39,12 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@apidevtools/json-schema-ref-parser": "^9.0.9",
42
- "@jupyter/docprovider": "^2.0.0",
43
- "@jupyter/ydoc": "^1.0.0",
44
- "@jupyterlab/apputils": "^4.0.0",
45
- "@jupyterlab/coreutils": "^6.0.0",
46
- "@jupyterlab/docregistry": "^4.0.0",
47
- "@jupyterlab/services": "^7.0.0",
48
- "@jupyterlab/ui-components": "^4.0.0",
42
+ "@jupyter/ydoc": "^2.0.0 || ^3.0.0",
43
+ "@jupyterlab/apputils": "^4.3.0",
44
+ "@jupyterlab/coreutils": "^6.3.0",
45
+ "@jupyterlab/docregistry": "^4.3.0",
46
+ "@jupyterlab/services": "^7.3.0",
47
+ "@jupyterlab/ui-components": "^4.3.0",
49
48
  "@lumino/coreutils": "^2.0.0",
50
49
  "@lumino/signaling": "^2.0.0",
51
50
  "ajv": "8.16.0",