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.
30 lines
523 B
30 lines
523 B
10 months ago
|
import Konva from "konva";
|
||
|
|
||
|
const sliao=function (options){
|
||
|
const width=options.width||window.innerWidth
|
||
|
const height=options.width||window.innerHeight
|
||
|
|
||
|
const slOption={
|
||
|
title:'上 料 作 业 区'
|
||
|
}
|
||
|
function drawTitle(){
|
||
|
return new Konva.Text({
|
||
9 months ago
|
x:0,
|
||
10 months ago
|
y:8,
|
||
|
width:width-30,
|
||
|
height:20,
|
||
|
lineHeight:1,
|
||
|
stroke:'blue',
|
||
|
strokeWidth:2,
|
||
|
text:slOption.title,
|
||
|
align:'center',
|
||
|
fontSize:32,
|
||
|
})
|
||
|
}
|
||
|
return {
|
||
|
drawTitle
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default sliao
|