Compare commits
2 Commits
ae9c3aa59b
...
f736b7309e
| Author | SHA1 | Date |
|---|---|---|
|
|
f736b7309e | |
|
|
bf18808aa8 |
|
|
@ -5,6 +5,7 @@ tag: md-deck
|
||||||
body: ./npcs.csv
|
body: ./npcs.csv
|
||||||
layers: body:1,6-5,8
|
layers: body:1,6-5,8
|
||||||
```
|
```
|
||||||
|
:md-deck[./names.csv]{size="54x86" grid="5x8" bleed="1" padding="2" layers="name1:1,1-2,2f12 name2:4,7-5,8f12s num1:1,3-2,4f12 num2:4,5-5,6f12s"}
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Highlights information that users should take into account, even when skimming.
|
> Highlights information that users should take into account, even when skimming.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
name1,name2,num1,num2
|
||||||
|
balhe,bler,1,2
|
||||||
|
|
|
@ -20,8 +20,8 @@ export function parseLayers(layersStr: string): Layer[] {
|
||||||
y1: parseInt(match[3]),
|
y1: parseInt(match[3]),
|
||||||
x2: parseInt(match[4]),
|
x2: parseInt(match[4]),
|
||||||
y2: parseInt(match[5]),
|
y2: parseInt(match[5]),
|
||||||
fontSize: match[7] ? parseFloat(match[7]) : undefined,
|
fontSize: match[6] ? parseFloat(match[6]) : undefined,
|
||||||
orientation: match[8] as 'n' | 's' | 'e' | 'w' | undefined
|
orientation: match[7] as 'n' | 's' | 'e' | 'w' | undefined
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue