Skip to content

Commit fa27bc9

Browse files
cwickhamgordonwoodhull
authored andcommitted
Only define margin in one place
1 parent 0f5a15f commit fa27bc9

6 files changed

Lines changed: 165 additions & 179 deletions

File tree

src/resources/editor/tools/vs-code.mjs

Lines changed: 45 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -16701,49 +16701,56 @@ var require_yaml_intelligence_resources = __commonJS({
1670116701
name: "margin",
1670216702
tags: {
1670316703
formats: [
16704+
"revealjs",
1670416705
"typst"
1670516706
]
1670616707
},
1670716708
schema: {
16708-
object: {
16709-
closed: true,
16710-
properties: {
16711-
x: {
16712-
string: {
16713-
description: "Horizontal margin (e.g. 1.5in)"
16714-
}
16715-
},
16716-
y: {
16717-
string: {
16718-
description: "Vertical margin (e.g. 1.5in)"
16719-
}
16720-
},
16721-
top: {
16722-
string: {
16723-
description: "Top margin (e.g. 1.5in)"
16724-
}
16725-
},
16726-
bottom: {
16727-
string: {
16728-
description: "Bottom margin (e.g. 1.5in)"
16729-
}
16730-
},
16731-
left: {
16732-
string: {
16733-
description: "Left margin (e.g. 1.5in)"
16734-
}
16735-
},
16736-
right: {
16737-
string: {
16738-
description: "Right margin (e.g. 1.5in)"
16709+
anyOf: [
16710+
"number",
16711+
{
16712+
object: {
16713+
closed: true,
16714+
properties: {
16715+
x: {
16716+
string: {
16717+
description: "Horizontal margin (e.g. 1.5in)"
16718+
}
16719+
},
16720+
y: {
16721+
string: {
16722+
description: "Vertical margin (e.g. 1.5in)"
16723+
}
16724+
},
16725+
top: {
16726+
string: {
16727+
description: "Top margin (e.g. 1.5in)"
16728+
}
16729+
},
16730+
bottom: {
16731+
string: {
16732+
description: "Bottom margin (e.g. 1.5in)"
16733+
}
16734+
},
16735+
left: {
16736+
string: {
16737+
description: "Left margin (e.g. 1.5in)"
16738+
}
16739+
},
16740+
right: {
16741+
string: {
16742+
description: "Right margin (e.g. 1.5in)"
16743+
}
16744+
}
1673916745
}
1674016746
}
1674116747
}
16742-
}
16748+
]
1674316749
},
16750+
default: 0.1,
1674416751
description: {
16745-
short: "Page margins for Typst output.",
16746-
long: "A dictionary specifying page margins. Use `x` and `y` for symmetric\nhorizontal/vertical margins, or `top`, `bottom`, `left`, `right` for\nindividual sides. Values should include units (e.g. `1.5in`, `2cm`).\n"
16752+
short: "Margin settings for Reveal.js or Typst output.",
16753+
long: "For `revealjs`, the factor of the display size that should remain empty around the content (e.g. 0.1).\n\nFor `typst`, a dictionary specifying page margins. Use `x` and `y` for symmetric\nhorizontal/vertical margins, or `top`, `bottom`, `left`, `right` for\nindividual sides. Values should include units (e.g. `1.5in`, `2cm`).\n"
1674716754
}
1674816755
},
1674916756
{
@@ -18875,17 +18882,6 @@ var require_yaml_intelligence_resources = __commonJS({
1887518882
long: 'The "normal" height of the presentation, aspect ratio will\nbe preserved when the presentation is scaled to fit different\nresolutions. Can be specified using percentage units.\n'
1887618883
}
1887718884
},
18878-
{
18879-
name: "margin",
18880-
tags: {
18881-
formats: [
18882-
"revealjs"
18883-
]
18884-
},
18885-
schema: "number",
18886-
default: 0.1,
18887-
description: "Factor of the display size that should remain empty around the content (e.g. 0.1)."
18888-
},
1888918885
{
1889018886
name: "min-scale",
1889118887
tags: {
@@ -24792,7 +24788,7 @@ var require_yaml_intelligence_resources = __commonJS({
2479224788
"Minimum vertical spacing between margin notes (default: 8pt).",
2479324789
{
2479424790
short: "Visual style for theorem environments in Typst output.",
24795-
long: "Controls how theorems, lemmas, definitions, etc. are rendered: -\n<code>simple</code>: Plain text with bold title and italic body\n(default) - <code>fancy</code>: Colored boxes using brand colors -\n<code>clouds</code>: Rounded colored background boxes -\n<code>rainbow</code>: Colored left border with colored title"
24791+
long: "Controls how theorems, lemmas, definitions, etc. are rendered:"
2479624792
},
2479724793
{
2479824794
short: "Email format version",
@@ -25380,12 +25376,12 @@ var require_yaml_intelligence_resources = __commonJS({
2538025376
mermaid: "%%"
2538125377
},
2538225378
"handlers/mermaid/schema.yml": {
25383-
_internalId: 222532,
25379+
_internalId: 222535,
2538425380
type: "object",
2538525381
description: "be an object",
2538625382
properties: {
2538725383
"mermaid-format": {
25388-
_internalId: 222524,
25384+
_internalId: 222527,
2538925385
type: "enum",
2539025386
enum: [
2539125387
"png",
@@ -25401,7 +25397,7 @@ var require_yaml_intelligence_resources = __commonJS({
2540125397
exhaustiveCompletions: true
2540225398
},
2540325399
theme: {
25404-
_internalId: 222531,
25400+
_internalId: 222534,
2540525401
type: "anyOf",
2540625402
anyOf: [
2540725403
{

src/resources/editor/tools/yaml/all-schema-definitions.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 45 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)