@morphemeris/armilla-core 0.1.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/LICENSE +21 -0
- package/README.md +75 -0
- package/dist/armilla.d.ts +41 -0
- package/dist/armilla.js +98 -0
- package/dist/armilla.test.d.ts +1 -0
- package/dist/armilla.test.js +160 -0
- package/dist/basemap.generated.d.ts +8 -0
- package/dist/basemap.generated.js +9 -0
- package/dist/basemap.test.d.ts +1 -0
- package/dist/basemap.test.js +21 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +14 -0
- package/dist/index.web.d.ts +3 -0
- package/dist/index.web.js +24 -0
- package/dist/runtime.d.ts +13 -0
- package/dist/runtime.js +20 -0
- package/dist/surface.d.ts +10 -0
- package/dist/surface.js +9 -0
- package/dist/types.d.ts +55 -0
- package/dist/types.generated.d.ts +1274 -0
- package/dist/types.generated.js +4 -0
- package/dist/types.js +24 -0
- package/dist/vocabulary.generated.d.ts +8 -0
- package/dist/vocabulary.generated.js +9 -0
- package/dist/vocabulary.test.d.ts +1 -0
- package/dist/vocabulary.test.js +36 -0
- package/dist/wasm-types.d.ts +19 -0
- package/dist/wasm-types.js +1 -0
- package/dist/wasm.d.ts +2 -0
- package/dist/wasm.js +16 -0
- package/dist/web.test.d.ts +1 -0
- package/dist/web.test.js +34 -0
- package/dist/workspace.test.d.ts +1 -0
- package/dist/workspace.test.js +43 -0
- package/docs/changelog.md +37 -0
- package/docs/coordinates.md +52 -0
- package/docs/themes.md +111 -0
- package/docs/vocabulary.json +1501 -0
- package/docs/vocabulary.md +86 -0
- package/package.json +73 -0
- package/wasm/README.md +21 -0
- package/wasm/armilla_wasm.d.ts +104 -0
- package/wasm/armilla_wasm.js +497 -0
- package/wasm/armilla_wasm_bg.wasm +0 -0
- package/wasm/armilla_wasm_bg.wasm.d.ts +21 -0
- package/wasm/package.json +23 -0
- package/wasm-web/README.md +21 -0
- package/wasm-web/armilla_wasm.d.ts +150 -0
- package/wasm-web/armilla_wasm.js +583 -0
- package/wasm-web/armilla_wasm_bg.wasm +0 -0
- package/wasm-web/armilla_wasm_bg.wasm.d.ts +21 -0
- package/wasm-web/package.json +27 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Encode a view state as a URL-safe bookmark string (spec §11.5).
|
|
6
|
+
*
|
|
7
|
+
* # Errors
|
|
8
|
+
*
|
|
9
|
+
* The §15 `Error` record as a JSON string when the view state is invalid.
|
|
10
|
+
*/
|
|
11
|
+
export function bookmark(view_state: string): string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The compiled-in default theme as JSON (spec §10.2).
|
|
15
|
+
*/
|
|
16
|
+
export function default_theme(): string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Report which rule set a resolved property (spec §13.4).
|
|
20
|
+
*
|
|
21
|
+
* # Errors
|
|
22
|
+
*
|
|
23
|
+
* The §15 `Error` record as a JSON string.
|
|
24
|
+
*/
|
|
25
|
+
export function explain(scene: string, theme_chain: string, mark_id: string, property: string): string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Lay out a chart input under a theme chain, view state, environment, and
|
|
29
|
+
* panel options; returns the scene as JSON (spec §13.5 `layout`).
|
|
30
|
+
*
|
|
31
|
+
* # Errors
|
|
32
|
+
*
|
|
33
|
+
* The §15 `Error` record as a JSON string.
|
|
34
|
+
*/
|
|
35
|
+
export function layout(chart_input: string, theme_chain: string, view_state: string, environment: string, options: string): string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Lint a theme chain; returns the findings as a JSON array (spec §10.7).
|
|
39
|
+
*
|
|
40
|
+
* # Errors
|
|
41
|
+
*
|
|
42
|
+
* The §15 `Error` record as a JSON string when the chain does not parse.
|
|
43
|
+
*/
|
|
44
|
+
export function lint(theme_chain: string): string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Build the map panels' line model (spec §12.2).
|
|
48
|
+
*
|
|
49
|
+
* # Errors
|
|
50
|
+
*
|
|
51
|
+
* The §15 `Error` record as a JSON string.
|
|
52
|
+
*/
|
|
53
|
+
export function map_lines(chart_input: string, view_state: string, environment: string): string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Migrate a document forward to the current schema version (spec §4.2).
|
|
57
|
+
*
|
|
58
|
+
* # Errors
|
|
59
|
+
*
|
|
60
|
+
* The §15 `Error` record as a JSON string.
|
|
61
|
+
*/
|
|
62
|
+
export function migrate(kind: string, doc: string): string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Paint a scene as an SVG document string (spec §14).
|
|
66
|
+
*
|
|
67
|
+
* # Errors
|
|
68
|
+
*
|
|
69
|
+
* The §15 `Error` record as a JSON string.
|
|
70
|
+
*/
|
|
71
|
+
export function paint_svg(scene: string, pack_manifests: string): string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Build a table panel's row model (spec §12.1).
|
|
75
|
+
*
|
|
76
|
+
* # Errors
|
|
77
|
+
*
|
|
78
|
+
* The §15 `Error` record as a JSON string.
|
|
79
|
+
*/
|
|
80
|
+
export function table_rows(chart_input: string, view_state: string, environment: string, options: string): string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Decode a bookmark back into a view state as JSON (spec §11.5).
|
|
84
|
+
*
|
|
85
|
+
* # Errors
|
|
86
|
+
*
|
|
87
|
+
* The §15 `Error` record as a JSON string.
|
|
88
|
+
*/
|
|
89
|
+
export function unbookmark(s: string): string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Parse and validate a workspace document, returning it normalized
|
|
93
|
+
* (spec §12): hosts consume workspaces; the core only checks them.
|
|
94
|
+
*
|
|
95
|
+
* # Errors
|
|
96
|
+
*
|
|
97
|
+
* The §15 `Error` record as a JSON string.
|
|
98
|
+
*/
|
|
99
|
+
export function validate_workspace(workspace: string): string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The core version, for provenance and binding checks.
|
|
103
|
+
*/
|
|
104
|
+
export function version(): string;
|
|
105
|
+
|
|
106
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
107
|
+
|
|
108
|
+
export interface InitOutput {
|
|
109
|
+
readonly memory: WebAssembly.Memory;
|
|
110
|
+
readonly bookmark: (a: number, b: number) => [number, number, number, number];
|
|
111
|
+
readonly default_theme: () => [number, number];
|
|
112
|
+
readonly explain: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
113
|
+
readonly layout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number, number];
|
|
114
|
+
readonly lint: (a: number, b: number) => [number, number, number, number];
|
|
115
|
+
readonly map_lines: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
116
|
+
readonly migrate: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
117
|
+
readonly paint_svg: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
118
|
+
readonly table_rows: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
119
|
+
readonly unbookmark: (a: number, b: number) => [number, number, number, number];
|
|
120
|
+
readonly validate_workspace: (a: number, b: number) => [number, number, number, number];
|
|
121
|
+
readonly version: () => [number, number];
|
|
122
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
123
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
124
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
125
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
126
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
127
|
+
readonly __wbindgen_start: () => void;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
134
|
+
* a precompiled `WebAssembly.Module`.
|
|
135
|
+
*
|
|
136
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
137
|
+
*
|
|
138
|
+
* @returns {InitOutput}
|
|
139
|
+
*/
|
|
140
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
144
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
145
|
+
*
|
|
146
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
147
|
+
*
|
|
148
|
+
* @returns {Promise<InitOutput>}
|
|
149
|
+
*/
|
|
150
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|