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
72401f7d
Commit
72401f7d
authored
Jan 10, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes into drawing
parent
6aeb4aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
53 deletions
+27
-53
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+27
-53
No files found.
common/Charts/ChartsDrawer.js
View file @
72401f7d
...
...
@@ -11314,6 +11314,7 @@ drawSurfaceChart.prototype =
break
;
}
//точки, которые находятся между данными плоскостями сетки(или лежат на них), обязательно должны войти в сегмент
var
pointNeedAddIntoFace
=
null
;
if
(
yPoints
[
k
-
1
])
{
...
...
@@ -11369,7 +11370,7 @@ drawSurfaceChart.prototype =
}
}
var
arrPoints
=
null
;
if
(
null
!==
points
&&
prevPoints
)
{
var
p1
=
prevPoints
[
0
];
...
...
@@ -11377,38 +11378,11 @@ drawSurfaceChart.prototype =
var
p3
=
points
[
0
];
var
p4
=
points
[
1
]
?
points
[
1
]
:
points
[
0
];
var
arrPoints
=
[
p1
,
p2
,
p3
,
p4
];
arrPoints
=
[
p1
,
p2
,
p3
,
p4
];
if
(
points
[
2
])
{
arrPoints
.
push
(
points
[
2
]);
}
if
(
null
!==
pointNeedAddIntoFace
)
{
if
(
pointNeedAddIntoFace
[
0
])
{
arrPoints
.
push
(
pointNeedAddIntoFace
[
0
]);
}
if
(
pointNeedAddIntoFace
[
1
])
{
arrPoints
.
push
(
pointNeedAddIntoFace
[
1
]);
}
if
(
pointNeedAddIntoFace
[
2
])
{
arrPoints
.
push
(
pointNeedAddIntoFace
[
2
]);
}
}
if
(
bIsAddIntoPaths
)
{
var
path
=
t
.
_calculateTempFace
(
arrPoints
);
if
(
!
t
.
paths
.
test2
[
k
])
{
t
.
paths
.
test2
[
k
]
=
[];
}
t
.
paths
.
test2
[
k
].
push
(
path
);
}
res
[
k
]
=
arrPoints
;
}
else
if
(
prevPoints
&&
prevPoints
.
length
===
3
&&
!
points
&&
isCalculatePrevPoints
)
...
...
@@ -11418,34 +11392,28 @@ drawSurfaceChart.prototype =
var
p3
=
prevPoints
[
2
];
var
p4
=
prevPoints
[
3
]
?
prevPoints
[
3
]
:
prevPoints
[
2
];
var
arrPoints
=
[
p1
,
p2
,
p3
,
p4
];
if
(
null
!==
pointNeedAddIntoFace
)
arrPoints
=
[
p1
,
p2
,
p3
,
p4
];
res
[
k
]
=
arrPoints
;
}
//добавляем точки, которые обязательно должны присутвовать в сегменте
if
(
arrPoints
&&
null
!==
pointNeedAddIntoFace
)
{
for
(
var
i
=
0
;
i
<
pointNeedAddIntoFace
.
length
;
i
++
)
{
if
(
pointNeedAddIntoFace
[
0
])
{
arrPoints
.
push
(
pointNeedAddIntoFace
[
0
]);
}
if
(
pointNeedAddIntoFace
[
1
])
{
arrPoints
.
push
(
pointNeedAddIntoFace
[
1
]);
}
if
(
pointNeedAddIntoFace
[
2
])
{
arrPoints
.
push
(
pointNeedAddIntoFace
[
2
]);
}
arrPoints
.
push
(
pointNeedAddIntoFace
[
i
]);
}
if
(
bIsAddIntoPaths
)
}
//add to path array
if
(
arrPoints
&&
bIsAddIntoPaths
)
{
var
path
=
t
.
_calculateTempFace
(
arrPoints
);
if
(
!
t
.
paths
.
test2
[
k
])
{
var
path
=
t
.
_calculateTempFace
(
arrPoints
);
if
(
!
t
.
paths
.
test2
[
k
])
{
t
.
paths
.
test2
[
k
]
=
[];
}
t
.
paths
.
test2
[
k
].
push
(
path
);
t
.
paths
.
test2
[
k
]
=
[];
}
res
[
k
]
=
arrPoints
;
t
.
paths
.
test2
[
k
].
push
(
path
);
}
if
(
points
!==
null
)
...
...
@@ -11513,6 +11481,12 @@ drawSurfaceChart.prototype =
res
=
[
p1
,
p2
];
}
else
if
(
1
===
segmentIntersectionPoints
.
length
)
{
var
p1
=
segmentIntersectionPoints
[
0
];
res
=
[
p1
];
}
}
return
res
;
...
...
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