default planeSize
This commit is contained in:
parent
c30defecc9
commit
56e8337c54
@ -75,7 +75,7 @@ export const usePolygon = () => {
|
|||||||
const maxY = line.top + line.length
|
const maxY = line.top + line.length
|
||||||
const degree = (Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI
|
const degree = (Math.atan2(y2 - y1, x2 - x1) * 180) / Math.PI
|
||||||
|
|
||||||
const text = new fabric.Textbox(actualSize ? actualSize.toString() : planeSize ? planeSize.toString() : length.toString(), {
|
const text = new fabric.Textbox(planeSize ? planeSize.toString() : length.toString(), {
|
||||||
left: left,
|
left: left,
|
||||||
top: top,
|
top: top,
|
||||||
fontSize: lengthTextFontOptions.fontSize.value,
|
fontSize: lengthTextFontOptions.fontSize.value,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user