Files
docx-js/src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.ts

25 lines
782 B
TypeScript
Raw Normal View History

2018-01-12 00:12:39 +00:00
// http://officeopenxml.com/drwSp-SpPr.php
import { XmlComponent } from "file/xml-components";
import { Form } from "./form";
// import { NoFill } from "./no-fill";
// import { Outline } from "./outline/outline";
2018-01-12 00:12:39 +00:00
import { PresetGeometry } from "./preset-geometry/preset-geometry";
import { ShapePropertiesAttributes } from "./shape-properties-attributes";
export class ShapeProperties extends XmlComponent {
2018-01-22 20:42:57 +00:00
constructor(x: number, y: number) {
2018-01-12 00:12:39 +00:00
super("pic:spPr");
2018-01-23 01:33:12 +00:00
this.root.push(
new ShapePropertiesAttributes({
bwMode: "auto",
}),
);
2018-01-12 00:12:39 +00:00
2018-01-22 20:42:57 +00:00
this.root.push(new Form(x, y));
2018-01-12 00:12:39 +00:00
this.root.push(new PresetGeometry());
// this.root.push(new NoFill());
// this.root.push(new Outline());
2018-01-12 00:12:39 +00:00
}
}