Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fa0c13

Browse files
authored
Merge pull request#1104 from Alanscut/fix_editAs
Fix#1103: `editAs` not working
2 parents3672dda +15c5f92 commit9fa0c13

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,8 +1801,8 @@ It can have one of the following values:
18011801

18021802
| Value| Description|
18031803
| ---------| -----------|
1804-
| undefined|This is the default.It specifies the image will be moved and sized with cells|
1805-
| oneCell| Image will be moved with cells but not sized|
1804+
| undefined| It specifies the image will be moved and sized with cells|
1805+
| oneCell|This is the default.Image will be moved with cells but not sized|
18061806
| absolute| Image will not be moved or sized with cells|
18071807

18081808
```javascript

‎lib/doc/image.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Image {
2323
tl:this.range.tl.model,
2424
br:this.range.br&&this.range.br.model,
2525
ext:this.range.ext,
26+
editAs:this.range.editAs,
2627
},
2728
};
2829
default:

‎spec/integration/workbook/images.spec.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('Workbook', () => {
194194
ws.addImage(imageId,{
195195
tl:{col:0.1125,row:0.4},
196196
ext:{width:100,height:100},
197-
editAs:'oneCell',
197+
editAs:'absolute',
198198
hyperlinks:{
199199
hyperlink:'http://www.somewhere.com',
200200
tooltip:'www.somewhere.com',
@@ -218,7 +218,7 @@ describe('Workbook', () => {
218218
expect(images.length).to.equal(1);
219219

220220
constimageDesc=images[0];
221-
expect(imageDesc.range.editAs).to.equal('oneCell');
221+
expect(imageDesc.range.editAs).to.equal('absolute');
222222
expect(imageDesc.range.ext.width).to.equal(100);
223223
expect(imageDesc.range.ext.height).to.equal(100);
224224

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp