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
c2373487
Commit
c2373487
authored
Nov 15, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new chart rotate track
parent
26aa0749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
common/Drawings/TrackObjects/RotateTracks.js
common/Drawings/TrackObjects/RotateTracks.js
+10
-10
No files found.
common/Drawings/TrackObjects/RotateTracks.js
View file @
c2373487
...
...
@@ -620,13 +620,13 @@ function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY)
this
.
cY
=
this
.
chartSizes
.
startY
+
this
.
chartSizes
.
h
/
2
;
this
.
geometry
=
new
AscFormat
.
Geometry
();
var
oPen
=
new
AscFormat
.
CLn
();
oPen
.
w
=
50
000
;
oPen
.
Fill
=
AscFormat
.
CreateSolidFillRGBA
(
0xcc
,
0xe5
,
0xff
,
255
);
oPen
.
w
=
15
000
;
oPen
.
Fill
=
AscFormat
.
CreateSolidFillRGBA
(
255
,
255
,
255
,
128
);
this
.
objectToDraw
=
new
OverlayObject
(
this
.
geometry
,
oChartSpace
.
extX
,
oChartSpace
.
extY
,
null
,
oPen
,
oChartSpace
.
transform
);
var
oPen2
=
new
AscFormat
.
CLn
();
oPen2
.
w
=
1
24
00
;
oPen2
.
Fill
=
AscFormat
.
CreateSolidFillRGBA
(
0
,
0
,
0
,
255
);
oPen2
.
w
=
1
50
00
;
oPen2
.
Fill
=
AscFormat
.
CreateSolidFillRGBA
(
0
x61
,
0x9e
,
0xde
,
255
);
oPen2
.
prstDash
=
0
;
this
.
objectToDraw2
=
new
OverlayObject
(
this
.
geometry
,
oChartSpace
.
extX
,
oChartSpace
.
extY
,
null
,
oPen2
,
oChartSpace
.
transform
);
...
...
@@ -750,11 +750,11 @@ function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY)
var
StratRotY
=
oChartSpace
.
chart
.
view3D
&&
oChartSpace
.
chart
.
view3D
.
rotY
?
oChartSpace
.
chart
.
view3D
.
rotY
:
0
;
deltaAng
=
-
90
*
(
tx
-
this
.
startX
)
/
(
this
.
chartSizes
.
w
/
2
);
this
.
view3D
.
rotY
=
StratRotY
+
deltaAng
;
while
(
this
.
view3D
.
rotY
<
0
){
this
.
view3D
.
rotY
+=
36
0
;
if
(
this
.
view3D
.
rotY
<
0
){
this
.
view3D
.
rotY
=
0
;
}
while
(
this
.
view3D
.
rotY
>
360
){
this
.
view3D
.
rotY
-=
360
;
if
(
this
.
view3D
.
rotY
>=
360
){
this
.
view3D
.
rotY
=
359
;
}
var
StratRotX
=
oChartSpace
.
chart
.
view3D
&&
oChartSpace
.
chart
.
view3D
.
rotX
?
oChartSpace
.
chart
.
view3D
.
rotX
:
0
;
...
...
@@ -763,8 +763,8 @@ function Chart3dAdjustTrack(oChartSpace, numHandle, startX, startY)
if
(
oChartSpace
.
chart
.
plotArea
&&
oChartSpace
.
chart
.
plotArea
.
chart
&&
oChartSpace
.
chart
.
plotArea
.
chart
.
getObjectType
()
===
AscDFH
.
historyitem_type_PieChart
){
if
(
this
.
view3D
.
rotX
<
0
){
this
.
view3D
.
rotX
=
0
;
}
this
.
view3D
.
rotX
=
0
;
}
}
if
(
this
.
view3D
.
rotX
<
-
90
){
...
...
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