2018-01-12 00:12:39 +00:00
|
|
|
// http://officeopenxml.com/drwSp-SpPr.php
|
2022-06-26 23:26:42 +01:00
|
|
|
import { IMediaDataTransformation } from "@file/media";
|
|
|
|
import { XmlComponent } from "@file/xml-components";
|
2018-01-12 00:12:39 +00:00
|
|
|
import { Form } from "./form";
|
2018-01-16 01:31:47 +00:00
|
|
|
// 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-08-07 01:38:15 +01:00
|
|
|
private readonly form: Form;
|
2018-03-24 19:06:10 +00:00
|
|
|
|
2022-08-31 07:52:27 +01:00
|
|
|
public constructor(transform: IMediaDataTransformation) {
|
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
|
|
|
|
2021-03-15 02:41:37 +00:00
|
|
|
this.form = new Form(transform);
|
2018-03-24 19:06:10 +00:00
|
|
|
|
|
|
|
this.root.push(this.form);
|
2018-01-12 00:12:39 +00:00
|
|
|
this.root.push(new PresetGeometry());
|
2018-01-16 01:31:47 +00:00
|
|
|
// this.root.push(new NoFill());
|
|
|
|
// this.root.push(new Outline());
|
2018-01-12 00:12:39 +00:00
|
|
|
}
|
|
|
|
}
|