layerchart 0.7.0 → 0.7.1

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.
@@ -49,8 +49,7 @@ $: if (yBaseline != null) {
49
49
  * Reverse the default y range ([0, height] becomes [height, 0]). By default this is `true` unless using scaleBand y scale.
50
50
  * see: https://layercake.graphics/guide#yreverse
51
51
  * see: https://github.com/mhkeller/layercake/issues/83
52
-
53
- */
52
+ */
54
53
  $: yReverse = yScale ? !isScaleBand(yScale) : true;
55
54
  </script>
56
55
 
@@ -150,7 +150,6 @@ function handleTooltip(event, tooltipData) {
150
150
  const index = bisectX($flatData, xValueAtPoint, 1);
151
151
  const previousValue = $flatData[index - 1];
152
152
  const currentValue = $flatData[index];
153
- console.log({ index, previousValue, currentValue });
154
153
  tooltipData = findData(previousValue, currentValue, xValueAtPoint, $x);
155
154
  }
156
155
  else if (mode === 'bisect-y') {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Sean Lynch <techniq35@gmail.com>",
4
4
  "license": "MIT",
5
5
  "repository": "techniq/layerchart",
6
- "version": "0.7.0",
6
+ "version": "0.7.1",
7
7
  "devDependencies": {
8
8
  "@rollup/plugin-dsv": "^2.0.3",
9
9
  "@sveltejs/adapter-vercel": "^1.0.0-next.59",
package/utils/scales.d.ts CHANGED
@@ -7,6 +7,8 @@ import { MotionOptions } from '../stores/motionStore';
7
7
  * https://github.com/d3/d3-scale/pull/64
8
8
  * https://github.com/vega/vega-scale/blob/master/src/scaleBand.js#L118
9
9
  * https://observablehq.com/@d3/ordinal-brushing
10
+ * https://github.com/d3/d3-scale/blob/11777dac7d4b0b3e229d658aee3257ea67bd5ffa/src/band.js#L32
11
+ * https://gist.github.com/LuisSevillano/d53a1dc529eef518780c6df99613e2fd
10
12
  */
11
13
  export declare function scaleBandInvert(scale: any): (value: any) => any;
12
14
  export declare function isScaleBand(scale: any): boolean;
package/utils/scales.js CHANGED
@@ -9,6 +9,8 @@ import { motionStore } from '../stores/motionStore';
9
9
  * https://github.com/d3/d3-scale/pull/64
10
10
  * https://github.com/vega/vega-scale/blob/master/src/scaleBand.js#L118
11
11
  * https://observablehq.com/@d3/ordinal-brushing
12
+ * https://github.com/d3/d3-scale/blob/11777dac7d4b0b3e229d658aee3257ea67bd5ffa/src/band.js#L32
13
+ * https://gist.github.com/LuisSevillano/d53a1dc529eef518780c6df99613e2fd
12
14
  */
13
15
  export function scaleBandInvert(scale) {
14
16
  const domain = scale.domain();