Merge pull request #237 from dolanmiu/feat/image-wrap
Merge 4.6.0 into master
This commit is contained in:
@ -3,7 +3,7 @@ import { assert } from "chai";
|
||||
import { Utility } from "tests/utility";
|
||||
|
||||
import { IDrawingOptions } from "../drawing";
|
||||
import { TextWrapStyle } from "../text-wrap";
|
||||
import { TextWrappingType } from "../text-wrap";
|
||||
import { Anchor } from "./anchor";
|
||||
|
||||
function createAnchor(drawingOptions: IDrawingOptions): Anchor {
|
||||
@ -136,9 +136,6 @@ describe("Anchor", () => {
|
||||
|
||||
it("should create a Drawing with square text wrapping", () => {
|
||||
anchor = createAnchor({
|
||||
textWrapping: {
|
||||
textWrapStyle: TextWrapStyle.SQUARE,
|
||||
},
|
||||
floating: {
|
||||
verticalPosition: {
|
||||
offset: 0,
|
||||
@ -146,6 +143,9 @@ describe("Anchor", () => {
|
||||
horizontalPosition: {
|
||||
offset: 0,
|
||||
},
|
||||
wrap: {
|
||||
type: TextWrappingType.SQUARE,
|
||||
},
|
||||
},
|
||||
});
|
||||
const newJson = Utility.jsonify(anchor);
|
||||
@ -158,9 +158,6 @@ describe("Anchor", () => {
|
||||
|
||||
it("should create a Drawing with no text wrapping", () => {
|
||||
anchor = createAnchor({
|
||||
textWrapping: {
|
||||
textWrapStyle: TextWrapStyle.NONE,
|
||||
},
|
||||
floating: {
|
||||
verticalPosition: {
|
||||
offset: 0,
|
||||
@ -168,6 +165,9 @@ describe("Anchor", () => {
|
||||
horizontalPosition: {
|
||||
offset: 0,
|
||||
},
|
||||
wrap: {
|
||||
type: TextWrappingType.NONE,
|
||||
},
|
||||
},
|
||||
});
|
||||
const newJson = Utility.jsonify(anchor);
|
||||
@ -179,9 +179,6 @@ describe("Anchor", () => {
|
||||
|
||||
it("should create a Drawing with tight text wrapping", () => {
|
||||
anchor = createAnchor({
|
||||
textWrapping: {
|
||||
textWrapStyle: TextWrapStyle.TIGHT,
|
||||
},
|
||||
floating: {
|
||||
horizontalPosition: {
|
||||
offset: 0,
|
||||
@ -189,6 +186,9 @@ describe("Anchor", () => {
|
||||
verticalPosition: {
|
||||
offset: 0,
|
||||
},
|
||||
wrap: {
|
||||
type: TextWrappingType.TIGHT,
|
||||
},
|
||||
},
|
||||
});
|
||||
const newJson = Utility.jsonify(anchor);
|
||||
@ -200,9 +200,6 @@ describe("Anchor", () => {
|
||||
|
||||
it("should create a Drawing with tight text wrapping", () => {
|
||||
anchor = createAnchor({
|
||||
textWrapping: {
|
||||
textWrapStyle: TextWrapStyle.TOP_AND_BOTTOM,
|
||||
},
|
||||
floating: {
|
||||
verticalPosition: {
|
||||
offset: 0,
|
||||
@ -210,6 +207,9 @@ describe("Anchor", () => {
|
||||
horizontalPosition: {
|
||||
offset: 0,
|
||||
},
|
||||
wrap: {
|
||||
type: TextWrappingType.TOP_AND_BOTTOM,
|
||||
},
|
||||
},
|
||||
});
|
||||
const newJson = Utility.jsonify(anchor);
|
||||
|
Reference in New Issue
Block a user