MCPcopy Index your code
hub / github.com/bqplot/bqplot / initialize

Method initialize

js/src/MarkModel.ts:53–63  ·  view source on GitHub ↗
(attributes, options)

Source from the content-addressed store, hash-verified

51 // These two attributes are the pixel values which should be appended
52 // to the area of the plot to make sure that the entire mark is visible
53 initialize(attributes, options) {
54 super.initialize(attributes, options);
55 this.on('change:scales', this.update_scales, this);
56 this.once('destroy', this.handle_destroy, this);
57 // `this.dirty` is set to `true` before starting computations that
58 // might lead the state of the model to be temporarily inconsistent.
59 // certain functions of views on that model might check the value
60 // of `this.dirty` before rendering
61 this.dirty = false;
62 this.update_scales();
63 }
64
65 update_data() {
66 // Update_data is typically overloaded in each mark

Callers

nothing calls this directly

Calls 1

update_scalesMethod · 0.95

Tested by

no test coverage detected