Add ImageRun feature

This commit is contained in:
Dolan Miu
2023-03-03 23:47:50 +00:00
parent fe9b438a51
commit 66a1992da0
9 changed files with 141 additions and 11 deletions

View File

@ -24,3 +24,7 @@ export const patchSpaceAttribute = (element: Element): Element => ({
"xml:space": "preserve",
},
});
// eslint-disable-next-line functional/prefer-readonly-type
export const getFirstLevelElements = (relationships: Element, id: string): Element[] =>
relationships.elements?.filter((e) => e.name === id)[0].elements ?? [];