[153] Strichmuster einheitlich in Papier-mm: Linientypen im Kern (line_pattern), Musterphase mit Strich an den Enden in Plan-SVG, Druck-SVG, PDF und Strich-Shader, Achsen massstabsunabhängig
This commit is contained in:
44 files changed
+776
-127
No files matched your search
@@ -60,10 +60,10 @@
|
||||
<polygon points="4.12,6.06564 4.88,6.06564 4.88,5.10564 4.12,5.10564" fill="#d3d8dd" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="4,5.06564 5,5.06564 5,4.98564 4,4.98564" fill="#a7adb5" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4,6.18564 4.08,6.18564 4.08,5.06564 4,5.06564" fill="#a7adb5" stroke="none" stroke-width="0"/>
|
||||
<line x1="4.88" y1="6.06564" x2="4.12" y2="5.58564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<line x1="4.88" y1="5.10564" x2="4.12" y2="5.58564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<line x1="4.12" y1="6.06564" x2="4.5" y2="5.10564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<line x1="4.88" y1="6.06564" x2="4.5" y2="5.10564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18"/>
|
||||
<line x1="4.88" y1="6.06564" x2="4.12" y2="5.58564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18" stroke-dashoffset="0.06056"/>
|
||||
<line x1="4.88" y1="5.10564" x2="4.12" y2="5.58564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18" stroke-dashoffset="0.06056"/>
|
||||
<line x1="4.12" y1="6.06564" x2="4.5" y2="5.10564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18" stroke-dashoffset="0.19376"/>
|
||||
<line x1="4.88" y1="6.06564" x2="4.5" y2="5.10564" stroke="#7d858f" stroke-width="0.01" stroke-dasharray="0.22 0.18" stroke-dashoffset="0.19376"/>
|
||||
<polygon points="0.6,1.88564 6.4,1.88564 6.4,2.05885 0.6,2.05885" fill="#b8735c" stroke="none" stroke-width="0"/>
|
||||
<polyline points="1.8,7.08564 1.8,4.98564 2.7,4.98564 2.7,7.08564" fill="none" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="5,6.18564 4,6.18564 4,4.98564 5,4.98564" fill="none" stroke="#2b3039" stroke-width="0.013"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.6 KiB |
@@ -30,32 +30,32 @@
|
||||
<polygon points="3.2,3.41917 3.2,3.20583 4.2,3.20583 4.2,3.41917" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="3.20583" x2="4.2" y2="3.20583" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<polygon points="3.2,3.20583 3.2,2.9925 4.2,2.9925 4.2,3.20583" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="2.9925" x2="4.2" y2="2.9925" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="2.9925" x2="4.2" y2="2.9925" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,2.9925 3.2,2.77917 4.2,2.77917 4.2,2.9925" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="2.77917" x2="4.2" y2="2.77917" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="2.77917" x2="4.2" y2="2.77917" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,2.77917 3.2,2.56583 4.2,2.56583 4.2,2.77917" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="2.56583" x2="4.2" y2="2.56583" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="2.56583" x2="4.2" y2="2.56583" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,2.56583 3.2,2.3525 4.2,2.3525 4.2,2.56583" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="2.3525" x2="4.2" y2="2.3525" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="2.3525" x2="4.2" y2="2.3525" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,2.3525 3.2,2.13917 4.2,2.13917 4.2,2.3525" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="2.13917" x2="4.2" y2="2.13917" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="2.13917" x2="4.2" y2="2.13917" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,2.13917 3.2,1.92583 4.2,1.92583 4.2,2.13917" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="1.92583" x2="4.2" y2="1.92583" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="1.92583" x2="4.2" y2="1.92583" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,1.92583 3.2,1.7125 4.2,1.7125 4.2,1.92583" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="1.7125" x2="4.2" y2="1.7125" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="1.7125" x2="4.2" y2="1.7125" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,1.7125 3.2,1.49917 4.2,1.49917 4.2,1.7125" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="1.49917" x2="4.2" y2="1.49917" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="1.49917" x2="4.2" y2="1.49917" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,1.49917 3.2,1.28583 4.2,1.28583 4.2,1.49917" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="1.28583" x2="4.2" y2="1.28583" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="1.28583" x2="4.2" y2="1.28583" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<polygon points="3.2,1.28583 3.2,1.0725 4.2,1.0725 4.2,1.28583" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
<line x1="3.2" y1="1.0725" x2="4.2" y2="1.0725" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.012 0.008"/>
|
||||
<line x1="3.2" y1="1.0725" x2="4.2" y2="1.0725" stroke="#1a1a1a" stroke-width="0.0108" stroke-dasharray="0.2 0.1" stroke-dashoffset="0.05"/>
|
||||
<line x1="3.2" y1="3.03917" x2="4.2" y2="3.03917" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<line x1="3.2" y1="3.15917" x2="4.2" y2="3.15917" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<line x1="3.7" y1="4.16583" x2="3.7" y2="1.1045" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<line x1="3.579" y1="1.3245" x2="3.7" y2="1.1045" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<line x1="3.821" y1="1.3245" x2="3.7" y2="1.1045" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<polygon points="3.2,4.2725 4.2,4.2725 4.2,1.0725 3.2,1.0725" fill="none" stroke="#1a1a1a" stroke-width="0.018"/>
|
||||
<line x1="-1" y1="2.6725" x2="6" y2="2.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15"/>
|
||||
<line x1="-1" y1="2.6725" x2="6" y2="2.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15" stroke-dashoffset="0.09"/>
|
||||
<polyline points="-1,2.9725 -1,2.3725 -1,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="1.7725" x2="-0.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="1.7725" x2="-1.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
@@ -65,7 +65,7 @@
|
||||
<line x1="6" y1="1.7725" x2="5.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="5.85" y="1.2825" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.85 1.2825)">A</text>
|
||||
<polygon points="-1,2.3725 6,2.3725 6,2.9725 -1,2.9725" fill="none" stroke="none" stroke-width="0"/>
|
||||
<line x1="-1" y1="6.6725" x2="6" y2="6.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15"/>
|
||||
<line x1="-1" y1="6.6725" x2="6" y2="6.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15" stroke-dashoffset="0.09"/>
|
||||
<polyline points="-1,6.9725 -1,6.3725 -1,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="5.7725" x2="-0.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="5.7725" x2="-1.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.3 KiB |
@@ -0,0 +1,59 @@
|
||||
// [153] PDF-Druck-SVG: Strichmuster in Papier-mm, in jedem Massstab gleich lang, Musterphase vom Kern
|
||||
// (`plan::line_pattern::phase`): beide Enden einer gestrichelten Linie auf einem Strich.
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import { sceneToPrintSvg } from "./sceneToPrintSvg";
|
||||
import type { RScene } from "../plan/toRenderScene";
|
||||
|
||||
/** Kleinst-DOM (die Testumgebung ist `node`): Elemente mit Attributen und Kindern. */
|
||||
class FakeEl {
|
||||
attrs = new Map<string, string>();
|
||||
children: FakeEl[] = [];
|
||||
textContent = "";
|
||||
constructor(public tag: string) {}
|
||||
setAttribute(k: string, v: string): void {
|
||||
this.attrs.set(k, v);
|
||||
}
|
||||
appendChild(c: FakeEl): FakeEl {
|
||||
this.children.push(c);
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
const g = globalThis as { document?: unknown };
|
||||
let saved: unknown;
|
||||
beforeEach(() => {
|
||||
saved = g.document;
|
||||
g.document = { createElementNS: (_ns: string, tag: string) => new FakeEl(tag) };
|
||||
});
|
||||
afterEach(() => {
|
||||
g.document = saved;
|
||||
});
|
||||
|
||||
/** Eine gestrichelte Linie, die bei 1:`n` auf dem Papier 30 mm lang ist. */
|
||||
function scene(n: number): RScene {
|
||||
const len = (30 * n) / 1000;
|
||||
return {
|
||||
fills: [],
|
||||
outlines: [],
|
||||
polylines: [],
|
||||
arcs: [],
|
||||
lines: [{ a: [0, 0], b: [len, 0], color: [0, 0, 0, 1], widthMm: 0.18, dash: [2, 1], z: 0 }],
|
||||
texts: [],
|
||||
images: [],
|
||||
bounds: { minX: 0, minY: -1, maxX: len, maxY: 1 },
|
||||
} as RScene;
|
||||
}
|
||||
|
||||
describe("Druck-SVG: Strichmuster", () => {
|
||||
it("gleiche Musterlänge und Phase in 1:50, 1:100, 1:200", () => {
|
||||
const seen = [50, 100, 200].map((n) => {
|
||||
const svg = sceneToPrintSvg(scene(n), { scaleDenominator: n, pageWidthMm: 100, pageHeightMm: 100 }).svg as unknown as FakeEl;
|
||||
const line = svg.children.find((c) => c.tag === "line")!;
|
||||
return [line.attrs.get("stroke-dasharray"), line.attrs.get("stroke-dashoffset")];
|
||||
});
|
||||
expect(seen.every((s) => s[0] === "2 1")).toBe(true);
|
||||
// 30 mm mit [2, 1]: genau 10 Zyklen → Phase so, dass das Ende auf einem Strich liegt (nicht 0).
|
||||
expect(seen[0][1]).toBeDefined();
|
||||
expect(seen.every((s) => s[1] === seen[0][1])).toBe(true);
|
||||
});
|
||||
});
|
||||
@@ -22,6 +22,7 @@
|
||||
//
|
||||
// Bezeichner englisch, Kommentare deutsch (CONVENTIONS.md).
|
||||
|
||||
import { core } from "../engine/coreWasm";
|
||||
import { lineEndsSvgAttrs } from "../model/lineEnds";
|
||||
import type {
|
||||
RArc,
|
||||
@@ -278,10 +279,27 @@ function appendStroke(
|
||||
el.setAttribute("stroke-dasharray", dash.map((d) => round(d)).join(" "));
|
||||
// Punkte (Strich 0) brauchen runde Enden, sonst unsichtbar ([96]).
|
||||
if (dash.some((d) => d === 0)) el.setAttribute("stroke-linecap", "round");
|
||||
setDashOffset(el, pts.map((p) => map(p)), closed, dash);
|
||||
}
|
||||
svg.appendChild(el);
|
||||
}
|
||||
|
||||
/**
|
||||
* [153] Musterphase eines gestrichelten Zugs (Papier-mm-Punkte): Kern `plan::line_pattern::phase`,
|
||||
* damit beide Enden möglichst auf einem Strich liegen — gleich wie Plan-/Druck-SVG und Bildschirm.
|
||||
*/
|
||||
function setDashOffset(el: Element, ptsMm: [number, number][], closed: boolean, dash: number[]): void {
|
||||
let len = 0;
|
||||
const n = ptsMm.length;
|
||||
for (let i = 0; i + 1 < n + (closed ? 1 : 0); i++) {
|
||||
const [ax, ay] = ptsMm[i];
|
||||
const [bx, by] = ptsMm[(i + 1) % n];
|
||||
len += Math.hypot(bx - ax, by - ay);
|
||||
}
|
||||
const ph = core().line_dash_phase(len, Float64Array.from(dash));
|
||||
if (ph > 1e-9) el.setAttribute("stroke-dashoffset", String(round(ph)));
|
||||
}
|
||||
|
||||
/** Freies Liniensegment (Tuerblatt, Referenzlinie, Symbol). */
|
||||
function appendLine(svg: SVGSVGElement, l: RLine, map: Mapper, _mmPerM: number): void {
|
||||
if (l.widthMm <= 0) return;
|
||||
@@ -298,6 +316,7 @@ function appendLine(svg: SVGSVGElement, l: RLine, map: Mapper, _mmPerM: number):
|
||||
if (l.dash && l.dash.length) {
|
||||
el.setAttribute("stroke-dasharray", l.dash.map((d) => round(d)).join(" "));
|
||||
if (l.dash.some((d) => d === 0)) el.setAttribute("stroke-linecap", "round");
|
||||
setDashOffset(el, [[ax, ay], [bx, by]], false, l.dash);
|
||||
}
|
||||
svg.appendChild(el);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export const sampleProject: Project = {
|
||||
lineStyles: [
|
||||
{ id: "thin", name: "Volllinie", color: "#1a1a1a", dash: null },
|
||||
// Gestrichelte Linie (z. B. Dämmung, Striche quer durch die Wanddicke).
|
||||
{ id: "hatch-dash", name: "Dämmungsstrich", color: "#1a1a1a", dash: [0.35, 0.3] },
|
||||
{ id: "hatch-dash", name: "Dämmungsstrich", color: "#1a1a1a", dash: [1.5, 1] },
|
||||
],
|
||||
// Schraffuren: color = Linien-/Vollfüllfarbe des Musters; angle in Grad.
|
||||
// "none" = keine Schraffur (nur Component-Füllung).
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
viewBox -4.2 0 37.045 17.678
|
||||
bytes 267390
|
||||
bytes 268758
|
||||
circle 4
|
||||
g 1
|
||||
line 625
|
||||
@@ -8,4 +8,4 @@ polyline 69
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 84c2ca315113d7e3
|
||||
hash a9745043c9462633
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -4.243 0 23.243 18.205
|
||||
bytes 297250
|
||||
bytes 298010
|
||||
circle 14
|
||||
g 1
|
||||
line 3226
|
||||
line 3222
|
||||
polygon 22
|
||||
polyline 68
|
||||
polyline 70
|
||||
rect 1
|
||||
svg 1
|
||||
text 36
|
||||
tspan 12
|
||||
hash acea77aac5e90f51
|
||||
hash 735e870f40a3c586
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -4.243 0 23.243 18.205
|
||||
bytes 307703
|
||||
bytes 308573
|
||||
circle 14
|
||||
g 1
|
||||
line 3227
|
||||
line 3223
|
||||
polygon 76
|
||||
polyline 73
|
||||
polyline 75
|
||||
rect 1
|
||||
svg 1
|
||||
text 36
|
||||
tspan 12
|
||||
hash 7d8ea347bfb8922f
|
||||
hash ab8f9617d6f7d16b
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
bytes 87216
|
||||
bytes 83229
|
||||
circle 16
|
||||
g 1
|
||||
line 317
|
||||
line 269
|
||||
path 18
|
||||
polygon 106
|
||||
polyline 110
|
||||
polyline 120
|
||||
rect 1
|
||||
svg 1
|
||||
text 118
|
||||
tspan 26
|
||||
hash 3f4ca96852c1460f
|
||||
hash 9e9501052d5dfb39
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
bytes 116056
|
||||
bytes 112023
|
||||
circle 16
|
||||
g 1
|
||||
line 344
|
||||
line 294
|
||||
path 39
|
||||
polygon 268
|
||||
polyline 126
|
||||
polyline 137
|
||||
rect 1
|
||||
svg 1
|
||||
text 121
|
||||
tspan 32
|
||||
hash a0a331bbe3ce8d24
|
||||
hash 3a31318c028477f0
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -4.243 0 25.297 23.11
|
||||
bytes 342643
|
||||
bytes 340824
|
||||
circle 14
|
||||
g 1
|
||||
line 3327
|
||||
line 3307
|
||||
polygon 67
|
||||
polyline 154
|
||||
polyline 156
|
||||
rect 1
|
||||
svg 1
|
||||
text 91
|
||||
tspan 23
|
||||
hash 9e90cb9a60071446
|
||||
hash bacb8f3cc9970a80
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -4.243 0 25.297 23.11
|
||||
bytes 373890
|
||||
bytes 371899
|
||||
circle 14
|
||||
g 1
|
||||
line 3354
|
||||
line 3334
|
||||
path 21
|
||||
polygon 228
|
||||
polyline 169
|
||||
polyline 171
|
||||
rect 1
|
||||
svg 1
|
||||
text 91
|
||||
tspan 24
|
||||
hash 22915e18849d47c5
|
||||
hash eccc034e26cbd3c2
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -10.004 0 31.058 26.958
|
||||
bytes 60339
|
||||
bytes 48741
|
||||
circle 14
|
||||
g 1
|
||||
line 217
|
||||
line 110
|
||||
path 2
|
||||
polygon 60
|
||||
polyline 74
|
||||
polyline 81
|
||||
rect 1
|
||||
svg 1
|
||||
text 75
|
||||
tspan 20
|
||||
hash 6960933f9c854c8d
|
||||
hash a9f5556e41861d67
|
||||
@@ -1,13 +1,13 @@
|
||||
viewBox -10.004 0 31.058 26.958
|
||||
bytes 76091
|
||||
bytes 59010
|
||||
circle 14
|
||||
g 1
|
||||
line 273
|
||||
line 115
|
||||
path 13
|
||||
polygon 105
|
||||
polyline 79
|
||||
polyline 87
|
||||
rect 1
|
||||
svg 1
|
||||
text 75
|
||||
tspan 20
|
||||
hash 4b1eab4a5b710c50
|
||||
hash e38a3134bcc0c0d4
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox 4.457 0 21.343 17.678
|
||||
bytes 42817
|
||||
bytes 41024
|
||||
circle 3
|
||||
g 1
|
||||
line 113
|
||||
line 82
|
||||
polygon 186
|
||||
polyline 16
|
||||
polyline 26
|
||||
rect 1
|
||||
svg 1
|
||||
text 3
|
||||
hash d02852c41670f4c0
|
||||
hash be087c9e163c62e8
|
||||
@@ -1,9 +1,9 @@
|
||||
viewBox 0.1 0 6.8 7.586
|
||||
bytes 8097
|
||||
bytes 8201
|
||||
g 1
|
||||
line 7
|
||||
polygon 60
|
||||
polyline 6
|
||||
rect 1
|
||||
svg 1
|
||||
hash 92c8d38935671e86
|
||||
hash 69a2f1fc12ec2ea5
|
||||
@@ -1,5 +1,5 @@
|
||||
viewBox -0.672 0 6.345 5.345
|
||||
bytes 7956
|
||||
bytes 8216
|
||||
g 1
|
||||
line 32
|
||||
polygon 30
|
||||
@@ -8,4 +8,4 @@ rect 1
|
||||
svg 1
|
||||
text 7
|
||||
tspan 3
|
||||
hash bf3017439b3240f6
|
||||
hash 261fa3c016628c74
|
||||
@@ -1,5 +1,5 @@
|
||||
viewBox -0.672 0 6.345 5.345
|
||||
bytes 11897
|
||||
bytes 11919
|
||||
g 1
|
||||
line 33
|
||||
polygon 62
|
||||
@@ -8,4 +8,4 @@ rect 1
|
||||
svg 1
|
||||
text 7
|
||||
tspan 3
|
||||
hash 2691a9f68cf90842
|
||||
hash 81055535667e58fc
|
||||
@@ -1,10 +1,10 @@
|
||||
viewBox -0.9 0 6.8 5.8
|
||||
bytes 3630
|
||||
bytes 3322
|
||||
g 1
|
||||
line 15
|
||||
line 11
|
||||
polygon 9
|
||||
polyline 4
|
||||
polyline 5
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash da75b90e9db14090
|
||||
hash eb3754dda37500de
|
||||
@@ -1,10 +1,10 @@
|
||||
viewBox -0.9 0 6.8 5.8
|
||||
bytes 5578
|
||||
bytes 5279
|
||||
g 1
|
||||
line 15
|
||||
line 11
|
||||
polygon 26
|
||||
polyline 4
|
||||
polyline 5
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 860efb50b93e47d9
|
||||
hash ad783367c9666db3
|
||||
@@ -327,7 +327,7 @@ describe("generatePlan — Auf-/Untersicht-Andeutung (WindowType.sillLine)", ()
|
||||
const p = project({ ...baseWindow, typeId: "wt1" }, [wt]);
|
||||
const lines = linesOfClass(p, "window-sill", "mittel");
|
||||
expect(lines.length).toBe(1);
|
||||
expect(lines[0].kind === "line" && lines[0].dash).toEqual([0.4, 0.12, 0, 0.12]);
|
||||
expect(lines[0].kind === "line" && lines[0].dash).toEqual([6, 1.5, 0, 1.5]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user