Skip to content

Commit e924268

Browse files
committed
Fix type issues
1 parent f6aacb2 commit e924268

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

examples/CharacterText/bounding_box.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as txt from "txt";
12
import createHiDPICanvas from "../../lib/hidpi-canvas";
23
export default function init() {
34
const canvas = createHiDPICanvas(500, 500, 2);
@@ -14,7 +15,7 @@ export default function init() {
1415
size: 120,
1516
x: 100,
1617
y: 100,
17-
debug: true
18+
debug: true,
1819
});
1920
stage.addChild(charText);
2021

examples/Graphics/bounding_box.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import * as txt from "txt";
12
import createHiDPICanvas from "../../lib/hidpi-canvas";
23
import svgPath from "../fixtures/svg-glyph";
4+
35
export default function init() {
46
const canvas = createHiDPICanvas(1000, 1000, 2);
57
document.body.appendChild(canvas);

src/types/createjs.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// TODO: get this addded into the @types/easeljs package
2+
declare namespace createjs {
3+
namespace Graphics {
4+
class StrokeDash {
5+
constructor(segments: Array<number>, offset?: number);
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)