@mathstack/viz 0.0.1-beta.8 → 0.0.1-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1815,9 +1815,9 @@ class XyAxis extends XyAuxMarks {
1815
1815
  .append('g')
1816
1816
  .attr('class', this.class.axisGroup);
1817
1817
  }
1818
- // Avoid odd animations of ticks or domain lines when those things move between draws
1818
+ // Remove domain to avoid odd baseline/zero-axis positioning during transitions
1819
+ // Ticks are preserved to allow smooth transitions
1819
1820
  this.axisGroup.select('.domain').remove();
1820
- this.axisGroup.selectAll('.tick').remove();
1821
1821
  this.axisGroup
1822
1822
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1823
1823
  .transition(this.getTransition(this.axisGroup))
@@ -1873,7 +1873,6 @@ class XyAxis extends XyAuxMarks {
1873
1873
  if (this.config.ticks.wrap && this.config.ticks.wrap.width !== undefined) {
1874
1874
  this.wrapAxisTickText(tickText);
1875
1875
  }
1876
- // Note: marksDisplay removal is now handled immediately in hideElementsPerConfig()
1877
1876
  }
1878
1877
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1879
1878
  setTickFontSize(tickTextSelection) {
@@ -1917,10 +1916,8 @@ class XyAxis extends XyAuxMarks {
1917
1916
  .attr('transform', null)
1918
1917
  .attr('stroke-dasharray', null));
1919
1918
  }
1920
- // Note: baseline removal is now handled immediately in hideElementsPerConfig()
1921
1919
  }
1922
1920
  processTickLabels() {
1923
- // Note: labelsDisplay removal is now handled immediately in hideElementsPerConfig()
1924
1921
  if (this.config.ticks.rotate) {
1925
1922
  this.axisGroup.call((g) => g
1926
1923
  .selectAll('.tick text')