Browse Source

Merge branch 'updates-for-prod' into 'main'

Fix d3 elements removing

See merge request chartwerk/core!10
merge-requests/11/merge
Alexander Velikiy 3 years ago
parent
commit
7743ff1ed5
  1. 2
      dist/index.js
  2. 2
      package.json
  3. 4
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "@chartwerk/core", "name": "@chartwerk/core",
"version": "0.3.3", "version": "0.3.4",
"description": "Chartwerk core", "description": "Chartwerk core",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

4
src/index.ts

@ -255,7 +255,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
} }
protected renderMetricsContainer(): void { protected renderMetricsContainer(): void {
this.d3.select('.metrics-container').remove(); this.chartContainer.select('.metrics-container').remove();
// TODO: it should be a class with svgElParams as fields // TODO: it should be a class with svgElParams as fields
// container for clip path // container for clip path
@ -359,7 +359,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
} }
protected renderCrosshair(): void { protected renderCrosshair(): void {
this.d3.selectAll('#crosshair-container').remove(); this.chartContainer.select('#crosshair-container').remove();
this.crosshair = this.chartContainer.append('g') this.crosshair = this.chartContainer.append('g')
.attr('id', 'crosshair-container') .attr('id', 'crosshair-container')

Loading…
Cancel
Save