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
0cd8f202
Commit
0cd8f202
authored
Jan 11, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0b54946d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+12
-8
No files found.
common/Charts/ChartsDrawer.js
View file @
0cd8f202
...
...
@@ -11261,9 +11261,9 @@ drawSurfaceChart.prototype =
return
{
min
:
min
,
max
:
max
}
};
var
calculateFaceBetween2GridLines
=
function
(
minVal
,
maxVal
,
k
,
pointsValue
)
var
calculateFaceBetween2GridLines
=
function
(
minVal
,
maxVal
,
k
,
pointsValue
,
res
)
{
var
res
=
false
;
var
res
ult
=
false
;
if
(
yPoints
[
k
-
1
]
&&
minVal
>=
yPoints
[
k
-
1
].
val
&&
maxVal
<=
yPoints
[
k
].
val
)
{
...
...
@@ -11280,16 +11280,20 @@ drawSurfaceChart.prototype =
addIndex
=
k
+
1
;
}
if
(
!
t
.
paths
.
test2
[
addIndex
]
)
if
(
bIsAddIntoPaths
)
{
t
.
paths
.
test2
[
addIndex
]
=
[];
if
(
!
t
.
paths
.
test2
[
addIndex
])
{
t
.
paths
.
test2
[
addIndex
]
=
[];
}
t
.
paths
.
test2
[
addIndex
].
push
(
path
);
}
t
.
paths
.
test2
[
addIndex
].
push
(
path
);
res
=
true
;
res
[
k
]
=
[
p1
,
p2
,
p3
,
p4
];
result
=
true
;
}
return
res
;
return
res
ult
;
};
var
minMaxVal
=
getMinMaxValArray
(
pointsValue
);
...
...
@@ -11302,7 +11306,7 @@ drawSurfaceChart.prototype =
for
(
var
k
=
0
;
k
<
yPoints
.
length
;
k
++
)
{
//если сегмент весь находится между двумя соседними плоскостями сетки, то есть ни с одной из них не имеет пересечений
if
(
calculateFaceBetween2GridLines
(
minVal
,
maxVal
,
k
,
pointsValue
))
if
(
calculateFaceBetween2GridLines
(
minVal
,
maxVal
,
k
,
pointsValue
,
res
))
{
break
;
}
...
...
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