You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/07/08 09:29:20 UTC

[GitHub] [echarts] li942475402 opened a new issue, #17339: [Bug] textRotation not work

li942475402 opened a new issue, #17339:
URL: https://github.com/apache/echarts/issues/17339

   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   any example like https://echarts.apache.org/examples/zh/editor.html?c=scatter-simple
   
   ### Steps to Reproduce
   
   ```javascript
   option = {
     graphic: [
       {
         type: 'rect',
         id: 'A',
         x: 100,
         y: 100,
         shape: {
           width: 200,
           height: 200
         },
         style: {
           text: 'A',
           fontSize: 60,
         },
         originX: 50,
         originY: 50,
         rotation: 0,
         updateAnimation: {
           duration: 1000
         },
         transition: 'all'
       }
     ],
     animationDuration: 1000,
     animationDurationUpdate: 1000
   };
   
   setTimeout(function () {
     myChart.setOption({
       graphic: [
         {
           id: 'A',
           rotation: Math.PI / 6,
           originX: 50,
           originY: 50,
           style: {
             textRotation: Math.PI / 6
           }
         }
       ]
     });
   }, 2000);
   
   ```
   
   ### Current Behavior
   
   textRotation not wrok
   
   ### Expected Behavior
   
   Text rotates with graphics
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   Why the animation of the text doesn't follow the graphics, including scaling and rotation @O


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart commented on issue #17339: [Bug] textRotation not work

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #17339:
URL: https://github.com/apache/echarts/issues/17339#issuecomment-1178777936

   Use [`textConfig.rotation`](https://echarts.apache.org/option.html#graphic.elements-rect.textConfig.rotation) instead of `style.textRotation`. See the [Apache ECharts 5 Upgrade Guide](https://echarts.apache.org/handbook/en/basics/release-note/v5-upgrade-guide/#deprecated-apis) for more details.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] li942475402 commented on issue #17339: [Bug] textRotation not work

Posted by GitBox <gi...@apache.org>.
li942475402 commented on issue #17339:
URL: https://github.com/apache/echarts/issues/17339#issuecomment-1178792457

   > Use [`textConfig.rotation`](https://echarts.apache.org/option.html#graphic.elements-rect.textConfig.rotation) instead of `style.textRotation`. See the [Apache ECharts 5 Upgrade Guide](https://echarts.apache.org/handbook/en/basics/release-note/v5-upgrade-guide/#deprecated-apis) for more details.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] li942475402 commented on issue #17339: [Bug] textRotation not work

Posted by GitBox <gi...@apache.org>.
li942475402 commented on issue #17339:
URL: https://github.com/apache/echarts/issues/17339#issuecomment-1178793399

   Why doesn't text follow graphics changes by default, just like children and groups


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] li942475402 closed issue #17339: [Bug] textRotation not work

Posted by GitBox <gi...@apache.org>.
li942475402 closed issue #17339: [Bug] textRotation not work
URL: https://github.com/apache/echarts/issues/17339


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org