🚨 Removed some linter warnings and unused import
This commit is contained in:
parent
d3e9c73e17
commit
4d259dc2e5
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue