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
57146166
Commit
57146166
authored
Nov 18, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete xPos/yPos
parent
550b2846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
common/Charts/3DTransformation.js
common/Charts/3DTransformation.js
+1
-1
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+8
-8
No files found.
common/Charts/3DTransformation.js
View file @
57146166
...
...
@@ -745,7 +745,7 @@ Processor3D.prototype.correctPointsPosition = function(chartSpace)
if
(
!
xPoints
)
xPoints
=
chartSpace
.
chart
.
plotArea
&&
chartSpace
.
chart
.
plotArea
.
valAx
?
chartSpace
.
chart
.
plotArea
.
valAx
.
xPoints
:
null
;
var
coordYAxisOx
=
chartSpace
.
chart
.
plotArea
.
catAx
.
posY
?
chartSpace
.
chart
.
plotArea
.
catAx
.
posY
:
chartSpace
.
chart
.
plotArea
.
catAx
.
yPos
;
var
coordYAxisOx
=
chartSpace
.
chart
.
plotArea
.
catAx
.
posY
;
if
(
!
coordYAxisOx
)
coordYAxisOx
=
chartSpace
.
chart
.
plotArea
.
valAx
.
posY
!=
undefined
?
chartSpace
.
chart
.
plotArea
.
valAx
.
posY
:
chartSpace
.
chart
.
plotArea
.
valAx
.
posY
;
...
...
common/Charts/ChartsDrawer.js
View file @
57146166
...
...
@@ -6472,7 +6472,7 @@ drawHBarChart.prototype =
{
var
startY
,
diffYVal
,
width
,
numCache
,
dVal
,
curVal
,
prevVal
,
endBlockPosition
,
startBlockPosition
;
var
catAx
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
;
var
nullPositionOX
=
(
catAx
.
posX
!==
undefined
&&
catAx
.
posX
!==
null
)
?
catAx
.
posX
*
this
.
chartProp
.
pxToMM
:
catAx
.
xPos
*
this
.
chartProp
.
pxToMM
;
var
nullPositionOX
=
catAx
.
posX
!==
null
?
catAx
.
posX
*
this
.
chartProp
.
pxToMM
:
0
;
if
(
this
.
chartProp
.
subType
==
"
stacked
"
||
this
.
chartProp
.
subType
==
"
stackedPer
"
)
{
...
...
@@ -10884,13 +10884,13 @@ catAxisChart.prototype =
var
axisPos
;
if
(
this
.
chartProp
.
type
==
c_oChartTypes
.
HBar
)
{
axisPos
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
?
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
:
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
xPos
;
axisPos
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
;
this
.
paths
.
axisLine
=
this
.
_calculateLine
(
axisPos
,
this
.
chartProp
.
chartGutter
.
_top
/
this
.
chartProp
.
pxToMM
,
axisPos
,
(
this
.
chartProp
.
heightCanvas
-
this
.
chartProp
.
chartGutter
.
_bottom
)
/
this
.
chartProp
.
pxToMM
);
}
else
{
//TODO сделать по аналогии с HBAR
axisPos
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posY
?
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posY
:
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
yPos
;
axisPos
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posY
;
this
.
paths
.
axisLine
=
this
.
_calculateLine
(
this
.
chartProp
.
chartGutter
.
_left
/
this
.
chartProp
.
pxToMM
,
axisPos
,
(
this
.
chartProp
.
widthCanvas
-
this
.
chartProp
.
chartGutter
.
_right
)
/
this
.
chartProp
.
pxToMM
,
axisPos
);
}
},
...
...
@@ -10990,7 +10990,7 @@ catAxisChart.prototype =
var
stepY
=
yPoints
[
1
]
?
Math
.
abs
(
yPoints
[
1
].
pos
-
yPoints
[
0
].
pos
)
:
Math
.
abs
(
yPoints
[
0
].
pos
-
this
.
chartProp
.
chartGutter
.
_bottom
/
this
.
chartProp
.
pxToMM
);
var
minorStep
=
stepY
/
this
.
chartProp
.
numhMinorlines
;
var
posX
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
?
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
:
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
xPos
;
var
posX
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
;
var
posY
,
posMinorY
,
k
;
...
...
@@ -11056,7 +11056,7 @@ catAxisChart.prototype =
var
stepX
=
xPoints
[
1
]
?
Math
.
abs
(
xPoints
[
1
].
pos
-
xPoints
[
0
].
pos
)
:
Math
.
abs
(
xPoints
[
0
].
pos
-
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posX
)
*
2
;
var
minorStep
=
stepX
/
this
.
chartProp
.
numvMinorlines
;
var
posY
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posY
?
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posY
:
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
yPos
;
var
posY
=
this
.
cChartSpace
.
chart
.
plotArea
.
catAx
.
posY
;
var
posX
,
posMinorX
,
k
;
var
firstDiff
=
0
,
posXtemp
;
...
...
@@ -11233,7 +11233,7 @@ valAxisChart.prototype =
_calculateAxis
:
function
()
{
var
nullPoisition
=
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
!=
undefined
?
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
:
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
xPos
;
var
nullPoisition
=
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
;
if
(
this
.
chartProp
.
type
==
c_oChartTypes
.
HBar
)
{
...
...
@@ -11360,7 +11360,7 @@ valAxisChart.prototype =
var
stepY
=
yPoints
[
1
]
?
Math
.
abs
(
yPoints
[
1
].
pos
-
yPoints
[
0
].
pos
)
:
Math
.
abs
(
yPoints
[
0
].
pos
-
this
.
chartProp
.
chartGutter
.
_bottom
/
this
.
chartProp
.
pxToMM
);
var
minorStep
=
stepY
/
this
.
chartProp
.
numhMinorlines
;
var
posX
=
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
?
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
:
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
xPos
;
var
posX
=
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
;
var
posY
;
var
posMinorY
;
...
...
@@ -11501,7 +11501,7 @@ serAxisChart.prototype =
_calculateAxis
:
function
()
{
var
nullPoisition
=
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
!=
undefined
?
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
:
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
xPos
;
var
nullPoisition
=
this
.
cChartSpace
.
chart
.
plotArea
.
valAx
.
posX
;
var
nullPositionOx
=
this
.
chartProp
.
nullPositionOX
;
var
view3DProp
=
this
.
cChartSpace
.
chart
.
view3D
;
...
...
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