1
0
Fork 0

feat(core): Add default logging to store

This commit is contained in:
Joost De Cock 2022-09-07 16:55:44 +02:00
parent 575d7c3de8
commit 411f617ffe
3 changed files with 44 additions and 10 deletions

View file

@ -86,7 +86,7 @@ export function Pattern(config = { options: {} }) {
this.is = '' // Will be set when drafting/sampling
this.autoLayout = { parts: {} } // Will hold auto-generated layout
this.cutList = {} // Will hold the cutlist
this.store = new Store([[ 'emit', this.raise]]) // Store for sharing data across parts
this.store = new Store([[ 'log', this.raise]]) // Store for sharing data across parts
this.parts = {} // Parts container
this.hooks = new Hooks() // Hooks container
this.Point = Point // Point constructor