@diagrammo/dgmo 0.18.0 → 0.18.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 -4
- package/dist/advanced.cjs +5 -5
- package/dist/advanced.js +5 -5
- package/dist/auto.cjs +6 -6
- package/dist/auto.js +25 -25
- package/dist/auto.mjs +6 -6
- package/dist/cli.cjs +26 -26
- package/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/dist/internal.cjs +5 -5
- package/dist/internal.js +5 -5
- package/docs/language-reference.md +672 -42
- package/package.json +1 -1
- package/src/d3.ts +10 -7
- package/src/utils/legend-layout.ts +5 -2
package/dist/auto.mjs
CHANGED
|
@@ -3202,7 +3202,7 @@ function capsuleWidth(name, entries, containerWidth, addonWidth = 0) {
|
|
|
3202
3202
|
const baseW = LEGEND_CAPSULE_PAD * 2 + pw + 4 + addonWidth;
|
|
3203
3203
|
const ew = entriesWidth(entries);
|
|
3204
3204
|
const singleRowW = baseW + ew;
|
|
3205
|
-
if (singleRowW <= maxCapsuleW) {
|
|
3205
|
+
if (singleRowW <= maxCapsuleW + 0.5) {
|
|
3206
3206
|
return {
|
|
3207
3207
|
width: singleRowW,
|
|
3208
3208
|
entryRows: 1,
|
|
@@ -49667,7 +49667,7 @@ function renderMarkers(g, markers, scale, isVertical, innerWidth, innerHeight, o
|
|
|
49667
49667
|
});
|
|
49668
49668
|
} else {
|
|
49669
49669
|
const labelY = useReservedRow ? reservedLabelY : 6;
|
|
49670
|
-
const diamondY = useReservedRow ? -
|
|
49670
|
+
const diamondY = useReservedRow ? -(diamondSize + 1) : labelY + 14;
|
|
49671
49671
|
const lineTop = diamondY + diamondSize;
|
|
49672
49672
|
let displayLabel = marker.label;
|
|
49673
49673
|
let truncated = false;
|
|
@@ -50652,7 +50652,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
50652
50652
|
const bandX = -margin.left + 5;
|
|
50653
50653
|
const bandW = margin.left - 7;
|
|
50654
50654
|
const bandY = curY;
|
|
50655
|
-
const bandH =
|
|
50655
|
+
const bandH = sBarH;
|
|
50656
50656
|
const sBandRx = ctx.structural(4);
|
|
50657
50657
|
const sBandAccentW = ctx.structural(4);
|
|
50658
50658
|
const clipId = `tl-band-clip-${tlBandClipCounter++}`;
|
|
@@ -50660,7 +50660,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
50660
50660
|
g.append("rect").attr("class", "tl-group-header-bg").attr("data-group", lane.name).attr("x", bandX).attr("y", bandY).attr("width", bandW).attr("height", bandH).attr("rx", sBandRx).attr("fill", shapeFill(palette, laneColor, isDark, { solid })).style("pointer-events", "none");
|
|
50661
50661
|
g.append("rect").attr("class", "tl-group-header-accent").attr("data-group", lane.name).attr("x", bandX).attr("y", bandY).attr("width", sBandAccentW).attr("height", bandH).attr("fill", laneColor).attr("clip-path", `url(#${clipId})`).style("pointer-events", "none");
|
|
50662
50662
|
const headerG = g.append("g").attr("class", "tl-group-header").attr("data-group", lane.name).style("cursor", "pointer").on("mouseenter", () => fadeToGroup(g, lane.name)).on("mouseleave", () => fadeReset(g)).on("click", () => toggleGroup(lane.name));
|
|
50663
|
-
headerG.append("text").attr("x", -margin.left + ctx.aesthetic(10)).attr("y", curY +
|
|
50663
|
+
headerG.append("text").attr("x", -margin.left + ctx.aesthetic(10)).attr("y", curY + sBarH / 2).attr("dy", "0.35em").attr("text-anchor", "start").attr("fill", textColor).attr("font-size", `${sLaneHeaderFont}px`).attr("font-weight", "600").text(`${toggleIcon} ${lane.name}`);
|
|
50664
50664
|
if (lane.events.length > 0) {
|
|
50665
50665
|
const evDates = lane.events.map((ev) => parseTimelineDate(ev.date));
|
|
50666
50666
|
const evEndDates = lane.events.filter((ev) => ev.endDate).map((ev) => parseTimelineDate(ev.endDate));
|
|
@@ -50670,7 +50670,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
50670
50670
|
const sx2 = xScale(laneMaxD);
|
|
50671
50671
|
const groupBarW = Math.max(sx2 - sx1, ctx.structural(20));
|
|
50672
50672
|
const groupBarG = g.append("g").attr("class", isCollapsed ? "tl-group-summary" : "tl-group-bar").attr("data-group", lane.name).style("cursor", "pointer").on("mouseenter", () => fadeToGroup(g, lane.name)).on("mouseleave", () => fadeReset(g)).on("click", () => toggleGroup(lane.name));
|
|
50673
|
-
groupBarG.append("rect").attr("x", sx1).attr("y", curY).attr("width", groupBarW).attr("height",
|
|
50673
|
+
groupBarG.append("rect").attr("x", sx1).attr("y", curY).attr("width", groupBarW).attr("height", sBarH).attr("rx", sBarRx).attr("fill", shapeFill(palette, laneColor, isDark, { solid })).attr("stroke", laneColor).attr("stroke-width", sBarStroke);
|
|
50674
50674
|
}
|
|
50675
50675
|
if (isCollapsed) {
|
|
50676
50676
|
curY += rowH + sGroupGap;
|
|
@@ -54514,7 +54514,7 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
54514
54514
|
|
|
54515
54515
|
// src/auto/index.ts
|
|
54516
54516
|
init_safe_href();
|
|
54517
|
-
var VERSION = "0.18.
|
|
54517
|
+
var VERSION = "0.18.1";
|
|
54518
54518
|
var DEFAULTS = {
|
|
54519
54519
|
theme: "auto",
|
|
54520
54520
|
palette: "nord",
|