调整西安一三号线 折返显示颜色
This commit is contained in:
parent
cf397fa9a0
commit
53dc950093
@ -271,8 +271,8 @@ class SkinCode extends defaultStyle {
|
|||||||
mergentR:4, // 站台折返策略边数
|
mergentR:4, // 站台折返策略边数
|
||||||
position: 0, // 折返方向
|
position: 0, // 折返方向
|
||||||
offset: {x: -16, y: -15}, // 折返偏移量
|
offset: {x: -16, y: -15}, // 折返偏移量
|
||||||
noHumanColor: '#0F16DA', // 站台无人折返
|
noHumanColor: '#0BF400', // 站台无人折返
|
||||||
autoChangeEndsColor: '#0BF400' // 站台自动换端
|
autoChangeEndsColor: '#0F16DA' // 站台自动换端
|
||||||
},
|
},
|
||||||
|
|
||||||
common: { // 通用属性
|
common: { // 通用属性
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// 判断全屏模式是否是可用
|
// 判断全屏模式是否是可用
|
||||||
export function isFullscreenEnabled() {
|
export function isFullscreenEnabled() {
|
||||||
return document.fullscreenEnabled ||
|
return document.fullscreenEnabled ||
|
||||||
document.mozFullScreenEnabled ||
|
document.mozFullScreenEnabled ||
|
||||||
document.webkitFullscreenEnabled ||
|
document.webkitFullscreenEnabled ||
|
||||||
document.msFullscreenEnabled || false;
|
document.msFullscreenEnabled || false;
|
||||||
@ -8,7 +8,7 @@ export function isFullscreenEnabled() {
|
|||||||
|
|
||||||
// 判断浏览器是否全屏
|
// 判断浏览器是否全屏
|
||||||
export function isFullscreen() {
|
export function isFullscreen() {
|
||||||
return document.fullscreenElement ||
|
return document.fullscreenElement ||
|
||||||
document.msFullscreenElement ||
|
document.msFullscreenElement ||
|
||||||
document.mozFullScreenElement ||
|
document.mozFullScreenElement ||
|
||||||
document.webkitFullscreenElement || false;
|
document.webkitFullscreenElement || false;
|
||||||
@ -16,36 +16,36 @@ export function isFullscreen() {
|
|||||||
|
|
||||||
// 启动全屏
|
// 启动全屏
|
||||||
export function launchFullscreen() {
|
export function launchFullscreen() {
|
||||||
if (isFullscreenEnabled()) {
|
if (isFullscreenEnabled()) {
|
||||||
const element = document.documentElement;
|
const element = document.documentElement;
|
||||||
if (element.requestFullScreen) {
|
if (element.requestFullScreen) {
|
||||||
element.requestFullScreen();
|
element.requestFullScreen();
|
||||||
} else if (element.mozRequestFullScreen) {
|
} else if (element.mozRequestFullScreen) {
|
||||||
element.mozRequestFullScreen();
|
element.mozRequestFullScreen();
|
||||||
} else if (element.msRequestFullscreen) {
|
} else if (element.msRequestFullscreen) {
|
||||||
element.msRequestFullscreen();
|
element.msRequestFullscreen();
|
||||||
} else if (element.oRequestFullscreen) {
|
} else if (element.oRequestFullscreen) {
|
||||||
element.oRequestFullscreen();
|
element.oRequestFullscreen();
|
||||||
} else if (element.webkitRequestFullScreen) {
|
} else if (element.webkitRequestFullScreen) {
|
||||||
element.webkitRequestFullScreen();
|
element.webkitRequestFullScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退出全屏
|
// 退出全屏
|
||||||
export function exitFullscreen() {
|
export function exitFullscreen() {
|
||||||
if (isFullscreen()) {
|
if (isFullscreen()) {
|
||||||
if (document.exitFullscreen) {
|
if (document.exitFullscreen) {
|
||||||
document.exitFullscreen();
|
document.exitFullscreen();
|
||||||
} else if (document.msExitFullscreen) {
|
} else if (document.msExitFullscreen) {
|
||||||
document.msExitFullscreen();
|
document.msExitFullscreen();
|
||||||
} else if (document.mozCancelFullScreen) {
|
} else if (document.mozCancelFullScreen) {
|
||||||
document.mozCancelFullScreen();
|
document.mozCancelFullScreen();
|
||||||
} else if (document.mozExitFullScreen) {
|
} else if (document.mozExitFullScreen) {
|
||||||
document.mozExitFullScreen();
|
document.mozExitFullScreen();
|
||||||
} else if (document.webkitExitFullscreen) {
|
} else if (document.webkitExitFullscreen) {
|
||||||
document.webkitExitFullscreen();
|
document.webkitExitFullscreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user