* A Plot draws some visualization of the inputted Datasets. * * @constructor
()
| 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); |
nothing calls this directly
no test coverage detected