We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
当元素处在画布边缘时,从元素上直接移出画布,触发了mouseout事件,但是Handler中的局部变量this._hovered没有重置,导致下一次从鼠标移出位置hover进元素时由于this._hovered和lastHovered相同无法触发mouseover事件。 除了自己监听画布容器的鼠标移出事件手动调用Handler@resize重置this._hovered外,还有什么好的处理方法吗?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
如何往rect中添加text,用下面这段代码测试报错,哪位大佬能指点下 var rect = new zrender.Rect({ shape: { x: 50, y: 50, width: 100, height: 100 }, style: { fill: null, stroke: '#000', } }) console.log(rect) var text = new zrender.Text() console.log(text) rect.setTextContent(text) zr.add(rect);
sorry 找到原因了,调试时把源码注掉了。。。 ZRender.prototype.add = function (el) { if (!el) { return; } this.storage.addRoot(el);
// el.addSelfToZr(this); // this.refresh(); };
No branches or pull requests
The text was updated successfully, but these errors were encountered: