-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 iframe 的方式通过路由传参的方式集成 iCraft 编辑对于url的地址有什么要求吗 #14
Comments
是的,目前通过iframe集成是有一些限制的,url必须是https的,并且要支持跨域访问,还是推荐使用iplayer来集成,有原生js版本,vue可用 |
非常感谢您的回答。我还想问一下,是否有提供切换动画方案的方法?类似于changeCustomCamera。 |
目前貌似toggleLoop只能走到停止动画循环,无法开启动画循环 |
目前没有切换动画的方法,只能指定初始动画序号 defaultAnimationPlan,后面可以增加一个切换动画方案方法-changeAnimationPlan |
对,toggleLoop 目前是改变loop的状态,要开始动画需要tooglePlay |
非常感谢,非常感谢。 |
|
可以提供最小复现的demo吗? |
|
我试了一下,应该是和其他依赖冲突了,但具体是哪个依赖,不太清楚。上面那个地址,控制台一直报错, |
https://github.com/wuzf007/icraft.git |
https://github.com/wuzf007/icraft.git, 这个我run起来后没发现报错,你用的是npm还是yarn还是pnpm? |
我用的npm
您再试下我的例子,我给您开通权限了
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年1月20日(周一) 上午10:19
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [gantFDT/icraft] 使用 iframe 的方式通过路由传参的方式集成 iCraft 编辑对于url的地址有什么要求吗 (Issue #14)
https://github.com/wuzf007/icraft.git, 这个我run起来后没发现报错,你用的是npm还是yarn还是pnpm?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
用npm安装的确报错,一时半会还排查不出问题,你先用yarn或pnpm |
好的。感谢 |
是跟 npm install --save three 冲突了。我试着删除package.json里面的这个依赖,程序就可以正常运行了。 |
哦,那就是threejs版本冲突了 |
使用 iframe 的方式通过路由传参的方式集成 iCraft 编辑的场景,对于url的地址有什么要求吗?因为我想集成本地的.icraft,编辑器一直打不开,打开了会提示文件打开失败,如图,是否必须需要https开头的路径才可以?通过编辑器上方的打开操作就可以打开。



The text was updated successfully, but these errors were encountered: