zrender icon indicating copy to clipboard operation
zrender copied to clipboard

textAlign property in style does not work

Open wzddl opened this issue 4 years ago • 6 comments

textAlign property in style does not work I've tested it many times and it's not my code bug

let testWord = new zrender.Text({
    style: {
        text: "testWord",
        x: 10,
        y: 10,
        fontSize: "10px",
        textAlign: "right"
    }
});
ZR.add(testWord);

Snipaste_2021-02-04_15-51-57

wzddl avatar Feb 04 '21 07:02 wzddl

I think it should be align but not textAlign. Please refer to the changelog of 5.0. https://echarts.apache.org/en/changelog.html

plainheart avatar Feb 05 '21 07:02 plainheart

I think it should be align but not textAlign. Please refer to the changelog of 5.0. https://echarts.apache.org/en/changelog.html

Isn't this the development document for ecarts? the zrender lib of my using...

wzddl avatar Feb 06 '21 01:02 wzddl

I think it should be align but not textAlign. Please refer to the changelog of 5.0. https://echarts.apache.org/en/changelog.html

thanks, it's working ... Why is the development document not updated on https://ecomfe.github.io/zrender-doc/public/api.html...

wzddl avatar Feb 06 '21 02:02 wzddl

I wanna know as well. We can see the repository of documentation has not been maintained for a long time since Jan 18, 2018, except for a typo fixing in https://github.com/ecomfe/zrender-doc/commit/47549cb675c11980ea050a761fe0f493cda67375. zrender is the core library of ECharts, all is focusing on the development of ECharts, but instead the documentation of zrender seems ignored gradually.

plainheart avatar Feb 06 '21 02:02 plainheart

I wanna know as well. We can see the repository of documentation has not been maintained for a long time since Jan 18, 2018, except for a typo fixing in ecomfe/zrender-doc@47549cb. zrender is the core library of ECharts, all is focusing on the development of ECharts, but instead the documentation of zrender seems ignored gradually.

I've only recently started using the zrender library, and I've always thought that its development documents are always updated

wzddl avatar Feb 06 '21 02:02 wzddl

文档竟然不是最新的....好坑

Mr-Car avatar Aug 03 '23 09:08 Mr-Car