Git Product home page Git Product logo

atlas-editor-polymer-deprecated's People

Contributors

jareguo avatar jwu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ailhc

atlas-editor-polymer-deprecated's Issues

导出时加入 bleed 算法

目前还是把两种bleed算法都实现了,他们的目的还是不太一样。
contour bleed又叫做reduce border artifacts,应用于sprite内部,只改变全透明像素的颜色。主要解决缩放造成的白边/黑边。
padding bleed又叫做extrude。应用于sprite外部,同时改变颜色和透明度。主要解决贴图边缘的模糊。

鼠标中键拖动功能

还是要支持中键,因为很多浏览器右键拖动是鼠标手势。
(考虑统一所有拖动为中键,就像unity一样)

建议加入高级模式

在inspector中隐藏以下选项,选中高级模式后才显示出来。
Algorithm,Sort By,Sort Order,Allow Rotate,Contour Bleed,Padding Bleed,Custom Padding,Build Color
以及整个Preview面板。

这样能提供更好的用户体验,也为我们进一步增加功能提供了可能。

background选项改进

用户修改颜色时,不容易注意到alpha没调这个问题,就会觉得改颜色没效果。
建议background默认alpha为0.5,然后像build color一样在颜色前面加个可选框。

对png压缩采用异步处理

在nw版本弹出保存对话框时,png应该就开始压缩,当压缩完成并且对话框结束后才执行png写入操作。这里可能需要引入一个异步库以便处理。

node-webkit 的文件列表不能自动刷新

当选中sprite时,文件列表的对应条目不会立即高亮,必须把鼠标移上去才会高亮。
这个问题之前出现过,后来好过,现在又出现了。用最新版的editor-ui,不论编译成什么版本,都有这个问题。

paper.js 以及其他 canvas 框架的集成评估

Tower 上已经有了一个对现有canvas 框架的初步评估: https://tower.im/projects/5ddd2d4f1bc24ef58b6fb66a53190150/messages/4d49b8dbedf844cf8d80376a39292ee5/

目前我们还需要一份现有 canvas 框架和editor 之间的集成评估。评估的内容主要包括:

  • 与现有 canvas 是否能够融合,还是只能依托于这些框架提供的 canvas
  • 渲染效率
  • 其他

我们以 atlas editor 的 canvas 为样本来开展这次的评估工作。atlas editor 的 canvas 中我们需要实现 image 的点击 和 拖动,另外可以考虑加入缩放操作。我们看看 tower 中提供的 canvas 框架中是否能够符合需求,融合进已有canvas,并提供 hit-testing 和 mouse event 的操作流程。

目前我个人会偏爱 paper.js。他的 api 设计最简单清晰,需求正好都是我们欠缺的部分。

在做完 atlas editor 的融合操作后,根据结果,考虑进一步测试 pixi.js 的融合情况。

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.