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
3361ed6d
Commit
3361ed6d
authored
Jun 17, 2020
by
张博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择点闪烁
parent
1a4d9ff1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
amos.config.js
amos.config.js
+1
-1
index.json
...components/3dviewConvertor/threeres/models/shm/index.json
+1
-1
RightEditRegionPanel.js
...onvertor/view/moduleEditComponent/RightEditRegionPanel.js
+0
-0
marker3DFactory.js
...components/3dviewConvertor/view/points/marker3DFactory.js
+16
-2
No files found.
amos.config.js
View file @
3361ed6d
...
...
@@ -47,7 +47,7 @@
delayTime
:
10
// 屏保出现时间(单位:秒) 10s
},
//三维模型配置 yinan 沂南站 shm 上海庙站 sn 苏南 hainan 海南站
view3dFile
:
'/mods/components/3dviewConvertor/threeres/models/
shm/index_dev
.json'
,
view3dFile
:
'/mods/components/3dviewConvertor/threeres/models/
yinan/index
.json'
,
}
}
};
...
...
mods/components/3dviewConvertor/threeres/models/shm/index.json
View file @
3361ed6d
{
"sceneName"
:
"station-shanghai-temple"
,
"basePath"
:
"
/threeres/models/shm/"
,
"basePath"
:
"/mods/components/3dviewConvertor
/threeres/models/shm/"
,
"models"
:
[
{
"objName"
:
"ground.obj"
,
"mtlName"
:
"ground.mtl"
,
"modelLevel"
:
"Park"
},
{
"objName"
:
"ji1diduanfatingshi.obj"
,
"mtlName"
:
"ji1diduanfatingshi.mtl"
,
"modelLevel"
:
"Building"
,
"foreignKey"
:
"valve-hall_01"
},
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/RightEditRegionPanel.js
View file @
3361ed6d
This diff is collapsed.
Click to expand it.
mods/components/3dviewConvertor/view/points/marker3DFactory.js
View file @
3361ed6d
...
...
@@ -61,9 +61,11 @@ export default function marker3DFactory(WrappedComponent = 'div', options) {
componentWillReceiveProps
=
nextProps
=>
{
if
(
nextProps
.
isEditMode
)
{
this
.
markersCache
.
eachValue
(
obj
=>
{
// this.setTopCardConf(obj, obj.extData);
if
(
nextProps
.
selectPoints
.
type
===
obj
.
extData
.
type
&&
nextProps
.
selectPoints
.
id
===
obj
.
extData
.
id
)
{
this
.
setTwinkleConf
(
obj
);
this
.
selectTwinkleConf
(
obj
,
1
,
'#FF0000'
);
}
else
{
this
.
selectTwinkleConf
(
obj
,
null
,
null
);
}
});
}
...
...
@@ -126,6 +128,18 @@ export default function marker3DFactory(WrappedComponent = 'div', options) {
pulsePeriod
:
pulsePeriod
.
toFixed
(
2
)
});
};
selectTwinkleConf
=
(
obj
,
mark
,
selectColor
)
=>
{
let
pulsePeriod
=
mark
;
let
color
=
selectColor
;
if
(
!
obj
.
baseObjHelper
.
outlineHelper
)
{
obj
.
baseObjHelper
.
setOutlineHelper
(
this
.
outlineHelper
);
}
obj
.
baseObjHelper
.
style
.
outlineColor
=
color
;
pulsePeriod
&&
obj
.
baseObjHelper
.
outlineHelper
.
setConfig
({
pulsePeriod
:
pulsePeriod
.
toFixed
(
2
)
});
};
setTopCardConf
=
(
obj
,
extData
)
=>
{
const
{
title
,
name
}
=
extData
;
...
...
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