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
fa4fbd5f
Commit
fa4fbd5f
authored
Apr 22, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/Charts/3DTransformation to function-closure
parent
32fbb536
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
5 deletions
+20
-5
build/configs/webexcel.json
build/configs/webexcel.json
+1
-1
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+1
-1
build/configs/webword.json
build/configs/webword.json
+1
-1
common/Charts/3DTransformation.js
common/Charts/3DTransformation.js
+13
-0
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+4
-2
No files found.
build/configs/webexcel.json
View file @
fa4fbd5f
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
"../common/Charts/charts.js"
,
"../common/Charts/charts.js"
,
"../common/Charts/DrawingArea.js"
,
"../common/Charts/DrawingArea.js"
,
"../common/Charts/DrawingObjects.js"
,
"../common/Charts/DrawingObjects.js"
,
"../common/Charts/3DTransformation.js"
,
"../common/Charts/ChartsDrawer.js"
,
"../common/Charts/ChartsDrawer.js"
,
"../common/scroll.js"
,
"../common/scroll.js"
,
...
@@ -35,7 +36,6 @@
...
@@ -35,7 +36,6 @@
"../common/wordcopypaste.js"
,
"../common/wordcopypaste.js"
,
"../cell/apiDefines.js"
,
"../cell/apiDefines.js"
,
"../common/Charts/3DTransformation.js"
,
"../common/FontsFreeType/font_engine.js"
,
"../common/FontsFreeType/font_engine.js"
,
"../common/FontsFreeType/FontFile.js"
,
"../common/FontsFreeType/FontFile.js"
,
"../common/FontsFreeType/FontManager.js"
,
"../common/FontsFreeType/FontManager.js"
,
...
...
build/configs/webpowerpoint.json
View file @
fa4fbd5f
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
"../common/Charts/charts.js"
,
"../common/Charts/charts.js"
,
"../common/Charts/DrawingArea.js"
,
"../common/Charts/DrawingArea.js"
,
"../common/Charts/DrawingObjects.js"
,
"../common/Charts/DrawingObjects.js"
,
"../common/Charts/3DTransformation.js"
,
"../common/Charts/ChartsDrawer.js"
,
"../common/Charts/ChartsDrawer.js"
,
"../common/scroll.js"
,
"../common/scroll.js"
,
...
@@ -43,7 +44,6 @@
...
@@ -43,7 +44,6 @@
"../slide/Drawing/ThemeLoader.js"
,
"../slide/Drawing/ThemeLoader.js"
,
"../common/SerializeCommonWordExcel.js"
,
"../common/SerializeCommonWordExcel.js"
,
"../common/SerializeChart.js"
,
"../common/SerializeChart.js"
,
"../common/Charts/3DTransformation.js"
,
"../word/Editor/Serialize2.js"
,
"../word/Editor/Serialize2.js"
,
"../word/Editor/Styles.js"
,
"../word/Editor/Styles.js"
,
"../word/Editor/Numbering.js"
,
"../word/Editor/Numbering.js"
,
...
...
build/configs/webword.json
View file @
fa4fbd5f
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
"../common/Charts/charts.js"
,
"../common/Charts/charts.js"
,
"../common/Charts/DrawingArea.js"
,
"../common/Charts/DrawingArea.js"
,
"../common/Charts/DrawingObjects.js"
,
"../common/Charts/DrawingObjects.js"
,
"../common/Charts/3DTransformation.js"
,
"../common/Charts/ChartsDrawer.js"
,
"../common/Charts/ChartsDrawer.js"
,
"../common/scroll.js"
,
"../common/scroll.js"
,
...
@@ -49,7 +50,6 @@
...
@@ -49,7 +50,6 @@
"../word/Drawing/Externals.js"
,
"../word/Drawing/Externals.js"
,
"../common/GlobalLoaders.js"
,
"../common/GlobalLoaders.js"
,
"../word/Drawing/translations.js"
,
"../word/Drawing/translations.js"
,
"../common/Charts/3DTransformation.js"
,
"../common/Drawings/TrackObjects/AdjustmentTracks.js"
,
"../common/Drawings/TrackObjects/AdjustmentTracks.js"
,
"../common/Drawings/TrackObjects/MoveTracks.js"
,
"../common/Drawings/TrackObjects/MoveTracks.js"
,
"../common/Drawings/TrackObjects/NewShapeTracks.js"
,
"../common/Drawings/TrackObjects/NewShapeTracks.js"
,
...
...
common/Charts/3DTransformation.js
View file @
fa4fbd5f
"
use strict
"
;
"
use strict
"
;
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function
(
window
,
undefined
)
{
// Import
// Import
var
ORIENTATION_MIN_MAX
=
AscFormat
.
ORIENTATION_MIN_MAX
;
var
ORIENTATION_MIN_MAX
=
AscFormat
.
ORIENTATION_MIN_MAX
;
...
@@ -2341,3 +2348,9 @@ Point3D.prototype =
...
@@ -2341,3 +2348,9 @@ Point3D.prototype =
return
C
;
return
C
;
}
}
};
};
//----------------------------------------------------------export----------------------------------------------------
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
window
[
'
AscFormat
'
].
Processor3D
=
Processor3D
;
window
[
'
AscFormat
'
].
Point3D
=
Point3D
;
})(
window
);
common/Charts/ChartsDrawer.js
View file @
fa4fbd5f
...
@@ -11,6 +11,7 @@ function (window, undefined) {
...
@@ -11,6 +11,7 @@ function (window, undefined) {
var
cToDeg
=
AscFormat
.
cToDeg
;
var
cToDeg
=
AscFormat
.
cToDeg
;
var
Path
=
AscFormat
.
Path
;
var
Path
=
AscFormat
.
Path
;
var
ORIENTATION_MIN_MAX
=
AscFormat
.
ORIENTATION_MIN_MAX
;
var
ORIENTATION_MIN_MAX
=
AscFormat
.
ORIENTATION_MIN_MAX
;
var
Point3D
=
AscFormat
.
Point3D
;
var
c_oAscTickMark
=
Asc
.
c_oAscTickMark
;
var
c_oAscTickMark
=
Asc
.
c_oAscTickMark
;
var
c_oAscChartDataLabelsPos
=
Asc
.
c_oAscChartDataLabelsPos
;
var
c_oAscChartDataLabelsPos
=
Asc
.
c_oAscChartDataLabelsPos
;
...
@@ -2118,7 +2119,7 @@ CChartsDrawer.prototype =
...
@@ -2118,7 +2119,7 @@ CChartsDrawer.prototype =
standartMarginForCharts
=
17
;
standartMarginForCharts
=
17
;
this
.
processor3D
=
new
Processor3D
(
widthCanvas
,
heightCanvas
,
left
,
right
,
bottom
,
top
,
chartSpace
,
this
);
this
.
processor3D
=
new
AscFormat
.
Processor3D
(
widthCanvas
,
heightCanvas
,
left
,
right
,
bottom
,
top
,
chartSpace
,
this
);
this
.
processor3D
.
calaculate3DProperties
();
this
.
processor3D
.
calaculate3DProperties
();
this
.
processor3D
.
correctPointsPosition
(
chartSpace
);
this
.
processor3D
.
correctPointsPosition
(
chartSpace
);
},
},
...
@@ -11074,7 +11075,7 @@ TEST3D2.prototype =
...
@@ -11074,7 +11075,7 @@ TEST3D2.prototype =
// ToDo а нужна ли global3DPersperctive в ChartsDrawer ?
// ToDo а нужна ли global3DPersperctive в ChartsDrawer ?
var
perspective
=
this
.
cChartSpace
.
chart
.
view3D
&&
this
.
cChartSpace
.
chart
.
view3D
.
perspective
?
this
.
cChartSpace
.
chart
.
view3D
.
perspective
:
global3DPersperctive
;
var
perspective
=
this
.
cChartSpace
.
chart
.
view3D
&&
this
.
cChartSpace
.
chart
.
view3D
.
perspective
?
this
.
cChartSpace
.
chart
.
view3D
.
perspective
:
AscFormat
.
global3DPersperctive
;
var
alpha
=
perspective
/
2
;
var
alpha
=
perspective
/
2
;
var
halfHeight
=
heightChart
/
2
;
var
halfHeight
=
heightChart
/
2
;
...
@@ -11475,6 +11476,7 @@ TEST3D.prototype =
...
@@ -11475,6 +11476,7 @@ TEST3D.prototype =
}
}
};
};
//----------------------------------------------------------export----------------------------------------------------
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
window
[
'
AscFormat
'
]
=
window
[
'
AscFormat
'
]
||
{};
window
[
'
AscFormat
'
].
CChartsDrawer
=
CChartsDrawer
;
window
[
'
AscFormat
'
].
CChartsDrawer
=
CChartsDrawer
;
})(
window
);
})(
window
);
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