Giter Club home page Giter Club logo

behavior3-reduce's Introduction

behavior3-reduce

使用pomelo-protobuf来压缩behavior3生成的json文件,大幅度减少树文件的体积.

编辑器

修改了编辑器导出接口,点击导出bin按钮就会生成压缩后的bin文件,编辑器只能使用谷歌浏览器才能正常使用

behavior库

修改了behavior库的导入数据接口在libs\behavior3js.js,带了个d.ts方便代码提示

使用

git clone https://github.com/alexviolent/behavior3-reduce.git

cd b3editor

npm install mdserver -g

mdserver

========================

然后打开谷歌浏览器进入http://127.0.0.1:3333即可打开编辑器

菜单依次 Project>Export>Project as JSON 可以看到Save as bin按钮,这里是浏览器,点击了也保存不了文件

所以想导出文件,需要使用nodewebkit把编辑器打包成exe,怎么使用自行百度

nodewebkit官网nwjs(http://nwjs.io/)

release里面也有上传用nwjs打包好的编辑器

========================= Image text

behavior3-reduce's People

Contributors

alexviolent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.