Skip to content

Commit

Permalink
feat: add wellknownnames to support qgis markers
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-longmacch committed Jan 28, 2025
1 parent f82cfbe commit 5fc8b1c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
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

0 comments on commit 5fc8b1c

Please sign in to comment.