vega2ol 1.1.5 → 1.1.6
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/main.d.ts +12 -0
- package/dist/main.js +3 -3
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -10,6 +10,18 @@ interface VegaNode {
|
|
|
10
10
|
type: string;
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Operator mapping from Vega operators to OpenLayers operators
|
|
15
|
+
*/
|
|
16
|
+
export declare const OPERATOR_MAPPING: Record<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
* Constants mapping from Vega constants to OpenLayers constants
|
|
19
|
+
*/
|
|
20
|
+
export declare const CONSTANTS_MAPPING: Record<string, number>;
|
|
21
|
+
/**
|
|
22
|
+
* Function mapping from Vega functions to OpenLayers functions
|
|
23
|
+
*/
|
|
24
|
+
export declare const FUNCTION_MAPPING: Record<string, string>;
|
|
13
25
|
/**
|
|
14
26
|
* Custom error class for Vega2OL transpilation errors
|
|
15
27
|
*/
|
package/dist/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import { parseExpression } from "vega-expression";
|
|
|
2
2
|
/**
|
|
3
3
|
* Operator mapping from Vega operators to OpenLayers operators
|
|
4
4
|
*/
|
|
5
|
-
const OPERATOR_MAPPING = {
|
|
5
|
+
export const OPERATOR_MAPPING = {
|
|
6
6
|
// Comparison operators
|
|
7
7
|
"==": "==",
|
|
8
8
|
"!=": "!=",
|
|
@@ -23,7 +23,7 @@ const OPERATOR_MAPPING = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Constants mapping from Vega constants to OpenLayers constants
|
|
25
25
|
*/
|
|
26
|
-
const CONSTANTS_MAPPING = {
|
|
26
|
+
export const CONSTANTS_MAPPING = {
|
|
27
27
|
PI: Math.PI,
|
|
28
28
|
E: Math.E,
|
|
29
29
|
LN2: Math.LN2,
|
|
@@ -38,7 +38,7 @@ const CONSTANTS_MAPPING = {
|
|
|
38
38
|
/**
|
|
39
39
|
* Function mapping from Vega functions to OpenLayers functions
|
|
40
40
|
*/
|
|
41
|
-
const FUNCTION_MAPPING = {
|
|
41
|
+
export const FUNCTION_MAPPING = {
|
|
42
42
|
// Math functions
|
|
43
43
|
abs: "abs",
|
|
44
44
|
floor: "floor",
|