-
-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add image borders * Fix prettier * Fix spelling * Fix spelling * Finish feature * Update demo * Try and fix demo 14
- Loading branch information
Showing
27 changed files
with
571 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/file/drawing/effect-extent/effect-extent-attributes.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
import { XmlComponent } from "@file/xml-components"; | ||
import { EffectExtentAttributes } from "./effect-extent-attributes"; | ||
import { BuilderElement, XmlComponent } from "@file/xml-components"; | ||
|
||
export class EffectExtent extends XmlComponent { | ||
public constructor() { | ||
super("wp:effectExtent"); | ||
export type EffectExtentAttributes = { | ||
readonly top: number; | ||
readonly right: number; | ||
readonly bottom: number; | ||
readonly left: number; | ||
}; | ||
|
||
this.root.push( | ||
new EffectExtentAttributes({ | ||
b: 0, | ||
l: 0, | ||
r: 0, | ||
t: 0, | ||
}), | ||
); | ||
} | ||
} | ||
export const createEffectExtent = ({ top, right, bottom, left }: EffectExtentAttributes): XmlComponent => | ||
new BuilderElement<EffectExtentAttributes>({ | ||
name: "wp:effectExtent", | ||
attributes: { | ||
top: { | ||
key: "t", | ||
value: top, | ||
}, | ||
right: { | ||
key: "r", | ||
value: right, | ||
}, | ||
bottom: { | ||
key: "b", | ||
value: bottom, | ||
}, | ||
left: { | ||
key: "l", | ||
value: left, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
import { XmlComponent } from "@file/xml-components"; | ||
import { BuilderElement, XmlComponent } from "@file/xml-components"; | ||
|
||
export class NoFill extends XmlComponent { | ||
public constructor() { | ||
super("a:noFill"); | ||
} | ||
} | ||
export const createNoFill = (): XmlComponent => new BuilderElement({ name: "a:noFill" }); |
Oops, something went wrong.