Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use fabric js (html5-Canvas Library) custom build in ionic project

I am working in ionic application that enable to create graphics. I am using fabric js letest version 3.2.0 and want ot use touch gesture.

I try to clone fabric js repository into my pc and try to build custom build using following command :

  node build.js modules=ALL

So, build is successful in dist folder, but I don't know how to install it in ionic.

Please help me.

like image 979
Mayur Kukadiya Avatar asked Oct 14 '25 17:10

Mayur Kukadiya


2 Answers

After compare all file in node-module/fabric and my custom build. and I got that both are same. So I put this answer for help.

Step :

  1. install letest fabric js using cmd : npm install fabric --save

  2. download custom build from fabric js site : http://fabricjs.com/build/

  3. open : ionic-project-folder/node modules/fabric/

  4. replace dist folder Placed inside above path with downloaded custom build (dist folder)

  5. re-serve project.

If any other solution is possible (like publishing into npm and install) then Please mention.

like image 105
Mayur Kukadiya Avatar answered Oct 17 '25 15:10

Mayur Kukadiya


This is a link to Ionic's API for interacting with the Crashlytics kit: https://ionicframework.com/docs/v3/native/crashlytics/. This should have the instructions needed to get your Ionic app integrated with Crashlytics.

like image 35
Kevin Kokomani Avatar answered Oct 17 '25 16:10

Kevin Kokomani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!