docx-plus 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.iife.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11459,27 +11459,27 @@ const createBlip = (mediaData, blipEffects) => {
|
|
|
11459
11459
|
* @example
|
|
11460
11460
|
* ```typescript
|
|
11461
11461
|
* // Crop 10% from left and right
|
|
11462
|
-
* createSourceRectangle({
|
|
11462
|
+
* createSourceRectangle({ left: 10000, right: 10000 });
|
|
11463
11463
|
* ```
|
|
11464
11464
|
*/
|
|
11465
11465
|
const createSourceRectangle = (options) => {
|
|
11466
11466
|
if (!options) return new BuilderElement({ name: "a:srcRect" });
|
|
11467
11467
|
const attributes = {};
|
|
11468
|
-
if (options.
|
|
11468
|
+
if (options.left !== void 0) attributes.l = {
|
|
11469
11469
|
key: "l",
|
|
11470
|
-
value: options.
|
|
11470
|
+
value: options.left
|
|
11471
11471
|
};
|
|
11472
|
-
if (options.
|
|
11472
|
+
if (options.top !== void 0) attributes.t = {
|
|
11473
11473
|
key: "t",
|
|
11474
|
-
value: options.
|
|
11474
|
+
value: options.top
|
|
11475
11475
|
};
|
|
11476
|
-
if (options.
|
|
11476
|
+
if (options.right !== void 0) attributes.r = {
|
|
11477
11477
|
key: "r",
|
|
11478
|
-
value: options.
|
|
11478
|
+
value: options.right
|
|
11479
11479
|
};
|
|
11480
|
-
if (options.
|
|
11480
|
+
if (options.bottom !== void 0) attributes.b = {
|
|
11481
11481
|
key: "b",
|
|
11482
|
-
value: options.
|
|
11482
|
+
value: options.bottom
|
|
11483
11483
|
};
|
|
11484
11484
|
return new BuilderElement({
|
|
11485
11485
|
attributes,
|
package/dist/index.d.cts
CHANGED
|
@@ -551,10 +551,10 @@ interface DocPropertiesOptions {
|
|
|
551
551
|
//#endregion
|
|
552
552
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
553
553
|
interface SourceRectangleOptions {
|
|
554
|
-
readonly
|
|
555
|
-
readonly
|
|
556
|
-
readonly
|
|
557
|
-
readonly
|
|
554
|
+
readonly left?: number;
|
|
555
|
+
readonly top?: number;
|
|
556
|
+
readonly right?: number;
|
|
557
|
+
readonly bottom?: number;
|
|
558
558
|
}
|
|
559
559
|
//#endregion
|
|
560
560
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -553,10 +553,10 @@ interface DocPropertiesOptions {
|
|
|
553
553
|
//#endregion
|
|
554
554
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
555
555
|
interface SourceRectangleOptions {
|
|
556
|
-
readonly
|
|
557
|
-
readonly
|
|
558
|
-
readonly
|
|
559
|
-
readonly
|
|
556
|
+
readonly left?: number;
|
|
557
|
+
readonly top?: number;
|
|
558
|
+
readonly right?: number;
|
|
559
|
+
readonly bottom?: number;
|
|
560
560
|
}
|
|
561
561
|
//#endregion
|
|
562
562
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
package/dist/index.iife.js
CHANGED
|
@@ -11456,27 +11456,27 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
|
|
|
11456
11456
|
* @example
|
|
11457
11457
|
* ```typescript
|
|
11458
11458
|
* // Crop 10% from left and right
|
|
11459
|
-
* createSourceRectangle({
|
|
11459
|
+
* createSourceRectangle({ left: 10000, right: 10000 });
|
|
11460
11460
|
* ```
|
|
11461
11461
|
*/
|
|
11462
11462
|
const createSourceRectangle = (options) => {
|
|
11463
11463
|
if (!options) return new BuilderElement({ name: "a:srcRect" });
|
|
11464
11464
|
const attributes = {};
|
|
11465
|
-
if (options.
|
|
11465
|
+
if (options.left !== void 0) attributes.l = {
|
|
11466
11466
|
key: "l",
|
|
11467
|
-
value: options.
|
|
11467
|
+
value: options.left
|
|
11468
11468
|
};
|
|
11469
|
-
if (options.
|
|
11469
|
+
if (options.top !== void 0) attributes.t = {
|
|
11470
11470
|
key: "t",
|
|
11471
|
-
value: options.
|
|
11471
|
+
value: options.top
|
|
11472
11472
|
};
|
|
11473
|
-
if (options.
|
|
11473
|
+
if (options.right !== void 0) attributes.r = {
|
|
11474
11474
|
key: "r",
|
|
11475
|
-
value: options.
|
|
11475
|
+
value: options.right
|
|
11476
11476
|
};
|
|
11477
|
-
if (options.
|
|
11477
|
+
if (options.bottom !== void 0) attributes.b = {
|
|
11478
11478
|
key: "b",
|
|
11479
|
-
value: options.
|
|
11479
|
+
value: options.bottom
|
|
11480
11480
|
};
|
|
11481
11481
|
return new BuilderElement({
|
|
11482
11482
|
attributes,
|
package/dist/index.mjs
CHANGED
|
@@ -11457,27 +11457,27 @@ const createBlip = (mediaData, blipEffects) => {
|
|
|
11457
11457
|
* @example
|
|
11458
11458
|
* ```typescript
|
|
11459
11459
|
* // Crop 10% from left and right
|
|
11460
|
-
* createSourceRectangle({
|
|
11460
|
+
* createSourceRectangle({ left: 10000, right: 10000 });
|
|
11461
11461
|
* ```
|
|
11462
11462
|
*/
|
|
11463
11463
|
const createSourceRectangle = (options) => {
|
|
11464
11464
|
if (!options) return new BuilderElement({ name: "a:srcRect" });
|
|
11465
11465
|
const attributes = {};
|
|
11466
|
-
if (options.
|
|
11466
|
+
if (options.left !== void 0) attributes.l = {
|
|
11467
11467
|
key: "l",
|
|
11468
|
-
value: options.
|
|
11468
|
+
value: options.left
|
|
11469
11469
|
};
|
|
11470
|
-
if (options.
|
|
11470
|
+
if (options.top !== void 0) attributes.t = {
|
|
11471
11471
|
key: "t",
|
|
11472
|
-
value: options.
|
|
11472
|
+
value: options.top
|
|
11473
11473
|
};
|
|
11474
|
-
if (options.
|
|
11474
|
+
if (options.right !== void 0) attributes.r = {
|
|
11475
11475
|
key: "r",
|
|
11476
|
-
value: options.
|
|
11476
|
+
value: options.right
|
|
11477
11477
|
};
|
|
11478
|
-
if (options.
|
|
11478
|
+
if (options.bottom !== void 0) attributes.b = {
|
|
11479
11479
|
key: "b",
|
|
11480
|
-
value: options.
|
|
11480
|
+
value: options.bottom
|
|
11481
11481
|
};
|
|
11482
11482
|
return new BuilderElement({
|
|
11483
11483
|
attributes,
|
package/dist/index.umd.js
CHANGED
|
@@ -11464,27 +11464,27 @@
|
|
|
11464
11464
|
* @example
|
|
11465
11465
|
* ```typescript
|
|
11466
11466
|
* // Crop 10% from left and right
|
|
11467
|
-
* createSourceRectangle({
|
|
11467
|
+
* createSourceRectangle({ left: 10000, right: 10000 });
|
|
11468
11468
|
* ```
|
|
11469
11469
|
*/
|
|
11470
11470
|
const createSourceRectangle = (options) => {
|
|
11471
11471
|
if (!options) return new BuilderElement({ name: "a:srcRect" });
|
|
11472
11472
|
const attributes = {};
|
|
11473
|
-
if (options.
|
|
11473
|
+
if (options.left !== void 0) attributes.l = {
|
|
11474
11474
|
key: "l",
|
|
11475
|
-
value: options.
|
|
11475
|
+
value: options.left
|
|
11476
11476
|
};
|
|
11477
|
-
if (options.
|
|
11477
|
+
if (options.top !== void 0) attributes.t = {
|
|
11478
11478
|
key: "t",
|
|
11479
|
-
value: options.
|
|
11479
|
+
value: options.top
|
|
11480
11480
|
};
|
|
11481
|
-
if (options.
|
|
11481
|
+
if (options.right !== void 0) attributes.r = {
|
|
11482
11482
|
key: "r",
|
|
11483
|
-
value: options.
|
|
11483
|
+
value: options.right
|
|
11484
11484
|
};
|
|
11485
|
-
if (options.
|
|
11485
|
+
if (options.bottom !== void 0) attributes.b = {
|
|
11486
11486
|
key: "b",
|
|
11487
|
-
value: options.
|
|
11487
|
+
value: options.bottom
|
|
11488
11488
|
};
|
|
11489
11489
|
return new BuilderElement({
|
|
11490
11490
|
attributes,
|