@urban-toolkit/autk-grammar 0.1.0 → 0.1.2
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/autk-grammar.js +1185 -157
- package/dist/autk-grammar.js.map +1 -1
- package/dist/autk-grammar.umd.cjs +1 -1
- package/dist/autk-grammar.umd.cjs.map +1 -1
- package/dist/main.d.ts +13 -0
- package/package.json +62 -61
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UrbanSpec } from '@urban-toolkit/the-urban-grammar';
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
2
3
|
import { Targets } from './types';
|
|
3
4
|
export declare class AutkGrammar {
|
|
4
5
|
private dataAdapter?;
|
|
@@ -6,6 +7,18 @@ export declare class AutkGrammar {
|
|
|
6
7
|
private plotAdapter?;
|
|
7
8
|
private computeAdapter?;
|
|
8
9
|
private grammarEngine?;
|
|
10
|
+
private _computeCache;
|
|
11
|
+
private _data;
|
|
9
12
|
constructor(targets?: Targets);
|
|
13
|
+
/**
|
|
14
|
+
* The coordinate reference system used internally by the autk workspace.
|
|
15
|
+
*
|
|
16
|
+
* Input data is expected in EPSG:4326 (WGS84) by default and is transformed
|
|
17
|
+
* to this CRS on load. Consumers that prepare data for injection (e.g. by
|
|
18
|
+
* serialising a GeoDataFrame) can read this value and reproject accordingly
|
|
19
|
+
* instead of hard-coding a CRS string.
|
|
20
|
+
*/
|
|
21
|
+
get workspaceCrs(): string;
|
|
22
|
+
get data(): Record<string, Promise<FeatureCollection>>;
|
|
10
23
|
run(spec: UrbanSpec): Promise<void>;
|
|
11
24
|
}
|
package/package.json
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@urban-toolkit/autk-grammar",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Autark adapter for the urban grammar",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Gustavo Moreira",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/urban-toolkit/the-urban-grammar"
|
|
10
|
-
},
|
|
11
|
-
"type": "module",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"main": "./dist/autk-grammar.umd.cjs",
|
|
16
|
-
"module": "./dist/autk-grammar.js",
|
|
17
|
-
"types": "./dist/index.d.ts",
|
|
18
|
-
"exports": {
|
|
19
|
-
".": {
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"import": "./dist/autk-grammar.js",
|
|
22
|
-
"require": "./dist/autk-grammar.umd.cjs"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"scripts": {
|
|
26
|
-
"doc": "typedoc --options typedoc.json --watch",
|
|
27
|
-
"dev": "vite",
|
|
28
|
-
"dev-build": "vite build --watch",
|
|
29
|
-
"build": "tsc && vite build",
|
|
30
|
-
"preview": "vite preview",
|
|
31
|
-
"lint": "eslint src",
|
|
32
|
-
"typecheck": "tsc --noEmit",
|
|
33
|
-
"format": "prettier --write ."
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
37
|
-
"@typescript-eslint/parser": "^8.46.2",
|
|
38
|
-
"@types/geojson": "^7946.0.16",
|
|
39
|
-
"@webgpu/types": "^0.1.66",
|
|
40
|
-
"eslint": "^9.38.0",
|
|
41
|
-
"eslint-config-prettier": "^10.1.8",
|
|
42
|
-
"globals": "^16.4.0",
|
|
43
|
-
"prettier": "^3.6.2",
|
|
44
|
-
"ts-loader": "^9.5.4",
|
|
45
|
-
"typedoc": "^0.28.14",
|
|
46
|
-
"typedoc-theme-oxide": "^0.2.0",
|
|
47
|
-
"typescript": "^5.9.3",
|
|
48
|
-
"vite": "^7.1.12",
|
|
49
|
-
"vite-plugin-dts": "^4.5.4",
|
|
50
|
-
"vite-plugin-glsl": "^1.5.4"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@urban-toolkit/autk-
|
|
54
|
-
"@urban-toolkit/autk-
|
|
55
|
-
"@urban-toolkit/autk-
|
|
56
|
-
"@urban-toolkit/autk-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@urban-toolkit/autk-grammar",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Autark adapter for the urban grammar",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Gustavo Moreira",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/urban-toolkit/the-urban-grammar"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/autk-grammar.umd.cjs",
|
|
16
|
+
"module": "./dist/autk-grammar.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/autk-grammar.js",
|
|
22
|
+
"require": "./dist/autk-grammar.umd.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"doc": "typedoc --options typedoc.json --watch",
|
|
27
|
+
"dev": "vite",
|
|
28
|
+
"dev-build": "vite build --watch",
|
|
29
|
+
"build": "tsc && vite build",
|
|
30
|
+
"preview": "vite preview",
|
|
31
|
+
"lint": "eslint src",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"format": "prettier --write ."
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
37
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
38
|
+
"@types/geojson": "^7946.0.16",
|
|
39
|
+
"@webgpu/types": "^0.1.66",
|
|
40
|
+
"eslint": "^9.38.0",
|
|
41
|
+
"eslint-config-prettier": "^10.1.8",
|
|
42
|
+
"globals": "^16.4.0",
|
|
43
|
+
"prettier": "^3.6.2",
|
|
44
|
+
"ts-loader": "^9.5.4",
|
|
45
|
+
"typedoc": "^0.28.14",
|
|
46
|
+
"typedoc-theme-oxide": "^0.2.0",
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"vite": "^7.1.12",
|
|
49
|
+
"vite-plugin-dts": "^4.5.4",
|
|
50
|
+
"vite-plugin-glsl": "^1.5.4"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@urban-toolkit/autk-compute": "2.1.2",
|
|
54
|
+
"@urban-toolkit/autk-core": "2.1.2",
|
|
55
|
+
"@urban-toolkit/autk-db": "2.1.2",
|
|
56
|
+
"@urban-toolkit/autk-map": "2.1.2",
|
|
57
|
+
"@urban-toolkit/autk-plot": "2.1.2"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@urban-toolkit/the-urban-grammar": "^0.1.0"
|
|
61
|
+
}
|
|
62
|
+
}
|