Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
784545bc
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
784545bc
编写于
11月 15, 2019
作者:
V
vlin17
提交者:
Xiangquan Xiao
11月 15, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Teleop: set A/V status based on process states
上级
e8f0ce46
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
118 addition
and
78 deletion
+118
-78
modules/dreamview/frontend/dist/2.bundle.js
modules/dreamview/frontend/dist/2.bundle.js
+1
-1
modules/dreamview/frontend/dist/2.bundle.js.map
modules/dreamview/frontend/dist/2.bundle.js.map
+1
-1
modules/dreamview/frontend/dist/3.bundle.js
modules/dreamview/frontend/dist/3.bundle.js
+1
-1
modules/dreamview/frontend/dist/3.bundle.js.map
modules/dreamview/frontend/dist/3.bundle.js.map
+1
-1
modules/dreamview/frontend/dist/4.bundle.js
modules/dreamview/frontend/dist/4.bundle.js
+1
-1
modules/dreamview/frontend/dist/4.bundle.js.map
modules/dreamview/frontend/dist/4.bundle.js.map
+1
-1
modules/dreamview/frontend/dist/app.bundle.js
modules/dreamview/frontend/dist/app.bundle.js
+9
-9
modules/dreamview/frontend/dist/app.bundle.js.map
modules/dreamview/frontend/dist/app.bundle.js.map
+1
-1
modules/dreamview/frontend/dist/parameters.bundle.js
modules/dreamview/frontend/dist/parameters.bundle.js
+1
-1
modules/dreamview/frontend/dist/parameters.bundle.js.map
modules/dreamview/frontend/dist/parameters.bundle.js.map
+1
-1
modules/dreamview/frontend/dist/worker.bundle.js
modules/dreamview/frontend/dist/worker.bundle.js
+1
-1
modules/dreamview/frontend/dist/worker.bundle.js.map
modules/dreamview/frontend/dist/worker.bundle.js.map
+1
-1
modules/dreamview/frontend/proto_bundle/sim_world_proto_bundle.json
...eamview/frontend/proto_bundle/sim_world_proto_bundle.json
+7
-0
modules/dreamview/frontend/src/components/TeleopMonitor/AudioControl.js
...iew/frontend/src/components/TeleopMonitor/AudioControl.js
+46
-0
modules/dreamview/frontend/src/components/TeleopMonitor/CarTeleop.js
...amview/frontend/src/components/TeleopMonitor/CarTeleop.js
+13
-14
modules/dreamview/frontend/src/components/TeleopMonitor/ConsoleTeleop.js
...ew/frontend/src/components/TeleopMonitor/ConsoleTeleop.js
+13
-39
modules/dreamview/frontend/src/store/dimension.js
modules/dreamview/frontend/src/store/dimension.js
+2
-2
modules/dreamview/frontend/src/store/teleop.js
modules/dreamview/frontend/src/store/teleop.js
+17
-3
未找到文件。
modules/dreamview/frontend/dist/2.bundle.js
浏览文件 @
784545bc
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
2
],{
4
79
:
function
(
e
,
t
,
a
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
n
=
m
(
a
(
3
)),
i
=
m
(
a
(
1
)),
l
=
m
(
a
(
2
)),
o
=
m
(
a
(
4
)),
r
=
m
(
a
(
5
)),
d
=
m
(
a
(
0
)),
u
=
m
(
a
(
106
)),
c
=
m
(
a
(
20
)),
f
=
a
(
178
),
s
=
m
(
a
(
480
)),
p
=
m
(
a
(
481
));
function
m
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
v
=
function
(
e
){
function
t
(
e
){(
0
,
i
.
default
)(
this
,
t
);
var
a
=
(
0
,
o
.
default
)(
this
,(
t
.
__proto__
||
(
0
,
n
.
default
)(
t
)).
call
(
this
,
e
));
if
(
a
.
scriptOnLoadHandler
=
a
.
scriptOnLoadHandler
.
bind
(
a
),
!
u
.
default
.
mapAPILoaded
){
var
l
=
function
(){
console
.
log
(
"
Map API script loaded.
"
)};
"
BaiduMap
"
===
PARAMETERS
.
navigation
.
map
?
window
.
initMap
=
a
.
scriptOnLoadHandler
:
"
GoogleMap
"
===
PARAMETERS
.
navigation
.
map
&&
(
l
=
a
.
scriptOnLoadHandler
),(
0
,
s
.
default
)({
url
:
PARAMETERS
.
navigation
.
mapAPiUrl
,
onLoad
:
l
,
onError
:
function
(){
console
.
log
(
"
Failed to load map api
"
)}})}
return
a
}
return
(
0
,
r
.
default
)(
t
,
e
),(
0
,
l
.
default
)(
t
,[{
key
:
"
componentDidMount
"
,
value
:
function
(){
u
.
default
.
mapAPILoaded
&&
this
.
scriptOnLoadHandler
()}},{
key
:
"
componentDidUpdate
"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
hasRoutingControls
,
a
=
e
.
size
;
t
&&
a
===
f
.
MAP_SIZE
.
FULL
?
u
.
default
.
enableControls
():
u
.
default
.
disableControls
()}},{
key
:
"
scriptOnLoadHandler
"
,
value
:
function
(){
a
(
482
)(
"
./
"
+
PARAMETERS
.
navigation
.
map
+
"
Adapter
"
).
then
((
function
(
e
){
var
t
=
new
(
0
,
e
.
default
);
u
.
default
.
mapAPILoaded
=!
0
,
u
.
default
.
initialize
(
c
.
default
,
t
),
u
.
default
.
disableControls
()}))}},{
key
:
"
componentWillUnmount
"
,
value
:
function
(){
u
.
default
.
reset
()}},{
key
:
"
render
"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
width
,
a
=
e
.
height
,
n
=
e
.
size
,
i
=
e
.
onResize
;
return
[
"
GoogleMap
"
,
"
BaiduMap
"
].
includes
(
PARAMETERS
.
navigation
.
map
)?
d
.
default
.
createElement
(
"
div
"
,{
displayname
:
"
navigation
"
,
className
:
"
navigation-view
"
,
style
:{
width
:
t
,
height
:
a
}},
d
.
default
.
createElement
(
"
div
"
,{
id
:
"
map_canvas
"
}),
d
.
default
.
createElement
(
p
.
default
,{
type
:
n
,
onClick
:
i
})):(
console
.
error
(
"
Map API
"
+
PARAMETERS
.
navigation
.
map
+
"
is not supported.
"
),
null
)}}]),
t
}(
d
.
default
.
Component
);
t
.
default
=
v
},
480
:
function
(
e
,
t
,
a
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
function
(
e
){
var
t
=
e
.
url
,
a
=
e
.
onLoad
,
n
=
e
.
onError
,
i
=
document
.
createElement
(
"
script
"
);
i
.
src
=
t
,
i
.
type
=
"
text/javascript
"
,
i
.
async
=!
0
,
i
.
onload
=
a
,
i
.
onerror
=
n
,
document
.
body
.
appendChild
(
i
)}},
481
:
function
(
e
,
t
,
a
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
n
=
c
(
a
(
3
)),
i
=
c
(
a
(
1
)),
l
=
c
(
a
(
2
)),
o
=
c
(
a
(
4
)),
r
=
c
(
a
(
5
)),
d
=
c
(
a
(
0
)),
u
=
a
(
178
);
function
c
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
f
=
function
(
e
){
function
t
(){
return
(
0
,
i
.
default
)(
this
,
t
),(
0
,
o
.
default
)(
this
,(
t
.
__proto__
||
(
0
,
n
.
default
)(
t
)).
apply
(
this
,
arguments
))}
return
(
0
,
r
.
default
)(
t
,
e
),(
0
,
l
.
default
)(
t
,[{
key
:
"
getMinimizingIcon
"
,
value
:
function
(){
return
d
.
default
.
createElement
(
"
svg
"
,{
viewBox
:
"
0 0 20 20
"
},
d
.
default
.
createElement
(
"
defs
"
,
null
,
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M20 0L0 20h20V0z
"
,
id
:
"
a
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M11.53 18.5l-.03-7h7
"
,
id
:
"
b
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M12 12l7 7
"
,
id
:
"
c
"
})),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#a
"
,
opacity
:
"
.8
"
,
fill
:
"
#84b7FF
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#b
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#c
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}))}},{
key
:
"
getMaximizingIcon
"
,
value
:
function
(){
return
d
.
default
.
createElement
(
"
svg
"
,{
viewBox
:
"
0 0 20 20
"
},
d
.
default
.
createElement
(
"
defs
"
,
null
,
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M20 0L0 20h20V0z
"
,
id
:
"
a
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M18.47 11.5l.03 7h-7
"
,
id
:
"
b
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M11 11l7 7
"
,
id
:
"
c
"
})),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#a
"
,
opacity
:
"
.8
"
,
fill
:
"
#84b7FF
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#b
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#c
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}))}},{
key
:
"
render
"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
type
,
a
=
e
.
onClick
,
n
=
null
;
switch
(
t
){
case
u
.
MAP_SIZE
.
FULL
:
n
=
this
.
getMinimizingIcon
();
break
;
case
u
.
MAP_SIZE
.
DEFAULT
:
n
=
this
.
getMaximizingIcon
();
break
;
default
:
console
.
error
(
"
Unknown window size found:
"
,
t
)}
return
d
.
default
.
createElement
(
"
div
"
,{
className
:
"
window-resize-control
"
,
onClick
:
a
},
n
)}}]),
t
}(
d
.
default
.
PureComponent
);
t
.
default
=
f
},
482
:
function
(
e
,
t
,
a
){
var
n
=
{
"
./BaiduMapAdapter
"
:[
483
,
3
],
"
./GoogleMapAdapter
"
:[
484
,
4
]};
function
i
(
e
){
if
(
!
a
.
o
(
n
,
e
))
return
Promise
.
resolve
().
then
((
function
(){
var
t
=
new
Error
(
"
Cannot find module '
"
+
e
+
"
'
"
);
throw
t
.
code
=
"
MODULE_NOT_FOUND
"
,
t
}));
var
t
=
n
[
e
],
i
=
t
[
0
];
return
a
.
e
(
t
[
1
]).
then
((
function
(){
return
a
.
t
(
i
,
7
)}))}
i
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
i
.
id
=
482
,
e
.
exports
=
i
}}]);
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
2
],{
4
80
:
function
(
e
,
t
,
a
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
n
=
m
(
a
(
3
)),
i
=
m
(
a
(
1
)),
l
=
m
(
a
(
2
)),
o
=
m
(
a
(
4
)),
r
=
m
(
a
(
5
)),
d
=
m
(
a
(
0
)),
u
=
m
(
a
(
108
)),
c
=
m
(
a
(
20
)),
f
=
a
(
179
),
s
=
m
(
a
(
481
)),
p
=
m
(
a
(
482
));
function
m
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
v
=
function
(
e
){
function
t
(
e
){(
0
,
i
.
default
)(
this
,
t
);
var
a
=
(
0
,
o
.
default
)(
this
,(
t
.
__proto__
||
(
0
,
n
.
default
)(
t
)).
call
(
this
,
e
));
if
(
a
.
scriptOnLoadHandler
=
a
.
scriptOnLoadHandler
.
bind
(
a
),
!
u
.
default
.
mapAPILoaded
){
var
l
=
function
(){
console
.
log
(
"
Map API script loaded.
"
)};
"
BaiduMap
"
===
PARAMETERS
.
navigation
.
map
?
window
.
initMap
=
a
.
scriptOnLoadHandler
:
"
GoogleMap
"
===
PARAMETERS
.
navigation
.
map
&&
(
l
=
a
.
scriptOnLoadHandler
),(
0
,
s
.
default
)({
url
:
PARAMETERS
.
navigation
.
mapAPiUrl
,
onLoad
:
l
,
onError
:
function
(){
console
.
log
(
"
Failed to load map api
"
)}})}
return
a
}
return
(
0
,
r
.
default
)(
t
,
e
),(
0
,
l
.
default
)(
t
,[{
key
:
"
componentDidMount
"
,
value
:
function
(){
u
.
default
.
mapAPILoaded
&&
this
.
scriptOnLoadHandler
()}},{
key
:
"
componentDidUpdate
"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
hasRoutingControls
,
a
=
e
.
size
;
t
&&
a
===
f
.
MAP_SIZE
.
FULL
?
u
.
default
.
enableControls
():
u
.
default
.
disableControls
()}},{
key
:
"
scriptOnLoadHandler
"
,
value
:
function
(){
a
(
483
)(
"
./
"
+
PARAMETERS
.
navigation
.
map
+
"
Adapter
"
).
then
((
function
(
e
){
var
t
=
new
(
0
,
e
.
default
);
u
.
default
.
mapAPILoaded
=!
0
,
u
.
default
.
initialize
(
c
.
default
,
t
),
u
.
default
.
disableControls
()}))}},{
key
:
"
componentWillUnmount
"
,
value
:
function
(){
u
.
default
.
reset
()}},{
key
:
"
render
"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
width
,
a
=
e
.
height
,
n
=
e
.
size
,
i
=
e
.
onResize
;
return
[
"
GoogleMap
"
,
"
BaiduMap
"
].
includes
(
PARAMETERS
.
navigation
.
map
)?
d
.
default
.
createElement
(
"
div
"
,{
displayname
:
"
navigation
"
,
className
:
"
navigation-view
"
,
style
:{
width
:
t
,
height
:
a
}},
d
.
default
.
createElement
(
"
div
"
,{
id
:
"
map_canvas
"
}),
d
.
default
.
createElement
(
p
.
default
,{
type
:
n
,
onClick
:
i
})):(
console
.
error
(
"
Map API
"
+
PARAMETERS
.
navigation
.
map
+
"
is not supported.
"
),
null
)}}]),
t
}(
d
.
default
.
Component
);
t
.
default
=
v
},
481
:
function
(
e
,
t
,
a
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
function
(
e
){
var
t
=
e
.
url
,
a
=
e
.
onLoad
,
n
=
e
.
onError
,
i
=
document
.
createElement
(
"
script
"
);
i
.
src
=
t
,
i
.
type
=
"
text/javascript
"
,
i
.
async
=!
0
,
i
.
onload
=
a
,
i
.
onerror
=
n
,
document
.
body
.
appendChild
(
i
)}},
482
:
function
(
e
,
t
,
a
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
n
=
c
(
a
(
3
)),
i
=
c
(
a
(
1
)),
l
=
c
(
a
(
2
)),
o
=
c
(
a
(
4
)),
r
=
c
(
a
(
5
)),
d
=
c
(
a
(
0
)),
u
=
a
(
179
);
function
c
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
f
=
function
(
e
){
function
t
(){
return
(
0
,
i
.
default
)(
this
,
t
),(
0
,
o
.
default
)(
this
,(
t
.
__proto__
||
(
0
,
n
.
default
)(
t
)).
apply
(
this
,
arguments
))}
return
(
0
,
r
.
default
)(
t
,
e
),(
0
,
l
.
default
)(
t
,[{
key
:
"
getMinimizingIcon
"
,
value
:
function
(){
return
d
.
default
.
createElement
(
"
svg
"
,{
viewBox
:
"
0 0 20 20
"
},
d
.
default
.
createElement
(
"
defs
"
,
null
,
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M20 0L0 20h20V0z
"
,
id
:
"
a
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M11.53 18.5l-.03-7h7
"
,
id
:
"
b
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M12 12l7 7
"
,
id
:
"
c
"
})),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#a
"
,
opacity
:
"
.8
"
,
fill
:
"
#84b7FF
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#b
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#c
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}))}},{
key
:
"
getMaximizingIcon
"
,
value
:
function
(){
return
d
.
default
.
createElement
(
"
svg
"
,{
viewBox
:
"
0 0 20 20
"
},
d
.
default
.
createElement
(
"
defs
"
,
null
,
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M20 0L0 20h20V0z
"
,
id
:
"
a
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M18.47 11.5l.03 7h-7
"
,
id
:
"
b
"
}),
d
.
default
.
createElement
(
"
path
"
,{
d
:
"
M11 11l7 7
"
,
id
:
"
c
"
})),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#a
"
,
opacity
:
"
.8
"
,
fill
:
"
#84b7FF
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#b
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}),
d
.
default
.
createElement
(
"
use
"
,{
xlinkHref
:
"
#c
"
,
fillOpacity
:
"
0
"
,
stroke
:
"
#006AFF
"
,
strokeWidth
:
"
2
"
}))}},{
key
:
"
render
"
,
value
:
function
(){
var
e
=
this
.
props
,
t
=
e
.
type
,
a
=
e
.
onClick
,
n
=
null
;
switch
(
t
){
case
u
.
MAP_SIZE
.
FULL
:
n
=
this
.
getMinimizingIcon
();
break
;
case
u
.
MAP_SIZE
.
DEFAULT
:
n
=
this
.
getMaximizingIcon
();
break
;
default
:
console
.
error
(
"
Unknown window size found:
"
,
t
)}
return
d
.
default
.
createElement
(
"
div
"
,{
className
:
"
window-resize-control
"
,
onClick
:
a
},
n
)}}]),
t
}(
d
.
default
.
PureComponent
);
t
.
default
=
f
},
483
:
function
(
e
,
t
,
a
){
var
n
=
{
"
./BaiduMapAdapter
"
:[
484
,
3
],
"
./GoogleMapAdapter
"
:[
485
,
4
]};
function
i
(
e
){
if
(
!
a
.
o
(
n
,
e
))
return
Promise
.
resolve
().
then
((
function
(){
var
t
=
new
Error
(
"
Cannot find module '
"
+
e
+
"
'
"
);
throw
t
.
code
=
"
MODULE_NOT_FOUND
"
,
t
}));
var
t
=
n
[
e
],
i
=
t
[
0
];
return
a
.
e
(
t
[
1
]).
then
((
function
(){
return
a
.
t
(
i
,
7
)}))}
i
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
i
.
id
=
483
,
e
.
exports
=
i
}}]);
//# sourceMappingURL=2.bundle.js.map
\ No newline at end of file
modules/dreamview/frontend/dist/2.bundle.js.map
浏览文件 @
784545bc
{"version":3,"file":"2.bundle.js","sources":["webpack:///2.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{479:function(e,t,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=m(a(3)),i=m(a(1)),l=m(a(2)),o=m(a(4)),r=m(a(5)),d=m(a(0)),u=m(a(106)),c=m(a(20)),f=a(178),s=m(a(480)),p=m(a(481));function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,i.default)(this,t);var a=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));if(a.scriptOnLoadHandler=a.scriptOnLoadHandler.bind(a),!u.default.mapAPILoaded){var l=function(){console.log(\"Map API script loaded.\")};\"BaiduMap\"===PARAMETERS.navigation.map?window.initMap=a.scriptOnLoadHandler:\"GoogleMap\"===PARAMETERS.navigation.map&&(l=a.scriptOnLoadHandler),(0,s.default)({url:PARAMETERS.navigation.mapAPiUrl,onLoad:l,onError:function(){console.log(\"Failed to load map api\")}})}return a}return(0,r.default)(t,e),(0,l.default)(t,[{key:\"componentDidMount\",value:function(){u.default.mapAPILoaded&&this.scriptOnLoadHandler()}},{key:\"componentDidUpdate\",value:function(){var e=this.props,t=e.hasRoutingControls,a=e.size;t&&a===f.MAP_SIZE.FULL?u.default.enableControls():u.default.disableControls()}},{key:\"scriptOnLoadHandler\",value:function(){a(482)(\"./\"+PARAMETERS.navigation.map+\"Adapter\").then((function(e){var t=new(0,e.default);u.default.mapAPILoaded=!0,u.default.initialize(c.default,t),u.default.disableControls()}))}},{key:\"componentWillUnmount\",value:function(){u.default.reset()}},{key:\"render\",value:function(){var e=this.props,t=e.width,a=e.height,n=e.size,i=e.onResize;return[\"GoogleMap\",\"BaiduMap\"].includes(PARAMETERS.navigation.map)?d.default.createElement(\"div\",{displayname:\"navigation\",className:\"navigation-view\",style:{width:t,height:a}},d.default.createElement(\"div\",{id:\"map_canvas\"}),d.default.createElement(p.default,{type:n,onClick:i})):(console.error(\"Map API \"+PARAMETERS.navigation.map+\" is not supported.\"),null)}}]),t}(d.default.Component);t.default=v},480:function(e,t,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=e.url,a=e.onLoad,n=e.onError,i=document.createElement(\"script\");i.src=t,i.type=\"text/javascript\",i.async=!0,i.onload=a,i.onerror=n,document.body.appendChild(i)}},481:function(e,t,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=c(a(3)),i=c(a(1)),l=c(a(2)),o=c(a(4)),r=c(a(5)),d=c(a(0)),u=a(178);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,i.default)(this,t),(0,o.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,r.default)(t,e),(0,l.default)(t,[{key:\"getMinimizingIcon\",value:function(){return d.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},d.default.createElement(\"defs\",null,d.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),d.default.createElement(\"path\",{d:\"M11.53 18.5l-.03-7h7\",id:\"b\"}),d.default.createElement(\"path\",{d:\"M12 12l7 7\",id:\"c\"})),d.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".8\",fill:\"#84b7FF\"}),d.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),d.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"getMaximizingIcon\",value:function(){return d.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},d.default.createElement(\"defs\",null,d.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),d.default.createElement(\"path\",{d:\"M18.47 11.5l.03 7h-7\",id:\"b\"}),d.default.createElement(\"path\",{d:\"M11 11l7 7\",id:\"c\"})),d.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".8\",fill:\"#84b7FF\"}),d.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),d.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"render\",value:function(){var e=this.props,t=e.type,a=e.onClick,n=null;switch(t){case u.MAP_SIZE.FULL:n=this.getMinimizingIcon();break;case u.MAP_SIZE.DEFAULT:n=this.getMaximizingIcon();break;default:console.error(\"Unknown window size found:\",t)}return d.default.createElement(\"div\",{className:\"window-resize-control\",onClick:a},n)}}]),t}(d.default.PureComponent);t.default=f},482:function(e,t,a){var n={\"./BaiduMapAdapter\":[483,3],\"./GoogleMapAdapter\":[484,4]};function i(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}));var t=n[e],i=t[0];return a.e(t[1]).then((function(){return a.t(i,7)}))}i.keys=function(){return Object.keys(n)},i.id=482,e.exports=i}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
{"version":3,"file":"2.bundle.js","sources":["webpack:///2.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{480:function(e,t,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=m(a(3)),i=m(a(1)),l=m(a(2)),o=m(a(4)),r=m(a(5)),d=m(a(0)),u=m(a(108)),c=m(a(20)),f=a(179),s=m(a(481)),p=m(a(482));function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,i.default)(this,t);var a=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));if(a.scriptOnLoadHandler=a.scriptOnLoadHandler.bind(a),!u.default.mapAPILoaded){var l=function(){console.log(\"Map API script loaded.\")};\"BaiduMap\"===PARAMETERS.navigation.map?window.initMap=a.scriptOnLoadHandler:\"GoogleMap\"===PARAMETERS.navigation.map&&(l=a.scriptOnLoadHandler),(0,s.default)({url:PARAMETERS.navigation.mapAPiUrl,onLoad:l,onError:function(){console.log(\"Failed to load map api\")}})}return a}return(0,r.default)(t,e),(0,l.default)(t,[{key:\"componentDidMount\",value:function(){u.default.mapAPILoaded&&this.scriptOnLoadHandler()}},{key:\"componentDidUpdate\",value:function(){var e=this.props,t=e.hasRoutingControls,a=e.size;t&&a===f.MAP_SIZE.FULL?u.default.enableControls():u.default.disableControls()}},{key:\"scriptOnLoadHandler\",value:function(){a(483)(\"./\"+PARAMETERS.navigation.map+\"Adapter\").then((function(e){var t=new(0,e.default);u.default.mapAPILoaded=!0,u.default.initialize(c.default,t),u.default.disableControls()}))}},{key:\"componentWillUnmount\",value:function(){u.default.reset()}},{key:\"render\",value:function(){var e=this.props,t=e.width,a=e.height,n=e.size,i=e.onResize;return[\"GoogleMap\",\"BaiduMap\"].includes(PARAMETERS.navigation.map)?d.default.createElement(\"div\",{displayname:\"navigation\",className:\"navigation-view\",style:{width:t,height:a}},d.default.createElement(\"div\",{id:\"map_canvas\"}),d.default.createElement(p.default,{type:n,onClick:i})):(console.error(\"Map API \"+PARAMETERS.navigation.map+\" is not supported.\"),null)}}]),t}(d.default.Component);t.default=v},481:function(e,t,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=e.url,a=e.onLoad,n=e.onError,i=document.createElement(\"script\");i.src=t,i.type=\"text/javascript\",i.async=!0,i.onload=a,i.onerror=n,document.body.appendChild(i)}},482:function(e,t,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=c(a(3)),i=c(a(1)),l=c(a(2)),o=c(a(4)),r=c(a(5)),d=c(a(0)),u=a(179);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){return(0,i.default)(this,t),(0,o.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,r.default)(t,e),(0,l.default)(t,[{key:\"getMinimizingIcon\",value:function(){return d.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},d.default.createElement(\"defs\",null,d.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),d.default.createElement(\"path\",{d:\"M11.53 18.5l-.03-7h7\",id:\"b\"}),d.default.createElement(\"path\",{d:\"M12 12l7 7\",id:\"c\"})),d.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".8\",fill:\"#84b7FF\"}),d.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),d.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"getMaximizingIcon\",value:function(){return d.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},d.default.createElement(\"defs\",null,d.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),d.default.createElement(\"path\",{d:\"M18.47 11.5l.03 7h-7\",id:\"b\"}),d.default.createElement(\"path\",{d:\"M11 11l7 7\",id:\"c\"})),d.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".8\",fill:\"#84b7FF\"}),d.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),d.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"render\",value:function(){var e=this.props,t=e.type,a=e.onClick,n=null;switch(t){case u.MAP_SIZE.FULL:n=this.getMinimizingIcon();break;case u.MAP_SIZE.DEFAULT:n=this.getMaximizingIcon();break;default:console.error(\"Unknown window size found:\",t)}return d.default.createElement(\"div\",{className:\"window-resize-control\",onClick:a},n)}}]),t}(d.default.PureComponent);t.default=f},483:function(e,t,a){var n={\"./BaiduMapAdapter\":[484,3],\"./GoogleMapAdapter\":[485,4]};function i(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}));var t=n[e],i=t[0];return a.e(t[1]).then((function(){return a.t(i,7)}))}i.keys=function(){return Object.keys(n)},i.id=483,e.exports=i}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
modules/dreamview/frontend/dist/3.bundle.js
浏览文件 @
784545bc
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
3
],{
48
3
:
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
a
=
c
(
n
(
3
)),
o
=
c
(
n
(
4
)),
i
=
c
(
n
(
5
)),
l
=
c
(
n
(
36
)),
r
=
c
(
n
(
23
)),
s
=
c
(
n
(
1
)),
u
=
c
(
n
(
2
)),
d
=
n
(
177
);
function
c
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
p
=
function
(){
function
e
(){(
0
,
s
.
default
)(
this
,
e
),
this
.
map
=
null
,
this
.
controls
=
[],
this
.
initializedCenter
=!
1
}
return
(
0
,
u
.
default
)(
e
,[{
key
:
"
isInitialized
"
,
value
:
function
(){
return
null
!==
this
.
map
&&
(
0
,
r
.
default
)(
this
.
map
).
length
>
0
}},{
key
:
"
loadMap
"
,
value
:
function
(
e
,
t
){
this
.
map
=
new
BMap
.
Map
(
t
,{
enableMapClick
:
!
1
}),
this
.
map
.
enableScrollWheelZoom
(),
this
.
map
.
addControl
(
new
BMap
.
MapTypeControl
({
anchor
:
BMAP_ANCHOR_TOP_LEFT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
})),
this
.
map
.
addControl
(
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_RIGHT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
,
enableGeolocation
:
!
1
}))}},{
key
:
"
setCenter
"
,
value
:
function
(
e
){
this
.
initializedCenter
?
this
.
map
.
setCenter
(
e
):(
this
.
map
.
centerAndZoom
(
e
,
19
),
this
.
initializedCenter
=!
0
)}},{
key
:
"
setZoom
"
,
value
:
function
(
e
){
this
.
map
.
setZoom
(
e
)}},{
key
:
"
addEventHandler
"
,
value
:
function
(
e
,
t
){
this
.
map
.
addEventListener
(
e
,(
function
(
e
){
var
n
=
e
.
point
;
t
(
n
)}))}},{
key
:
"
createPoint
"
,
value
:
function
(
e
){
var
t
=
e
.
lat
,
n
=
e
.
lng
;
return
new
BMap
.
Point
(
n
,
t
)}},{
key
:
"
createMarker
"
,
value
:
function
(
e
,
t
){
var
n
=!
(
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
])
||
arguments
[
2
],
a
=
null
;
t
&&
(
a
=
new
BMap
.
Label
(
t
,{
point
:
e
,
offset
:
new
BMap
.
Size
(
15
,
-
15
)}));
var
o
=
new
BMap
.
Marker
(
e
,{
label
:
a
,
enableDragging
:
n
,
rotation
:
5
});
return
o
.
setLabel
(
a
),
this
.
map
.
addOverlay
(
o
),
o
}},{
key
:
"
createPolyline
"
,
value
:
function
(
e
,
t
){
var
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
a
=
arguments
.
length
>
3
&&
void
0
!==
arguments
[
3
]?
arguments
[
3
]:
2
,
o
=
{
geodesic
:
!
0
,
strokeColor
:
t
,
strokeOpacity
:
n
,
strokeWeight
:
a
},
i
=
new
BMap
.
Polyline
(
e
,
o
);
return
this
.
map
.
addOverlay
(
i
),
i
}},{
key
:
"
createControl
"
,
value
:
function
(
e
){
var
t
=
e
.
text
,
n
=
e
.
tip
,
a
=
e
.
color
,
o
=
e
.
offsetX
,
i
=
e
.
offsetY
,
l
=
e
.
onClickHandler
,
r
=
new
f
(
t
,
n
,
a
,
new
BMap
.
Size
(
o
,
i
),
l
);
this
.
map
.
addControl
(
r
),
this
.
controls
.
push
(
r
)}},{
key
:
"
disableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
removeControl
(
t
)}))}},{
key
:
"
enableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
addControl
(
t
)}))}},{
key
:
"
getMarkerPosition
"
,
value
:
function
(
e
){
return
e
.
getPosition
()}},{
key
:
"
updatePolyline
"
,
value
:
function
(
e
,
t
){
e
.
setPath
(
t
)}},{
key
:
"
removePolyline
"
,
value
:
function
(
e
){
this
.
map
.
removeOverlay
(
e
)}},{
key
:
"
applyCoordinateOffset
"
,
value
:
function
(
e
){
var
t
=
(
0
,
l
.
default
)(
e
,
2
),
n
=
t
[
0
],
a
=
t
[
1
];
return
(
0
,
d
.
WGS84ToBD09LL
)(
n
,
a
)}}]),
e
}();
t
.
default
=
p
;
var
f
=
function
(
e
){
function
t
(
e
,
n
,
i
,
l
,
r
){
var
u
;(
0
,
s
.
default
)(
this
,
t
);
for
(
var
d
=
arguments
.
length
,
c
=
Array
(
d
>
5
?
d
-
5
:
0
),
p
=
5
;
p
<
d
;
p
++
)
c
[
p
-
5
]
=
arguments
[
p
];
var
f
=
(
0
,
o
.
default
)(
this
,(
u
=
t
.
__proto__
||
(
0
,
a
.
default
)(
t
)).
call
.
apply
(
u
,[
this
].
concat
(
c
)));
return
f
.
defaultAnchor
=
BMAP_ANCHOR_TOP_LEFT
,
f
.
defaultOffset
=
l
,
f
.
onClickHandler
=
r
,
f
.
title
=
n
,
f
.
text
=
e
,
f
.
backgroundColor
=
i
,
f
}
return
(
0
,
i
.
default
)(
t
,
e
),(
0
,
u
.
default
)(
t
,[{
key
:
"
initialize
"
,
value
:
function
(
e
){
var
t
=
this
,
n
=
document
.
createElement
(
"
div
"
),
a
=
document
.
createElement
(
"
div
"
);
a
.
style
.
backgroundColor
=
this
.
backgroundColor
,
a
.
style
.
border
=
"
2px solid #fff
"
,
a
.
style
.
borderRadius
=
"
3px
"
,
a
.
style
.
boxShadow
=
"
0 2px 6px rgba(0,0,0,.3)
"
,
a
.
style
.
cursor
=
"
pointer
"
,
a
.
style
.
marginBottom
=
"
22px
"
,
a
.
style
.
textAlign
=
"
center
"
,
a
.
title
=
this
.
title
,
n
.
appendChild
(
a
);
var
o
=
document
.
createElement
(
"
div
"
);
return
o
.
style
.
color
=
"
rgb(25,25,25)
"
,
o
.
style
.
fontFamily
=
"
Roboto,Arial,sans-serif
"
,
o
.
style
.
fontSize
=
"
16px
"
,
o
.
style
.
lineHeight
=
"
38px
"
,
o
.
style
.
paddingLeft
=
"
5px
"
,
o
.
style
.
paddingRight
=
"
5px
"
,
o
.
innerHTML
=
this
.
text
,
a
.
appendChild
(
o
),
e
.
getContainer
().
appendChild
(
n
),
a
.
addEventListener
(
"
click
"
,(
function
(){
t
.
onClickHandler
(
o
)})),
n
}}]),
t
}(
BMap
.
Control
)}}]);
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
3
],{
48
4
:
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
a
=
c
(
n
(
3
)),
o
=
c
(
n
(
4
)),
i
=
c
(
n
(
5
)),
l
=
c
(
n
(
36
)),
r
=
c
(
n
(
23
)),
s
=
c
(
n
(
1
)),
u
=
c
(
n
(
2
)),
d
=
n
(
178
);
function
c
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
p
=
function
(){
function
e
(){(
0
,
s
.
default
)(
this
,
e
),
this
.
map
=
null
,
this
.
controls
=
[],
this
.
initializedCenter
=!
1
}
return
(
0
,
u
.
default
)(
e
,[{
key
:
"
isInitialized
"
,
value
:
function
(){
return
null
!==
this
.
map
&&
(
0
,
r
.
default
)(
this
.
map
).
length
>
0
}},{
key
:
"
loadMap
"
,
value
:
function
(
e
,
t
){
this
.
map
=
new
BMap
.
Map
(
t
,{
enableMapClick
:
!
1
}),
this
.
map
.
enableScrollWheelZoom
(),
this
.
map
.
addControl
(
new
BMap
.
MapTypeControl
({
anchor
:
BMAP_ANCHOR_TOP_LEFT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
})),
this
.
map
.
addControl
(
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_RIGHT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
,
enableGeolocation
:
!
1
}))}},{
key
:
"
setCenter
"
,
value
:
function
(
e
){
this
.
initializedCenter
?
this
.
map
.
setCenter
(
e
):(
this
.
map
.
centerAndZoom
(
e
,
19
),
this
.
initializedCenter
=!
0
)}},{
key
:
"
setZoom
"
,
value
:
function
(
e
){
this
.
map
.
setZoom
(
e
)}},{
key
:
"
addEventHandler
"
,
value
:
function
(
e
,
t
){
this
.
map
.
addEventListener
(
e
,(
function
(
e
){
var
n
=
e
.
point
;
t
(
n
)}))}},{
key
:
"
createPoint
"
,
value
:
function
(
e
){
var
t
=
e
.
lat
,
n
=
e
.
lng
;
return
new
BMap
.
Point
(
n
,
t
)}},{
key
:
"
createMarker
"
,
value
:
function
(
e
,
t
){
var
n
=!
(
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
])
||
arguments
[
2
],
a
=
null
;
t
&&
(
a
=
new
BMap
.
Label
(
t
,{
point
:
e
,
offset
:
new
BMap
.
Size
(
15
,
-
15
)}));
var
o
=
new
BMap
.
Marker
(
e
,{
label
:
a
,
enableDragging
:
n
,
rotation
:
5
});
return
o
.
setLabel
(
a
),
this
.
map
.
addOverlay
(
o
),
o
}},{
key
:
"
createPolyline
"
,
value
:
function
(
e
,
t
){
var
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
a
=
arguments
.
length
>
3
&&
void
0
!==
arguments
[
3
]?
arguments
[
3
]:
2
,
o
=
{
geodesic
:
!
0
,
strokeColor
:
t
,
strokeOpacity
:
n
,
strokeWeight
:
a
},
i
=
new
BMap
.
Polyline
(
e
,
o
);
return
this
.
map
.
addOverlay
(
i
),
i
}},{
key
:
"
createControl
"
,
value
:
function
(
e
){
var
t
=
e
.
text
,
n
=
e
.
tip
,
a
=
e
.
color
,
o
=
e
.
offsetX
,
i
=
e
.
offsetY
,
l
=
e
.
onClickHandler
,
r
=
new
f
(
t
,
n
,
a
,
new
BMap
.
Size
(
o
,
i
),
l
);
this
.
map
.
addControl
(
r
),
this
.
controls
.
push
(
r
)}},{
key
:
"
disableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
removeControl
(
t
)}))}},{
key
:
"
enableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
addControl
(
t
)}))}},{
key
:
"
getMarkerPosition
"
,
value
:
function
(
e
){
return
e
.
getPosition
()}},{
key
:
"
updatePolyline
"
,
value
:
function
(
e
,
t
){
e
.
setPath
(
t
)}},{
key
:
"
removePolyline
"
,
value
:
function
(
e
){
this
.
map
.
removeOverlay
(
e
)}},{
key
:
"
applyCoordinateOffset
"
,
value
:
function
(
e
){
var
t
=
(
0
,
l
.
default
)(
e
,
2
),
n
=
t
[
0
],
a
=
t
[
1
];
return
(
0
,
d
.
WGS84ToBD09LL
)(
n
,
a
)}}]),
e
}();
t
.
default
=
p
;
var
f
=
function
(
e
){
function
t
(
e
,
n
,
i
,
l
,
r
){
var
u
;(
0
,
s
.
default
)(
this
,
t
);
for
(
var
d
=
arguments
.
length
,
c
=
Array
(
d
>
5
?
d
-
5
:
0
),
p
=
5
;
p
<
d
;
p
++
)
c
[
p
-
5
]
=
arguments
[
p
];
var
f
=
(
0
,
o
.
default
)(
this
,(
u
=
t
.
__proto__
||
(
0
,
a
.
default
)(
t
)).
call
.
apply
(
u
,[
this
].
concat
(
c
)));
return
f
.
defaultAnchor
=
BMAP_ANCHOR_TOP_LEFT
,
f
.
defaultOffset
=
l
,
f
.
onClickHandler
=
r
,
f
.
title
=
n
,
f
.
text
=
e
,
f
.
backgroundColor
=
i
,
f
}
return
(
0
,
i
.
default
)(
t
,
e
),(
0
,
u
.
default
)(
t
,[{
key
:
"
initialize
"
,
value
:
function
(
e
){
var
t
=
this
,
n
=
document
.
createElement
(
"
div
"
),
a
=
document
.
createElement
(
"
div
"
);
a
.
style
.
backgroundColor
=
this
.
backgroundColor
,
a
.
style
.
border
=
"
2px solid #fff
"
,
a
.
style
.
borderRadius
=
"
3px
"
,
a
.
style
.
boxShadow
=
"
0 2px 6px rgba(0,0,0,.3)
"
,
a
.
style
.
cursor
=
"
pointer
"
,
a
.
style
.
marginBottom
=
"
22px
"
,
a
.
style
.
textAlign
=
"
center
"
,
a
.
title
=
this
.
title
,
n
.
appendChild
(
a
);
var
o
=
document
.
createElement
(
"
div
"
);
return
o
.
style
.
color
=
"
rgb(25,25,25)
"
,
o
.
style
.
fontFamily
=
"
Roboto,Arial,sans-serif
"
,
o
.
style
.
fontSize
=
"
16px
"
,
o
.
style
.
lineHeight
=
"
38px
"
,
o
.
style
.
paddingLeft
=
"
5px
"
,
o
.
style
.
paddingRight
=
"
5px
"
,
o
.
innerHTML
=
this
.
text
,
a
.
appendChild
(
o
),
e
.
getContainer
().
appendChild
(
n
),
a
.
addEventListener
(
"
click
"
,(
function
(){
t
.
onClickHandler
(
o
)})),
n
}}]),
t
}(
BMap
.
Control
)}}]);
//# sourceMappingURL=3.bundle.js.map
\ No newline at end of file
modules/dreamview/frontend/dist/3.bundle.js.map
浏览文件 @
784545bc
{"version":3,"file":"3.bundle.js","sources":["webpack:///3.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{483:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a=c(n(3)),o=c(n(4)),i=c(n(5)),l=c(n(36)),r=c(n(23)),s=c(n(1)),u=c(n(2)),d=n(177);function c(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(){(0,s.default)(this,e),this.map=null,this.controls=[],this.initializedCenter=!1}return(0,u.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.map&&(0,r.default)(this.map).length>0}},{key:\"loadMap\",value:function(e,t){this.map=new BMap.Map(t,{enableMapClick:!1}),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:\"setCenter\",value:function(e){this.initializedCenter?this.map.setCenter(e):(this.map.centerAndZoom(e,19),this.initializedCenter=!0)}},{key:\"setZoom\",value:function(e){this.map.setZoom(e)}},{key:\"addEventHandler\",value:function(e,t){this.map.addEventListener(e,(function(e){var n=e.point;t(n)}))}},{key:\"createPoint\",value:function(e){var t=e.lat,n=e.lng;return new BMap.Point(n,t)}},{key:\"createMarker\",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=null;t&&(a=new BMap.Label(t,{point:e,offset:new BMap.Size(15,-15)}));var o=new BMap.Marker(e,{label:a,enableDragging:n,rotation:5});return o.setLabel(a),this.map.addOverlay(o),o}},{key:\"createPolyline\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o={geodesic:!0,strokeColor:t,strokeOpacity:n,strokeWeight:a},i=new BMap.Polyline(e,o);return this.map.addOverlay(i),i}},{key:\"createControl\",value:function(e){var t=e.text,n=e.tip,a=e.color,o=e.offsetX,i=e.offsetY,l=e.onClickHandler,r=new f(t,n,a,new BMap.Size(o,i),l);this.map.addControl(r),this.controls.push(r)}},{key:\"disableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.removeControl(t)}))}},{key:\"enableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.addControl(t)}))}},{key:\"getMarkerPosition\",value:function(e){return e.getPosition()}},{key:\"updatePolyline\",value:function(e,t){e.setPath(t)}},{key:\"removePolyline\",value:function(e){this.map.removeOverlay(e)}},{key:\"applyCoordinateOffset\",value:function(e){var t=(0,l.default)(e,2),n=t[0],a=t[1];return(0,d.WGS84ToBD09LL)(n,a)}}]),e}();t.default=p;var f=function(e){function t(e,n,i,l,r){var u;(0,s.default)(this,t);for(var d=arguments.length,c=Array(d>5?d-5:0),p=5;p<d;p++)c[p-5]=arguments[p];var f=(0,o.default)(this,(u=t.__proto__||(0,a.default)(t)).call.apply(u,[this].concat(c)));return f.defaultAnchor=BMAP_ANCHOR_TOP_LEFT,f.defaultOffset=l,f.onClickHandler=r,f.title=n,f.text=e,f.backgroundColor=i,f}return(0,i.default)(t,e),(0,u.default)(t,[{key:\"initialize\",value:function(e){var t=this,n=document.createElement(\"div\"),a=document.createElement(\"div\");a.style.backgroundColor=this.backgroundColor,a.style.border=\"2px solid #fff\",a.style.borderRadius=\"3px\",a.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",a.style.cursor=\"pointer\",a.style.marginBottom=\"22px\",a.style.textAlign=\"center\",a.title=this.title,n.appendChild(a);var o=document.createElement(\"div\");return o.style.color=\"rgb(25,25,25)\",o.style.fontFamily=\"Roboto,Arial,sans-serif\",o.style.fontSize=\"16px\",o.style.lineHeight=\"38px\",o.style.paddingLeft=\"5px\",o.style.paddingRight=\"5px\",o.innerHTML=this.text,a.appendChild(o),e.getContainer().appendChild(n),a.addEventListener(\"click\",(function(){t.onClickHandler(o)})),n}}]),t}(BMap.Control)}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
{"version":3,"file":"3.bundle.js","sources":["webpack:///3.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{484:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a=c(n(3)),o=c(n(4)),i=c(n(5)),l=c(n(36)),r=c(n(23)),s=c(n(1)),u=c(n(2)),d=n(178);function c(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(){(0,s.default)(this,e),this.map=null,this.controls=[],this.initializedCenter=!1}return(0,u.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.map&&(0,r.default)(this.map).length>0}},{key:\"loadMap\",value:function(e,t){this.map=new BMap.Map(t,{enableMapClick:!1}),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:\"setCenter\",value:function(e){this.initializedCenter?this.map.setCenter(e):(this.map.centerAndZoom(e,19),this.initializedCenter=!0)}},{key:\"setZoom\",value:function(e){this.map.setZoom(e)}},{key:\"addEventHandler\",value:function(e,t){this.map.addEventListener(e,(function(e){var n=e.point;t(n)}))}},{key:\"createPoint\",value:function(e){var t=e.lat,n=e.lng;return new BMap.Point(n,t)}},{key:\"createMarker\",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=null;t&&(a=new BMap.Label(t,{point:e,offset:new BMap.Size(15,-15)}));var o=new BMap.Marker(e,{label:a,enableDragging:n,rotation:5});return o.setLabel(a),this.map.addOverlay(o),o}},{key:\"createPolyline\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o={geodesic:!0,strokeColor:t,strokeOpacity:n,strokeWeight:a},i=new BMap.Polyline(e,o);return this.map.addOverlay(i),i}},{key:\"createControl\",value:function(e){var t=e.text,n=e.tip,a=e.color,o=e.offsetX,i=e.offsetY,l=e.onClickHandler,r=new f(t,n,a,new BMap.Size(o,i),l);this.map.addControl(r),this.controls.push(r)}},{key:\"disableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.removeControl(t)}))}},{key:\"enableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.addControl(t)}))}},{key:\"getMarkerPosition\",value:function(e){return e.getPosition()}},{key:\"updatePolyline\",value:function(e,t){e.setPath(t)}},{key:\"removePolyline\",value:function(e){this.map.removeOverlay(e)}},{key:\"applyCoordinateOffset\",value:function(e){var t=(0,l.default)(e,2),n=t[0],a=t[1];return(0,d.WGS84ToBD09LL)(n,a)}}]),e}();t.default=p;var f=function(e){function t(e,n,i,l,r){var u;(0,s.default)(this,t);for(var d=arguments.length,c=Array(d>5?d-5:0),p=5;p<d;p++)c[p-5]=arguments[p];var f=(0,o.default)(this,(u=t.__proto__||(0,a.default)(t)).call.apply(u,[this].concat(c)));return f.defaultAnchor=BMAP_ANCHOR_TOP_LEFT,f.defaultOffset=l,f.onClickHandler=r,f.title=n,f.text=e,f.backgroundColor=i,f}return(0,i.default)(t,e),(0,u.default)(t,[{key:\"initialize\",value:function(e){var t=this,n=document.createElement(\"div\"),a=document.createElement(\"div\");a.style.backgroundColor=this.backgroundColor,a.style.border=\"2px solid #fff\",a.style.borderRadius=\"3px\",a.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",a.style.cursor=\"pointer\",a.style.marginBottom=\"22px\",a.style.textAlign=\"center\",a.title=this.title,n.appendChild(a);var o=document.createElement(\"div\");return o.style.color=\"rgb(25,25,25)\",o.style.fontFamily=\"Roboto,Arial,sans-serif\",o.style.fontSize=\"16px\",o.style.lineHeight=\"38px\",o.style.paddingLeft=\"5px\",o.style.paddingRight=\"5px\",o.innerHTML=this.text,a.appendChild(o),e.getContainer().appendChild(n),a.addEventListener(\"click\",(function(){t.onClickHandler(o)})),n}}]),t}(BMap.Control)}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
modules/dreamview/frontend/dist/4.bundle.js
浏览文件 @
784545bc
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
4
],{
48
4
:
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
o
=
r
(
n
(
36
)),
l
=
r
(
n
(
1
)),
a
=
r
(
n
(
2
)),
i
=
n
(
177
);
function
r
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
s
=
function
(){
function
e
(){(
0
,
l
.
default
)(
this
,
e
),
this
.
map
=
null
,
this
.
controls
=
[]}
return
(
0
,
a
.
default
)(
e
,[{
key
:
"
isInitialized
"
,
value
:
function
(){
return
null
!==
this
.
map
}},{
key
:
"
loadMap
"
,
value
:
function
(
e
,
t
){
var
n
=
{
center
:
e
,
zoom
:
20
,
mapTypeId
:
google
.
maps
.
MapTypeId
.
ROADMAP
,
fullscreenControl
:
!
1
};
this
.
map
=
new
google
.
maps
.
Map
(
document
.
getElementById
(
t
),
n
)}},{
key
:
"
setCenter
"
,
value
:
function
(
e
){
this
.
map
.
setCenter
(
e
)}},{
key
:
"
setZoom
"
,
value
:
function
(
e
){
this
.
map
.
setZoom
(
e
)}},{
key
:
"
addEventHandler
"
,
value
:
function
(
e
,
t
){
google
.
maps
.
event
.
addListener
(
this
.
map
,
e
,(
function
(
e
){
var
n
=
e
.
latLng
;
t
(
n
)}))}},{
key
:
"
createPoint
"
,
value
:
function
(
e
){
var
t
=
e
.
lat
,
n
=
e
.
lng
;
return
new
google
.
maps
.
LatLng
(
t
,
n
)}},{
key
:
"
createMarker
"
,
value
:
function
(
e
,
t
){
var
n
=!
(
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
])
||
arguments
[
2
],
o
=
new
google
.
maps
.
Marker
({
position
:
e
,
label
:
t
,
draggable
:
n
,
map
:
this
.
map
});
return
o
}},{
key
:
"
createPolyline
"
,
value
:
function
(
e
,
t
){
var
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
o
=
arguments
.
length
>
3
&&
void
0
!==
arguments
[
3
]?
arguments
[
3
]:
2
,
l
=
new
google
.
maps
.
Polyline
({
path
:
e
,
geodesic
:
!
0
,
strokeColor
:
t
,
strokeOpacity
:
n
,
strokeWeight
:
o
,
map
:
this
.
map
});
return
l
}},{
key
:
"
createControl
"
,
value
:
function
(
e
){
var
t
=
e
.
text
,
n
=
e
.
tip
,
o
=
e
.
color
,
l
=
(
e
.
offsetX
,
e
.
offsetY
,
e
.
onClickHandler
),
a
=
document
.
createElement
(
"
div
"
),
i
=
document
.
createElement
(
"
div
"
);
i
.
style
.
backgroundColor
=
o
,
i
.
style
.
border
=
"
2px solid #fff
"
,
i
.
style
.
borderRadius
=
"
3px
"
,
i
.
style
.
boxShadow
=
"
0 2px 6px rgba(0,0,0,.3)
"
,
i
.
style
.
cursor
=
"
pointer
"
,
i
.
style
.
marginBottom
=
"
22px
"
,
i
.
style
.
textAlign
=
"
center
"
,
i
.
title
=
n
,
a
.
appendChild
(
i
);
var
r
=
document
.
createElement
(
"
div
"
);
r
.
style
.
color
=
"
rgb(25,25,25)
"
,
r
.
style
.
fontFamily
=
"
Roboto,Arial,sans-serif
"
,
r
.
style
.
fontSize
=
"
16px
"
,
r
.
style
.
lineHeight
=
"
38px
"
,
r
.
style
.
paddingLeft
=
"
5px
"
,
r
.
style
.
paddingRight
=
"
5px
"
,
r
.
innerHTML
=
t
,
i
.
appendChild
(
r
),
i
.
addEventListener
(
"
click
"
,(
function
(){
l
(
r
)})),
this
.
map
.
controls
[
google
.
maps
.
ControlPosition
.
TOP_LEFT
].
push
(
a
),
this
.
controls
.
push
(
a
)}},{
key
:
"
disableControls
"
,
value
:
function
(){
this
.
controls
.
forEach
((
function
(
e
){
e
.
style
.
display
=
"
none
"
}))}},{
key
:
"
enableControls
"
,
value
:
function
(){
this
.
controls
.
forEach
((
function
(
e
){
e
.
style
.
display
=
"
block
"
}))}},{
key
:
"
getMarkerPosition
"
,
value
:
function
(
e
){
var
t
=
e
.
getPosition
();
return
{
lat
:
t
.
lat
(),
lng
:
t
.
lng
()}}},{
key
:
"
updatePolyline
"
,
value
:
function
(
e
,
t
){
e
.
setPath
(
t
)}},{
key
:
"
removePolyline
"
,
value
:
function
(
e
){
e
.
setMap
(
null
)}},{
key
:
"
applyCoordinateOffset
"
,
value
:
function
(
e
){
var
t
=
(
0
,
o
.
default
)(
e
,
2
),
n
=
t
[
0
],
l
=
t
[
1
];
return
(
0
,
i
.
WGS84ToGCJ02
)(
n
,
l
)}}]),
e
}();
t
.
default
=
s
}}]);
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
4
],{
48
5
:
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
o
=
r
(
n
(
36
)),
l
=
r
(
n
(
1
)),
a
=
r
(
n
(
2
)),
i
=
n
(
178
);
function
r
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
s
=
function
(){
function
e
(){(
0
,
l
.
default
)(
this
,
e
),
this
.
map
=
null
,
this
.
controls
=
[]}
return
(
0
,
a
.
default
)(
e
,[{
key
:
"
isInitialized
"
,
value
:
function
(){
return
null
!==
this
.
map
}},{
key
:
"
loadMap
"
,
value
:
function
(
e
,
t
){
var
n
=
{
center
:
e
,
zoom
:
20
,
mapTypeId
:
google
.
maps
.
MapTypeId
.
ROADMAP
,
fullscreenControl
:
!
1
};
this
.
map
=
new
google
.
maps
.
Map
(
document
.
getElementById
(
t
),
n
)}},{
key
:
"
setCenter
"
,
value
:
function
(
e
){
this
.
map
.
setCenter
(
e
)}},{
key
:
"
setZoom
"
,
value
:
function
(
e
){
this
.
map
.
setZoom
(
e
)}},{
key
:
"
addEventHandler
"
,
value
:
function
(
e
,
t
){
google
.
maps
.
event
.
addListener
(
this
.
map
,
e
,(
function
(
e
){
var
n
=
e
.
latLng
;
t
(
n
)}))}},{
key
:
"
createPoint
"
,
value
:
function
(
e
){
var
t
=
e
.
lat
,
n
=
e
.
lng
;
return
new
google
.
maps
.
LatLng
(
t
,
n
)}},{
key
:
"
createMarker
"
,
value
:
function
(
e
,
t
){
var
n
=!
(
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
])
||
arguments
[
2
],
o
=
new
google
.
maps
.
Marker
({
position
:
e
,
label
:
t
,
draggable
:
n
,
map
:
this
.
map
});
return
o
}},{
key
:
"
createPolyline
"
,
value
:
function
(
e
,
t
){
var
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
o
=
arguments
.
length
>
3
&&
void
0
!==
arguments
[
3
]?
arguments
[
3
]:
2
,
l
=
new
google
.
maps
.
Polyline
({
path
:
e
,
geodesic
:
!
0
,
strokeColor
:
t
,
strokeOpacity
:
n
,
strokeWeight
:
o
,
map
:
this
.
map
});
return
l
}},{
key
:
"
createControl
"
,
value
:
function
(
e
){
var
t
=
e
.
text
,
n
=
e
.
tip
,
o
=
e
.
color
,
l
=
(
e
.
offsetX
,
e
.
offsetY
,
e
.
onClickHandler
),
a
=
document
.
createElement
(
"
div
"
),
i
=
document
.
createElement
(
"
div
"
);
i
.
style
.
backgroundColor
=
o
,
i
.
style
.
border
=
"
2px solid #fff
"
,
i
.
style
.
borderRadius
=
"
3px
"
,
i
.
style
.
boxShadow
=
"
0 2px 6px rgba(0,0,0,.3)
"
,
i
.
style
.
cursor
=
"
pointer
"
,
i
.
style
.
marginBottom
=
"
22px
"
,
i
.
style
.
textAlign
=
"
center
"
,
i
.
title
=
n
,
a
.
appendChild
(
i
);
var
r
=
document
.
createElement
(
"
div
"
);
r
.
style
.
color
=
"
rgb(25,25,25)
"
,
r
.
style
.
fontFamily
=
"
Roboto,Arial,sans-serif
"
,
r
.
style
.
fontSize
=
"
16px
"
,
r
.
style
.
lineHeight
=
"
38px
"
,
r
.
style
.
paddingLeft
=
"
5px
"
,
r
.
style
.
paddingRight
=
"
5px
"
,
r
.
innerHTML
=
t
,
i
.
appendChild
(
r
),
i
.
addEventListener
(
"
click
"
,(
function
(){
l
(
r
)})),
this
.
map
.
controls
[
google
.
maps
.
ControlPosition
.
TOP_LEFT
].
push
(
a
),
this
.
controls
.
push
(
a
)}},{
key
:
"
disableControls
"
,
value
:
function
(){
this
.
controls
.
forEach
((
function
(
e
){
e
.
style
.
display
=
"
none
"
}))}},{
key
:
"
enableControls
"
,
value
:
function
(){
this
.
controls
.
forEach
((
function
(
e
){
e
.
style
.
display
=
"
block
"
}))}},{
key
:
"
getMarkerPosition
"
,
value
:
function
(
e
){
var
t
=
e
.
getPosition
();
return
{
lat
:
t
.
lat
(),
lng
:
t
.
lng
()}}},{
key
:
"
updatePolyline
"
,
value
:
function
(
e
,
t
){
e
.
setPath
(
t
)}},{
key
:
"
removePolyline
"
,
value
:
function
(
e
){
e
.
setMap
(
null
)}},{
key
:
"
applyCoordinateOffset
"
,
value
:
function
(
e
){
var
t
=
(
0
,
o
.
default
)(
e
,
2
),
n
=
t
[
0
],
l
=
t
[
1
];
return
(
0
,
i
.
WGS84ToGCJ02
)(
n
,
l
)}}]),
e
}();
t
.
default
=
s
}}]);
//# sourceMappingURL=4.bundle.js.map
\ No newline at end of file
modules/dreamview/frontend/dist/4.bundle.js.map
浏览文件 @
784545bc
{"version":3,"file":"4.bundle.js","sources":["webpack:///4.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{484:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=r(n(36)),l=r(n(1)),a=r(n(2)),i=n(177);function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,l.default)(this,e),this.map=null,this.controls=[]}return(0,a.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.map}},{key:\"loadMap\",value:function(e,t){var n={center:e,zoom:20,mapTypeId:google.maps.MapTypeId.ROADMAP,fullscreenControl:!1};this.map=new google.maps.Map(document.getElementById(t),n)}},{key:\"setCenter\",value:function(e){this.map.setCenter(e)}},{key:\"setZoom\",value:function(e){this.map.setZoom(e)}},{key:\"addEventHandler\",value:function(e,t){google.maps.event.addListener(this.map,e,(function(e){var n=e.latLng;t(n)}))}},{key:\"createPoint\",value:function(e){var t=e.lat,n=e.lng;return new google.maps.LatLng(t,n)}},{key:\"createMarker\",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=new google.maps.Marker({position:e,label:t,draggable:n,map:this.map});return o}},{key:\"createPolyline\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,l=new google.maps.Polyline({path:e,geodesic:!0,strokeColor:t,strokeOpacity:n,strokeWeight:o,map:this.map});return l}},{key:\"createControl\",value:function(e){var t=e.text,n=e.tip,o=e.color,l=(e.offsetX,e.offsetY,e.onClickHandler),a=document.createElement(\"div\"),i=document.createElement(\"div\");i.style.backgroundColor=o,i.style.border=\"2px solid #fff\",i.style.borderRadius=\"3px\",i.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",i.style.cursor=\"pointer\",i.style.marginBottom=\"22px\",i.style.textAlign=\"center\",i.title=n,a.appendChild(i);var r=document.createElement(\"div\");r.style.color=\"rgb(25,25,25)\",r.style.fontFamily=\"Roboto,Arial,sans-serif\",r.style.fontSize=\"16px\",r.style.lineHeight=\"38px\",r.style.paddingLeft=\"5px\",r.style.paddingRight=\"5px\",r.innerHTML=t,i.appendChild(r),i.addEventListener(\"click\",(function(){l(r)})),this.map.controls[google.maps.ControlPosition.TOP_LEFT].push(a),this.controls.push(a)}},{key:\"disableControls\",value:function(){this.controls.forEach((function(e){e.style.display=\"none\"}))}},{key:\"enableControls\",value:function(){this.controls.forEach((function(e){e.style.display=\"block\"}))}},{key:\"getMarkerPosition\",value:function(e){var t=e.getPosition();return{lat:t.lat(),lng:t.lng()}}},{key:\"updatePolyline\",value:function(e,t){e.setPath(t)}},{key:\"removePolyline\",value:function(e){e.setMap(null)}},{key:\"applyCoordinateOffset\",value:function(e){var t=(0,o.default)(e,2),n=t[0],l=t[1];return(0,i.WGS84ToGCJ02)(n,l)}}]),e}();t.default=s}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
{"version":3,"file":"4.bundle.js","sources":["webpack:///4.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{485:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=r(n(36)),l=r(n(1)),a=r(n(2)),i=n(178);function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,l.default)(this,e),this.map=null,this.controls=[]}return(0,a.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.map}},{key:\"loadMap\",value:function(e,t){var n={center:e,zoom:20,mapTypeId:google.maps.MapTypeId.ROADMAP,fullscreenControl:!1};this.map=new google.maps.Map(document.getElementById(t),n)}},{key:\"setCenter\",value:function(e){this.map.setCenter(e)}},{key:\"setZoom\",value:function(e){this.map.setZoom(e)}},{key:\"addEventHandler\",value:function(e,t){google.maps.event.addListener(this.map,e,(function(e){var n=e.latLng;t(n)}))}},{key:\"createPoint\",value:function(e){var t=e.lat,n=e.lng;return new google.maps.LatLng(t,n)}},{key:\"createMarker\",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=new google.maps.Marker({position:e,label:t,draggable:n,map:this.map});return o}},{key:\"createPolyline\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,l=new google.maps.Polyline({path:e,geodesic:!0,strokeColor:t,strokeOpacity:n,strokeWeight:o,map:this.map});return l}},{key:\"createControl\",value:function(e){var t=e.text,n=e.tip,o=e.color,l=(e.offsetX,e.offsetY,e.onClickHandler),a=document.createElement(\"div\"),i=document.createElement(\"div\");i.style.backgroundColor=o,i.style.border=\"2px solid #fff\",i.style.borderRadius=\"3px\",i.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",i.style.cursor=\"pointer\",i.style.marginBottom=\"22px\",i.style.textAlign=\"center\",i.title=n,a.appendChild(i);var r=document.createElement(\"div\");r.style.color=\"rgb(25,25,25)\",r.style.fontFamily=\"Roboto,Arial,sans-serif\",r.style.fontSize=\"16px\",r.style.lineHeight=\"38px\",r.style.paddingLeft=\"5px\",r.style.paddingRight=\"5px\",r.innerHTML=t,i.appendChild(r),i.addEventListener(\"click\",(function(){l(r)})),this.map.controls[google.maps.ControlPosition.TOP_LEFT].push(a),this.controls.push(a)}},{key:\"disableControls\",value:function(){this.controls.forEach((function(e){e.style.display=\"none\"}))}},{key:\"enableControls\",value:function(){this.controls.forEach((function(e){e.style.display=\"block\"}))}},{key:\"getMarkerPosition\",value:function(e){var t=e.getPosition();return{lat:t.lat(),lng:t.lng()}}},{key:\"updatePolyline\",value:function(e,t){e.setPath(t)}},{key:\"removePolyline\",value:function(e){e.setMap(null)}},{key:\"applyCoordinateOffset\",value:function(e){var t=(0,o.default)(e,2),n=t[0],l=t[1];return(0,i.WGS84ToGCJ02)(n,l)}}]),e}();t.default=s}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
modules/dreamview/frontend/dist/app.bundle.js
浏览文件 @
784545bc
此差异已折叠。
点击以展开。
modules/dreamview/frontend/dist/app.bundle.js.map
浏览文件 @
784545bc
此差异已折叠。
点击以展开。
modules/dreamview/frontend/dist/parameters.bundle.js
浏览文件 @
784545bc
!
function
(
e
){
var
t
=
{};
function
r
(
n
){
if
(
t
[
n
])
return
t
[
n
].
exports
;
var
o
=
t
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
o
.
exports
,
o
,
o
.
exports
,
r
),
o
.
l
=!
0
,
o
.
exports
}
r
.
m
=
e
,
r
.
c
=
t
,
r
.
d
=
function
(
e
,
t
,
n
){
r
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
n
})},
r
.
r
=
function
(
e
){
"
undefined
"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,{
value
:
!
0
})},
r
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
r
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
==
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
n
=
Object
.
create
(
null
);
if
(
r
.
r
(
n
),
Object
.
defineProperty
(
n
,
"
default
"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
o
in
e
)
r
.
d
(
n
,
o
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
o
));
return
n
},
r
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
t
,
"
a
"
,
t
),
t
},
r
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
r
.
p
=
"
/
"
,
r
(
r
.
s
=
47
6
)}({
476
:
function
(
e
,
t
){
e
.
exports
=
'
module.exports = __webpack_public_path__ + "parameters.json";
'
}});
!
function
(
e
){
var
t
=
{};
function
r
(
n
){
if
(
t
[
n
])
return
t
[
n
].
exports
;
var
o
=
t
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
o
.
exports
,
o
,
o
.
exports
,
r
),
o
.
l
=!
0
,
o
.
exports
}
r
.
m
=
e
,
r
.
c
=
t
,
r
.
d
=
function
(
e
,
t
,
n
){
r
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
n
})},
r
.
r
=
function
(
e
){
"
undefined
"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"
Module
"
}),
Object
.
defineProperty
(
e
,
"
__esModule
"
,{
value
:
!
0
})},
r
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
r
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"
object
"
==
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
n
=
Object
.
create
(
null
);
if
(
r
.
r
(
n
),
Object
.
defineProperty
(
n
,
"
default
"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"
string
"
!=
typeof
e
)
for
(
var
o
in
e
)
r
.
d
(
n
,
o
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
o
));
return
n
},
r
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
t
,
"
a
"
,
t
),
t
},
r
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
r
.
p
=
"
/
"
,
r
(
r
.
s
=
47
7
)}({
477
:
function
(
e
,
t
){
e
.
exports
=
'
module.exports = __webpack_public_path__ + "parameters.json";
'
}});
//# sourceMappingURL=parameters.bundle.js.map
\ No newline at end of file
modules/dreamview/frontend/dist/parameters.bundle.js.map
浏览文件 @
784545bc
{"version":3,"file":"parameters.bundle.js","sources":["webpack:///parameters.bundle.js"],"sourcesContent":["!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"/\",r(r.s=476)}({476:function(e,t){e.exports='module.exports = __webpack_public_path__ + \"parameters.json\";'}});"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
{"version":3,"file":"parameters.bundle.js","sources":["webpack:///parameters.bundle.js"],"sourcesContent":["!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"/\",r(r.s=477)}({477:function(e,t){e.exports='module.exports = __webpack_public_path__ + \"parameters.json\";'}});"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
modules/dreamview/frontend/dist/worker.bundle.js
浏览文件 @
784545bc
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
modules/dreamview/frontend/dist/worker.bundle.js.map
浏览文件 @
784545bc
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
modules/dreamview/frontend/proto_bundle/sim_world_proto_bundle.json
浏览文件 @
784545bc
...
...
@@ -5095,6 +5095,13 @@
"options"
:
{
"default"
:
0.15
}
},
"pullOverApproachLonDistanceAdjustFactor"
:
{
"type"
:
"double"
,
"id"
:
6
,
"options"
:
{
"default"
:
1.5
}
}
}
},
...
...
modules/dreamview/frontend/src/components/TeleopMonitor/AudioControl.js
0 → 100644
浏览文件 @
784545bc
import
React
from
"
react
"
;
import
CheckboxItem
from
"
components/common/CheckboxItem
"
;
import
MonitorSection
from
"
components/TeleopMonitor/MonitorSection
"
;
import
itemIcon
from
"
assets/images/icons/teleop_item.png
"
;
function
MicIcon
(
props
)
{
const
color
=
props
.
isOn
?
"
#30A5FF
"
:
"
#999999
"
;
return
(
<
svg
className
=
"
mic
"
version
=
"
1.1
"
xmlns
=
"
http://www.w3.org/2000/svg
"
viewBox
=
"
0 0 32 32
"
width
=
"
20
"
height
=
"
20
"
>
<
defs
>
<
path
id
=
"
oval
"
d
=
"
M17.81 0.27L18.64 0.58L19.41 1.01L20.11 1.54L20.73 2.16L21.26 2.86L21.69 3.63L22.01 4.46L22.21 5.35L22.27 6.27L22.27 14.78L22.21 15.7L22.01 16.59L21.69 17.42L21.26 18.19L20.73 18.89L20.11 19.51L19.41 20.04L18.64 20.46L17.81 20.78L16.93 20.98L16 21.05L15.08 20.98L14.2 20.78L13.36 20.47L12.59 20.04L11.89 19.51L11.27 18.89L10.74 18.19L10.32 17.42L10 16.59L9.8 15.7L9.73 14.78L9.73 6.27L9.8 5.35L10 4.46L10.32 3.63L10.74 2.86L11.27 2.16L11.89 1.54L12.59 1.01L13.36 0.58L14.2 0.27L15.08 0.07L16 0L16.93 0.07L17.81 0.27ZM14.88 1.83L14.34 2.12L13.81 2.52L13.29 3.04L12.78 3.67L12.29 4.42L11.8 5.29L11.33 6.27L11.33 14.78L11.4 15.62L11.62 16.41L11.97 17.13L12.43 17.79L12.99 18.35L13.65 18.81L14.37 19.16L15.16 19.38L16 19.45L16.84 19.38L17.63 19.16L18.36 18.81L19.01 18.35L19.58 17.79L20.04 17.13L20.38 16.41L20.6 15.62L20.68 14.78L20.68 6.27L20.6 5.43L20.38 4.64L20.04 3.91L19.58 3.26L19.01 2.7L18.36 2.24L17.63 1.89L16.84 1.67L16 1.6L15.44 1.65L14.88 1.83Z
"
/>
<
path
id
=
"
bottom
"
d
=
"
M5.35 14.78C5.35 20.38 9.7 24.99 15.2 25.4C15.2 25.73 15.2 27.4 15.2 30.4C12.7 30.4 11.31 30.4 11.04 30.4C10.59 30.4 10.23 30.75 10.23 31.2C10.23 31.64 10.59 32 11.04 32C12.03 32 19.97 32 20.96 32C21.41 32 21.77 31.64 21.77 31.2C21.77 30.75 21.41 30.4 20.96 30.4C20.69 30.4 19.3 30.4 16.8 30.4C16.8 27.4 16.8 25.73 16.8 25.4C22.3 24.99 26.65 20.38 26.65 14.78C26.65 14.34 26.29 13.98 25.85 13.98C25.4 13.98 25.04 14.34 25.04 14.78C25.04 19.78 20.98 23.84 15.99 23.84C11 23.84 6.94 19.78 6.94 14.78C6.95 14.34 6.6 13.98 6.15 13.98C5.71 13.98 5.35 14.34 5.35 14.78Z
"
/>
<
path
id
=
"
mute
"
d
=
"
M29.02 2.98L2.08 23.36
"
/>
<
/defs
>
<
use
xlinkHref
=
"
#oval
"
opacity
=
"
1
"
fillOpacity
=
"
1
"
fill
=
{
color
}
/
>
<
use
xlinkHref
=
"
#bottom
"
opacity
=
"
1
"
fillOpacity
=
"
1
"
fill
=
{
color
}
/
>
<
use
xlinkHref
=
"
#mute
"
opacity
=
{
props
.
isOn
?
"
0
"
:
"
1
"
}
fillOpacity
=
"
0
"
stroke
=
{
color
}
strokeWidth
=
"
2
"
strokeOpacity
=
"
1
"
/>
<
/svg
>
);
};
export
default
class
AudioControl
extends
React
.
Component
{
render
()
{
const
{
id
,
audioEnabled
,
micEnabled
}
=
this
.
props
;
return
(
<
MonitorSection
title
=
"
Audio
"
icon
=
{
itemIcon
}
>
<
div
className
=
"
section-content-row
"
key
=
{
name
}
>
<
CheckboxItem
id
=
{
`teleop_audio_
${
id
}
`
}
title
=
{
"
On/Off
"
}
extraClasses
=
"
field
"
isChecked
=
{
audioEnabled
}
onClick
=
{
this
.
props
.
toggleAudio
}
/
>
<
button
className
=
"
field mute-button
"
disabled
=
{
!
audioEnabled
}
onClick
=
{
this
.
props
.
toggleMic
}
>
<
MicIcon
isOn
=
{
micEnabled
}
/
>
<
/button
>
<
/div
>
<
/MonitorSection
>
);
}
};
modules/dreamview/frontend/src/components/TeleopMonitor/CarTeleop.js
浏览文件 @
784545bc
...
...
@@ -3,7 +3,7 @@ import { inject, observer } from "mobx-react";
import
{
TELEOP_WS
}
from
"
store/websocket
"
;
import
CheckboxItem
from
"
components/common/CheckboxItem
"
;
import
AudioControl
from
"
components/TeleopMonitor/AudioControl
"
;
import
MonitorSection
from
"
components/TeleopMonitor/MonitorSection
"
;
import
itemIcon
from
"
assets/images/icons/teleop_item.png
"
;
...
...
@@ -29,18 +29,17 @@ export default class CarTeleOp extends React.Component {
<
/div
>
<
div
className
=
"
monitor-content
"
>
<
MonitorSection
title
=
"
Audio
"
icon
=
{
itemIcon
}
>
<
div
className
=
"
section-content-row
"
key
=
{
name
}
>
<
CheckboxItem
id
=
'
teleopAudio
'
title
=
{
"
On/Off
"
}
extraClasses
=
"
field
"
isChecked
=
{
teleop
.
audioEnabled
}
onClick
=
{()
=>
{
TELEOP_WS
.
executeCommand
(
'
ToggleAudio
'
);
teleop
.
toggleAudio
();
}}
/
>
<
/div
>
<
/MonitorSection
>
<
AudioControl
id
=
'
car
'
audioEnabled
=
{
teleop
.
audioEnabled
}
micEnabled
=
{
teleop
.
micEnabled
}
toggleAudio
=
{()
=>
{
TELEOP_WS
.
executeCommand
(
'
ToggleAudio
'
);
teleop
.
toggleAudio
();
}}
toggleMic
=
{()
=>
{
teleop
.
toggleMic
();
TELEOP_WS
.
executeCommand
(
'
ToggleMic
'
);
}}
/
>
<
MonitorSection
title
=
"
Signal
"
icon
=
{
itemIcon
}
>
{
teleop
.
modemInfo
.
entries
().
map
(([
name
,
value
])
=>
(
<
div
className
=
"
section-content-row
"
key
=
{
name
}
>
...
...
@@ -54,4 +53,4 @@ export default class CarTeleOp extends React.Component {
<
/div
>
);
}
}
}
\ No newline at end of file
modules/dreamview/frontend/src/components/TeleopMonitor/ConsoleTeleop.js
浏览文件 @
784545bc
...
...
@@ -4,27 +4,11 @@ import { inject, observer } from "mobx-react";
import
{
TELEOP_WS
}
from
"
store/websocket
"
;
import
CheckboxItem
from
"
components/common/CheckboxItem
"
;
import
AudioControl
from
"
components/TeleopMonitor/AudioControl
"
;
import
MonitorSection
from
"
components/TeleopMonitor/MonitorSection
"
;
import
itemIcon
from
"
assets/images/icons/teleop_item.png
"
;
function
MicIcon
(
props
)
{
const
color
=
props
.
isOn
?
"
#30A5FF
"
:
"
#999999
"
;
return
(
<
svg
className
=
"
mic
"
version
=
"
1.1
"
xmlns
=
"
http://www.w3.org/2000/svg
"
viewBox
=
"
0 0 32 32
"
width
=
"
20
"
height
=
"
20
"
>
<
defs
>
<
path
id
=
"
oval
"
d
=
"
M17.81 0.27L18.64 0.58L19.41 1.01L20.11 1.54L20.73 2.16L21.26 2.86L21.69 3.63L22.01 4.46L22.21 5.35L22.27 6.27L22.27 14.78L22.21 15.7L22.01 16.59L21.69 17.42L21.26 18.19L20.73 18.89L20.11 19.51L19.41 20.04L18.64 20.46L17.81 20.78L16.93 20.98L16 21.05L15.08 20.98L14.2 20.78L13.36 20.47L12.59 20.04L11.89 19.51L11.27 18.89L10.74 18.19L10.32 17.42L10 16.59L9.8 15.7L9.73 14.78L9.73 6.27L9.8 5.35L10 4.46L10.32 3.63L10.74 2.86L11.27 2.16L11.89 1.54L12.59 1.01L13.36 0.58L14.2 0.27L15.08 0.07L16 0L16.93 0.07L17.81 0.27ZM14.88 1.83L14.34 2.12L13.81 2.52L13.29 3.04L12.78 3.67L12.29 4.42L11.8 5.29L11.33 6.27L11.33 14.78L11.4 15.62L11.62 16.41L11.97 17.13L12.43 17.79L12.99 18.35L13.65 18.81L14.37 19.16L15.16 19.38L16 19.45L16.84 19.38L17.63 19.16L18.36 18.81L19.01 18.35L19.58 17.79L20.04 17.13L20.38 16.41L20.6 15.62L20.68 14.78L20.68 6.27L20.6 5.43L20.38 4.64L20.04 3.91L19.58 3.26L19.01 2.7L18.36 2.24L17.63 1.89L16.84 1.67L16 1.6L15.44 1.65L14.88 1.83Z
"
/>
<
path
id
=
"
bottom
"
d
=
"
M5.35 14.78C5.35 20.38 9.7 24.99 15.2 25.4C15.2 25.73 15.2 27.4 15.2 30.4C12.7 30.4 11.31 30.4 11.04 30.4C10.59 30.4 10.23 30.75 10.23 31.2C10.23 31.64 10.59 32 11.04 32C12.03 32 19.97 32 20.96 32C21.41 32 21.77 31.64 21.77 31.2C21.77 30.75 21.41 30.4 20.96 30.4C20.69 30.4 19.3 30.4 16.8 30.4C16.8 27.4 16.8 25.73 16.8 25.4C22.3 24.99 26.65 20.38 26.65 14.78C26.65 14.34 26.29 13.98 25.85 13.98C25.4 13.98 25.04 14.34 25.04 14.78C25.04 19.78 20.98 23.84 15.99 23.84C11 23.84 6.94 19.78 6.94 14.78C6.95 14.34 6.6 13.98 6.15 13.98C5.71 13.98 5.35 14.34 5.35 14.78Z
"
/>
<
path
id
=
"
mute
"
d
=
"
M29.02 2.98L2.08 23.36
"
/>
<
/defs
>
<
use
xlinkHref
=
"
#oval
"
opacity
=
"
1
"
fillOpacity
=
"
1
"
fill
=
{
color
}
/
>
<
use
xlinkHref
=
"
#bottom
"
opacity
=
"
1
"
fillOpacity
=
"
1
"
fill
=
{
color
}
/
>
<
use
xlinkHref
=
"
#mute
"
opacity
=
{
props
.
isOn
?
"
0
"
:
"
1
"
}
fillOpacity
=
"
0
"
stroke
=
{
color
}
strokeWidth
=
"
2
"
strokeOpacity
=
"
1
"
/>
<
/svg
>
);
};
function
OperationButton
(
props
)
{
const
{
name
,
command
}
=
props
;
...
...
@@ -70,8 +54,6 @@ export default class ConsoleTeleOp extends React.Component {
render
()
{
const
{
teleop
}
=
this
.
props
.
store
;
const
audioDisabled
=
!
teleop
.
audioEnabled
;
const
micOn
=
teleop
.
micEnabled
;
return
(
<
div
className
=
"
monitor teleop
"
>
...
...
@@ -80,26 +62,18 @@ export default class ConsoleTeleOp extends React.Component {
<
/div
>
<
div
className
=
"
monitor-content
"
>
<
MonitorSection
title
=
"
Audio
"
icon
=
{
itemIcon
}
>
<
div
className
=
"
section-content-row
"
key
=
{
name
}
>
<
CheckboxItem
id
=
'
teleopAudio
'
title
=
{
"
On/Off
"
}
extraClasses
=
"
field
"
isChecked
=
{
teleop
.
audioEnabled
}
onClick
=
{()
=>
{
TELEOP_WS
.
executeCommand
(
'
ToggleAudio
'
);
teleop
.
toggleAudio
();
}}
/
>
<
button
className
=
"
field mute-button
"
disabled
=
{
audioDisabled
}
onClick
=
{()
=>
{
teleop
.
toggleMic
();
TELEOP_WS
.
executeCommand
(
'
ToggleMic
'
);
}}
>
<
MicIcon
isOn
=
{
micOn
}
/
>
<
/button
>
<
/div
>
<
/MonitorSection
>
<
AudioControl
id
=
'
console
'
audioEnabled
=
{
teleop
.
audioEnabled
}
micEnabled
=
{
teleop
.
micEnabled
}
toggleAudio
=
{()
=>
{
TELEOP_WS
.
executeCommand
(
'
ToggleAudio
'
);
teleop
.
toggleAudio
();
}}
toggleMic
=
{()
=>
{
teleop
.
toggleMic
();
TELEOP_WS
.
executeCommand
(
'
ToggleMic
'
);
}}
/
>
<
MonitorSection
title
=
"
Video
"
icon
=
{
itemIcon
}
>
<
CheckboxItem
id
=
'
teleopVideo
'
title
=
{
"
On/Off
"
}
...
...
modules/dreamview/frontend/src/store/dimension.js
浏览文件 @
784545bc
...
...
@@ -23,8 +23,8 @@ const MONITOR_WIDTH_IN_PX = {
large
:
270
,
},
[
MONITOR_MENU
.
CAR_TELEOP_MONITOR
]:
{
small
:
2
0
0
,
large
:
2
4
0
,
small
:
2
4
0
,
large
:
2
7
0
,
},
[
MONITOR_MENU
.
CAMERA_PARAM
]:
{
small
:
400
,
...
...
modules/dreamview/frontend/src/store/teleop.js
浏览文件 @
784545bc
...
...
@@ -19,13 +19,27 @@ export default class TeleopStore {
}
@
action
update
(
status
)
{
if
(
typeof
status
.
audio
===
"
boolean
"
)
{
if
(
status
.
audio_starting
)
{
this
.
audioEnabled
=
true
;
}
else
if
(
status
.
audio_stopping
)
{
this
.
audioEnabled
=
false
;
}
else
{
this
.
audioEnabled
=
status
.
audio
;
}
if
(
typeof
status
.
mic
===
"
boolean
"
)
{
if
(
status
.
mic_starting
)
{
this
.
micEnabled
=
true
;
}
else
if
(
status
.
mic_stopping
)
{
this
.
micEnabled
=
false
;
}
else
{
this
.
micEnabled
=
status
.
mic
;
}
if
(
typeof
status
.
video
===
"
boolean
"
)
{
if
(
status
.
video_starting
)
{
this
.
videoEnabled
=
true
;
}
else
if
(
status
.
video_stopping
)
{
this
.
videoEnabled
=
false
;
}
else
{
this
.
videoEnabled
=
status
.
video
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录