임시 완성3
This commit is contained in:
parent
46f754e80a
commit
1e218459c0
@ -694,12 +694,18 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => {
|
|||||||
|
|
||||||
const getAddLine = (p1, p2, stroke = '#1083E3') => {
|
const getAddLine = (p1, p2, stroke = '#1083E3') => {
|
||||||
const line = new QLine([p1.x, p1.y, p2.x, p2.y], {
|
const line = new QLine([p1.x, p1.y, p2.x, p2.y], {
|
||||||
|
parentId : roof.id,
|
||||||
|
fontSize : roof.fontSize,
|
||||||
stroke : stroke,
|
stroke : stroke,
|
||||||
strokeWidth: 4,
|
strokeWidth: 4,
|
||||||
property : 'normal',
|
name : 'helpLine',
|
||||||
lineName : 'helpLine',
|
lineName : 'helpLine',
|
||||||
|
selectable : true,
|
||||||
|
visible : true,
|
||||||
roofId : roofId,
|
roofId : roofId,
|
||||||
parentId : roof.id,
|
attributes : {
|
||||||
|
type: 'helpLine'
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const coordinateText = new fabric.Text(`(${Math.round(line.x1)}, ${Math.round(line.y1)})`, {
|
const coordinateText = new fabric.Text(`(${Math.round(line.x1)}, ${Math.round(line.y1)})`, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user