Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
316cc020
Commit
316cc020
authored
Apr 06, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Новые размеры ватермарка
parent
a67a6133
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
common/Drawings/CommonController.js
common/Drawings/CommonController.js
+1
-1
common/editorscommon.js
common/editorscommon.js
+2
-2
word/Editor/GraphicObjects/GraphicObjects.js
word/Editor/GraphicObjects/GraphicObjects.js
+2
-2
No files found.
common/Drawings/CommonController.js
View file @
316cc020
...
...
@@ -807,7 +807,7 @@ DrawingObjectsController.prototype =
createWatermarkImage
:
function
(
sImageUrl
)
{
return
ExecuteNoHistory
(
function
(){
return
this
.
createImage
(
sImageUrl
,
0
,
0
,
1
01.6
,
45.6
);
return
this
.
createImage
(
sImageUrl
,
0
,
0
,
1
10
,
61.875
);
},
this
,
[]);
},
...
...
common/editorscommon.js
View file @
316cc020
...
...
@@ -2142,9 +2142,9 @@ CTableId.prototype.Load_Changes = function(Reader, Reader2)
{
var
objectRender
=
new
DrawingObjects
();
var
oNewDrawing
=
objectRender
.
createDrawingObject
(
c_oAscCellAnchorType
.
cellanchorAbsolute
);
oNewDrawing
.
ext
.
cx
=
101.6
;
oNewDrawing
.
ext
.
cy
=
45.6
;
var
oImage
=
DrawingObjectsController
.
prototype
.
createWatermarkImage
(
sUrl
);
oNewDrawing
.
ext
.
cx
=
oImage
.
spPr
.
xfrm
.
extX
;
oNewDrawing
.
ext
.
cy
=
oImage
.
spPr
.
xfrm
.
extY
;
oNewDrawing
.
graphicObject
=
oImage
;
oWsModel
.
Drawings
.
push
(
oNewDrawing
);
}
...
...
word/Editor/GraphicObjects/GraphicObjects.js
View file @
316cc020
...
...
@@ -332,9 +332,9 @@ CGraphicObjects.prototype =
oParaDrawing
.
Set_BehindDoc
(
false
);
oParaDrawing
.
Set_Distance
(
3.2
,
0
,
3.2
,
0
);
oParaDrawing
.
Set_DrawingType
(
drawing_Anchor
);
oParaDrawing
.
Extent
.
W
=
101.6
;
oParaDrawing
.
Extent
.
H
=
45.6
;
var
oShape
=
this
.
createWatermarkImage
(
sImageUrl
);
oParaDrawing
.
Extent
.
W
=
oShape
.
spPr
.
xfrm
.
extX
;
oParaDrawing
.
Extent
.
H
=
oShape
.
spPr
.
xfrm
.
extY
;
oShape
.
setParent
(
oParaDrawing
);
oParaDrawing
.
Set_GraphicObject
(
oShape
);
return
oParaDrawing
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment