svelteplot 0.4.2 → 0.4.3-pr-198.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.
Files changed (60) hide show
  1. package/dist/Mark.svelte +4 -2
  2. package/dist/core/Plot.svelte +1 -2
  3. package/dist/helpers/colors.d.ts +1 -1
  4. package/dist/helpers/index.d.ts +3 -4
  5. package/dist/helpers/index.js +1 -6
  6. package/dist/helpers/resolve.js +4 -4
  7. package/dist/helpers/scales.d.ts +1 -1
  8. package/dist/helpers/typeChecks.d.ts +4 -4
  9. package/dist/marks/Area.svelte +3 -3
  10. package/dist/marks/AreaX.svelte.d.ts +2 -1
  11. package/dist/marks/AreaY.svelte.d.ts +2 -1
  12. package/dist/marks/Arrow.svelte +16 -15
  13. package/dist/marks/Arrow.svelte.d.ts +1 -1
  14. package/dist/marks/AxisX.svelte +1 -1
  15. package/dist/marks/AxisX.svelte.d.ts +2 -2
  16. package/dist/marks/AxisY.svelte.d.ts +1 -1
  17. package/dist/marks/BarX.svelte.d.ts +1 -1
  18. package/dist/marks/BarY.svelte +0 -1
  19. package/dist/marks/BollingerX.svelte.d.ts +2 -73
  20. package/dist/marks/BollingerY.svelte.d.ts +2 -73
  21. package/dist/marks/BoxX.svelte +72 -28
  22. package/dist/marks/BoxY.svelte +88 -38
  23. package/dist/marks/BoxY.svelte.d.ts +6 -66
  24. package/dist/marks/CustomMark.svelte.d.ts +2 -80
  25. package/dist/marks/DifferenceY.svelte.d.ts +7 -66
  26. package/dist/marks/Dot.svelte +5 -5
  27. package/dist/marks/Geo.svelte +3 -3
  28. package/dist/marks/GridX.svelte +26 -8
  29. package/dist/marks/GridX.svelte.d.ts +8 -6
  30. package/dist/marks/GridY.svelte +16 -4
  31. package/dist/marks/GridY.svelte.d.ts +8 -6
  32. package/dist/marks/Line.svelte.d.ts +2 -2
  33. package/dist/marks/LineX.svelte.d.ts +2 -1
  34. package/dist/marks/LineY.svelte.d.ts +2 -1
  35. package/dist/marks/Link.svelte +7 -10
  36. package/dist/marks/Pointer.svelte +2 -2
  37. package/dist/marks/RuleX.svelte +1 -1
  38. package/dist/marks/RuleX.svelte.d.ts +1 -1
  39. package/dist/marks/Text.svelte +2 -1
  40. package/dist/marks/Vector.svelte +6 -5
  41. package/dist/marks/helpers/BaseAxisX.svelte +17 -12
  42. package/dist/marks/helpers/BaseAxisY.svelte +15 -10
  43. package/dist/marks/helpers/MarkerPath.svelte +10 -2
  44. package/dist/marks/helpers/RectPath.svelte +15 -15
  45. package/dist/marks/helpers/RectPath.svelte.d.ts +3 -1
  46. package/dist/marks/helpers/events.d.ts +5 -6
  47. package/dist/marks/helpers/events.js +47 -35
  48. package/dist/transforms/bollinger.d.ts +1 -66
  49. package/dist/transforms/group.d.ts +4 -12
  50. package/dist/transforms/interval.d.ts +2 -122
  51. package/dist/transforms/recordize.d.ts +9 -7
  52. package/dist/transforms/recordize.js +23 -24
  53. package/dist/transforms/select.d.ts +7 -427
  54. package/dist/transforms/sort.d.ts +3 -242
  55. package/dist/transforms/stack.d.ts +3 -23
  56. package/dist/transforms/window.d.ts +2 -128
  57. package/dist/types/channel.d.ts +1 -1
  58. package/dist/types/data.d.ts +2 -0
  59. package/dist/types/index.d.ts +6 -6
  60. package/package.json +126 -125
