@opendata-ai/openchart-vanilla 8.0.0 → 8.1.0

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.
@@ -3,7 +3,7 @@ import {
3
3
  renderChromeElement,
4
4
  renderLegend,
5
5
  stampAnimationVars
6
- } from "./chunk-EKAUQAAX.js";
6
+ } from "./chunk-XOZ6AM7C.js";
7
7
 
8
8
  // src/tilemap-renderer.ts
9
9
  var SVG_NS = "http://www.w3.org/2000/svg";
@@ -295,4 +295,4 @@ function renderTileMapSVG(layout, opts) {
295
295
  export {
296
296
  renderTileMapSVG
297
297
  };
298
- //# sourceMappingURL=chunk-2NAQRP66.js.map
298
+ //# sourceMappingURL=chunk-BGJT3GTB.js.map
@@ -15,7 +15,7 @@ import {
15
15
  renderSingleMark,
16
16
  resolveMarkFill,
17
17
  stampAnimationVars
18
- } from "./chunk-EKAUQAAX.js";
18
+ } from "./chunk-XOZ6AM7C.js";
19
19
  import {
20
20
  SVG_NS,
21
21
  createSVGElement,
@@ -853,7 +853,7 @@ function keyAnnotations(annotations) {
853
853
  }
854
854
 
855
855
  // src/transition/gate.ts
856
- var TRANSITIONABLE_MARKS = /* @__PURE__ */ new Set(["bar", "line", "area", "point"]);
856
+ var TRANSITIONABLE_MARKS = /* @__PURE__ */ new Set(["bar", "line", "area", "point", "beeswarm"]);
857
857
  var DEFAULT_UPDATE_MAX_MARKS = 500;
858
858
  var CANVAS_DEFAULT_UPDATE_MAX_MARKS = 2e4;
859
859
  function canTransitionSpecShape(prevSpec, nextSpec) {
@@ -867,7 +867,7 @@ function canTransitionSpecShape(prevSpec, nextSpec) {
867
867
  const prevEnc = prev.encoding;
868
868
  const nextEnc = next.encoding;
869
869
  if (!prevEnc || !nextEnc) return false;
870
- return !(prevEnc.x?.field !== nextEnc.x?.field || prevEnc.x?.type !== nextEnc.x?.type || prevEnc.y?.field !== nextEnc.y?.field || prevEnc.y?.type !== nextEnc.y?.type || prevEnc.color?.field !== nextEnc.color?.field);
870
+ return !(prevEnc.x?.field !== nextEnc.x?.field || prevEnc.x?.type !== nextEnc.x?.type || prevEnc.y?.field !== nextEnc.y?.field || prevEnc.y?.type !== nextEnc.y?.type || prevEnc.color?.field !== nextEnc.color?.field || prevEnc.key?.field !== nextEnc.key?.field || prevEnc.facet?.field !== nextEnc.facet?.field || prevEnc.row?.field !== nextEnc.row?.field || prevEnc.column?.field !== nextEnc.column?.field);
871
871
  }
872
872
  function canTransition(args) {
873
873
  const { prevLayout, nextLayout, prevSpec, nextSpec, isFirstRender, entranceInFlight } = args;
@@ -1535,11 +1535,11 @@ function buildSingleAxisTweens(svg, prevAxis, nextAxis, orientation, layout, twe
1535
1535
  const isRotated = !!(nextAxis.tickAngle && Math.abs(nextAxis.tickAngle) > 10);
1536
1536
  const prevTickMap = /* @__PURE__ */ new Map();
1537
1537
  for (const tick of prevAxis.ticks) {
1538
- prevTickMap.set(serializeKeyValue(tick.value), tick.position);
1538
+ prevTickMap.set(serializeKeyValue(tick.value), tick.labelPosition ?? tick.position);
1539
1539
  }
1540
1540
  const nextTickMap = /* @__PURE__ */ new Map();
1541
1541
  for (const tick of nextAxis.ticks) {
1542
- nextTickMap.set(serializeKeyValue(tick.value), tick.position);
1542
+ nextTickMap.set(serializeKeyValue(tick.value), tick.labelPosition ?? tick.position);
1543
1543
  }
1544
1544
  const posAttr = orientation === "x" ? "x" : "y";
1545
1545
  const tickLabels = axisGroup.querySelectorAll(".oc-axis-tick[data-tick-key]");
@@ -8405,4 +8405,4 @@ export {
8405
8405
  scrubCamera,
8406
8406
  createGeoMap
8407
8407
  };
8408
- //# sourceMappingURL=chunk-6BUCYCLD.js.map
8408
+ //# sourceMappingURL=chunk-RQNAZZJM.js.map