How to get the coordinates of the image after rotation #935
-
| I have a rectangle, after rotating it 90 degrees, the coordinates returned are still the same as the original, how can I get the coordinates after rotation? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            stockiNail
          
      
      
        Aug 8, 2024 
      
    
    Replies: 1 comment 5 replies
-
| @anhln1998 the plugin is not exporting the helpers therefore, even if there is the function, you cannot invoked. Nevertheless, is not an issue for you, you can take it and copy in your project: chartjs-plugin-annotation/src/helpers/helpers.geometric.js Lines 5 to 22 in e94475c | 
Beta Was this translation helpful? Give feedback.
                  
                    5 replies
                  
                
            
      Answer selected by
        stockiNail
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

@anhln1998 the plugin is not exporting the helpers therefore, even if there is the function, you cannot invoked.
Nevertheless, is not an issue for you, you can take it and copy in your project:
chartjs-plugin-annotation/src/helpers/helpers.geometric.js
Lines 5 to 22 in e94475c