Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
amos-station-module-view
Commits
02fb2334
Commit
02fb2334
authored
May 21, 2020
by
baoshuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiugai
parent
b8510386
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
PointsPool.js
mods/components/3dviewConvertor/view/PointsPool.js
+9
-0
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+2
-2
markerFactory.js
mods/components/3dviewConvertor/view/points/markerFactory.js
+3
-0
No files found.
mods/components/3dviewConvertor/view/PointsPool.js
View file @
02fb2334
...
...
@@ -59,6 +59,15 @@ class PointsPool extends Component {
onMarkersCreated
=
(
type
,
{
markersCache
})
=>
{
this
.
markerList
[
type
]
=
markersCache
;
let
stagePilot
=
this
.
props
.
stagePilot
;
// if(markersCache&&stagePilot) {
// // console.log(this.markerList)
// console.log(markersCache)
// // console.log(this.props)
// markersCache.eachValue(item => {
// item.node._userData = { ...item.extData };
// stagePilot.positionCtl.objects.push(item.node); })
// }
(
markersCache
||
[]).
forEach
(
mc
=>
{
const
extData
=
mc
.
getExtData
();
if
(
extData
.
hasOwnProperty
(
'visible'
)){
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
02fb2334
...
...
@@ -1280,7 +1280,7 @@ class View3D extends Component {
disabledEdit
defaultLoading
=
{
false
}
ref
=
{
node
=>
(
this
.
a3dRef
=
node
)}
baseObjs
=
{
objs
}
baseObjs
=
{
{}
}
maskContent
=
{
<
MaskContent
planStarted
=
{
planStarted
}
...
...
@@ -1305,7 +1305,7 @@ class View3D extends Component {
positionCtlProps
=
{
positionCtlProps
}
>
{
startAsyncLoad
&&
<
WorkerObjContent
objs
=
{
asyncModels
}
onWorkerMessage
=
{
this
.
onWorkerLoading
}
enableLoading
afterInit
=
{
this
.
onAfterWorkerInit
}
/>
}
<
PointsPool
markers
=
{
markers
}
updateMarker
=
{
this
.
updateMarker
}
planStarted
=
{
alarmStarted
}
stagePilot
=
{
this
.
stagePilot
}
/
>
{
editFlag
&&
pageType
==
'region'
?
''
:
<
PointsPool
markers
=
{
markers
}
updateMarker
=
{
this
.
updateMarker
}
planStarted
=
{
alarmStarted
}
stagePilot
=
{
this
.
stagePilot
}
/>
}
{
fireTruckRoute
&&
<
FatLine
{...
lineData
.
fatLineConf
}
linePath
=
{
JSON
.
parse
(
fireTruckRoute
)}
visible
=
{
showFireTruckRoute
}
/>
}
<
FlameFire
position
=
{
firePosition
}
width
=
{
10
}
height
=
{
20
}
depth
=
{
8
}
sliceSpacing
=
{
1
}
visible
=
{
planStarted
}
/
>
{
this
.
renderAreas
()}
...
...
mods/components/3dviewConvertor/view/points/markerFactory.js
View file @
02fb2334
...
...
@@ -7,6 +7,7 @@ import MarkerIcon from './MarkerIcon';
import
{
tirggerTransTopic
,
tirggerPlanTopic
}
from
'./../dataProcessor'
;
import
FireMarkerIcon
from
'./markers/FireMarkerIcon'
;
import
StatisticsMarkerIcon
from
'./markers/StatisticsMarkerIcon'
import
{
utils
,
deepCopy
}
from
'amos-tool'
;
export
default
function
markerFactory
(
WrappedComponent
=
'div'
,
options
){
const
{
markerType
}
=
options
;
...
...
@@ -79,12 +80,14 @@ export default function markerFactory(WrappedComponent = 'div', options){
}
render
()
{
const
{
markers
}
=
this
.
props
;
const
{
planStarted
}
=
this
.
state
;
let
dialogStyle
=
{
zIndex
:
1000
};
return
(
<
WrappedComponent
>
<
Markers
{...
this
.
props
}
markers
=
{
deepCopy
(
markers
)}
events
=
{
this
.
markerEvents
}
render
=
{
this
.
renderMarker
}
/
>
...
...
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