@diagrammo/dgmo 0.44.0 → 0.44.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/dist/advanced.cjs +0 -2
- package/dist/advanced.js +0 -2
- package/dist/auto.cjs +1 -3
- package/dist/auto.js +3 -3
- package/dist/auto.mjs +1 -3
- package/dist/cli.cjs +2 -2
- package/dist/element.cjs +1 -3
- package/dist/element.js +3 -3
- package/dist/element.mjs +1 -3
- package/dist/index.cjs +0 -2
- package/dist/index.js +0 -2
- package/package.json +1 -1
- package/src/block/renderer.ts +4 -5
- package/src/event-line/renderer.ts +4 -5
package/dist/element.mjs
CHANGED
|
@@ -27471,7 +27471,6 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
27471
27471
|
const { contentW, totalH, spineY, eraBaseY, laneNear } = layout;
|
|
27472
27472
|
const svg = d3Selection6.select(container).append("svg").attr("width", contentW).attr("height", totalH).attr("viewBox", `0 0 ${contentW} ${totalH}`).attr("preserveAspectRatio", "xMidYMin meet").attr("xmlns", "http://www.w3.org/2000/svg").style("font-family", FONT_FAMILY);
|
|
27473
27473
|
if (!exportMode) svg.append("style").text(HOVER_CSS);
|
|
27474
|
-
svg.append("rect").attr("width", contentW).attr("height", totalH).attr("fill", palette.bg);
|
|
27475
27474
|
if (showTitle) {
|
|
27476
27475
|
const t = svg.append("text").attr("class", "chart-title").attr("x", contentW / 2).attr("y", TITLE_Y).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-family", FONT_FAMILY).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).attr("data-line-number", parsed.titleLineNumber ?? 1).text(parsed.title);
|
|
27477
27476
|
if (onClickItem && parsed.titleLineNumber) {
|
|
@@ -62724,7 +62723,6 @@ function renderBlock(container, parsed, palette, isDark, exportDims, options = {
|
|
|
62724
62723
|
const offsetX = areaX + (areaW - layout.width * scale) / 2;
|
|
62725
62724
|
const offsetY = areaY;
|
|
62726
62725
|
const svg = d3Selection31.select(container).append("svg").attr("width", width).attr("height", height).attr("viewBox", `0 0 ${width} ${height}`).attr("preserveAspectRatio", "xMidYMin meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("class", "dgmo-block").style("font-family", FONT_FAMILY);
|
|
62727
|
-
svg.append("rect").attr("width", width).attr("height", height).attr("fill", palette.bg);
|
|
62728
62726
|
if (showTitle) {
|
|
62729
62727
|
const title = svg.append("text").attr("class", "chart-title").attr("x", width / 2).attr("y", TITLE_Y).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-family", FONT_FAMILY).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).text(parsed.title);
|
|
62730
62728
|
if (parsed.titleLineNumber !== null) {
|
|
@@ -69868,7 +69866,7 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
69868
69866
|
|
|
69869
69867
|
// src/auto/shared.ts
|
|
69870
69868
|
init_safe_href();
|
|
69871
|
-
var VERSION = "0.44.
|
|
69869
|
+
var VERSION = "0.44.1";
|
|
69872
69870
|
var EDITOR_BASE_URL = "https://online.diagrammo.app";
|
|
69873
69871
|
var ARIA_LABEL_MAX = 200;
|
|
69874
69872
|
var COPIED_INTERACTION_MS = 1200;
|
package/dist/index.cjs
CHANGED
|
@@ -27475,7 +27475,6 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
27475
27475
|
const { contentW, totalH, spineY, eraBaseY, laneNear } = layout;
|
|
27476
27476
|
const svg = d3Selection6.select(container).append("svg").attr("width", contentW).attr("height", totalH).attr("viewBox", `0 0 ${contentW} ${totalH}`).attr("preserveAspectRatio", "xMidYMin meet").attr("xmlns", "http://www.w3.org/2000/svg").style("font-family", FONT_FAMILY);
|
|
27477
27477
|
if (!exportMode) svg.append("style").text(HOVER_CSS);
|
|
27478
|
-
svg.append("rect").attr("width", contentW).attr("height", totalH).attr("fill", palette.bg);
|
|
27479
27478
|
if (showTitle) {
|
|
27480
27479
|
const t = svg.append("text").attr("class", "chart-title").attr("x", contentW / 2).attr("y", TITLE_Y).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-family", FONT_FAMILY).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).attr("data-line-number", parsed.titleLineNumber ?? 1).text(parsed.title);
|
|
27481
27480
|
if (onClickItem && parsed.titleLineNumber) {
|
|
@@ -62715,7 +62714,6 @@ function renderBlock(container, parsed, palette, isDark, exportDims, options = {
|
|
|
62715
62714
|
const offsetX = areaX + (areaW - layout.width * scale) / 2;
|
|
62716
62715
|
const offsetY = areaY;
|
|
62717
62716
|
const svg = d3Selection31.select(container).append("svg").attr("width", width).attr("height", height).attr("viewBox", `0 0 ${width} ${height}`).attr("preserveAspectRatio", "xMidYMin meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("class", "dgmo-block").style("font-family", FONT_FAMILY);
|
|
62718
|
-
svg.append("rect").attr("width", width).attr("height", height).attr("fill", palette.bg);
|
|
62719
62717
|
if (showTitle) {
|
|
62720
62718
|
const title = svg.append("text").attr("class", "chart-title").attr("x", width / 2).attr("y", TITLE_Y).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-family", FONT_FAMILY).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).text(parsed.title);
|
|
62721
62719
|
if (parsed.titleLineNumber !== null) {
|
package/dist/index.js
CHANGED
|
@@ -27471,7 +27471,6 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
27471
27471
|
const { contentW, totalH, spineY, eraBaseY, laneNear } = layout;
|
|
27472
27472
|
const svg = d3Selection6.select(container).append("svg").attr("width", contentW).attr("height", totalH).attr("viewBox", `0 0 ${contentW} ${totalH}`).attr("preserveAspectRatio", "xMidYMin meet").attr("xmlns", "http://www.w3.org/2000/svg").style("font-family", FONT_FAMILY);
|
|
27473
27473
|
if (!exportMode) svg.append("style").text(HOVER_CSS);
|
|
27474
|
-
svg.append("rect").attr("width", contentW).attr("height", totalH).attr("fill", palette.bg);
|
|
27475
27474
|
if (showTitle) {
|
|
27476
27475
|
const t = svg.append("text").attr("class", "chart-title").attr("x", contentW / 2).attr("y", TITLE_Y).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-family", FONT_FAMILY).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).attr("data-line-number", parsed.titleLineNumber ?? 1).text(parsed.title);
|
|
27477
27476
|
if (onClickItem && parsed.titleLineNumber) {
|
|
@@ -62724,7 +62723,6 @@ function renderBlock(container, parsed, palette, isDark, exportDims, options = {
|
|
|
62724
62723
|
const offsetX = areaX + (areaW - layout.width * scale) / 2;
|
|
62725
62724
|
const offsetY = areaY;
|
|
62726
62725
|
const svg = d3Selection31.select(container).append("svg").attr("width", width).attr("height", height).attr("viewBox", `0 0 ${width} ${height}`).attr("preserveAspectRatio", "xMidYMin meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("class", "dgmo-block").style("font-family", FONT_FAMILY);
|
|
62727
|
-
svg.append("rect").attr("width", width).attr("height", height).attr("fill", palette.bg);
|
|
62728
62726
|
if (showTitle) {
|
|
62729
62727
|
const title = svg.append("text").attr("class", "chart-title").attr("x", width / 2).attr("y", TITLE_Y).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-family", FONT_FAMILY).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).text(parsed.title);
|
|
62730
62728
|
if (parsed.titleLineNumber !== null) {
|
package/package.json
CHANGED
package/src/block/renderer.ts
CHANGED
|
@@ -139,11 +139,10 @@ export function renderBlock(
|
|
|
139
139
|
.attr('class', 'dgmo-block')
|
|
140
140
|
.style('font-family', FONT_FAMILY);
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
.attr('fill', palette.bg);
|
|
142
|
+
// No opaque full-canvas background rect: the SVG's CSS `background` style
|
|
143
|
+
// (and resvg's background option on PNG export) supplies the fill, so
|
|
144
|
+
// transparent-theme / Obsidian embeds blend with the host instead of
|
|
145
|
+
// showing a dark box — matching every other chart type.
|
|
147
146
|
|
|
148
147
|
if (showTitle) {
|
|
149
148
|
const title = svg
|
|
@@ -739,11 +739,10 @@ export function renderEventLine(
|
|
|
739
739
|
|
|
740
740
|
if (!exportMode) svg.append('style').text(HOVER_CSS);
|
|
741
741
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
.attr('fill', palette.bg);
|
|
742
|
+
// No opaque full-canvas background rect: the SVG's CSS `background` style
|
|
743
|
+
// (and resvg's background option on PNG export) supplies the fill, so
|
|
744
|
+
// transparent-theme / Obsidian embeds blend with the host instead of
|
|
745
|
+
// showing a dark box — matching every other chart type.
|
|
747
746
|
|
|
748
747
|
if (showTitle) {
|
|
749
748
|
const t = svg
|