Using Fabric.js I am working with a text object, which I called a heading. When the title bar is selected, the div disappears with two input fields that can be used to set text and fill. This works for me.
What I'm trying to process further is when you delete the header object, I will disappear from my div. What is the correct way to handle header.off ()?
header.on('selected', function() {
$('#header-text-edit').fadeIn('fast');
scope.$watch("header.input", function(value) {
header.text = scope.header.input;
});
scope.$watch("header.color", function(value) {
header.fill = scope.header.color;
});
});
source
share