svelteplot 0.2.10-pr-110.2 → 0.2.10-pr-110.4

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.
@@ -15,6 +15,8 @@
15
15
 
16
16
  let markProps: BoxXMarkProps = $props();
17
17
  const DEFAULTS = {
18
+ tickMedian: true,
19
+ tickMinMax: false,
18
20
  ...getContext<PlotDefaults>('svelteplot/_defaults').box,
19
21
  ...getContext<PlotDefaults>('svelteplot/_defaults').boxX
20
22
  };
@@ -39,6 +39,8 @@
39
39
 
40
40
  let markProps: BoxYMarkProps = $props();
41
41
  const DEFAULTS = {
42
+ tickMedian: true,
43
+ tickMinMax: false,
42
44
  ...getContext<PlotDefaults>('svelteplot/_defaults').box,
43
45
  ...getContext<PlotDefaults>('svelteplot/_defaults').boxY
44
46
  };
@@ -47,7 +47,7 @@
47
47
  import type { BaseMarkProps, PlotContext, PlotDefaults } from '../types.js';
48
48
  import { clientToLayerCoordinates } from './helpers/events.js';
49
49
 
50
- let { brush = $bindable(), ...markProps }: BrushMarkProps = $props();
50
+ let { brush = $bindable({ enabled: false }), ...markProps }: BrushMarkProps = $props();
51
51
 
52
52
  const DEFAULTS = {
53
53
  stroke: 'currentColor',
@@ -7,7 +7,7 @@
7
7
  import type { PlotDefaults } from '../types.js';
8
8
  import { getContext } from 'svelte';
9
9
 
10
- let { brush = $bindable(), ...options }: BrushXMarkProps = $props();
10
+ let { brush = $bindable({ enabled: false }), ...options }: BrushXMarkProps = $props();
11
11
  const DEFAULTS = {
12
12
  ...getContext<PlotDefaults>('svelteplot/_defaults').brush,
13
13
  ...getContext<PlotDefaults>('svelteplot/_defaults').brushX
@@ -7,7 +7,7 @@
7
7
  import type { PlotDefaults } from '../types.js';
8
8
  import { getContext } from 'svelte';
9
9
 
10
- let { brush = $bindable(), ...options }: BrushYMarkProps = $props();
10
+ let { brush = $bindable({ enabled: false }), ...options }: BrushYMarkProps = $props();
11
11
  const DEFAULTS = {
12
12
  ...getContext<PlotDefaults>('svelteplot/_defaults').brush,
13
13
  ...getContext<PlotDefaults>('svelteplot/_defaults').brushY
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.2.10-pr-110.2",
3
+ "version": "0.2.10-pr-110.4",
4
4
  "license": "ISC",
5
5
  "author": {
6
6
  "name": "Gregor Aisch",