Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docxtemplater-image-module
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
docxtemplater-image-module
Commits
05451c63
Commit
05451c63
authored
May 27, 2021
by
yeln4ts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix border parameter call issue
parent
81776cc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
build/imagemodule.js
+1
-1
es6/index.js
+1
-1
js/index.js
+1
-1
No files found.
build/imagemodule.js
View file @
05451c63
...
@@ -6106,7 +6106,7 @@ var ImageModule = function () {
...
@@ -6106,7 +6106,7 @@ var ImageModule = function () {
}
}
},
{
},
{
key
:
"getRenderedPartDocx"
,
key
:
"getRenderedPartDocx"
,
value
:
function
getRenderedPartDocx
(
rId
,
size
,
centered
)
{
value
:
function
getRenderedPartDocx
(
rId
,
size
,
centered
,
border
)
{
if
(
centered
)
return
templates
.
getImageXmlCentered
(
rId
,
size
);
else
if
(
border
)
return
templates
.
getImageXmlBordered
(
rId
,
size
,
border
);
else
return
templates
.
getImageXml
(
rId
,
size
);
if
(
centered
)
return
templates
.
getImageXmlCentered
(
rId
,
size
);
else
if
(
border
)
return
templates
.
getImageXmlBordered
(
rId
,
size
,
border
);
else
return
templates
.
getImageXml
(
rId
,
size
);
}
}
},
{
},
{
...
...
es6/index.js
View file @
05451c63
...
@@ -165,7 +165,7 @@ class ImageModule {
...
@@ -165,7 +165,7 @@ class ImageModule {
}
}
return
templates
.
getPptxImageXml
(
rId
,
[
imgW
,
imgH
],
offset
);
return
templates
.
getPptxImageXml
(
rId
,
[
imgW
,
imgH
],
offset
);
}
}
getRenderedPartDocx
(
rId
,
size
,
centered
)
{
getRenderedPartDocx
(
rId
,
size
,
centered
,
border
)
{
if
(
centered
)
if
(
centered
)
return
templates
.
getImageXmlCentered
(
rId
,
size
)
return
templates
.
getImageXmlCentered
(
rId
,
size
)
else
if
(
border
)
else
if
(
border
)
...
...
js/index.js
View file @
05451c63
...
@@ -206,7 +206,7 @@ var ImageModule = function () {
...
@@ -206,7 +206,7 @@ var ImageModule = function () {
}
}
},
{
},
{
key
:
"getRenderedPartDocx"
,
key
:
"getRenderedPartDocx"
,
value
:
function
getRenderedPartDocx
(
rId
,
size
,
centered
)
{
value
:
function
getRenderedPartDocx
(
rId
,
size
,
centered
,
border
)
{
if
(
centered
)
return
templates
.
getImageXmlCentered
(
rId
,
size
);
else
if
(
border
)
return
templates
.
getImageXmlBordered
(
rId
,
size
,
border
);
else
return
templates
.
getImageXml
(
rId
,
size
);
if
(
centered
)
return
templates
.
getImageXmlCentered
(
rId
,
size
);
else
if
(
border
)
return
templates
.
getImageXmlBordered
(
rId
,
size
,
border
);
else
return
templates
.
getImageXml
(
rId
,
size
);
}
}
},
{
},
{
...
...
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