@samizdata/mozaic 0.4.0 → 0.4.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.
|
@@ -281,6 +281,8 @@ your project and change anything.
|
|
|
281
281
|
text-anchor="end">{line}</text
|
|
282
282
|
>
|
|
283
283
|
{/each}
|
|
284
|
+
<!-- Under the rows, so group names (with a background halo) and dots sit on top of it. -->
|
|
285
|
+
<line class="mz-percentile-you" x1={px} x2={px} y1={-4} y2={plot.height} />
|
|
284
286
|
{#each groups as g, i (g.name)}
|
|
285
287
|
{@const rowTop = plot.y(g.name) ?? 0}
|
|
286
288
|
{@const c = stripColor(g)}
|
|
@@ -332,7 +334,6 @@ your project and change anything.
|
|
|
332
334
|
>
|
|
333
335
|
</g>
|
|
334
336
|
{/each}
|
|
335
|
-
<line class="mz-percentile-you" x1={px} x2={px} y1={-4} y2={plot.height} />
|
|
336
337
|
<text class="mz-percentile-you-label" x={px} y={-8} text-anchor={anchor}>{you}</text>
|
|
337
338
|
{@render annotations?.(plot)}
|
|
338
339
|
</Svg>
|
|
@@ -429,6 +430,13 @@ your project and change anything.
|
|
|
429
430
|
.mz-percentile-you-label {
|
|
430
431
|
font-weight: var(--mz-weight-strong);
|
|
431
432
|
}
|
|
433
|
+
/* A background-coloured outline keeps names legible where the "you" line crosses them. */
|
|
434
|
+
.mz-percentile-name {
|
|
435
|
+
paint-order: stroke;
|
|
436
|
+
stroke: var(--mz-color-bg);
|
|
437
|
+
stroke-width: 4px;
|
|
438
|
+
stroke-linejoin: round;
|
|
439
|
+
}
|
|
432
440
|
.mz-percentile-readout {
|
|
433
441
|
font-variant-numeric: tabular-nums;
|
|
434
442
|
}
|
package/package.json
CHANGED
|
@@ -281,6 +281,8 @@ your project and change anything.
|
|
|
281
281
|
text-anchor="end">{line}</text
|
|
282
282
|
>
|
|
283
283
|
{/each}
|
|
284
|
+
<!-- Under the rows, so group names (with a background halo) and dots sit on top of it. -->
|
|
285
|
+
<line class="mz-percentile-you" x1={px} x2={px} y1={-4} y2={plot.height} />
|
|
284
286
|
{#each groups as g, i (g.name)}
|
|
285
287
|
{@const rowTop = plot.y(g.name) ?? 0}
|
|
286
288
|
{@const c = stripColor(g)}
|
|
@@ -332,7 +334,6 @@ your project and change anything.
|
|
|
332
334
|
>
|
|
333
335
|
</g>
|
|
334
336
|
{/each}
|
|
335
|
-
<line class="mz-percentile-you" x1={px} x2={px} y1={-4} y2={plot.height} />
|
|
336
337
|
<text class="mz-percentile-you-label" x={px} y={-8} text-anchor={anchor}>{you}</text>
|
|
337
338
|
{@render annotations?.(plot)}
|
|
338
339
|
</Svg>
|
|
@@ -429,6 +430,13 @@ your project and change anything.
|
|
|
429
430
|
.mz-percentile-you-label {
|
|
430
431
|
font-weight: var(--mz-weight-strong);
|
|
431
432
|
}
|
|
433
|
+
/* A background-coloured outline keeps names legible where the "you" line crosses them. */
|
|
434
|
+
.mz-percentile-name {
|
|
435
|
+
paint-order: stroke;
|
|
436
|
+
stroke: var(--mz-color-bg);
|
|
437
|
+
stroke-width: 4px;
|
|
438
|
+
stroke-linejoin: round;
|
|
439
|
+
}
|
|
432
440
|
.mz-percentile-readout {
|
|
433
441
|
font-variant-numeric: tabular-nums;
|
|
434
442
|
}
|