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/07/02 12:34:44 UTC

[GitHub] [echarts] iuliust opened a new issue #15284: Some of Echarts' internal types should be exported (eg: ElementEvent)

iuliust opened a new issue #15284:
URL: https://github.com/apache/echarts/issues/15284


   ### Version
   5.1.2
   
   ### Steps to reproduce
   Try to get a reference to the ElementEvent type of echartsInstance.on(eventName, (event) => {...})
   
   ### What is expected?
   In a typescript project, we should be able to get the reference to the ElementEvent type, among other types.
   
   ### What is actually happening?
   There's no way to get a clean reference to the type
   
   ---
   In general, a very, very limited part of Echarts' internal types are exported. This is a big problem, because when I want to declare an observable of ElementEvent, it is just impossible.
   I want to be able to have the following code :
   
   ```typescript
   import { ElementEvent } from 'echarts';
   // ...
   
   export class ChartComponent {
     chartClickEvents = new Subject<ElementEvent>(); // Unfortunately, it's impossible because Echart's types are almost never exported...
   
     constructor() {
        // ...
        this.echartsInstance.on('click', event => {
           this.chartClickEvents.next(event);
        });
   
        this.chartClickEvents.pipe(
             tap(e => {
                     // do stuff...
              }),
        ).subscribe();
     }
   }
   ```
   
   <!-- 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] echarts-bot[bot] commented on issue #15284: Some of Echarts' internal types should be exported (eg: ElementEvent)

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


   This issue is labeled with `difficulty: easy`.
   @iuliust Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
   
   Please have a look at [How to debug ECharts](https://github.com/apache/echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓


-- 
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 #15284: Some of Echarts' internal types should be exported (eg: ElementEvent)

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


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