Progress on embeddding image

This commit is contained in:
Dolan
2018-01-16 00:43:00 +00:00
parent 392db1cd11
commit f7c2072cff
12 changed files with 76 additions and 13 deletions

View File

@ -2,11 +2,13 @@ import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
interface IBlipProperties {
embed: string;
cstate: string;
}
class BlipAttributes extends XmlAttributeComponent<IBlipProperties> {
protected xmlKeys = {
embed: "r:embed",
cstate: "cstate",
};
}
@ -16,6 +18,7 @@ export class Blip extends XmlComponent {
super("a:blip");
this.root.push(new BlipAttributes({
embed: `rId${referenceId}`,
cstate: "none",
}));
}
}