You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import Konva from "konva";
|
|
|
|
|
|
|
|
const search=function (){
|
|
|
|
const group=new Konva.Group({
|
|
|
|
x:20,
|
|
|
|
y:52
|
|
|
|
})
|
|
|
|
const selectRect=new Konva.Rect({
|
|
|
|
x: 0,
|
|
|
|
y: 0,
|
|
|
|
fill:'#ffffff',
|
|
|
|
width: 110,
|
|
|
|
height:20,
|
|
|
|
stroke:'white',
|
|
|
|
strokeWidth:1,
|
|
|
|
})
|
|
|
|
group.add(selectRect)
|
|
|
|
const plRect=new Konva.Rect({
|
|
|
|
x: 115,
|
|
|
|
y: 0,
|
|
|
|
fill:'#ffffff',
|
|
|
|
width: 110,
|
|
|
|
height:20,
|
|
|
|
stroke:'white',
|
|
|
|
strokeWidth:1,
|
|
|
|
})
|
|
|
|
group.add(plRect)
|
|
|
|
|
|
|
|
const fdRect=new Konva.Rect({
|
|
|
|
x: 230,
|
|
|
|
y: 0,
|
|
|
|
fill:'#ffffff',
|
|
|
|
width: 110,
|
|
|
|
height:20,
|
|
|
|
stroke:'white',
|
|
|
|
strokeWidth:1,
|
|
|
|
})
|
|
|
|
group.add(fdRect)
|
|
|
|
|
|
|
|
const lxRect=new Konva.Rect({
|
|
|
|
x: 345,
|
|
|
|
y: 0,
|
|
|
|
fill:'#ffffff',
|
|
|
|
width: 100,
|
|
|
|
height:20,
|
|
|
|
stroke:'white',
|
|
|
|
strokeWidth:1,
|
|
|
|
})
|
|
|
|
group.add(lxRect)
|
|
|
|
|
|
|
|
// const sljhrqRect=new Konva.Rect({
|
|
|
|
// x: 345,
|
|
|
|
// y: 0,
|
|
|
|
// fill:'#ffffff',
|
|
|
|
// width: 115,
|
|
|
|
// height:20,
|
|
|
|
// stroke:'white',
|
|
|
|
// strokeWidth:1,
|
|
|
|
// })
|
|
|
|
// group.add(sljhrqRect)
|
|
|
|
|
|
|
|
return {
|
|
|
|
group
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default search
|