Skip to content

Commit

Permalink
Add more event tags
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Dec 29, 2024
1 parent 4197c39 commit bf5d555
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/services/ppen.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ const courses = (courses) => {

export function writePpen(event) {
const doc = document.implementation.createDocument("", "", null);
const allControls = event.courses.find((c) => c.id === ALL_CONTROLS_ID);
const root = createXml(doc, {
type: "course-scribe-event",
children: [
Expand All @@ -280,6 +281,24 @@ export function writePpen(event) {
text: event.mapFilename,
},
},
{ type: "standards", attrs: { map: "2017", description: "2018" } },
{
type: "all-controls",
attrs: {
"print-scale": allControls.printScale,
"description-kind": "symbols",
},
},
{
type: "course-appearance",
attrs: {
"scale-sizes": event.courseAppearance.scaleSizes,
"scale-sizes-circle-gaps":
event.courseAppearance.scaleSizesCircleGaps,
"auto-leg-gap-size": event.courseAppearance.autoLegGapSize,
"blend-purple": event.courseAppearance.blendPurple,
},
},
],
},
]
Expand Down

0 comments on commit bf5d555

Please sign in to comment.