1
0
Fork 0

🚨 Removed some linter warnings and unused import

This commit is contained in:
Joost De Cock 2018-12-20 14:39:24 +01:00
parent d3e9c73e17
commit 4d259dc2e5
2 changed files with 2 additions and 3 deletions

View file

@ -9,8 +9,8 @@ import Store from "./store";
import hooks from "./hooks"; import hooks from "./hooks";
import Attributes from "./attributes"; import Attributes from "./attributes";
export default function Pattern(config = false) { export default function Pattern(config = { options: {} }) {
this.config = config || {}; // Pattern configuration this.config = config; // Pattern configuration
this.width = false; // Will be set after render this.width = false; // Will be set after render
this.height = false; // Will be set after render this.height = false; // Will be set after render
this.is = ""; // Will be set when drafting/sampling this.is = ""; // Will be set when drafting/sampling

View file

@ -1,6 +1,5 @@
import Point from "./point"; import Point from "./point";
import Bezier from "bezier-js"; import Bezier from "bezier-js";
import crypto from "crypto";
export function capitalize(string) { export function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1); return string.charAt(0).toUpperCase() + string.slice(1);