@alphacharts/core 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +25 -2
  3. package/dist/index.js +3639 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/internal.js +1 -0
  6. package/dist/types/chart/chart.d.ts +348 -0
  7. package/dist/types/chart/dashboard.d.ts +19 -0
  8. package/dist/types/chart/emitter.d.ts +10 -0
  9. package/dist/types/chart/layers.d.ts +73 -0
  10. package/dist/types/chart/layout.d.ts +61 -0
  11. package/dist/types/chart/markers.d.ts +63 -0
  12. package/dist/types/chart/messages.d.ts +18 -0
  13. package/dist/types/chart/plugin.d.ts +75 -0
  14. package/dist/types/chart/primitives.d.ts +96 -0
  15. package/dist/types/chart/scheduler.d.ts +9 -0
  16. package/dist/types/chart/series-types.d.ts +79 -0
  17. package/dist/types/chart/series.d.ts +71 -0
  18. package/dist/types/chart/theme.d.ts +26 -0
  19. package/dist/types/chart/watermark.d.ts +10 -0
  20. package/dist/types/data/deque.d.ts +35 -0
  21. package/dist/types/data/lod.d.ts +35 -0
  22. package/dist/types/data/model.d.ts +99 -0
  23. package/dist/types/data/resample.d.ts +59 -0
  24. package/dist/types/data/session.d.ts +36 -0
  25. package/dist/types/data/timeline.d.ts +29 -0
  26. package/dist/types/data/tz.d.ts +27 -0
  27. package/dist/types/feed/datafeed.d.ts +65 -0
  28. package/dist/types/index.d.ts +52 -0
  29. package/dist/types/interaction/input.d.ts +32 -0
  30. package/dist/types/interaction/sync.d.ts +13 -0
  31. package/dist/types/internal.d.ts +3 -0
  32. package/dist/types/render/canvas2d.d.ts +43 -0
  33. package/dist/types/render/color.d.ts +4 -0
  34. package/dist/types/render/gl.d.ts +14 -0
  35. package/dist/types/render/renderers.d.ts +103 -0
  36. package/dist/types/render/surface.d.ts +43 -0
  37. package/dist/types/render/window.d.ts +54 -0
  38. package/dist/types/scale/format.d.ts +28 -0
  39. package/dist/types/scale/price-scale.d.ts +60 -0
  40. package/dist/types/scale/ticks.d.ts +82 -0
  41. package/dist/types/scale/time-scale.d.ts +51 -0
  42. package/dist/window-uK2QNvv5.js +830 -0
  43. package/dist/window-uK2QNvv5.js.map +1 -0
  44. package/package.json +53 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alphabench
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,26 @@
1
- # Temporary Holding Version
1
+ # @alphacharts/core
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The AlphaCharts engine: WebGL2 series (candles, line, area, histogram, ...), Canvas2D text, panes, price and time
4
+ scales, crosshair, markers, price lines, synced charts and a datafeed driver. No runtime dependencies. WebGL2 is
5
+ required.
6
+
7
+ ```
8
+ npm install @alphacharts/core
9
+ ```
10
+
11
+ ```ts
12
+ import { createChart } from "@alphacharts/core";
13
+
14
+ const chart = createChart(el, { theme: "dark", timeZone: "UTC" });
15
+ const candles = chart.addSeries("candles", { minMove: 0.05 });
16
+ candles.setData(bars); // [{ time, open, high, low, close }], time in UTC ms
17
+ candles.update(bar); // live: same time replaces, later time appends
18
+ chart.createPriceLine(candles, { price: 100, title: "target" });
19
+ ```
20
+
21
+ Hide the Alphabench brand mark with `createChart(el, { watermark: { visible: false } })`.
22
+
23
+ `@alphacharts/core/internal` exposes rendering internals for the sibling series packages (`chart-types`,
24
+ `orderflow`). It is not public API and changes without notice.
25
+
26
+ See the [repository README](https://github.com/alphabench/alphacharts#readme) for the full guide. MIT licence.