@john-guerra/fisheye-nav 0.1.1 → 0.1.2
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/dist/fisheye-nav.esm.js +3 -3
- package/dist/fisheye-nav.js +3 -3
- package/dist/react.esm.js +3 -3
- package/package.json +2 -2
- package/src/fisheyeNav.js +1 -6
package/dist/fisheye-nav.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// @john-guerra/fisheye-nav v0.1.
|
|
2
|
-
// reactive-widget-helper v0.0.
|
|
1
|
+
// @john-guerra/fisheye-nav v0.1.2 Copyright (c) 2026 John Alexis Guerra Gómez
|
|
2
|
+
// reactive-widget-helper v0.0.4 Copyright (c) 2024 John Alexis Guerra Gómez
|
|
3
3
|
function ReactiveWidget(
|
|
4
4
|
target,
|
|
5
|
-
{ showValue = () => {}, value } = {}
|
|
5
|
+
{ showValue = () => {}, value } = {},
|
|
6
6
|
) {
|
|
7
7
|
// 🧰 The interval value selected by the user interaction
|
|
8
8
|
let intervalValue = value;
|
package/dist/fisheye-nav.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// @john-guerra/fisheye-nav v0.1.
|
|
1
|
+
// @john-guerra/fisheye-nav v0.1.2 Copyright (c) 2026 John Alexis Guerra Gómez
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
5
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fisheyeNav = {}));
|
|
6
6
|
})(this, (function (exports) { 'use strict';
|
|
7
7
|
|
|
8
|
-
// reactive-widget-helper v0.0.
|
|
8
|
+
// reactive-widget-helper v0.0.4 Copyright (c) 2024 John Alexis Guerra Gómez
|
|
9
9
|
function ReactiveWidget(
|
|
10
10
|
target,
|
|
11
|
-
{ showValue = () => {}, value } = {}
|
|
11
|
+
{ showValue = () => {}, value } = {},
|
|
12
12
|
) {
|
|
13
13
|
// 🧰 The interval value selected by the user interaction
|
|
14
14
|
let intervalValue = value;
|
package/dist/react.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// @john-guerra/fisheye-nav v0.1.
|
|
1
|
+
// @john-guerra/fisheye-nav v0.1.2 Copyright (c) 2026 John Alexis Guerra Gómez
|
|
2
2
|
import { useRef, useEffect, createElement } from 'react';
|
|
3
3
|
|
|
4
|
-
// reactive-widget-helper v0.0.
|
|
4
|
+
// reactive-widget-helper v0.0.4 Copyright (c) 2024 John Alexis Guerra Gómez
|
|
5
5
|
function ReactiveWidget(
|
|
6
6
|
target,
|
|
7
|
-
{ showValue = () => {}, value } = {}
|
|
7
|
+
{ showValue = () => {}, value } = {},
|
|
8
8
|
) {
|
|
9
9
|
// 🧰 The interval value selected by the user interaction
|
|
10
10
|
let intervalValue = value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@john-guerra/fisheye-nav",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A focus+context navigator for hierarchies: an icicle whose leaf axis is fisheyed, or a flat list indented by level. Vanilla reactive widget, with Svelte and React wrappers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/fisheye-nav.min.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"d3-hierarchy": "^3.1.2",
|
|
52
52
|
"d3-scale": "^4.0.2",
|
|
53
53
|
"d3-selection": "^3.0.0",
|
|
54
|
-
"reactive-widget-helper": "^0.0.
|
|
54
|
+
"reactive-widget-helper": "^0.0.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": ">=17",
|
package/src/fisheyeNav.js
CHANGED
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
* `input` — otherwise every mousemove would look like a selection.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
// `"type": "module"` but points `main` at a UMD bundle, so Node's ESM resolver
|
|
16
|
-
// loads it, finds no exports, and hands back `undefined`. Browsers and bundlers
|
|
17
|
-
// dodge this by preferring the `module` field; Node (vitest, SSR) does not.
|
|
18
|
-
// Remove this once upstream ships an `exports` map.
|
|
19
|
-
import ReactiveWidget from "reactive-widget-helper/dist/ReactiveWidget.es.js";
|
|
14
|
+
import ReactiveWidget from "reactive-widget-helper";
|
|
20
15
|
import { pointer } from "d3-selection";
|
|
21
16
|
import { normalize, leavesOf, idOfPath } from "./hierarchy.js";
|
|
22
17
|
import { layout, LAYOUT_DEFAULTS } from "./layout/index.js";
|