Ovilia opened a new pull request, #17102:
URL: https://github.com/apache/echarts/pull/17102

   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   This PR is intended to increase elements' responsive size on mobile devices 
so that elements can be touched more easily.
   
   The idea is inspired by [Understanding Success Criterion 2.5.5: Target 
Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html).
   
   
   
   ### Fixed issues
   
   <!--
   - #xxxx: ...
   -->
   
   
   ## Details
   
   ### Before: What was the problem?
   
   Small elements are hard to touch precisely on mobile devices in cases like 
scatter charts with small bubbles. 
   
   
   ### After: How is it fixed in this PR?
   
   Touch position in increased by "pointer size" (default value is 44px) so 
that elements are easier to be touched.
   
   
   ## Misc
   
   <!-- ADD RELATED ISSUE ID WHEN APPLICABLE -->
   
   - [x] The API has been changed (apache/echarts-doc#xxx).
   - [x] This PR depends on ZRender changes (ecomfe/zrender#918).
   
   ### Related test cases or examples to use the new APIs
   
   - test/target-size.html
   
   ### API Changes
   
   ```ts
   echarts.init(dom, null, {
     useCoarsePointer: 'auto',
     pointerDiameter: 44,
     ...
   });
   ```
   
   - `useCoarsePointer` (`'auto'` | `true` | `false`): whether to enable thie 
feature. If set to be `'auto'`, it's turned on only for mobile devices.
   - `pointerDiameter` (`number`): touch position is increased by this pointer 
size in diameter.
   
   Charts that with `large` scale enabled will disable this feature.
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
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-unsubscr...@echarts.apache.org

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


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

Reply via email to