gridviz 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/gridviz.js +5 -2
- package/package.json +1 -1
- package/src/App.js +4 -1
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -162,7 +162,7 @@ export class App {
|
|
|
162
162
|
|
|
163
163
|
//restore default alpha and blend operation
|
|
164
164
|
this.cg.ctx.globalAlpha = 1.0
|
|
165
|
-
this.cg.ctx.globalCompositeOperation =
|
|
165
|
+
this.cg.ctx.globalCompositeOperation = this.defaultGlobalCompositeOperation
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
//draw boundary layer
|
|
@@ -324,6 +324,9 @@ export class App {
|
|
|
324
324
|
|
|
325
325
|
//
|
|
326
326
|
//canvas.addEventListener("keydown", e => { console.log(arguments) });
|
|
327
|
+
|
|
328
|
+
//set default globalCompositeOperation
|
|
329
|
+
this.defaultGlobalCompositeOperation = opts.defaultGlobalCompositeOperation || this.cg.ctx.globalCompositeOperation;
|
|
327
330
|
}
|
|
328
331
|
|
|
329
332
|
/**
|