clarity-visualize 0.8.38 → 0.8.39
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.
|
@@ -762,6 +762,9 @@ class InteractionHelper {
|
|
|
762
762
|
}
|
|
763
763
|
};
|
|
764
764
|
this.pointer = (event) => {
|
|
765
|
+
if (!this.state.options.pointer) {
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
765
768
|
let data = event.data;
|
|
766
769
|
let type = event.event;
|
|
767
770
|
let doc = this.state.window.document;
|
|
@@ -2001,6 +2004,7 @@ class Visualizer {
|
|
|
2001
2004
|
this.setup = (target, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2002
2005
|
this.reset();
|
|
2003
2006
|
// Infer options
|
|
2007
|
+
options.pointer = "pointer" in options ? options.pointer : true;
|
|
2004
2008
|
options.canvas = "canvas" in options ? options.canvas : true;
|
|
2005
2009
|
options.keyframes = "keyframes" in options ? options.keyframes : false;
|
|
2006
2010
|
// Set visualization state
|