Giter Club home page Giter Club logo

Comments (4)

Kienz avatar Kienz commented on July 20, 2024

Please ask questions like this on google groups.
Can you create small jsfiddle testcase.

BTW: I think it has nothing to do with the homepage fabricjs.com?! :)

from fabricjs.com.

pranavcp avatar pranavcp commented on July 20, 2024

Hi Kienz, have tried with, but i am not able to create with jsfiddle... :( ,
as my code is much larger, but i am uploading image, may it will give idea to you.

In snap shot i have taken snap but when i have uploaded image it gives output like
/_/
{"objects":[],"background":""}
/_
_/
but before it is
/
__/
{"objects":[{"type":"text","originX":"center","originY":"center","left":104,"top":128,"width":56,"height":32.5,"fill":"rgb(0,0,0)","overlayFill":null,"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":true,"transparentCorners":false,"perPixelTargetFind":false,"shadow":null,"visible":true,"text":"test1","fontSize":25,"fontWeight":"normal","fontFamily":"Noto Serif","fontStyle":"","lineHeight":1.3,"textDecoration":"","textShadow":"","textAlign":"left","path":null,"strokeStyle":"","backgroundColor":"","textBackgroundColor":"","useNative":true},{"type":"text","originX":"center","originY":"center","left":101,"top":183,"width":56,"height":32.5,"fill":"rgb(0,0,0)","overlayFill":null,"stroke":null,"strokeWidth":1,"strokeDashArray":null,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":true,"transparentCorners":false,"perPixelTargetFind":false,"shadow":null,"visible":true,"text":"test2","fontSize":25,"fontWeight":"normal","fontFamily":"Noto Serif","fontStyle":"","lineHeight":1.3,"textDecoration":"","textShadow":"","textAlign":"left","path":null,"strokeStyle":"","backgroundColor":"","textBackgroundColor":"","useNative":true}],"background":""}
/_
****/

a
b

from fabricjs.com.

Kienz avatar Kienz commented on July 20, 2024

@pranavcp In your objects array is no image object - there are only two text objects. How do you serialze your canvas?

from fabricjs.com.

pranavcp avatar pranavcp commented on July 20, 2024

alert(JSON.stringify(canvas));

from fabricjs.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.