diff --git a/.gitignore b/.gitignore index 3fbb8b82..fbe64a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # build output +public dist .next out/ diff --git a/src/altNodes/altMixins.ts b/src/altNodes/altMixins.ts index 23a19392..c1e6fde5 100644 --- a/src/altNodes/altMixins.ts +++ b/src/altNodes/altMixins.ts @@ -14,7 +14,7 @@ export interface AltGeometryMixin { strokeAlign: "CENTER" | "INSIDE" | "OUTSIDE"; strokeCap: StrokeCap | PluginAPI["mixed"]; strokeJoin: StrokeJoin | PluginAPI["mixed"]; - dashPattern: ReadonlyArray; + dashPattern?: ReadonlyArray; fillStyleId: string | PluginAPI["mixed"]; strokeStyleId: string; } diff --git a/src/html/htmlDefaultBuilder.ts b/src/html/htmlDefaultBuilder.ts index 32d8cd6a..1a8c744e 100644 --- a/src/html/htmlDefaultBuilder.ts +++ b/src/html/htmlDefaultBuilder.ts @@ -56,7 +56,7 @@ export class HtmlDefaultBuilder { const fill = this.retrieveFill(node.strokes); const weight = node.strokeWeight; - if (node.dashPattern.length > 0) { + if (node.dashPattern && node.dashPattern.length > 0) { this.style += formatWithJSX("border-style", this.isJSX, "dotted"); } else { this.style += formatWithJSX("border-style", this.isJSX, "solid");