Skip to content

Commit a726684

Browse files
committed
padprimitive add
1 parent 4b54f29 commit a726684

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/sexpr/classes/PadPrimitiveGrCircle.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class PadPrimitiveGrCircleEnd extends PadPrimitiveGrCirclePoint {
262262
}
263263
SxClass.register(PadPrimitiveGrCircleEnd)
264264

265-
class PadPrimitiveGrCircleFill extends SxPrimitiveBoolean {
265+
export class PadPrimitiveGrCircleFill extends SxPrimitiveBoolean {
266266
static override token = "fill"
267267
static override parentToken = "gr_circle"
268268
override token = "fill"
@@ -286,12 +286,16 @@ class PadPrimitiveGrCircleFill extends SxPrimitiveBoolean {
286286
if (normalized === "yes" || normalized === "true") {
287287
return new PadPrimitiveGrCircleFill(true)
288288
}
289-
if (normalized === "no" || normalized === "false") {
289+
if (
290+
normalized === "no" ||
291+
normalized === "false" ||
292+
normalized === "none"
293+
) {
290294
return new PadPrimitiveGrCircleFill(false)
291295
}
292296
}
293297
throw new Error(
294-
`pad primitive gr_circle fill expects yes/no or boolean, received ${JSON.stringify(raw)}`,
298+
`pad primitive gr_circle fill expects yes/no/none or boolean, received ${JSON.stringify(raw)}`,
295299
)
296300
}
297301
}

0 commit comments

Comments
 (0)