MCPcopy
hub / github.com/palantir/plottable / constructor

Method constructor

src/plots/plot.ts:165–181  ·  view source on GitHub ↗

* A Plot draws some visualization of the inputted Datasets. * * @constructor

()

Source from the content-addressed store, hash-verified

163 * @constructor
164 */
165 constructor() {
166 super();
167 this._overflowHidden = true;
168 this.addClass("plot");
169 this._datasetToDrawer = new Utils.Map<Dataset, ProxyDrawer>();
170 this._attrBindings = d3.map<Plots.IAccessorScaleBinding<any, any>>();
171 this._includedValuesProvider = (scale: Scale<any, any>, ignoreAnchorState: boolean) => {
172 return this._includedValuesForScale(scale, ignoreAnchorState);
173 };
174 this._renderCallback = () => this.render();
175 this._onDatasetUpdateCallback = () => this._onDatasetUpdate();
176 this._propertyBindings = d3.map<Plots.IAccessorScaleBinding<any, any>>();
177 const mainAnimator = new Animators.Easing().maxTotalDuration(Plot._ANIMATION_MAX_DURATION);
178 this.animator(Plots.Animator.MAIN, mainAnimator);
179 this.animator(Plots.Animator.RESET, new Animators.Null());
180 this._deferredResetEntityStore = Utils.Window.debounce(DeferredRenderer.DEFERRED_RENDERING_DELAY, this._resetEntityStore);
181 }
182
183 public anchor(selection: d3.Selection<HTMLElement, any, any, any>) {
184 selection = coerceExternalD3(selection);

Callers

nothing calls this directly

Calls 6

_onDatasetUpdateMethod · 0.95
animatorMethod · 0.95
addClassMethod · 0.80
maxTotalDurationMethod · 0.80
renderMethod · 0.65

Tested by

no test coverage detected