Skip to content

Commit 1a61236

Browse files
author
Nir Maoz
authored
Fix textStroke import (#509)
1 parent 173a6fe commit 1a61236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/models/createTextStyleFromModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ITextStyleModel} from "./ITextStyleModel.js";
22
import {TextStyle} from "../../qualifiers/textStyle.js";
3-
import {Stroke} from "../../qualifiers.js";
3+
import {solid} from "../../qualifiers/textStroke.js";
44

55
/**
66
* Create TextStyle from ITextStyleModel
@@ -49,7 +49,7 @@ export function createTextStyleFromModel(textStyleModel: ITextStyleModel): TextS
4949
if (stroke) {
5050
result.stroke();
5151
if(typeof stroke !== "boolean" ) {
52-
result.stroke(Stroke.solid(stroke.width, stroke.color));
52+
result.stroke(solid(stroke.width, stroke.color));
5353
}
5454
}
5555

0 commit comments

Comments
 (0)