2018-06-08 16:03:04 +02:00
|
|
|
// http://officeopenxml.com/drwPicFloating-textWrap.php
|
2018-06-09 23:49:01 +01:00
|
|
|
import { IDistance } from "../drawing";
|
2018-06-08 16:03:04 +02:00
|
|
|
|
2023-12-22 10:25:00 +09:00
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
export const TextWrappingType = {
|
|
|
|
NONE: 0,
|
|
|
|
SQUARE: 1,
|
|
|
|
TIGHT: 2,
|
|
|
|
TOP_AND_BOTTOM: 3,
|
|
|
|
} as const;
|
2018-06-08 16:03:04 +02:00
|
|
|
|
2023-12-22 10:25:00 +09:00
|
|
|
export const TextWrappingSide = {
|
|
|
|
BOTH_SIDES: "bothSides",
|
|
|
|
LEFT: "left",
|
|
|
|
RIGHT: "right",
|
|
|
|
LARGEST: "largest",
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
/* eslint-enable */
|
2018-06-08 16:03:04 +02:00
|
|
|
|
2018-06-09 23:49:01 +01:00
|
|
|
export interface ITextWrapping {
|
2023-12-22 10:25:00 +09:00
|
|
|
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
|
|
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
2019-01-10 02:10:20 +00:00
|
|
|
readonly margins?: IDistance;
|
2018-06-08 16:03:04 +02:00
|
|
|
}
|