Cómo combinar imágenes y texto con fabricjs y editar texto al hacer doble clic en el objeto combinado, todavía combinar después de editar texto, dígame cómo editar texto al renderizar combinaciones de imagen y texto
const canvas = new fabric.Canvas("canvas"); // a rect const rect = new fabric.Rect({ stroke: "#000", strokeWidth: 1, fill: "#ccc", left: 170, top: 80, width: 50, height: 50 }); // a text for describe rect const text = new fabric.IText("describe rect", { fontFamily: "Comic Sans", fontSize: 14, stroke: "#000", strokeWidth: 1, fill: "#000", left: 170, top: 80 }); // 1 Combine the above two things but can not edit text // 2 use LabeledRect alsoSegún sus requisitos, puede
Eche un vistazo a esta respuesta: cambiar el tamaño de Fabric Rect sin cambiar el tamaño de Textbox . Hace algo muy similar a lo que has descrito.