@yuneta/gobj-ui 7.21.0 → 7.21.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.
- package/README.md +4 -1
- package/dist/gobj-ui.cjs.js +5 -5
- package/dist/gobj-ui.es.js +5 -5
- package/package.json +1 -1
- package/src/c_yui_json.js +5 -4
package/README.md
CHANGED
|
@@ -430,10 +430,13 @@ sentinels present it degrades to a plain client-side collapsible tree.
|
|
|
430
430
|
`"tree"` | `"text"` | `"graph"`) picks which. They answer three different
|
|
431
431
|
questions:
|
|
432
432
|
|
|
433
|
+
The switch reads `text · tree · graph`, flattest reading first — which is not
|
|
434
|
+
the order of arrival: the viewer opens on the **tree** (`view_mode` default).
|
|
435
|
+
|
|
433
436
|
| view | question | notes |
|
|
434
437
|
|---|---|---|
|
|
435
|
-
| `tree` | *where is this value, and what is around it* | the lazy view; the only one that can drill |
|
|
436
438
|
| `text` | *what does this document say, verbatim* | `JSON.stringify(…, 4)`, four characters per level |
|
|
439
|
+
| `tree` | *where is this value, and what is around it* | the lazy view; the only one that can drill; the default |
|
|
437
440
|
| `graph` | *what shape is this* | a hosted `C_YUI_JSON_GRAPH` child (AntV/G6) |
|
|
438
441
|
|
|
439
442
|
- **Neither text nor graph is lazy.** Both show what the client currently
|
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -10515,16 +10515,16 @@ var GCLASS_NAME$10 = "C_YUI_JSON";
|
|
|
10515
10515
|
var MAX_RENDER_ROWS = 5e3;
|
|
10516
10516
|
var MAX_TEXT_CHARS = 2e6;
|
|
10517
10517
|
var VIEWS = [
|
|
10518
|
-
{
|
|
10519
|
-
mode: "tree",
|
|
10520
|
-
icon: "yi-sitemap",
|
|
10521
|
-
key: "tree view"
|
|
10522
|
-
},
|
|
10523
10518
|
{
|
|
10524
10519
|
mode: "text",
|
|
10525
10520
|
icon: "yi-code",
|
|
10526
10521
|
key: "text view"
|
|
10527
10522
|
},
|
|
10523
|
+
{
|
|
10524
|
+
mode: "tree",
|
|
10525
|
+
icon: "yi-sitemap",
|
|
10526
|
+
key: "tree view"
|
|
10527
|
+
},
|
|
10528
10528
|
{
|
|
10529
10529
|
mode: "graph",
|
|
10530
10530
|
icon: "yi-hexagon-nodes",
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -10510,16 +10510,16 @@ var GCLASS_NAME$10 = "C_YUI_JSON";
|
|
|
10510
10510
|
var MAX_RENDER_ROWS = 5e3;
|
|
10511
10511
|
var MAX_TEXT_CHARS = 2e6;
|
|
10512
10512
|
var VIEWS = [
|
|
10513
|
-
{
|
|
10514
|
-
mode: "tree",
|
|
10515
|
-
icon: "yi-sitemap",
|
|
10516
|
-
key: "tree view"
|
|
10517
|
-
},
|
|
10518
10513
|
{
|
|
10519
10514
|
mode: "text",
|
|
10520
10515
|
icon: "yi-code",
|
|
10521
10516
|
key: "text view"
|
|
10522
10517
|
},
|
|
10518
|
+
{
|
|
10519
|
+
mode: "tree",
|
|
10520
|
+
icon: "yi-sitemap",
|
|
10521
|
+
key: "tree view"
|
|
10522
|
+
},
|
|
10523
10523
|
{
|
|
10524
10524
|
mode: "graph",
|
|
10525
10525
|
icon: "yi-hexagon-nodes",
|
package/package.json
CHANGED
package/src/c_yui_json.js
CHANGED
|
@@ -126,13 +126,14 @@ const MAX_RENDER_ROWS = 5000;
|
|
|
126
126
|
const MAX_TEXT_CHARS = 2000000;
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
|
-
* The three views, in switch order
|
|
130
|
-
*
|
|
131
|
-
*
|
|
129
|
+
* The three views, in switch order — this table IS the order of the
|
|
130
|
+
* buttons, and EV_SET_VIEW_MODE with no mode advances along it.
|
|
131
|
+
* Note the order is not the default: the viewer still OPENS on the
|
|
132
|
+
* tree (the `view_mode` attr default), it just sits second in the row.
|
|
132
133
|
*/
|
|
133
134
|
const VIEWS = [
|
|
134
|
-
{mode: "tree", icon: "yi-sitemap", key: "tree view"},
|
|
135
135
|
{mode: "text", icon: "yi-code", key: "text view"},
|
|
136
|
+
{mode: "tree", icon: "yi-sitemap", key: "tree view"},
|
|
136
137
|
{mode: "graph", icon: "yi-hexagon-nodes", key: "graph view"},
|
|
137
138
|
];
|
|
138
139
|
|