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
da21f7c8
Commit
da21f7c8
authored
Apr 03, 2017
by
Oleg Korshul
Committed by
GitHub
Apr 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #105 from ONLYOFFICE/release/v4.3.0
Release/v4.3.0
parents
745b5efb
4f41ecc5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
79 deletions
+106
-79
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+6
-0
common/Drawings/Format/DrawingContent.js
common/Drawings/Format/DrawingContent.js
+20
-11
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+2
-2
word/Drawing/documentrenderer.js
word/Drawing/documentrenderer.js
+76
-64
word/Editor/History.js
word/Editor/History.js
+2
-2
No files found.
common/Drawings/Format/ChartSpace.js
View file @
da21f7c8
...
@@ -2252,7 +2252,9 @@ CChartSpace.prototype.Refresh_RecalcData2 = function(pageIndex, object)
...
@@ -2252,7 +2252,9 @@ CChartSpace.prototype.Refresh_RecalcData2 = function(pageIndex, object)
}
}
else
else
{
{
var
bOldRecalculateRef
=
this
.
recalcInfo
.
recalculateReferences
;
this
.
setRecalculateInfo
();
this
.
setRecalculateInfo
();
this
.
recalcInfo
.
recalculateReferences
=
bOldRecalculateRef
;
}
}
this
.
addToRecalculate
();
this
.
addToRecalculate
();
};
};
...
@@ -2333,6 +2335,10 @@ CChartSpace.prototype.getAllContents = function()
...
@@ -2333,6 +2335,10 @@ CChartSpace.prototype.getAllContents = function()
{
{
};
};
CChartSpace
.
prototype
.
getAllFonts
=
function
(
allFonts
)
{
this
.
documentGetAllFontNames
(
allFonts
);
};
CChartSpace
.
prototype
.
documentGetAllFontNames
=
function
(
allFonts
)
CChartSpace
.
prototype
.
documentGetAllFontNames
=
function
(
allFonts
)
{
{
allFonts
[
"
+mn-lt
"
]
=
1
;
allFonts
[
"
+mn-lt
"
]
=
1
;
...
...
common/Drawings/Format/DrawingContent.js
View file @
da21f7c8
...
@@ -609,6 +609,14 @@
...
@@ -609,6 +609,14 @@
CDrawingDocContent
.
prototype
.
Recalculate
=
function
()
CDrawingDocContent
.
prototype
.
Recalculate
=
function
()
{
{
if
(
typeof
editor
!==
"
undefined
"
&&
editor
&&
(
editor
.
isPresentationEditor
||
editor
.
isDocumentEditor
)){
if
(
editor
.
WordControl
&&
editor
.
WordControl
.
m_oLogicDocument
){
editor
.
WordControl
.
m_oLogicDocument
.
Recalculate
();
}
}
else
{
if
(
this
.
Parent
){
if
(
this
.
Parent
){
if
(
this
.
Parent
instanceof
AscFormat
.
CShape
){
if
(
this
.
Parent
instanceof
AscFormat
.
CShape
){
this
.
Parent
.
recalculateContent
();
this
.
Parent
.
recalculateContent
();
...
@@ -624,6 +632,7 @@
...
@@ -624,6 +632,7 @@
if
(
this
.
XLimit
>
0
){
if
(
this
.
XLimit
>
0
){
this
.
Recalculate_PageDrawing
();
this
.
Recalculate_PageDrawing
();
}
}
}
};
};
// TODO: сделать по-нормальному!!!
// TODO: сделать по-нормальному!!!
...
...
slide/Editor/Format/Presentation.js
View file @
da21f7c8
...
@@ -1618,10 +1618,10 @@ CPresentation.prototype =
...
@@ -1618,10 +1618,10 @@ CPresentation.prototype =
},
[],
false
,
AscDFH
.
historydescription_Presentation_AddChart
);
},
[],
false
,
AscDFH
.
historydescription_Presentation_AddChart
);
},
},
Selection_Remove
:
function
()
Selection_Remove
:
function
(
bNoResetChartSelection
)
{
{
if
(
this
.
Slides
[
this
.
CurPage
]){
if
(
this
.
Slides
[
this
.
CurPage
]){
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
resetSelection
();
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
resetSelection
(
undefined
,
bNoResetChartSelection
);
}
}
},
},
...
...
word/Drawing/documentrenderer.js
View file @
da21f7c8
...
@@ -746,11 +746,13 @@ CDocMeta.prototype =
...
@@ -746,11 +746,13 @@ CDocMeta.prototype =
if
(
null
!=
_cachedImage
)
if
(
null
!=
_cachedImage
)
{
{
g
.
drawImage2
(
_cachedImage
,
0
,
0
,
page
.
width_mm
,
page
.
height_mm
);
g
.
drawImage2
(
_cachedImage
,
0
,
0
,
page
.
width_mm
,
page
.
height_mm
);
return
obj
.
MetaDoc
.
OnImageLoad
(
obj
)
;
break
;
}
}
else
{
var
img
=
new
Image
();
var
img
=
new
Image
();
img
.
onload
=
function
(){
img
.
onload
=
function
()
{
obj
.
MetaDoc
.
SetCachedImage
(
_src
,
img
);
obj
.
MetaDoc
.
SetCachedImage
(
_src
,
img
);
if
(
1
!=
obj
.
BreakDrawing
)
if
(
1
!=
obj
.
BreakDrawing
)
{
{
...
@@ -759,13 +761,15 @@ CDocMeta.prototype =
...
@@ -759,13 +761,15 @@ CDocMeta.prototype =
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
};
};
img
.
onerror
=
function
(){
img
.
onerror
=
function
()
{
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
};
};
img
.
src
=
_src
;
img
.
src
=
_src
;
return
;
return
;
}
}
}
else
if
(
3
==
_type
)
else
if
(
3
==
_type
)
{
{
var
_lenA
=
s
.
GetULong
();
var
_lenA
=
s
.
GetULong
();
...
@@ -777,11 +781,13 @@ CDocMeta.prototype =
...
@@ -777,11 +781,13 @@ CDocMeta.prototype =
if
(
null
!=
_cachedImage
)
if
(
null
!=
_cachedImage
)
{
{
g
.
drawImage2
(
_cachedImage
,
0
,
0
,
page
.
width_mm
,
page
.
height_mm
);
g
.
drawImage2
(
_cachedImage
,
0
,
0
,
page
.
width_mm
,
page
.
height_mm
);
return
obj
.
MetaDoc
.
OnImageLoad
(
obj
)
;
break
;
}
}
else
{
var
img
=
new
Image
();
var
img
=
new
Image
();
img
.
onload
=
function
(){
img
.
onload
=
function
()
{
obj
.
MetaDoc
.
SetCachedImage
(
_src
,
img
);
obj
.
MetaDoc
.
SetCachedImage
(
_src
,
img
);
if
(
1
!=
obj
.
BreakDrawing
)
if
(
1
!=
obj
.
BreakDrawing
)
{
{
...
@@ -790,13 +796,15 @@ CDocMeta.prototype =
...
@@ -790,13 +796,15 @@ CDocMeta.prototype =
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
};
};
img
.
onerror
=
function
(){
img
.
onerror
=
function
()
{
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
};
};
img
.
src
=
_src
;
img
.
src
=
_src
;
return
;
return
;
}
}
}
var
_src
=
(
0
==
_type
||
10
==
_type
)
?
AscCommon
.
g_oDocumentUrls
.
getImageUrl
(
"
image
"
+
s
.
GetLong
()
+
"
.jpg
"
)
:
AscCommon
.
g_oDocumentUrls
.
getImageUrl
(
"
image
"
+
s
.
GetLong
()
+
"
.png
"
);
var
_src
=
(
0
==
_type
||
10
==
_type
)
?
AscCommon
.
g_oDocumentUrls
.
getImageUrl
(
"
image
"
+
s
.
GetLong
()
+
"
.jpg
"
)
:
AscCommon
.
g_oDocumentUrls
.
getImageUrl
(
"
image
"
+
s
.
GetLong
()
+
"
.png
"
);
...
@@ -843,12 +851,13 @@ CDocMeta.prototype =
...
@@ -843,12 +851,13 @@ CDocMeta.prototype =
_ctx
.
restore
();
_ctx
.
restore
();
}
}
}
}
break
;
return
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
}
}
else
{
var
img
=
new
Image
();
var
img
=
new
Image
();
img
.
onload
=
function
(){
img
.
onload
=
function
()
{
obj
.
MetaDoc
.
SetCachedImage
(
_src
,
img
);
obj
.
MetaDoc
.
SetCachedImage
(
_src
,
img
);
if
(
1
!=
obj
.
BreakDrawing
)
if
(
1
!=
obj
.
BreakDrawing
)
{
{
...
@@ -863,7 +872,7 @@ CDocMeta.prototype =
...
@@ -863,7 +872,7 @@ CDocMeta.prototype =
_ctx
.
setTransform
(
_tr
.
sx
*
_dX
,
_tr
.
shy
*
_dY
,
_tr
.
shx
*
_dX
,
_tr
.
sy
*
_dY
,
_tr
.
tx
*
_dX
,
_tr
.
ty
*
_dY
);
_ctx
.
setTransform
(
_tr
.
sx
*
_dX
,
_tr
.
shy
*
_dY
,
_tr
.
shx
*
_dX
,
_tr
.
sy
*
_dY
,
_tr
.
tx
*
_dX
,
_tr
.
ty
*
_dY
);
}
}
g
.
drawImage2
(
img
,
__x
,
__y
,
__w
,
__h
);
g
.
drawImage2
(
img
,
__x
,
__y
,
__w
,
__h
);
//editor.WordControl.OnScroll();
//editor.WordControl.OnScroll();
if
(
_tr
)
if
(
_tr
)
...
@@ -874,13 +883,16 @@ CDocMeta.prototype =
...
@@ -874,13 +883,16 @@ CDocMeta.prototype =
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
};
};
img
.
onerror
=
function
(){
img
.
onerror
=
function
()
{
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
obj
.
MetaDoc
.
OnImageLoad
(
obj
);
};
};
img
.
src
=
_src
;
img
.
src
=
_src
;
return
;
return
;
}
}
break
;
}
case
160
:
case
160
:
{
{
// textline
// textline
...
...
word/Editor/History.js
View file @
da21f7c8
...
@@ -227,7 +227,7 @@ CHistory.prototype =
...
@@ -227,7 +227,7 @@ CHistory.prototype =
if
(
this
.
Index
===
this
.
Points
.
length
-
1
)
if
(
this
.
Index
===
this
.
Points
.
length
-
1
)
this
.
LastState
=
this
.
Document
.
Get_SelectionState
();
this
.
LastState
=
this
.
Document
.
Get_SelectionState
();
this
.
Document
.
Selection_Remove
();
this
.
Document
.
Selection_Remove
(
true
);
this
.
Internal_RecalcData_Clear
();
this
.
Internal_RecalcData_Clear
();
...
@@ -281,7 +281,7 @@ CHistory.prototype =
...
@@ -281,7 +281,7 @@ CHistory.prototype =
if
(
true
!=
this
.
Can_Redo
()
)
if
(
true
!=
this
.
Can_Redo
()
)
return
null
;
return
null
;
this
.
Document
.
Selection_Remove
();
this
.
Document
.
Selection_Remove
(
true
);
var
Point
=
this
.
Points
[
++
this
.
Index
];
var
Point
=
this
.
Points
[
++
this
.
Index
];
...
...
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