diff --git a/src/pattern.js b/src/pattern.js index 7e309e94a14..5740415f0ae 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -9,8 +9,8 @@ import Store from "./store"; import hooks from "./hooks"; import Attributes from "./attributes"; -export default function Pattern(config = false) { - this.config = config || {}; // Pattern configuration +export default function Pattern(config = { options: {} }) { + this.config = config; // Pattern configuration this.width = false; // Will be set after render this.height = false; // Will be set after render this.is = ""; // Will be set when drafting/sampling diff --git a/src/utils.js b/src/utils.js index 7747417c3b8..c57173a720c 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,6 +1,5 @@ import Point from "./point"; import Bezier from "bezier-js"; -import crypto from "crypto"; export function capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1);