微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何重新运行 Blotter.js 的构建脚本?

如何解决如何重新运行 Blotter.js 的构建脚本?

我正在使用 Blotter.js 为我的项目中的文本设置动画,一切正常,直到我决定使用 Three.js 在某些图像中加入动画。现在我的图像正在工作,但我在文本中的动画已停止工作。似乎发生了冲突,因为 Blotter 已经需要 Three.js。显然,要解决它,我应该执行以下操作:

Blotter.js requires Three.js and Underscore.js. If you're already including these files in your project,you should remove them from the defFiles array in the Gruntfile and re-run the build script.

但我不知道怎么做。拜托,有人可以向我解释如何做到这一点吗?

对于 Blotter,我从我通过 npm 安装了 Three Parcel-bundler 的网站下载了文件,并且在我安装了 Three 后我从浏览器收到以下消息:

Uncaught TypeError: Cannot read property 'ClampToEdgeWrapping' of undefined 
at Object.<anonymous> (blotter.min.js:15988) 
at Object.require.1.three (blotter.min.js:16009) 
at e (blotter.min.js:15957) 
at a (blotter.min.js:15977) 
at Object.parcelRequire.js/blotter.min.js (blotter.min.js:15945) 
at newRequire (blotter.min.222dfb7e.js:47) 
at blotter.min.222dfb7e.js:81 
at blotter.min.222dfb7e.js:120 liquiddistortMaterial.6c9d0bd9.js:116 


Uncaught TypeError: Cannot set property 'LiquiddistortMaterial' of undefined 
at liquiddistortMaterial.js:2 
at Object.parcelRequire.js/liquiddistortMaterial.js (liquiddistortMaterial.js:1) 
at newRequire (liquiddistortMaterial.6c9d0bd9.js:47) 
at liquiddistortMaterial.6c9d0bd9.js:81 
at liquiddistortMaterial.6c9d0bd9.js:120 landingPage.js:46 

Uncaught (in promise) ReferenceError: Blotter is not defined 
at landingPage.js:46

我是编程新手,如果我的问题太菜,我很抱歉。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?