You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "somnusnrlq (via GitHub)" <gi...@apache.org> on 2023/11/21 02:27:02 UTC

[I] [Bug] 声明的自定义图形不能控制拖拽方向 [echarts]

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

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/TokyYX/smjdkzvL/1/
   
   ### Steps to Reproduce
   
   1. 示例中添加了一个自定义红色圆点 实现只能在纵向拖动 现在是可以随便拖动
   2. 代码中在拖拽事件中控制了cx为固定值无效
   
   ### Current Behavior
   
   想要实现控制一个方向的拖动
   
   ### Expected Behavior
   
   想要实现控制一个方向的拖动
   
   ### Environment
   
   ```markdown
   - OS:windows11
   - Browser: chrome
   - Framework: 119.0.6045.160
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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


Re: [I] [Bug] 声明的自定义图形不能控制拖拽方向 [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #19314:
URL: https://github.com/apache/echarts/issues/19314#issuecomment-1820210664

   You can set `draggable` as `'horizontal'` or `'vertical'` to restrict the dragging direction. Refer to this [demo](https://echarts.apache.org/examples/editor.html?c=line-simple&code=LYTwwgFghgTgLgOgM4FM4HkAOcCWB7AOwAoBvAKAAIKAPAQWpyQC4Lyqq4RMUWByAYyhwUAczwwQvADSV2AEyFQWAbV4BZQtIq8AKgFcUW3gHUUcozoh6jAMRg4jAZSFO9BXgF1ZAXxlUQ9IwsbOyc3HwAblAANga8Pn4UqPYozBTKslQh7BQKcErpAIwATAAMUhRl5RSFAKzVABzVAOzVhYVtAMylHok5YTzaAEaw0pnsSBB4AO4AQlD8ANYiMHhucixwMAZ97CNLK2sEco6c0YPZORT8eNHifDAiI0SFTRWvbW8UpQjFAJTxK4UbzjEFULzeP4AbjIZBuBCQcFyMCgIgACngcAQ4KdYEiALwUAgoaYUFD8aDwJAIFZQTAQHD8BBgHAwfjnUiySZ0i7XagsDrVfggAWlaowFi1YGJREgc7BCgAMxw0WiDzMvGlsgA9NrtFN7AAvQj5aKavW8CIoeCMmLmihDPC3FBQAiyOQokQiKBDeX68Q4Y3Yu2JQ0sACckbIkJhoEgeJpaAAWjAiH8EFA5HIiB7URisTj8vBoUA).
   


-- 
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


Re: [I] [Bug] 声明的自定义图形不能控制拖拽方向 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #19314:
URL: https://github.com/apache/echarts/issues/19314#issuecomment-1820113433

   @somnusnrlq It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] The declared custom graphics cannot control the drag direction
   
   **BODY**
   
   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/TokyYX/smjdkzvL/1/
   
   ### Steps to Reproduce
   
   1. A custom red dot has been added to the example so that it can only be dragged vertically. Now it can be dragged casually.
   2. In the code, cx is controlled to a fixed value in the drag event, which is invalid.
   
   ### Current Behavior
   
   Want to control dragging in one direction
   
   ### Expected Behavior
   
   Want to control dragging in one direction
   
   ### Environment
   
   ```markdown
   - OS: windows11
   - Browser: chrome
   - Framework: 119.0.6045.160
   ```
   
   
   ### Any additional comments?
   
   _No response_
   </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


Re: [I] [Bug] 声明的自定义图形不能控制拖拽方向 [echarts]

Posted by "somnusnrlq (via GitHub)" <gi...@apache.org>.
somnusnrlq closed issue #19314: [Bug] 声明的自定义图形不能控制拖拽方向
URL: https://github.com/apache/echarts/issues/19314


-- 
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


Re: [I] [Bug] 声明的自定义图形不能控制拖拽方向 [echarts]

Posted by "somnusnrlq (via GitHub)" <gi...@apache.org>.
somnusnrlq commented on issue #19314:
URL: https://github.com/apache/echarts/issues/19314#issuecomment-1820300385

   谢谢


-- 
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


Re: [I] [Bug] 声明的自定义图形不能控制拖拽方向 [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19314:
URL: https://github.com/apache/echarts/issues/19314#issuecomment-1820151351

   not-a-bug,  see [Official Example](https://echarts.apache.org/examples/en/editor.html?c=line-draggable)
   please close issue if problem solved


-- 
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