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
235d37e9
Commit
235d37e9
authored
Mar 24, 2016
by
GoshaZotov
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
правка для диаграмм с автомасштабированием(hbar)
parent
6814acb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common/Charts/3DTransformation.js
common/Charts/3DTransformation.js
+5
-1
No files found.
common/Charts/3DTransformation.js
View file @
235d37e9
...
@@ -83,7 +83,7 @@ Processor3D.prototype._calculateAutoHPercent = function()
...
@@ -83,7 +83,7 @@ Processor3D.prototype._calculateAutoHPercent = function()
if
(
this
.
hPercent
==
null
)
if
(
this
.
hPercent
==
null
)
{
{
this
.
hPercent
=
this
.
view3D
.
hPercent
===
null
?
(
heightLine
/
widthLine
)
:
this
.
view3D
.
hPercent
/
100
;
this
.
hPercent
=
this
.
view3D
.
hPercent
===
null
?
(
heightLine
/
widthLine
)
:
this
.
view3D
.
hPercent
/
100
;
if
(
this
.
chartsDrawer
.
calcProp
.
type
===
"
HBar
"
&&
this
.
view3D
.
hPercent
===
null
)
if
(
this
.
chartsDrawer
.
calcProp
.
type
===
"
HBar
"
&&
this
.
view3D
.
hPercent
===
null
&&
this
.
view3D
.
rAngAx
)
this
.
hPercent
=
1
/
this
.
hPercent
;
this
.
hPercent
=
1
/
this
.
hPercent
;
}
}
};
};
...
@@ -876,6 +876,10 @@ Processor3D.prototype._calculateDepthPerspective = function()
...
@@ -876,6 +876,10 @@ Processor3D.prototype._calculateDepthPerspective = function()
var
depth
=
baseDepth
*
basePercent
;
var
depth
=
baseDepth
*
basePercent
;
depth
=
depth
+
depth
*
gapDepth
;
depth
=
depth
+
depth
*
gapDepth
;
if
(
this
.
chartsDrawer
.
calcProp
.
type
===
"
HBar
"
&&
this
.
hPercent
!==
null
)
{
depth
=
this
.
hPercent
*
depth
;
}
//TODO глубина в некоторых случаях отличается(тип Standard)
//TODO глубина в некоторых случаях отличается(тип Standard)
if
(
this
.
chartsDrawer
.
calcProp
.
subType
===
"
standard
"
||
this
.
chartsDrawer
.
calcProp
.
type
===
"
Line
"
)
if
(
this
.
chartsDrawer
.
calcProp
.
subType
===
"
standard
"
||
this
.
chartsDrawer
.
calcProp
.
type
===
"
Line
"
)
...
...
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