python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
how to calculate border width to scale Image Canvas FabricJS
how to calculate border width to scale Image Canvas FabricJS
The image is smaller but the border size is not smaller.
enter image description here
enter image description here
I want the border scale ...
Pattaraphon
Votes: 0
Answers: 1
Canvas object property is not updating; used useState (Fabricjs with react)
I am using FabricJS with React, and I am able to add objects easily to the canvas but facing problems when trying to manipulate objects' properties, For example, I have recreated my issue in below cod...
Rohit Kanojiya
Votes: 0
Answers: 0
`How to get the relative position of the sub item contained in 'activeselection' in fabricjs'?
Fabricjs version: v4.6.0
const selection = new fabric.ActiveSelection(objs, { canvas })
const childs = selection.getObjects()
console.log('first child position:', childs[0].left, childs[1].top) // -1...
glk
Votes: 0
Answers: 0
How can I draw a right triangle with fabric js?
function normalTriangle() {
return new fabric.Triangle({
transparentCorners: false,
objectCaching: false,
shapeType: 'normalTriangle'
})
}
canvas = new fabric.Canvas(c...
CHEOLEON KIM
Votes: 0
Answers: 1