Giter Site home page Giter Site logo

Comments (8)

hareboy avatar hareboy commented on April 28, 2024 1

么么哒,爱死你了。厉害。

from hilo.

06wj avatar 06wj commented on April 28, 2024

目前Hilo没有ui控件的封装,建议ui用原生html或者DOMElement实现,动画部分用Hilo实现

from hilo.

hareboy avatar hareboy commented on April 28, 2024

谢谢,我研究一下DOMElement

from hilo.

hareboy avatar hareboy commented on April 28, 2024

var node2 = $("<p/>")
.attr("id","username")
.height(90)
.css("border","1px solid #000")
.html('<input type="text" value="aaaaaa"/>')[0];
//dom element
var UsernameText = new Hilo.DOMElement({
id: 'userNameText',
element: node2,
width: 100,
height: 100,
x: 10,
y: 80
});

请问为啥不能输入和显示光标?

from hilo.

06wj avatar 06wj commented on April 28, 2024

domElement默认会设置pointer-events为none来提升性能,现在解决方案是给元素加pointer-events:visible就好了 http://runjs.cn/code/wmm1f3up

下一版本会在DOMElement里增加选项设置是否取消鼠标事件

from hilo.

hareboy avatar hareboy commented on April 28, 2024

发现了一个问题Container 隐藏了,DOMElement不隐藏。

from hilo.

06wj avatar 06wj commented on April 28, 2024

@hareboy canvas和WebGL模式下DOMElement实际上是插不到其它container里的会触发这个bug,建议DOMElement都放到stage下或者使用dom模式

from hilo.

hareboy avatar hareboy commented on April 28, 2024

谢谢,已经解决,我直接用jquery控制了。

from hilo.

Related Issues (20)

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.