Skip to content

Commit 0b13c29

Browse files
committed
Eslint fixes
1 parent 4570561 commit 0b13c29

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/CharacterText/bounding_box.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import createHiDPICanvas from "../../lib/hidpi-canvas";
22
export default function init() {
3-
let canvas = createHiDPICanvas(500, 500, 2);
3+
const canvas = createHiDPICanvas(500, 500, 2);
44
document.body.appendChild(canvas);
5-
let stage = new createjs.Stage(canvas);
5+
const stage = new createjs.Stage(canvas);
66

7-
let charText = new txt.CharacterText({
7+
const charText = new txt.CharacterText({
88
text: "The fox\n jumped over...",
99
font: "raleway",
1010
tracking: 20,

src/Glyph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class Glyph {
1616
_stroke: createjs.Graphics.Stroke;
1717
_strokeStyle: createjs.Graphics.StrokeStyle;
1818

19-
static debug: boolean = false;
19+
static debug = false;
2020

2121
graphic() {
2222
if (this._graphic == null) {

src/Graphics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SVGArc from "./SVGArc";
2-
import { parsePathData, svgPathBoundingBox } from "./SVGPath";
2+
import { parsePathData } from "./SVGPath";
33

44
export default class Graphics {
55
/**

src/PathBounds.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function getBoundsOfArc(fx, fy, rx, ry, rot, large, sweep, tx, ty) {
99
}
1010

1111
export default function pathBounds(path) {
12-
let aX = [],
13-
aY = [],
14-
current, // current instruction
12+
const aX = [],
13+
aY = [];
14+
let current, // current instruction
1515
previous = null,
1616
subpathStartX = 0,
1717
subpathStartY = 0,

0 commit comments

Comments
 (0)