* build(deps-dev): bump eslint from 8.57.1 to 9.13.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.13.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade EsLint * Fix all new lint errors --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { IMediaData } from "@file/media";
|
|
import { BuilderElement, XmlComponent } from "@file/xml-components";
|
|
|
|
const createSvgBlip = (mediaData: IMediaData): XmlComponent =>
|
|
new BuilderElement({
|
|
name: "asvg:svgBlip",
|
|
attributes: {
|
|
asvg: {
|
|
key: "xmlns:asvg",
|
|
value: "http://schemas.microsoft.com/office/drawing/2016/SVG/main",
|
|
},
|
|
embed: {
|
|
key: "r:embed",
|
|
value: `rId{${mediaData.fileName}}`,
|
|
},
|
|
},
|
|
});
|
|
|
|
const createExtention = (mediaData: IMediaData): XmlComponent =>
|
|
new BuilderElement({
|
|
name: "a:ext",
|
|
attributes: {
|
|
uri: {
|
|
key: "uri",
|
|
value: "{96DAC541-7B7A-43D3-8B79-37D633B846F1}",
|
|
},
|
|
},
|
|
children: [createSvgBlip(mediaData)],
|
|
});
|
|
|
|
export const createExtentionList = (mediaData: IMediaData): XmlComponent =>
|
|
new BuilderElement({
|
|
name: "a:extLst",
|
|
children: [createExtention(mediaData)],
|
|
});
|