allotaxonometer-ui 0.1.8 → 0.1.9
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/index.js +7 -10
- package/dist/ssr/index.js +6 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,9 +33,9 @@ function style(props) {
|
|
|
33
33
|
|
|
34
34
|
grey: [1, 1, 1].map(v => v * 0.75),
|
|
35
35
|
darkgrey: [1, 1, 1].map(v => v * 0.55),
|
|
36
|
-
darkergrey: [1, 1, 1].map(v => v * 0.
|
|
37
|
-
verydarkgrey: [1, 1, 1].map(v => v * 0.
|
|
38
|
-
superdarkgrey: [1, 1, 1].map(v => v * 0.
|
|
36
|
+
darkergrey: [1, 1, 1].map(v => v * 0.50),
|
|
37
|
+
verydarkgrey: [1, 1, 1].map(v => v * 0.55),
|
|
38
|
+
superdarkgrey: [1, 1, 1].map(v => v * 0.55),
|
|
39
39
|
reallyverdarkgrey: [1, 1, 1].map(v => v * 0.05),
|
|
40
40
|
|
|
41
41
|
orange: [255, 116, 0].map(v => v / 255)
|
|
@@ -1240,15 +1240,10 @@ function Dashboard($$anchor, $$props) {
|
|
|
1240
1240
|
DashboardWidth = $.prop($$props, 'DashboardWidth', 3, 1200),
|
|
1241
1241
|
DiamondHeight = $.prop($$props, 'DiamondHeight', 3, 600),
|
|
1242
1242
|
DiamondWidth = $.prop($$props, 'DiamondWidth', 3, 600),
|
|
1243
|
+
WordshiftWidth = $.prop($$props, 'WordshiftWidth', 3, 640),
|
|
1243
1244
|
marginInner = $.prop($$props, 'marginInner', 3, 160),
|
|
1244
1245
|
marginDiamond = $.prop($$props, 'marginDiamond', 3, 40),
|
|
1245
1246
|
max_count_log = $.prop($$props, 'max_count_log', 3, undefined);
|
|
1246
|
-
$.prop($$props, 'class', 3, '');
|
|
1247
|
-
$.prop($$props, 'style', 3, '');
|
|
1248
|
-
$.prop($$props, 'showDiamond', 3, true);
|
|
1249
|
-
$.prop($$props, 'showWordshift', 3, true);
|
|
1250
|
-
$.prop($$props, 'showDivergingBar', 3, true);
|
|
1251
|
-
$.prop($$props, 'showLegend', 3, true);
|
|
1252
1247
|
|
|
1253
1248
|
let max_shift = $.derived(() => barData().length > 0 ? Math.max(...barData().map((d) => Math.abs(d.metric))) : 1);
|
|
1254
1249
|
|
|
@@ -1373,7 +1368,9 @@ function Dashboard($$anchor, $$props) {
|
|
|
1373
1368
|
get xDomain() {
|
|
1374
1369
|
return $.get(wordshiftXDomain);
|
|
1375
1370
|
},
|
|
1376
|
-
width
|
|
1371
|
+
get width() {
|
|
1372
|
+
return WordshiftWidth();
|
|
1373
|
+
},
|
|
1377
1374
|
marginLeft: 110
|
|
1378
1375
|
});
|
|
1379
1376
|
|
package/dist/ssr/index.js
CHANGED
|
@@ -21,9 +21,9 @@ const rawColors = {
|
|
|
21
21
|
lightgreyish: [1, 1, 1].map((v) => v * 0.8),
|
|
22
22
|
grey: [1, 1, 1].map((v) => v * 0.75),
|
|
23
23
|
darkgrey: [1, 1, 1].map((v) => v * 0.55),
|
|
24
|
-
darkergrey: [1, 1, 1].map((v) => v * 0.
|
|
25
|
-
verydarkgrey: [1, 1, 1].map((v) => v * 0.
|
|
26
|
-
superdarkgrey: [1, 1, 1].map((v) => v * 0.
|
|
24
|
+
darkergrey: [1, 1, 1].map((v) => v * 0.5),
|
|
25
|
+
verydarkgrey: [1, 1, 1].map((v) => v * 0.55),
|
|
26
|
+
superdarkgrey: [1, 1, 1].map((v) => v * 0.55),
|
|
27
27
|
reallyverdarkgrey: [1, 1, 1].map((v) => v * 0.05),
|
|
28
28
|
orange: [255, 116, 0].map((v) => v / 255)
|
|
29
29
|
};
|
|
@@ -484,15 +484,10 @@ function Dashboard($$payload, $$props) {
|
|
|
484
484
|
DashboardWidth = 1200,
|
|
485
485
|
DiamondHeight = 600,
|
|
486
486
|
DiamondWidth = 600,
|
|
487
|
+
WordshiftWidth = 640,
|
|
487
488
|
marginInner = 160,
|
|
488
489
|
marginDiamond = 40,
|
|
489
|
-
max_count_log = void 0
|
|
490
|
-
class: className = "",
|
|
491
|
-
style: style2 = "",
|
|
492
|
-
showDiamond = true,
|
|
493
|
-
showWordshift = true,
|
|
494
|
-
showDivergingBar = true,
|
|
495
|
-
showLegend = true
|
|
490
|
+
max_count_log = void 0
|
|
496
491
|
} = $$props;
|
|
497
492
|
let max_shift = barData.length > 0 ? Math.max(...barData.map((d) => Math.abs(d.metric))) : 1;
|
|
498
493
|
let wordshiftXDomain = xDomain || [-max_shift * 1.5, max_shift * 1.5];
|
|
@@ -520,7 +515,7 @@ function Dashboard($$payload, $$props) {
|
|
|
520
515
|
Wordshift($$payload, {
|
|
521
516
|
barData,
|
|
522
517
|
xDomain: wordshiftXDomain,
|
|
523
|
-
width:
|
|
518
|
+
width: WordshiftWidth,
|
|
524
519
|
marginLeft: 110
|
|
525
520
|
});
|
|
526
521
|
$$payload.out += `<!----></div></div></div></div>`;
|