-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin creation from scratch #1713
Comments
You can find examples in the repo, for example start with sinple one https://github.com/tradingview/lightweight-charts/tree/master/plugin-examples/src/plugins/anchored-text and then you will get how it works |
Hi , yea was working on it in weekend and was able to replicate it via vanilla js using below code , my question is in some example in library it uses/importing fancy-canvas , but here my code in vanilla working fine without it , Am I missing something ? or tv library has built in fancy canvas ?
|
@SlicedSilver : hi can you please tell is this right way to do in vanilla js ? how does it works without fancy-canvas ? does lightweight library i build contains fancy-canvas already ? |
There are a few different builds of the library. The 'standalone' version includes fancy-canvas bundled and you should use this if you aren't using a build or bundle tool. Plugins themselves don't specifically require fancy-canvas. Some example might use imports from fancy canvas but this would be for the 'types' and these imports wouldn't be in the actual generated JS code. |
Thanks I am using normal 160kb version and everything works fine..when can we expect next version .. any roadmaps ? |
We don't share timelines but we are actively working on the next release. There is a 5.0 milestone. |
so next release is 5 directly or something like 4.5 |
Hi , I can see various example of different plugins created on tradingview , It is mind blowing.
now I want to create my own plugin , but there is nowhere how to create a plugin from scratch , step by step tutorial.It will be great if there is mini how to on how to create our own plugins in two types: custom series and drawing primitives.
like one example of what should be there inside
class MyCustomSeries {
/* Class implementing the ICustomSeriesPaneView interface */
}
I was running npm create lwc-plugin@latest and created plugin and it uses vite , typescript , fancy canvas etc
is it possible to create this plugin via vanilla js ? I dont want to use nodejs or typescript
The text was updated successfully, but these errors were encountered: