You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/schemas/schema.d.ts
+47-25Lines changed: 47 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,9 @@ export type IsometricPieces =
33
33
|"lintelNS"
34
34
|"lintelEW"
35
35
|"spaceCube";
36
+
/**
37
+
* Describes the board to be drawn. The `other` style is used for special renderers like `tree-*` where we want optional access to some properties, but otherwise no board is being drawn.
38
+
*/
36
39
exporttypeBoardStyles=
37
40
|"squares"
38
41
|"squares-checkered"
@@ -68,7 +71,8 @@ export type BoardStyles =
68
71
|"pyramid-hex"
69
72
|"heightmap-squares"
70
73
|"dvgc"
71
-
|"dvgc-checkered";
74
+
|"dvgc-checkered"
75
+
|"other";
72
76
/**
73
77
* The patterns known by the renderer
74
78
*/
@@ -159,30 +163,48 @@ export type AnnotationFreespace =
159
163
/**
160
164
* Annotations specifically for the `tree-*` renderers.
161
165
*/
162
-
exporttypeAnnotationTree={
163
-
type: "enter"|"exit";
164
-
/**
165
-
* The ids of the nodes to highlight.
166
-
*
167
-
* @minItems 1
168
-
*/
169
-
nodes: [string, ...string[]];
170
-
/**
171
-
* Only meaningful for the `enter` and `exit` notations. Determines the shape of the dotted line.
172
-
*/
173
-
shape?: "square"|"circle"|"hexf"|"hexp";
174
-
style?: "solid"|"dashed";
175
-
/**
176
-
* The width of the line, expressed as a percentage of cell size.
* A valid `dasharray` appropriate for the game's display.
205
+
*/
206
+
dashed?: number[];
207
+
};
186
208
187
209
/**
188
210
* Games on the Abstract Play service must produce representations of the play area based on this schema. The front-end renderer will then translate that into various forms. Detailed documentation is difficult within a JSON document (e.g., no multi-line strings allowed), so see the website for standalone documentation.
Copy file name to clipboardExpand all lines: src/schemas/schema.json
+45-1Lines changed: 45 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,7 @@
137
137
"additionalProperties": false
138
138
},
139
139
"boardStyles": {
140
+
"description": "Describes the board to be drawn. The `other` style is used for special renderers like `tree-*` where we want optional access to some properties, but otherwise no board is being drawn.",
"description": "The zero-based row after which to place the rule (`0` is the first row). There must be at least one node on this row to draw the rule.",
707
+
"type": "integer",
708
+
"default": 0
709
+
},
710
+
"strokeWidth": {
711
+
"description": "The width of the line, expressed as a percentage of cell size.",
712
+
"type": "number",
713
+
"minimum": 0,
714
+
"default": 0.05
715
+
},
716
+
"opacity": {
717
+
"type": "number",
718
+
"minimum": 0,
719
+
"maximum": 1,
720
+
"default": 1
721
+
},
722
+
"colour": {
723
+
"anyOf": [
724
+
{"$ref": "#/$defs/colourstrings"},
725
+
{"$ref": "#/$defs/colourfuncs"},
726
+
{"$ref": "#/$defs/positiveInteger"}
727
+
],
728
+
"default": "#000"
729
+
},
730
+
"dashed": {
731
+
"description": "A valid `dasharray` appropriate for the game's display.",
0 commit comments