Tag: javascript

Resize Fabric js Canvas

  canvas.setWidth( <desired width> ); canvas.setHeight( <desired height> ); canvas.calcOffset();  

Read more

Extract JSON String from Page Element with Javascript

var somePageElement = ‘{ “name”:”John”, “age”:30, “car”:”Tesla” }’; var jsonString = ‘[‘ + somePageElement.split(‘[‘)[1].somePageElement(‘]’)[0] + ‘]’;

Read more