package/dist/Mark.svelte CHANGED
@@ -135,11 +135,12 @@
135
135
  const resolvedData: ResolvedDataRecord<Datum>[] = $derived(
136
136
  data
137
137
  .map((d, i) => ({ ...d, [INDEX]: i }))
138
- .flatMap((row) => {
138
+ .flatMap((row, index) => {
139
139
  const channels = options as Record<ChannelName, ChannelAccessor<Datum>>;
140
140
  if (!testFacet(row, channels) || !testFilter(row, channels)) return [];
141
141
  const out: ResolvedDataRecord<Datum> = {
142
- datum: row
142
+ datum: row,
143
+ index
143
144
  };
144
145
  for (const [channel] of Object.entries(CHANNEL_SCALE) as [
145
146
  ScaledChannelName,
@@ -208,6 +209,7 @@
208
209
  resolvedData.flatMap((row) => {
209
210
  const out: ScaledDataRecord<Datum> = {
210
211
  datum: row.datum,
212
+ index: row[INDEX],
211
213
  valid: true
212
214
  };
213
215
  // compute dx/dy
@@ -499,8 +499,7 @@
499
499
  width={fixedWidth || width}
500
500
  {height}
501
501
  fill="currentColor"
502
- viewBox="0 0 {width} {height}"
503
- font-family="system-ui, sans-serif">
502
+ viewBox="0 0 {width} {height}">
504
503
  {@render facetAxes?.()}
505
504
  <FacetGrid marks={explicitMarks}>
506
505
  {#if children}
@@ -6,7 +6,7 @@ type SchemeGetter = (n: number) => readonly string[];
6
6
  export declare function isOrdinalScheme(scheme: ColorScheme): boolean;
7
7
  export declare function ordinalScheme(scheme: string): SchemeGetter | undefined;
8
8
  export declare function ordinalRange(scheme: string, length: number): readonly string[] | undefined;
9
- export declare function maybeBooleanRange(domain: boolean[], scheme?: string): unknown[] | undefined;
9
+ export declare function maybeBooleanRange(domain: boolean[], scheme?: string): any[] | undefined;
10
10
  export declare function isQuantitativeScheme(scheme: string): boolean;
11
11
  export declare function quantitativeScheme(scheme: string): typeof interpolateBrBG | undefined;
12
12
  export declare function isDivergingScheme(scheme: string): boolean;
@@ -1,14 +1,13 @@
1
- import type { ChannelName, Channels, DataRecord, RawValue } from '../types/index.js';
1
+ import type { ChannelName, Channels, RawValue } from '../types/index.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  /**
4
4
  * Returns first argument that is not null or undefined
5
5
  */
6
- export declare function coalesce(...args: (RawValue | undefined | null)[]): RawValue | null;
7
- export declare function testFilter<T>(datum: T, options: Channels<T>): true | T | null;
6
+ export declare function coalesce(...args: (RawValue | undefined | null)[]): any;
7
+ export declare function testFilter<T>(datum: T, options: Channels<T>): any;
8
8
  export declare function randomId(): string;
9
9
  export declare function isSnippet(value: unknown): value is Snippet;
10
10
  export declare function isValid(value: RawValue | undefined): value is number | Date | string;
11
- export declare function maybeData(data: DataRecord[]): DataRecord[];
12
11
  export declare function isObject<T>(option: object | T): option is object;
13
12
  export declare function maybeNumber(value: RawValue | null): number | null;
14
13
  export declare const constant: <T>(x: T) => () => T;
@@ -13,8 +13,7 @@ export function coalesce(...args) {
13
13
  return null; // Return null if all arguments are null or undefined
14
14
  }
15
15
  export function testFilter(datum, options) {
16
- return (options.filter == null ||
17
- resolveProp(options.filter, isObject(datum) && datum.hasOwnProperty(RAW_VALUE) ? datum[RAW_VALUE] : datum));
16
+ return options.filter == null || resolveProp(options.filter, datum);
18
17
  }
19
18
  export function randomId() {
20
19
  return Math.ceil(1e9 + Math.random() * 1e9).toString(36);
@@ -28,10 +27,6 @@ export function isValid(value) {
28
27
  !Number.isNaN(value) &&
29
28
  (typeof value !== 'number' || Number.isFinite(value)));
30
29
  }
31
- export function maybeData(data) {
32
- // if (data.type === 'FeatureCollection') return data.features;
33
- return data;
34
- }
35
30
  export function isObject(option) {
36
31
  // doesn't work with Proxies
37
32
  return (typeof option === 'object' && !isDate(option) && !Array.isArray(option) && option !== null);
@@ -1,4 +1,4 @@
1
- import { CHANNEL_SCALE } from '../constants.js';
1
+ import { CHANNEL_SCALE, INDEX } from '../constants.js';
2
2
  import isDataRecord from './isDataRecord.js';
3
3
  import isRawValue from './isRawValue.js';
4
4
  import { isValid } from './index.js';
@@ -11,7 +11,7 @@ export function resolveProp(accessor, datum, _defaultValue = null) {
11
11
  // so we're passing the original value to accessor functions instead of our wrapped record
12
12
  return datum == null
13
13
  ? accessor()
14
- : accessor(datum[RAW_VALUE] != null ? datum[RAW_VALUE] : datum);
14
+ : accessor(datum[RAW_VALUE] != null ? datum[RAW_VALUE] : datum, datum[INDEX]);
15
15
  }
16
16
  else if ((typeof accessor === 'string' || typeof accessor === 'symbol') &&
17
17
  datum &&
@@ -51,7 +51,7 @@ function resolve(datum, accessor, channel, scale) {
51
51
  // datum[RAW_VALUE] exists if an array of raw values was used as dataset and got
52
52
  // "recordized" by the recordize transform. We want to hide this wrapping to the user
53
53
  // so we're passing the original value to accessor functions instead of our wrapped record
54
- return accessor(datum[RAW_VALUE] != null ? datum[RAW_VALUE] : datum);
54
+ return accessor(datum[RAW_VALUE] != null ? datum[RAW_VALUE] : datum, datum?.[INDEX]);
55
55
  // use accessor string
56
56
  if ((typeof accessor === 'string' || typeof accessor === 'symbol') &&
57
57
  datum[accessor] !== undefined)
@@ -69,7 +69,7 @@ function resolve(datum, accessor, channel, scale) {
69
69
  else {
70
70
  // return single value or accessor
71
71
  return typeof accessor === 'function'
72
- ? accessor(datum)
72
+ ? accessor(datum, datum?.[INDEX])
73
73
  : accessor !== null && isRawValue(accessor)
74
74
  ? accessor
75
75
  : !Array.isArray(datum) && (scale === 'x' || scale === 'y')
@@ -15,7 +15,7 @@ export declare function createScale<T extends ScaleOptions>(name: ScaleName, sca
15
15
  autoTitle?: undefined;
16
16
  } | {
17
17
  type: ScaleType;
18
- domain: RawValue[] | [undefined, undefined];
18
+ domain: any;
19
19
  range: any;
20
20
  fn: any;
21
21
  skip: Map<ScaledChannelName, Set<symbol>>;
@@ -1,10 +1,10 @@
1
1
  import type { RawValue } from '../types/index.js';
2
- export declare function isBooleanOrNull(v: RawValue): v is boolean;
2
+ export declare function isBooleanOrNull(v: RawValue): boolean;
3
3
  export declare function isDate(v: RawValue): v is Date;
4
- export declare function isDateOrNull(v: RawValue | null | undefined): v is Date | null | undefined;
4
+ export declare function isDateOrNull(v: RawValue | null | undefined): boolean;
5
5
  export declare function isNumberOrNull(v: RawValue | null | undefined): boolean;
6
6
  export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined): boolean;
7
- export declare function isStringOrNull(v: RawValue | null | undefined): v is string | null | undefined;
7
+ export declare function isStringOrNull(v: RawValue | null | undefined): boolean;
8
8
  export declare function isSymbolOrNull(v: RawValue | null | undefined): boolean;
9
- export declare function isColorOrNull(v: RawValue | null | undefined): boolean;
9
+ export declare function isColorOrNull(v: RawValue | null | undefined): any;
10
10
  export declare function isOpacityOrNull(v: RawValue): boolean;
@@ -136,11 +136,11 @@
136
136
  class={['svelteplot-area', className, styleClass]}
137
137
  clip-path={options.clipPath}
138
138
  d={areaPath(areaData)}
139
- use:addEventHandlers={{
139
+ {@attach addEventHandlers({
140
140
  getPlotState,
141
141
  options,
142
- datum: datum.datum
143
- }}
142
+ datum: datum?.datum
143
+ })}
144
144
  {style}
145
145
  >{#if title}<title>{title}</title>{/if}</path>
146
146
  </Anchor>
@@ -1,3 +1,4 @@
1
+ import { renameChannels } from '../transforms/rename.js';
1
2
  import type { ChannelAccessor, DataRow } from '../types/index.js';
2
3
  declare class __sveltets_Render<Datum extends DataRow> {
3
4
  props(): Omit<Partial<{
@@ -71,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
71
72
  sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
72
73
  channel: "stroke" | "fill";
73
74
  };
74
- stack?: Partial<import("../transforms/stack.js").StackOptions>;
75
+ stack?: Partial<renameChannels>;
75
76
  canvas?: boolean;
76
77
  }, "y1" | "y2"> & {
77
78
  x?: ChannelAccessor<Datum>;
@@ -1,3 +1,4 @@
1
+ import { renameChannels } from '../transforms/rename.js';
1
2
  import type { ChannelAccessor, DataRow } from '../types/index.js';
2
3
  declare class __sveltets_Render<Datum extends DataRow> {
3
4
  props(): Omit<Partial<{
@@ -71,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
71
72
  sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
72
73
  channel: "stroke" | "fill";
73
74
  };
74
- stack?: Partial<import("../transforms/stack.js").StackOptions>;
75
+ stack?: Partial<renameChannels>;
75
76
  canvas?: boolean;
76
77
  }, "x1" | "x2"> & {
77
78
  x?: ChannelAccessor<Datum>;
@@ -4,7 +4,9 @@
4
4
  <script lang="ts" generics="Datum extends DataRecord">
5
5
  interface ArrowMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'fillOpacity'> {
6
6
  data: Datum[];
7
- sort?: ConstantAccessor<RawValue> | { channel: 'stroke' | 'fill' };
7
+ sort?:
8
+ | ConstantAccessor<RawValue>
9
+ | { channel: 'stroke' | 'fill' | 'x1' | 'y1' | 'x2' | 'y2' };
8
10
  x1: ChannelAccessor<Datum>;
9
11
  y1: ChannelAccessor<Datum>;
10
12
  x2: ChannelAccessor<Datum>;
@@ -46,12 +48,14 @@
46
48
  PlotDefaults
47
49
  } from '../types/index.js';
48
50
  import { resolveChannel, resolveProp, resolveStyles } from '../helpers/resolve.js';
49
- import { coalesce, maybeData, maybeNumber } from '../helpers/index.js';
51
+ import { coalesce, maybeNumber } from '../helpers/index.js';
50
52
  import Mark from '../Mark.svelte';
51
53
  import { arrowPath, maybeSweep, type SweepOption } from '../helpers/arrowPath.js';
52
54
  import { replaceChannels } from '../transforms/rename.js';
53
55
  import { addEventHandlers } from './helpers/events.js';
54
56
  import GroupMultiple from './helpers/GroupMultiple.svelte';
57
+ import { sort } from '../transforms/sort.js';
58
+ import { indexData } from '../transforms/recordize.js';
55
59
 
56
60
  let markProps: ArrowMarkProps = $props();
57
61
 
@@ -74,16 +78,13 @@
74
78
  const { getPlotState } = getContext<PlotContext>('svelteplot');
75
79
  const plot = $derived(getPlotState());
76
80
 
77
- const sorted = $derived(
78
- options.sort
79
- ? maybeData(data).toSorted((a, b) =>
80
- resolveChannel('sort', a, options) > resolveChannel('sort', b, options) ? 1 : -1
81
- )
82
- : maybeData(data)
83
- );
84
-
85
81
  const args: ArrowMarkProps = $derived(
86
- replaceChannels({ data: sorted, ...options }, { y: ['y1', 'y2'], x: ['x1', 'x2'] })
82
+ sort(
83
+ replaceChannels(
84
+ { data: indexData(data), ...options },
85
+ { y: ['y1', 'y2'], x: ['x1', 'x2'] }
86
+ )
87
+ )
87
88
  );
88
89
  </script>
89
90
 
@@ -131,11 +132,11 @@
131
132
  )}
132
133
  <g
133
134
  class={[className]}
134
- use:addEventHandlers={{
135
+ {@attach addEventHandlers({
135
136
  getPlotState,
136
- options: args,
137
- datum: d.datum
138
- }}>
137
+ options,
138
+ datum: d?.datum
139
+ })}>
139
140
  {#if options.onmouseenter || options.onclick}
140
141
  <!-- add invisible path in bg for easier mouse access -->
141
142
  <path
@@ -63,7 +63,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
63
63
  }>, "fill" | "fillOpacity"> & {
64
64
  data: Datum[];
65
65
  sort?: ConstantAccessor<RawValue> | {
66
- channel: "stroke" | "fill";
66
+ channel: "stroke" | "fill" | "x1" | "y1" | "x2" | "y2";
67
67
  };
68
68
  x1: ChannelAccessor<Datum>;
69
69
  y1: ChannelAccessor<Datum>;
@@ -39,7 +39,7 @@
39
39
  | 'auto'
40
40
  | Intl.DateTimeFormatOptions
41
41
  | Intl.NumberFormatOptions
42
- | ((d: RawValue) => string);
42
+ | ((d: RawValue, i: number) => string);
43
43
  tickClass?: ConstantAccessor<string, Datum>;
44
44
  /** ticks is a shorthand for defining data, tickCount or interval */
45
45
  ticks?: number | string | Datum[];
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
60
  class: string | null;
61
61
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
- }>, "fill" | "fillOpacity" | "href" | "target" | "paintOrder" | "title"> & {
62
+ }>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
63
63
  data?: Datum[] | undefined;
64
64
  automatic?: boolean;
65
65
  title?: string | false | null;
@@ -71,7 +71,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
71
71
  tickFontSize?: ConstantAccessor<number, Datum>;
72
72
  titleFontSize?: number;
73
73
  tickPadding?: number;
74
- tickFormat?: "auto" | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((d: RawValue) => string) | undefined;
74
+ tickFormat?: "auto" | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((d: RawValue, i: number) => string) | undefined;
75
75
  tickClass?: ConstantAccessor<string, Datum>;
76
76
  /** ticks is a shorthand for defining data, tickCount or interval */
77
77
  ticks?: string | number | Datum[] | undefined;
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
60
  class: string | null;
61
61
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
- }>, "fill" | "fillOpacity" | "href" | "target" | "paintOrder" | "title"> & {
62
+ }>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
63
63
  data?: Datum[] | undefined;
64
64
  automatic?: boolean;
65
65
  title?: string | false | null;
@@ -14,7 +14,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
14
14
  sort: {
15
15
  channel: string;
16
16
  order?: "ascending" | "descending";
17
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
17
+ } | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
18
18
  stroke: ChannelAccessor<Datum>;
19
19
  strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
20
20
  strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
@@ -42,7 +42,6 @@
42
42
  const plot = $derived(getPlotState());
43
43
 
44
44
  const DEFAULTS = {
45
- fill: 'currentColor',
46
45
  ...getContext<PlotDefaults>('svelteplot/_defaults').bar,
47
46
  ...getContext<PlotDefaults>('svelteplot/_defaults').barY
48
47
  };
@@ -1,77 +1,6 @@
1
- import type { ChannelAccessor, DataRecord } from '../types/index.js';
1
+ import type { DataRecord } from '../types/index.js';
2
2
  declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Partial<{
4
- filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
5
- facet?: "auto" | "include" | "exclude";
6
- fx: ChannelAccessor<Datum>;
7
- fy: ChannelAccessor<Datum>;
8
- dx: import("../types/index.js").ConstantAccessor<number, Datum>;
9
- dy: import("../types/index.js").ConstantAccessor<number, Datum>;
10
- fill: ChannelAccessor<Datum>;
11
- fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
12
- sort: {
13
- channel: string;
14
- order?: "ascending" | "descending";
15
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
16
- stroke: ChannelAccessor<Datum>;
17
- strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
18
- strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
19
- strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
20
- strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
21
- strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
22
- opacity: ChannelAccessor<Datum>;
23
- strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
24
- strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
25
- mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
26
- clipPath: string;
27
- imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
28
- shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
29
- paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
30
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
31
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
61
- cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
- }> & {
63
- data: Datum[];
64
- x?: ChannelAccessor<Datum>;
65
- y?: ChannelAccessor<Datum>;
66
- /**
67
- * the window size (the window transform's k option), an integer; defaults to 20
68
- */
69
- n?: number;
70
- /**
71
- * the band radius, a number representing a multiple of standard deviations; defaults to 2
72
- */
73
- k?: number;
74
- };
3
+ props(): any;
75
4
  events(): {};
76
5
  slots(): {};
77
6
  bindings(): "";
@@ -1,77 +1,6 @@
1
- import type { ChannelAccessor, DataRecord } from '../types/index.js';
1
+ import type { DataRecord } from '../types/index.js';
2
2
  declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Partial<{
4
- filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
5
- facet?: "auto" | "include" | "exclude";
6
- fx: ChannelAccessor<Datum>;
7
- fy: ChannelAccessor<Datum>;
8
- dx: import("../types/index.js").ConstantAccessor<number, Datum>;
9
- dy: import("../types/index.js").ConstantAccessor<number, Datum>;
10
- fill: ChannelAccessor<Datum>;
11
- fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
12
- sort: {
13
- channel: string;
14
- order?: "ascending" | "descending";
15
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
16
- stroke: ChannelAccessor<Datum>;
17
- strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
18
- strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
19
- strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
20
- strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
21
- strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
22
- opacity: ChannelAccessor<Datum>;
23
- strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
24
- strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
25
- mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
26
- clipPath: string;
27
- imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
28
- shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
29
- paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
30
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
31
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
61
- cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
- }> & {
63
- data: Datum[];
64
- x?: ChannelAccessor<Datum>;
65
- y?: ChannelAccessor<Datum>;
66
- /**
67
- * the window size (the window transform's k option), an integer; defaults to 20
68
- */
69
- n?: number;
70
- /**
71
- * the band radius, a number representing a multiple of standard deviations; defaults to 2
72
- */
73
- k?: number;
74
- };
3
+ props(): any;
75
4
  events(): {};
76
5
  slots(): {};
77
6
  bindings(): "";