@octanejs/visx 0.1.5 → 0.1.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/visx",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -80,35 +80,35 @@
80
80
  "./zoom": "./src/zoom/index.ts"
81
81
  },
82
82
  "dependencies": {
83
- "@floating-ui/dom": "^1.7.0",
83
+ "@floating-ui/dom": "^1.8.0",
84
84
  "@types/d3-array": "3.0.3",
85
- "@types/d3-chord": "^1.0.9",
85
+ "@types/d3-chord": "^1.0.14",
86
86
  "@types/d3-color": "3.1.0",
87
87
  "@types/d3-delaunay": "6.0.1",
88
88
  "@types/d3-format": "3.0.1",
89
89
  "@types/d3-geo": "3.1.0",
90
- "@types/d3-hierarchy": "^1.1.6",
90
+ "@types/d3-hierarchy": "^1.1.11",
91
91
  "@types/d3-interpolate": "3.0.1",
92
92
  "@types/d3-path": "3.1.1",
93
- "@types/d3-random": "^2.2.0",
94
- "@types/d3-sankey": "^0.12.4",
93
+ "@types/d3-random": "^2.2.3",
94
+ "@types/d3-sankey": "^0.12.5",
95
95
  "@types/d3-scale": "4.0.2",
96
96
  "@types/d3-shape": "3.1.7",
97
97
  "@types/d3-time": "3.0.0",
98
98
  "@types/d3-time-format": "2.1.0",
99
- "@types/d3-voronoi": "^1.1.9",
99
+ "@types/d3-voronoi": "^1.1.12",
100
100
  "@types/geojson": "^7946.0.16",
101
- "@types/react": "^19.0.0",
101
+ "@types/react": "^19.2.17",
102
102
  "@use-gesture/core": "10.3.1",
103
- "classnames": "^2.3.1",
103
+ "classnames": "^2.5.1",
104
104
  "d3-array": "3.2.1",
105
- "d3-chord": "^1.0.4",
106
- "d3-cloud": "^1.2.7",
105
+ "d3-chord": "^1.0.6",
106
+ "d3-cloud": "^1.2.9",
107
107
  "d3-color": "3.1.0",
108
108
  "d3-delaunay": "6.0.2",
109
109
  "d3-format": "3.1.0",
110
110
  "d3-geo": "3.1.0",
111
- "d3-hierarchy": "^1.1.4",
111
+ "d3-hierarchy": "^1.1.9",
112
112
  "d3-interpolate": "3.0.1",
113
113
  "d3-interpolate-path": "2.2.1",
114
114
  "d3-path": "3.1.0",
@@ -118,20 +118,20 @@
118
118
  "d3-shape": "3.2.0",
119
119
  "d3-time": "3.1.0",
120
120
  "d3-time-format": "4.1.0",
121
- "d3-voronoi": "^1.1.2",
121
+ "d3-voronoi": "^1.1.4",
122
122
  "internmap": "2.0.3",
123
123
  "mitt": "^2.1.0",
124
124
  "reduce-css-calc": "^1.3.0",
125
125
  "svg-path-properties": "2.0.2",
126
- "@octanejs/floating-ui": "0.1.10"
126
+ "@octanejs/floating-ui": "0.1.12"
127
127
  },
128
128
  "peerDependencies": {
129
- "octane": "0.1.11"
129
+ "octane": "0.1.13"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@juggle/resize-observer": "^3.4.0",
133
- "@react-spring/web": "^10.0.0",
134
- "@tsrx/react": "^0.2.44",
133
+ "@react-spring/web": "^10.1.2",
134
+ "@tsrx/react": "^0.2.46",
135
135
  "@visx/chord": "4.0.0",
136
136
  "@visx/annotation": "4.0.0",
137
137
  "@visx/brush": "4.0.0",
@@ -143,13 +143,13 @@
143
143
  "@visx/visx": "4.0.0",
144
144
  "@visx/xychart": "4.0.0",
145
145
  "@visx/zoom": "4.0.0",
146
- "@vitest/coverage-istanbul": "4.1.9",
146
+ "@vitest/coverage-istanbul": "4.1.10",
147
147
  "esbuild": "^0.28.1",
148
- "react": "^19.2.0",
149
- "react-dom": "^19.2.0",
148
+ "react": "^19.2.7",
149
+ "react-dom": "^19.2.7",
150
150
  "typescript": "^5.9.3",
151
- "vitest": "^4.1.9",
152
- "octane": "0.1.11"
151
+ "vitest": "^4.1.10",
152
+ "octane": "0.1.13"
153
153
  },
