fairygui / fairygui-dom Goto Github PK
View Code? Open in Web Editor NEWA GUI Editor&framework for HTML DOM
License: MIT License
A GUI Editor&framework for HTML DOM
License: MIT License
DOM 示例在移动端无法正常滚动
请问一下,可以直接在html里引入fairygui.min.js文件来使用吗?就是不想用webpack那一套方式来开发。
Construct 3 (https://editor.construct.net/) 是一个基于浏览器的游戏引擎,通过 Webview 运行,可以导出到各平台。这是引擎官方的插件开发文档,官方也提供了一些插件的开源案例,插件支持 JavaScript 和 TypeScript 编码,也支持插件使用 C++ 集成。理论上其他 H5 引擎能运行,那么在C3运行也没有问题的。
C3 引擎缺少一种通用UI的解决方案,目前只能依赖硬编码或者原生DOM,如果 FairyGUI 能支持C3就真的能极大提高工作效率。
进去之后红字提示
xxx.init is not a function
无法加载
猜测原因:
https://caniuse.com/custom-elementsv1
Supports "Autonomous custom elements" but not "Customized built-in elements"
注意这个苹果说是 wont fix
G:\GitHub\FairyGUI\FairyGUI-dom>gulp buildJs
{ Error: Cannot find module 'rollup'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (G:\GitHub\FairyGUI\FairyGUI-dom\gulpfile.js:2:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
锁定package.json中相应的版本后重新安装即可
"ts-loader": "7.0.4",
"typescript": "4.2.3",
ERROR in ./test/src/index.ts
Module build failed (from ./node_modules/ts-loader/index.js):
Error: Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective
, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives
signature. This is probably not a problem in TS itself.
at Object.resolveTypeReferenceDirective (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:43193:18)
at E:\Github\FairyGUI-dom\node_modules\ts-loader\dist\servicesHost.js:613:77
at E:\Github\FairyGUI-dom\node_modules\ts-loader\dist\servicesHost.js:131:142
at Array.map ()
at Object.resolveTypeReferenceDirectives (E:\Github\FairyGUI-dom\node_modules\ts-loader\dist\servicesHost.js:131:125)
at actualResolveTypeReferenceDirectiveNamesWorker (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:118257:163)
at resolveTypeReferenceDirectiveNamesWorker (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:118557:26)
at processTypeReferenceDirectives (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:120054:31)
at findSourceFileWorker (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:119939:21)
at findSourceFile (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:119791:26)
at E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:119740:85
at getSourceFileFromReferenceWorker (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:119706:34)
at processSourceFile (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:119740:13)
at processTypeReferenceDirectiveWorker (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:120085:21)
at processTypeReferenceDirective (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:120070:13)
at Object.createProgram (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:118360:21)
at synchronizeHostData (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:167688:26)
at Object.getProgram (E:\Github\FairyGUI-dom\node_modules\typescript\lib\typescript.js:167802:13)
at Object.initializeInstance (E:\Github\FairyGUI-dom\node_modules\ts-loader\dist\instances.js:193:84)
at successLoader (E:\Github\FairyGUI-dom\node_modules\ts-loader\dist\index.js:28:17)
at Object.loader (E:\Github\FairyGUI-dom\node_modules\ts-loader\dist\index.js:25:5)
这个可以代替 WEB 开发三大件吗? Vue,React, Angular 这三个框架。感觉资料好少啊。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.