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
dea06aa1
Commit
dea06aa1
authored
Aug 03, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load graphicFrame/slides base64 on server
parent
bf006b95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
cell/model/clipboard.js
cell/model/clipboard.js
+13
-2
No files found.
cell/model/clipboard.js
View file @
dea06aa1
...
...
@@ -1002,6 +1002,8 @@
//для слайда читаем только запись бинарника, где хранится base64
History
.
TurnOff
();
var
arrBase64Img
=
[];
var
loader
=
new
AscCommon
.
BinaryPPTYLoader
();
loader
.
presentation
=
worksheet
.
model
;
loader
.
Start_UseFullUrl
();
...
...
@@ -1012,6 +1014,7 @@
loader
.
End_UseFullUrl
()
var
drawing
=
AscFormat
.
DrawingObjectsController
.
prototype
.
createImage
(
imageUrl
,
0
,
0
,
p_width
,
p_height
);
arrBase64Img
.
push
(
new
AscCommon
.
CBuilderImages
(
drawing
.
blipFill
,
imageUrl
,
drawing
,
drawing
.
spPr
,
null
));
var
arr_shapes
=
[];
arr_shapes
[
0
]
=
worksheet
.
objectRender
.
createDrawingObject
();
...
...
@@ -1021,7 +1024,13 @@
if
(
!
(
window
[
"
Asc
"
][
"
editor
"
]
&&
window
[
"
Asc
"
][
"
editor
"
].
isChartEditor
))
{
var
aPastedImages
=
arrBase64Img
;
if
(
aPastedImages
&&
aPastedImages
.
length
)
{
t
.
_loadImagesOnServer
(
aPastedImages
,
function
()
{
t
.
_insertImagesFromBinary
(
worksheet
,
{
Drawings
:
arr_shapes
},
isIntoShape
);
});
}
}
}
...
...
@@ -1783,6 +1792,7 @@
if
(
count
!==
1
&&
typeof
AscFormat
.
CGraphicFrame
!==
"
undefined
"
&&
drawing
instanceof
AscFormat
.
CGraphicFrame
)
{
drawing
=
AscFormat
.
DrawingObjectsController
.
prototype
.
createImage
(
base64
,
x
,
y
,
extX
,
extY
);
arrBase64Img
.
push
(
new
AscCommon
.
CBuilderImages
(
drawing
.
blipFill
,
base64
,
drawing
,
drawing
.
spPr
,
null
));
}
arr_shapes
[
i
]
=
worksheet
.
objectRender
.
createDrawingObject
();
...
...
@@ -1791,7 +1801,8 @@
History
.
TurnOn
();
return
{
arrShapes
:
arr_shapes
,
arrImages
:
loader
.
End_UseFullUrl
(),
arrTransforms
:
arr_transforms
};
var
arrImages
=
arrBase64Img
.
concat
(
loader
.
End_UseFullUrl
());
return
{
arrShapes
:
arr_shapes
,
arrImages
:
arrImages
,
arrTransforms
:
arr_transforms
};
},
ReadPresentationText
:
function
(
stream
,
worksheet
,
cDocumentContent
)
...
...
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