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 2021/08/25 02:20:30 UTC

[GitHub] [echarts] deyihu opened a new issue #15598: Export the complete zrender namespace

deyihu opened a new issue #15598:
URL: https://github.com/apache/echarts/issues/15598


   ### What problem does this feature solve?
   The current zrender namespace is incomplete,Unable to use the full functionality of zrender
   
   ![$U88_OL8)4ND5N9PGNX@2SH](https://user-images.githubusercontent.com/25998927/130715321-faaf68ff-d800-4cf3-8e6c-722bf2e006f8.png)
   ![EBASRCZ6X)J{2CULXIGZMG4](https://user-images.githubusercontent.com/25998927/130715462-de9d6bcb-6240-498a-9e41-0de288165f9d.png)
   
   
   ### What does the proposed API look like?
   ```js
     const zrender=echarts.zrender;
   
    new zrender.Ellipse({
                   shape: {
                       cx: 0,
                       cy: 0,
                       rx: width / 10,
                       ry: height / 9
                   },
                   style: {
                       fill: 'rgba(31,24,31,0.3)',
                       // opacity: 0.3,
                       stroke: 'yellow',
                       lineWidth: 2
                   },
                   position: [width / 5, height / 4]
               });
   
   ```
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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] deyihu closed issue #15598: Export the complete zrender namespace

Posted by GitBox <gi...@apache.org>.
deyihu closed issue #15598:
URL: https://github.com/apache/echarts/issues/15598


   


-- 
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] pissang commented on issue #15598: Export the complete zrender namespace

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


   We didn't export `zrender` directly because some of the modules in `zrender` need to be treeshaked.
   
   But still you can import the `zrender` module in your code
   
   ```ts
   import zrender from 'zrender'
   ```


-- 
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] deyihu commented on issue #15598: Export the complete zrender namespace

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


   @pissang Understood,
   
   use esm,It can be used in this way, but if it is directly referenced in the browser, you have to additionally introduce zrender
   
   ```html
   <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/zrender@5.1.1/dist/zrender.min.js"></script>
   <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.1.2/dist/echarts.min.js"></script>
   ```


-- 
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] echarts-bot[bot] commented on issue #15598: Export the complete zrender namespace

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15598:
URL: https://github.com/apache/echarts/issues/15598#issuecomment-905117390


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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