only trigger set_data from FactorRange changes
@@ -11,6 +11,7 @@ import {difference, includes, range} from "core/util/array";
import {extend, clone} from "core/util/object"
import {Context2d} from "core/util/canvas"
import {SelectionManager} from "core/selection_manager"
+import { FactorRange } from '../ranges/factor_range';
export class GlyphRendererView extends RendererView {
model: GlyphRenderer
@@ -95,11 +96,13 @@ export class GlyphRendererView extends RendererView {
for (const name in x_ranges) {
const rng = x_ranges[name];
+ if rng instanceof FactorRange
this.connect(rng.change, () => this.set_data())
}
for (const name in y_ranges) {
const rng = y_ranges[name];
+ if rng instanceof FactorRange
this.connect(rng.change, () => this.set_data())
}
