Browse Source

fix:喷涂画布刻度线

master
guoapeng 4 months ago
parent
commit
7bb7fecb7a
  1. 3
      src/components/spray/trayGraph/index.vue

3
src/components/spray/trayGraph/index.vue

@ -107,6 +107,7 @@ const addGuideLine = () => {
layer.value.add(
new Konva.Line({
points: [i, 0, i, stage.value.height()],
// stroke: [50, 100].includes(i) ? '#54FF9F' : '#ddd',
stroke: '#ddd',
strokeWidth: 1,
listening: false,
@ -117,7 +118,7 @@ const addGuideLine = () => {
layer.value.add(
new Konva.Line({
points: [0, j, stage.value.width(), j],
stroke: '#ddd',
stroke: [50, 100, 150, 200, 250, 300].includes(j) ? '#54FF9F' : '#ddd',
strokeWidth: 1,
listening: false,
}),

Loading…
Cancel
Save