Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WellKnownName's to support extra styles from QGIS #652

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export interface Fbetween extends FunctionCall<boolean> {
export type FCaseParameter = {
case: Expression<boolean>;
value: Expression<PropertyType>;
};
} | Expression<PropertyType>;
terry-longmacch marked this conversation as resolved.
Show resolved Hide resolved

/**
* Textual representation of a switch-case function.
Expand Down
44 changes: 38 additions & 6 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21349,8 +21349,45 @@
},
{
"enum": [
"arrow",
"arrowhead",
"asterisk_fill",
"circle",
"cross",
"cross2",
"cross_fill",
"decagon",
"diagonal_half_square",
"diamond",
"equilateral_triangle",
"filled_arrowhead",
"half_arc",
"half_square",
"heart",
"hexagon",
"horline",
"left_half_triangle",
"line",
"octagon",
"parallelogram_left",
"parallelogram_right",
"pentagon",
"quarter_arc",
"quarter_circle",
"quarter_square",
"right_half_triangle",
"rounded_square",
"semi_circle",
"shield",
"square",
"square_with_corners",
"star",
"star_diamond",
"third_arc",
"third_circle",
"trapezoid",
"triangle",
"x",
"shape://backslash",
"shape://carrow",
"shape://dot",
Expand All @@ -21359,11 +21396,7 @@
"shape://plus",
"shape://slash",
"shape://times",
"shape://vertline",
"square",
"star",
"triangle",
"x"
"shape://vertline"
],
"type": "string"
}
Expand All @@ -21389,4 +21422,3 @@
},
"type": "object"
}

8 changes: 7 additions & 1 deletion style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,13 @@ export type FontSpec = `ttf://${string}#0x${string}`;
* https://github.com/microsoft/TypeScript/issues/6579
*
*/
export type WellKnownName = 'circle' | 'square' | 'triangle' | 'star' | 'cross' | 'x'
export type WellKnownName = 'arrow' | 'arrowhead' | 'asterisk_fill' | 'circle' | 'cross' | 'cross2'
| 'cross_fill' | 'decagon' | 'diagonal_half_square' | 'diamond' | 'equilateral_triangle'
| 'filled_arrowhead' | 'half_arc' | 'half_square' | 'heart' | 'hexagon' | 'horline' | 'left_half_triangle'
| 'line' | 'octagon' | 'parallelogram_left' | 'parallelogram_right' | 'pentagon' | 'quarter_arc'
| 'quarter_circle' | 'quarter_square' | 'right_half_triangle' | 'rounded_square' | 'semi_circle'
| 'shield' | 'square' | 'square_with_corners' | 'star' | 'star_diamond' | 'third_arc' | 'third_circle'
| 'trapezoid' | 'triangle' | 'x'
| 'shape://vertline' | 'shape://horline' | 'shape://slash'
| 'shape://backslash' | 'shape://dot' | 'shape://plus'
| 'shape://times' | 'shape://oarrow' | 'shape://carrow'
Expand Down
Loading