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

   ### What problem does this feature solve?
   
   Hello, echarts team,
   
   I am using echarts library in the frontend angular application. I want to 
build my own service with predefined entities, like f.e. grid, text_style, 
axis_label etc., that will be used in the EChartsOption
   
   ```
   public static readonly GRID = {
     top: '15%',
     left: '0%',
     right: '0%',
     bottom: '0%',
     containLabel: true,
   }
   
   public static readonly TEXT_STYLE = {
     color: this.TEXT_COLOR,
     fontSize: 14,
     fontWeight: 400,
   };
   
   public static readonly AXIS_LABEL = {
     show: true,
     lineHeight: 14,
   };
   ```
        
   But the trouble comes here, that most of echarts ts types are not exported 
from the library, that's why currently it is only possible to hardcode objects. 
Is it possible to export all types, that are connected to the EChartsOption 
type?
   
   ### What does the proposed API look like?
   
   For Example (library interface):
   
   **export** interface AxisLineOption {
       show?: boolean | 'auto';
       onZero?: boolean;
       onZeroAxisIndex?: number;
       symbol?: string | [string, string];
       symbolSize?: number[];
       symbolOffset?: string | number | (string | number)[];
       lineStyle?: LineStyleOption;
   }


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to