@yuneta/gobj-ui 7.23.99 → 7.23.100
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/gobj-ui.cjs.js +3 -3
- package/dist/gobj-ui.es.js +3 -3
- package/package.json +1 -1
- package/src/c_yui_treedb_graph.js +12 -12
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -63567,9 +63567,9 @@ function refresh_legend(gobj) {
|
|
|
63567
63567
|
if (is_main && state.main_chosen) extras.push([
|
|
63568
63568
|
"button",
|
|
63569
63569
|
{
|
|
63570
|
-
class: "GRAPH_LEGEND_STAR button
|
|
63570
|
+
class: "GRAPH_LEGEND_STAR button",
|
|
63571
63571
|
type: "button",
|
|
63572
|
-
style: "padding:0 .5rem;",
|
|
63572
|
+
style: "padding:0 .5rem; box-shadow: inset 0 0 0 2px var(--bulma-text, #2e333d);",
|
|
63573
63573
|
title: (0, i18next.t)("main topic"),
|
|
63574
63574
|
"data-i18n-title": "main topic",
|
|
63575
63575
|
"aria-label": (0, i18next.t)("main topic"),
|
|
@@ -63578,7 +63578,7 @@ function refresh_legend(gobj) {
|
|
|
63578
63578
|
},
|
|
63579
63579
|
[[
|
|
63580
63580
|
"span",
|
|
63581
|
-
{ style:
|
|
63581
|
+
{ style: LEGEND_STAR_MAIN_STYLE },
|
|
63582
63582
|
"★"
|
|
63583
63583
|
]],
|
|
63584
63584
|
{ click: (evt) => {
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -63562,9 +63562,9 @@ function refresh_legend(gobj) {
|
|
|
63562
63562
|
if (is_main && state.main_chosen) extras.push([
|
|
63563
63563
|
"button",
|
|
63564
63564
|
{
|
|
63565
|
-
class: "GRAPH_LEGEND_STAR button
|
|
63565
|
+
class: "GRAPH_LEGEND_STAR button",
|
|
63566
63566
|
type: "button",
|
|
63567
|
-
style: "padding:0 .5rem;",
|
|
63567
|
+
style: "padding:0 .5rem; box-shadow: inset 0 0 0 2px var(--bulma-text, #2e333d);",
|
|
63568
63568
|
title: t("main topic"),
|
|
63569
63569
|
"data-i18n-title": "main topic",
|
|
63570
63570
|
"aria-label": t("main topic"),
|
|
@@ -63573,7 +63573,7 @@ function refresh_legend(gobj) {
|
|
|
63573
63573
|
},
|
|
63574
63574
|
[[
|
|
63575
63575
|
"span",
|
|
63576
|
-
{ style:
|
|
63576
|
+
{ style: LEGEND_STAR_MAIN_STYLE },
|
|
63577
63577
|
"★"
|
|
63578
63578
|
]],
|
|
63579
63579
|
{ click: (evt) => {
|
package/package.json
CHANGED
|
@@ -2632,22 +2632,22 @@ function refresh_legend(gobj)
|
|
|
2632
2632
|
* is a button too: pressing it hands the choice back to the
|
|
2633
2633
|
* graph (deduced again). On a deduced one it is a mark. */
|
|
2634
2634
|
if(is_main && state.main_chosen) {
|
|
2635
|
-
|
|
2636
|
-
|
|
2635
|
+
/* MARKED, not pressed -- the same distinction the focused
|
|
2636
|
+
* chip makes two constants above, and for the same reason
|
|
2637
|
+
* here: the star IS the gold mark of the main topic, and a
|
|
2638
|
+
* `pressed_state` repaints the ground under it. 7.23.99
|
|
2639
|
+
* made the glyph inherit the pressed ink so it could be
|
|
2640
|
+
* seen at all; that cost the colour, which is what the
|
|
2641
|
+
* star says. The ring inside the border marks the CHOICE
|
|
2642
|
+
* and leaves the gold alone. */
|
|
2643
|
+
extras.push(['button', {class: 'GRAPH_LEGEND_STAR button',
|
|
2644
|
+
type: 'button',
|
|
2645
|
+
style: 'padding:0 .5rem; ' + LEGEND_FOCUSED_STYLE,
|
|
2637
2646
|
title: t('main topic'), 'data-i18n-title': 'main topic',
|
|
2638
2647
|
'aria-label': t('main topic'),
|
|
2639
2648
|
'data-i18n-aria-label': 'main topic',
|
|
2640
2649
|
'aria-pressed': 'true'},
|
|
2641
|
-
|
|
2642
|
-
* `pressed_state` inverts the ground, and an
|
|
2643
|
-
* INLINE colour beats the ink it sets with it.
|
|
2644
|
-
* The gold then sat on the scheme's own text
|
|
2645
|
-
* colour -- 1.06:1 in dark, ~2:1 in light --
|
|
2646
|
-
* so the one star the reader CHOSE was the one
|
|
2647
|
-
* that could not be seen. `color: inherit`
|
|
2648
|
-
* takes the pressed ink, like the crosshair
|
|
2649
|
-
* and the `+N` beside it. */
|
|
2650
|
-
[['span', {style: LEGEND_GLYPH_STYLE}, '★']], {
|
|
2650
|
+
[['span', {style: LEGEND_STAR_MAIN_STYLE}, '★']], {
|
|
2651
2651
|
click: (evt) => {
|
|
2652
2652
|
evt.stopPropagation();
|
|
2653
2653
|
gobj_send_event(gobj, "EV_LEGEND_TOPIC",
|