Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# build output
public
dist
.next
out/
Expand Down
2 changes: 1 addition & 1 deletion src/altNodes/altMixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface AltGeometryMixin {
strokeAlign: "CENTER" | "INSIDE" | "OUTSIDE";
strokeCap: StrokeCap | PluginAPI["mixed"];
strokeJoin: StrokeJoin | PluginAPI["mixed"];
dashPattern: ReadonlyArray<number>;
dashPattern?: ReadonlyArray<number>;
fillStyleId: string | PluginAPI["mixed"];
strokeStyleId: string;
}
Expand Down
2 changes: 1 addition & 1 deletion src/html/htmlDefaultBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down