颜色修改
This commit is contained in:
@@ -75,7 +75,7 @@ function createDashedLinesForBall(
|
|||||||
arrowHelper.line.material.opacity = 0.6;
|
arrowHelper.line.material.opacity = 0.6;
|
||||||
// 设置箭头头部透明度
|
// 设置箭头头部透明度
|
||||||
arrowHelper.cone.material = new THREE.MeshBasicMaterial({
|
arrowHelper.cone.material = new THREE.MeshBasicMaterial({
|
||||||
color: color,
|
color: "#00ff00",
|
||||||
transparent: true, // 必须设置为true
|
transparent: true, // 必须设置为true
|
||||||
opacity: 0.6, // 与线段相同的透明度
|
opacity: 0.6, // 与线段相同的透明度
|
||||||
});
|
});
|
||||||
@@ -633,8 +633,8 @@ export function drawAxes(element, options = {}, ballCallBack) {
|
|||||||
styleGroups[el.name] = null;
|
styleGroups[el.name] = null;
|
||||||
});
|
});
|
||||||
styleGroups["灰球"] = null;
|
styleGroups["灰球"] = null;
|
||||||
const geometryColors = [
|
const lineGeometryColors = [
|
||||||
"#f617d9",
|
"#0x00ff00",
|
||||||
"#779c6e",
|
"#779c6e",
|
||||||
"#3ee4bc",
|
"#3ee4bc",
|
||||||
"#ca41e7",
|
"#ca41e7",
|
||||||
@@ -642,6 +642,15 @@ export function drawAxes(element, options = {}, ballCallBack) {
|
|||||||
"#7467ef",
|
"#7467ef",
|
||||||
"#c7bef7",
|
"#c7bef7",
|
||||||
];
|
];
|
||||||
|
const geometryColors = [
|
||||||
|
"#888888",
|
||||||
|
"#888888",
|
||||||
|
"#888888",
|
||||||
|
"#888888",
|
||||||
|
"#888888",
|
||||||
|
"#888888",
|
||||||
|
"#888888",
|
||||||
|
];
|
||||||
const ballScene = new THREE.Group();
|
const ballScene = new THREE.Group();
|
||||||
geometryColors.forEach((el) => {
|
geometryColors.forEach((el) => {
|
||||||
// 几何体
|
// 几何体
|
||||||
@@ -718,7 +727,7 @@ export function drawAxes(element, options = {}, ballCallBack) {
|
|||||||
createDashedLinesForBall(n, scene, {
|
createDashedLinesForBall(n, scene, {
|
||||||
dashSize: 1,
|
dashSize: 1,
|
||||||
gapSize: 1,
|
gapSize: 1,
|
||||||
color: geometryColors[idx],
|
color: lineGeometryColors[idx],
|
||||||
arrowSize: 8,
|
arrowSize: 8,
|
||||||
}); // 给每个球加三条投影虚线
|
}); // 给每个球加三条投影虚线
|
||||||
updateDashedLines(n);
|
updateDashedLines(n);
|
||||||
@@ -749,7 +758,7 @@ export function drawAxes(element, options = {}, ballCallBack) {
|
|||||||
createDashedLinesForBall(ball, scene, {
|
createDashedLinesForBall(ball, scene, {
|
||||||
dashSize: 1,
|
dashSize: 1,
|
||||||
gapSize: 1,
|
gapSize: 1,
|
||||||
color: geometryColors[modelIndex],
|
color: lineGeometryColors[modelIndex],
|
||||||
});
|
});
|
||||||
updateDashedLines(ball);
|
updateDashedLines(ball);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -427,11 +427,13 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
// background-color: transparent;
|
// background-color: transparent;
|
||||||
.webgl {
|
.webgl {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head_text {
|
.head_text {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -498,6 +500,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip_box {
|
.tooltip_box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100px;
|
top: 100px;
|
||||||
@@ -505,6 +508,7 @@ export default {
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
|
|
||||||
.tooltip_list {
|
.tooltip_list {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
height: calc(100vh - 120px);
|
height: calc(100vh - 120px);
|
||||||
@@ -516,12 +520,15 @@ export default {
|
|||||||
&::-webkit-scrollbar-track {
|
&::-webkit-scrollbar-track {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
background-color: #0979ca;
|
background-color: #0979ca;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip_item {
|
.tooltip_item {
|
||||||
width: 450px;
|
width: 450px;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
|
|
||||||
.tooltip_head {
|
.tooltip_head {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -532,6 +539,7 @@ export default {
|
|||||||
padding-left: 56px;
|
padding-left: 56px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
::v-deep .el-checkbox {
|
::v-deep .el-checkbox {
|
||||||
.el-checkbox__inner {
|
.el-checkbox__inner {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
@@ -539,13 +547,16 @@ export default {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-color: #FFFFFF40;
|
border-color: #FFFFFF40;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-checkbox__input.is-checked .el-checkbox__inner {
|
.el-checkbox__input.is-checked .el-checkbox__inner {
|
||||||
border-color: #FFFFFF40;
|
border-color: #FFFFFF40;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-checkbox__inner::after {
|
.el-checkbox__inner::after {
|
||||||
left: 5px;
|
left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon_1 {
|
.icon_1 {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
@@ -554,10 +565,12 @@ export default {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backColor {
|
.backColor {
|
||||||
background-color: #00fb59;
|
background-color: #00fb59;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip_content {
|
.tooltip_content {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
@@ -566,6 +579,7 @@ export default {
|
|||||||
background-image: url('~@/assets/bigScreen/point/icon_crad_2.png');
|
background-image: url('~@/assets/bigScreen/point/icon_crad_2.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
|
||||||
.content_1 {
|
.content_1 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -573,17 +587,20 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip_item+.tooltip_item {
|
.tooltip_item+.tooltip_item {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title_box {
|
.title_box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 120px;
|
top: 120px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
// bottom: 80px;
|
// bottom: 80px;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -600,23 +617,30 @@ export default {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: -18px -18px;
|
background-position: -18px -18px;
|
||||||
background-size: 1028px 472px;
|
background-size: 1028px 472px;
|
||||||
|
|
||||||
.el-dialog__header {
|
.el-dialog__header {
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|
||||||
.el-dialog__title {
|
.el-dialog__title {
|
||||||
background: linear-gradient(to bottom, #ffffff, #8af3ff); /* 渐变颜色 */
|
background: linear-gradient(to bottom, #ffffff, #8af3ff);
|
||||||
|
/* 渐变颜色 */
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
color: transparent; /* 使文字透明,以显示背景渐变 */
|
color: transparent;
|
||||||
|
/* 使文字透明,以显示背景渐变 */
|
||||||
// color: #8af3ff;
|
// color: #8af3ff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); /* 白色发光 */
|
text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
|
||||||
|
/* 白色发光 */
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__headerbtn {
|
.el-dialog__headerbtn {
|
||||||
top: 30px;
|
top: 30px;
|
||||||
right: 30px;
|
right: 30px;
|
||||||
|
|
||||||
.el-dialog__close {
|
.el-dialog__close {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
@@ -624,11 +648,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__body {
|
.el-dialog__body {
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dia_box {
|
.dia_box {
|
||||||
// width: 800px;
|
// width: 800px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user