154
154
  "scripts": {
155
155
  "compile:check": "node scripts/check-tsrx-compile.mjs",
package/src/a11y/types.ts CHANGED
@@ -1,12 +1,5 @@
1
1
  export type ChartType =
2
- | 'line'
3
- | 'bar'
4
- | 'scatter'
5
- | 'area'
6
- | 'pie'
7
- | 'donut'
8
- | 'histogram'
9
- | 'heatmap';
2
+ 'line' | 'bar' | 'scatter' | 'area' | 'pie' | 'donut' | 'histogram' | 'heatmap';
10
3
 
11
4
  export type ChartA11yValue = string | number | Date;
12
5
 
@@ -37,14 +37,7 @@ export interface PartialBrushStartEnd {
37
37
  }
38
38
 
39
39
  export type ResizeTriggerAreas =
40
- | 'left'
41
- | 'right'
42
- | 'top'
43
- | 'bottom'
44
- | 'topLeft'
45
- | 'topRight'
46
- | 'bottomLeft'
47
- | 'bottomRight';
40
+ 'left' | 'right' | 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
48
41
 
49
42
  export type BrushingType = 'move' | 'select' | ResizeTriggerAreas;
50
43
  export type BrushPageOffset = {
@@ -5,9 +5,4 @@ import type {
5
5
  } from 'react';
6
6
 
7
7
  export type EventType =
8
- | MouseEvent
9
- | TouchEvent
10
- | FocusEvent
11
- | ReactFocusEvent
12
- | ReactMouseEvent
13
- | ReactTouchEvent;
8
+ MouseEvent | TouchEvent | FocusEvent | ReactFocusEvent | ReactMouseEvent | ReactTouchEvent;
package/src/geo/types.ts CHANGED
@@ -6,9 +6,4 @@ export type Projection = ProjectionPreset | (() => GeoProjection);
6
6
 
7
7
  // @TODO: Implement all projections of d3-geo
8
8
  export type ProjectionPreset =
9
- | 'orthographic'
10
- | 'albers'
11
- | 'albersUsa'
12
- | 'mercator'
13
- | 'naturalEarth'
14
- | 'equalEarth';
9
+ 'orthographic' | 'albers' | 'albersUsa' | 'mercator' | 'naturalEarth' | 'equalEarth';
@@ -54,11 +54,4 @@ export type ShapeStyleAccessor<Datum, Output> = (
54
54
  ) => CSSProperties | undefined; // TODO: ideally this would support SVGProps, but this is invalid for Rect/Circle shapes
55
55
 
56
56
  export type FlexDirection =
57
- | 'inherit'
58
- | 'initial'
59
- | 'revert'
60
- | 'unset'
61
- | 'column'
62
- | 'column-reverse'
63
- | 'row'
64
- | 'row-reverse';
57
+ 'inherit' | 'initial' | 'revert' | 'unset' | 'column' | 'column-reverse' | 'row' | 'row-reverse';
@@ -157,13 +157,7 @@ export type TimeScaleType = 'time' | 'utc';
157
157
 
158
158
  /** Scales that take continuous domains and return continuous ranges */
159
159
  export type ContinuousScaleType =
160
- | 'linear'
161
- | 'log'
162
- | 'pow'
163
- | 'sqrt'
164
- | 'symlog'
165
- | 'radial'
166
- | TimeScaleType;
160
+ 'linear' | 'log' | 'pow' | 'sqrt' | 'symlog' | 'radial' | TimeScaleType;
167
161
  /** Scales that convert continuous domains to discrete ranges */
168
162
  export type DiscretizingScaleType = 'quantile' | 'quantize' | 'threshold';
169
163
  /** Scales that take discrete domains and return discrete ranges */
@@ -1,12 +1,5 @@
1
1
  export type ScaleInterpolate =
2
- | 'rgb'
3
- | 'lab'
4
- | 'hcl'
5
- | 'hsl'
6
- | 'hsl-long'
7
- | 'hcl-long'
8
- | 'cubehelix'
9
- | 'cubehelix-long';
2
+ 'rgb' | 'lab' | 'hcl' | 'hsl' | 'hsl-long' | 'hcl-long' | 'cubehelix' | 'cubehelix-long';
10
3
 
11
4
  export interface ScaleInterpolateParams {
12
5
  type: 'rgb' | 'cubehelix' | 'cubehelix-long';
@@ -157,7 +157,7 @@ function updateScale<
157
157
  scale: D3Scale<Output, DiscreteInput, ThresholdInput>,
158
158
  config?: ScaleConfigWithoutType<Output, DiscreteInput, ThresholdInput>,
159
159
  ) {
160
- return applyAllOperators(scale.copy(), config);
160
+ return applyAllOperators<Output, DiscreteInput, ThresholdInput>(scale.copy(), config);
161
161
  }
162
162
 
163
163
  export default updateScale;
@@ -58,9 +58,7 @@ export interface WordcloudConfig<Datum extends BaseDatum> {
58
58
  * @default archimedean
59
59
  */
60
60
  spiral?:
61
- | 'archimedean'
62
- | 'rectangular'
63
- | ((size: [number, number]) => (t: number) => [number, number]);
61
+ 'archimedean' | 'rectangular' | ((size: [number, number]) => (t: number) => [number, number]);
64
62
  /**
65
63
  * Sets the internal random number generator, used for selecting the initial position of each word,
66
64
  * and the clockwise/counterclockwise direction of the spiral for each word. Random function should return a number in the range [0, 1).
@@ -14,8 +14,7 @@ export default class DataRegistry<
14
14
  /** Add one or more entries to the registry. */
15
15
  public registerData(
16
16
  entryOrEntries:
17
- | DataRegistryEntry<XScale, YScale, Datum>
18
- | DataRegistryEntry<XScale, YScale, Datum>[],
17
+ DataRegistryEntry<XScale, YScale, Datum> | DataRegistryEntry<XScale, YScale, Datum>[],
19
18
  ) {
20
19
  const entries = Array.isArray(entryOrEntries) ? entryOrEntries : [entryOrEntries];
21
20
  entries.forEach((currEntry) => {
package/src/zoom/types.ts CHANGED
@@ -10,12 +10,7 @@ import type {
10
10
  export type GenericWheelEvent = ReactWheelEvent | WheelEvent;
11
11
 
12
12
  export type InteractionEvent =
13
- | ReactMouseEvent
14
- | ReactTouchEvent
15
- | ReactPointerEvent
16
- | MouseEvent
17
- | TouchEvent
18
- | PointerEvent;
13
+ ReactMouseEvent | ReactTouchEvent | ReactPointerEvent | MouseEvent | TouchEvent | PointerEvent;
19
14
 
20
15
  export interface TransformMatrix {
21
16
  scaleX: number;