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.
4条答案
按热度按时间v09wglhw1#
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 :
If any other solution is possible (like publishing into npm and install) then Please mention.
kfgdxczn2#
这是一个指向Ionic的API的链接,用于与Crashlytics工具包交互:https://ionicframework.com/docs/v3/native/crashlytics/。这应该有让你的离子应用程序与Crashlytics集成所需的说明。
vfwfrxfs3#
通过
npm
安装更多详细信息请访问
https://www.npmjs.com/package/fabric
4jb9z9bj4#
对于我的情况,我使用一个自定义构建结构js版本5.2.4和一个Ionic 6应用程序。
1.如果使用
npm uninstall fabric
将fabric js安装在项目中,请卸载它1.从Fabric js站点下载您的自定义构建:http://fabricjs.com/build/
1.将下载的文件添加到
public
目录下,例如public/libs/fabric/fabric.min.js
1.在
App.js
处1.重新服务项目。
1.现在
fabric
应该可以从window.fabric
获得注意。
编辑器还添加了一些代码到我的
tsconfig.json
我不知道它是做什么的,但它工作正常,所以我离开了它。