Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add types from @types/plotly.js-dist-min, Typing update, Export PlotlyViaWindow and PlotlyViaCDN#288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
bzh2610 wants to merge4 commits intoplotly:master
base:master
Choose a base branch
Loading
frombzh2610:use-@types

Conversation

@bzh2610
Copy link

@bzh2610bzh2610 commentedOct 1, 2025
edited
Loading

Changes

  • Using the types of@types/plotly.js-dist-min

Since the README instructs us to use those types :

Screenshot 2025-10-01 at 16 10 01

We might as well use those types for a better coherence with the latest updates and stronger typing

Also :

  • Update README.md with Angular 20+ instruction (app.module.ts was deprecated in favor of usingapplicationConfig) as instructed hereAngular 20 standalone application #281
  • Uninstalledcoveralls as it's unused
  • Uninstallplotly.js-dist (in favor of the minified package)
  • Corrected typing issue on demo file, (graph type change and layouttitle property change)
  • Re-exported PlotlyViaWindow and PlotlyViaCDN as the related modules where first removed then put back, but they were not re-exported. SeeAngular 20 Via CDN #282@andrefarzat was this intentionnal ?

Using types from the types library allows for smartter auto-completion :
Screenshot 2025-10-02 at 15 35 20

Screenshot 2025-10-02 at 15 38 06

(This used to be any[] with the previous definition from interface.ts)

@bzh2610bzh2610 changed the titleAdd @types/plotly.js-dist-minAdd types from @types/plotly.js-dist-min instead of using Plotly.interfaceOct 1, 2025
@bzh2610bzh2610 changed the titleAdd types from @types/plotly.js-dist-min instead of using Plotly.interfaceAdd types from @types/plotly.js-dist-min instead of using Plotly.interface.tsOct 1, 2025
@bzh2610bzh2610 marked this pull request as draftOctober 1, 2025 14:57
@bzh2610bzh2610 changed the titleAdd types from @types/plotly.js-dist-min instead of using Plotly.interface.tsAdd types from @types/plotly.js-dist-minOct 2, 2025
@bzh2610bzh2610 marked this pull request as ready for reviewOctober 2, 2025 09:46
@bzh2610bzh2610 changed the titleAdd types from @types/plotly.js-dist-minAdd types from @types/plotly.js-dist-min, Typing update, Export PlotlyViaWindow and PlotlyViaCDNOct 2, 2025
Comment on lines -3 to -5
exporttypeData=any;
exporttypeLayout=any;
exporttypeConfig=any;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Removing this to use@type/plotly.js-dist-min

Comment on lines +6 to +7
export*from'./lib/plotly-via-cdn.module';
export*from'./lib/plotly-via-window.module';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Undoing (accidental ?) Removal of this ? See issue linked in description

Comment on lines +18 to +21
{x:[1,2,3],y:[2,6,3],type:'scatter',mode:'lines+markers',marker:{color:'red'}},
{x:[1,2,3],y:[2,5,3],type:'bar'},
],
layout:{width:320,height:240,title:'A Fancy Plot'}
layout:{width:320,height:240,title:{text:'A Fancy Plot'}}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

With new stronger types, this was compiling anymore, I had to update the sample

{
"name":"angular-plotly.js",
"version":"20.0.0",
"version":"20.1.0",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggesting increment to release this, feel free to comment if it should be done in a separate PR/commit

@Ghez239
Copy link

any updates on release date?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@Daniel-AragaoDaniel-AragaoDaniel-Aragao left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@bzh2610@Ghez239@Daniel-Aragao

[8]ページ先頭

©2009-2025 Movatter.jp