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
51baae6c
Commit
51baae6c
authored
Apr 05, 2017
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.3.1'
parents
c4f034ee
9367d596
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
29 deletions
+47
-29
Makefile
Makefile
+10
-2
cell/model/clipboard.js
cell/model/clipboard.js
+4
-1
common/Charts/3DTransformation.js
common/Charts/3DTransformation.js
+1
-1
common/Drawings/CommonController.js
common/Drawings/CommonController.js
+31
-24
common/spellCheckLanguagesAll.js
common/spellCheckLanguagesAll.js
+1
-1
No files found.
Makefile
View file @
51baae6c
...
@@ -4,6 +4,12 @@ GRUNT_FLAGS = --no-color -v
...
@@ -4,6 +4,12 @@ GRUNT_FLAGS = --no-color -v
OUTPUT_DIR
=
deploy
OUTPUT_DIR
=
deploy
OUTPUT
=
$(OUTPUT_DIR)
OUTPUT
=
$(OUTPUT_DIR)
PRODUCT_VERSION
?=
0.0.0
BUILD_NUMBER
?=
0
GRUNT_ENV
+=
PRODUCT_VERSION
=
$(PRODUCT_VERSION)
GRUNT_ENV
+=
BUILD_NUMBER
=
$(BUILD_NUMBER)
WEBAPPS_DIR
=
web-apps
WEBAPPS_DIR
=
web-apps
WEBAPPS
=
$(OUTPUT)
/
$(WEBAPPS_DIR)
WEBAPPS
=
$(OUTPUT)
/
$(WEBAPPS_DIR)
NODE_MODULES
=
build/node_modules ../web-apps/build/node_modules
NODE_MODULES
=
build/node_modules ../web-apps/build/node_modules
...
@@ -15,6 +21,8 @@ SDKJS_FILES += word/sdk-all.js
...
@@ -15,6 +21,8 @@ SDKJS_FILES += word/sdk-all.js
SDKJS_FILES
+=
cell/sdk-all.js
SDKJS_FILES
+=
cell/sdk-all.js
SDKJS_FILES
+=
slide/sdk-all.js
SDKJS_FILES
+=
slide/sdk-all.js
.PHONY
:
all
all
:
$(WEBAPPS)
all
:
$(WEBAPPS)
$(WEBAPPS)
:
$(WEBAPPS_FILES)
$(WEBAPPS)
:
$(WEBAPPS_FILES)
...
@@ -23,7 +31,7 @@ $(WEBAPPS): $(WEBAPPS_FILES)
...
@@ -23,7 +31,7 @@ $(WEBAPPS): $(WEBAPPS_FILES)
$(WEBAPPS_FILES)
:
$(NODE_MODULES) $(SDKJS_FILES)
$(WEBAPPS_FILES)
:
$(NODE_MODULES) $(SDKJS_FILES)
cd
../
$(WEBAPPS_DIR)
/build
&&
\
cd
../
$(WEBAPPS_DIR)
/build
&&
\
$(GRUNT)
deploy-
$(
filter
%editor documents,
$(
subst
/, ,
$
(
@D
)))
-component
$(GRUNT_FLAGS)
$(GRUNT
_ENV)
$(GRUNT
)
deploy-
$(
filter
%editor documents,
$(
subst
/, ,
$
(
@D
)))
-component
$(GRUNT_FLAGS)
$(NODE_MODULES)
:
$(NODE_MODULES)
:
cd
$
(
@D
)
&&
\
cd
$
(
@D
)
&&
\
...
@@ -31,7 +39,7 @@ $(NODE_MODULES):
...
@@ -31,7 +39,7 @@ $(NODE_MODULES):
$(SDKJS_FILES)
:
$(NODE_MODULES)
$(SDKJS_FILES)
:
$(NODE_MODULES)
cd
build
&&
\
cd
build
&&
\
$(GRUNT)
build_
$
(
@D
)
$(GRUNT_FLAGS)
$(GRUNT
_ENV)
$(GRUNT
)
build_
$
(
@D
)
$(GRUNT_FLAGS)
clean
:
clean
:
rm
-f
$(WEBAPPS_FILES)
$(SDKJS_FILES)
rm
-f
$(WEBAPPS_FILES)
$(SDKJS_FILES)
cell/model/clipboard.js
View file @
51baae6c
...
@@ -517,7 +517,10 @@
...
@@ -517,7 +517,10 @@
if
(
copyPasteUseBinary
)
if
(
copyPasteUseBinary
)
{
{
sBase64
=
this
.
getBinaryForCopy
(
worksheet
);
sBase64
=
this
.
getBinaryForCopy
(
worksheet
);
$
(
container
.
children
[
0
]).
addClass
(
sBase64
);
if
(
container
.
children
[
0
])
{
container
.
children
[
0
].
setAttribute
(
"
class
"
,
sBase64
)
}
}
}
History
.
TurnOn
();
History
.
TurnOn
();
...
...
common/Charts/3DTransformation.js
View file @
51baae6c
...
@@ -1398,7 +1398,7 @@ Processor3D.prototype._calculateCameraDiffZX = function (newPoints)
...
@@ -1398,7 +1398,7 @@ Processor3D.prototype._calculateCameraDiffZX = function (newPoints)
//TODO пока включаю для ВСЕГО checkOutSideArea(медленная функция), затем нужно переделать, используя закомментированный код сверху
//TODO пока включаю для ВСЕГО checkOutSideArea(медленная функция), затем нужно переделать, используя закомментированный код сверху
this
.
cameraDiffZ
=
-
minZ
;
this
.
cameraDiffZ
=
-
minZ
;
this
.
checkOutSideArea
(
newPoints
);
this
.
checkOutSideArea
2
(
newPoints
);
};
};
...
...
common/Drawings/CommonController.js
View file @
51baae6c
...
@@ -2857,6 +2857,32 @@ DrawingObjectsController.prototype =
...
@@ -2857,6 +2857,32 @@ DrawingObjectsController.prototype =
}
}
//Title Settings
//Title Settings
chart_space
.
setChart
(
chart_space
.
chart
.
createDuplicate
());
chart_space
.
setChart
(
chart_space
.
chart
.
createDuplicate
());
/*if(AscFormat.isRealNumber(style_index) && style_index > 0 && style_index < 49 && chart_space.style !== style_index)
{
if(!b_clear_formatting)
{
chart_space.clearFormatting();
}
chart_space.setStyle(style_index);
}*/
var
chart
=
chart_space
.
chart
;
var
plot_area
=
chart
.
plotArea
;
var
type
=
chartSettings
.
getType
();
if
(
AscFormat
.
isRealNumber
(
style_index
)){
--
style_index
;
var
oCurChartSettings
=
this
.
getPropsFromChart
(
chartSpace
);
var
_cur_type
=
oCurChartSettings
.
type
;
if
(
AscCommon
.
g_oChartPresets
[
_cur_type
]
&&
AscCommon
.
g_oChartPresets
[
_cur_type
][
style_index
]){
plot_area
.
removeCharts
(
1
,
plot_area
.
charts
.
length
-
1
);
AscFormat
.
ApplyPresetToChartSpace
(
chartSpace
,
AscCommon
.
g_oChartPresets
[
_cur_type
][
style_index
],
chartSettings
.
bCreate
);
return
;
}
}
chart_space
.
setStyle
(
chart_space
.
style
);
chart_space
.
setStyle
(
chart_space
.
style
);
if
(
this
.
drawingObjects
&&
this
.
drawingObjects
.
getWorksheet
&&
typeof
sRange
===
"
string
"
&&
sRange
.
length
>
0
)
if
(
this
.
drawingObjects
&&
this
.
drawingObjects
.
getWorksheet
&&
typeof
sRange
===
"
string
"
&&
sRange
.
length
>
0
)
{
{
...
@@ -2883,17 +2909,17 @@ DrawingObjectsController.prototype =
...
@@ -2883,17 +2909,17 @@ DrawingObjectsController.prototype =
if
(
!
(
chart_space
.
bbox
&&
chart_space
.
bbox
.
seriesBBox
&&
b_equal_ws
if
(
!
(
chart_space
.
bbox
&&
chart_space
.
bbox
.
seriesBBox
&&
b_equal_ws
&&
b_equal_bbox
&&
b_equal_vert
)
&&
!
bLimit
)
&&
b_equal_bbox
&&
b_equal_vert
)
&&
!
bLimit
)
{
{
var
catHeadersBBox
,
serHeadersBBox
;
var
catHeadersBBox
,
serHeadersBBox
;
if
(
chart_space
.
bbox
&&
b_equal_bbox
&&
b_equal_ws
&&
!
b_equal_vert
)
if
(
chart_space
.
bbox
&&
b_equal_bbox
&&
b_equal_ws
&&
!
b_equal_vert
)
{
{
if
(
chart_space
.
bbox
.
catBBox
)
if
(
chart_space
.
bbox
.
catBBox
)
serHeadersBBox
=
{
r1
:
chart_space
.
bbox
.
catBBox
.
r1
,
r2
:
chart_space
.
bbox
.
catBBox
.
r2
,
serHeadersBBox
=
{
r1
:
chart_space
.
bbox
.
catBBox
.
r1
,
r2
:
chart_space
.
bbox
.
catBBox
.
r2
,
c1
:
chart_space
.
bbox
.
catBBox
.
c1
,
c2
:
chart_space
.
bbox
.
catBBox
.
c2
};
c1
:
chart_space
.
bbox
.
catBBox
.
c1
,
c2
:
chart_space
.
bbox
.
catBBox
.
c2
};
if
(
chart_space
.
bbox
.
serBBox
)
if
(
chart_space
.
bbox
.
serBBox
)
catHeadersBBox
=
{
r1
:
chart_space
.
bbox
.
serBBox
.
r1
,
r2
:
chart_space
.
bbox
.
serBBox
.
r2
,
catHeadersBBox
=
{
r1
:
chart_space
.
bbox
.
serBBox
.
r1
,
r2
:
chart_space
.
bbox
.
serBBox
.
r2
,
c1
:
chart_space
.
bbox
.
serBBox
.
c1
,
c2
:
chart_space
.
bbox
.
serBBox
.
c2
};
c1
:
chart_space
.
bbox
.
serBBox
.
c1
,
c2
:
chart_space
.
bbox
.
serBBox
.
c2
};
}
}
var
chartSeries
=
AscFormat
.
getChartSeries
(
ws_view
.
model
,
chartSettings
,
catHeadersBBox
,
serHeadersBBox
);
var
chartSeries
=
AscFormat
.
getChartSeries
(
ws_view
.
model
,
chartSettings
,
catHeadersBBox
,
serHeadersBBox
);
//chart_space.clearFormatting(true);
//chart_space.clearFormatting(true);
b_clear_formatting
=
true
;
b_clear_formatting
=
true
;
chart_space
.
rebuildSeriesFromAsc
(
chartSeries
);
chart_space
.
rebuildSeriesFromAsc
(
chartSeries
);
...
@@ -2901,25 +2927,7 @@ DrawingObjectsController.prototype =
...
@@ -2901,25 +2927,7 @@ DrawingObjectsController.prototype =
}
}
}
}
/*if(AscFormat.isRealNumber(style_index) && style_index > 0 && style_index < 49 && chart_space.style !== style_index)
{
if(!b_clear_formatting)
{
chart_space.clearFormatting();
}
chart_space.setStyle(style_index);
}*/
var
type
=
chartSettings
.
getType
();
if
(
AscFormat
.
isRealNumber
(
style_index
)){
--
style_index
;
var
oCurChartSettings
=
this
.
getPropsFromChart
(
chartSpace
);
var
_cur_type
=
oCurChartSettings
.
type
;
if
(
AscCommon
.
g_oChartPresets
[
_cur_type
]
&&
AscCommon
.
g_oChartPresets
[
_cur_type
][
style_index
]){
AscFormat
.
ApplyPresetToChartSpace
(
chartSpace
,
AscCommon
.
g_oChartPresets
[
_cur_type
][
style_index
],
chartSettings
.
bCreate
);
return
;
}
}
var
chart
=
chart_space
.
chart
;
var
title_show_settings
=
chartSettings
.
getTitle
();
var
title_show_settings
=
chartSettings
.
getTitle
();
if
(
title_show_settings
===
c_oAscChartTitleShowSettings
.
none
)
if
(
title_show_settings
===
c_oAscChartTitleShowSettings
.
none
)
{
{
...
@@ -2940,7 +2948,6 @@ DrawingObjectsController.prototype =
...
@@ -2940,7 +2948,6 @@ DrawingObjectsController.prototype =
chart
.
title
.
setOverlay
(
title_show_settings
===
c_oAscChartTitleShowSettings
.
overlay
);
chart
.
title
.
setOverlay
(
title_show_settings
===
c_oAscChartTitleShowSettings
.
overlay
);
}
}
}
}
var
plot_area
=
chart
.
plotArea
;
//horAxisLabel
//horAxisLabel
...
...
common/spellCheckLanguagesAll.js
View file @
51baae6c
...
@@ -185,7 +185,7 @@ g_spellCheckLanguages.push(new AscCommon.asc_CLanguage("sv-SE", 0x041d));
...
@@ -185,7 +185,7 @@ g_spellCheckLanguages.push(new AscCommon.asc_CLanguage("sv-SE", 0x041d));
//{ "th-TH", 0x041e },
//{ "th-TH", 0x041e },
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
tr-TR
"
,
0x041f
));
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
tr-TR
"
,
0x041f
));
//{ "ur-PK", 0x0420 },
//{ "ur-PK", 0x0420 },
//{ "id-ID", 0x0421 },
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
id-ID
"
,
0x0421
));
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
uk-UA
"
,
0x0422
));
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
uk-UA
"
,
0x0422
));
//{ "be-BY", 0x0423 },
//{ "be-BY", 0x0423 },
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
sl-SI
"
,
0x0424
));
g_spellCheckLanguages
.
push
(
new
AscCommon
.
asc_CLanguage
(
"
sl-SI
"
,
0x0424
));
...
...
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