binbot-charts 0.5.9 → 0.6.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.
- package/dist/TVChartContainer.d.mts +45 -0
- package/dist/TVChartContainer.d.ts +45 -0
- package/dist/TVChartContainer.js +752 -0
- package/dist/TVChartContainer.js.map +1 -0
- package/dist/TVChartContainer.mjs +735 -0
- package/dist/TVChartContainer.mjs.map +1 -0
- package/package.json +4 -2
- package/dist/public/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -112
- package/dist/public/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
- package/dist/public/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -322
- package/dist/public/charting_library/bundles/11.df012db70159a159d927.js +0 -1
- package/dist/public/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
- package/dist/public/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
- package/dist/public/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
- package/dist/public/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -89
- package/dist/public/charting_library/bundles/16.680572949c1125757d35.js +0 -1
- package/dist/public/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
- package/dist/public/charting_library/bundles/18.78de69cfba051874e071.js +0 -120
- package/dist/public/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
- package/dist/public/charting_library/bundles/2.60931787a6734697ac13.js +0 -118
- package/dist/public/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -128
- package/dist/public/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
- package/dist/public/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
- package/dist/public/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
- package/dist/public/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
- package/dist/public/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -611
- package/dist/public/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
- package/dist/public/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -69
- package/dist/public/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
- package/dist/public/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
- package/dist/public/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
- package/dist/public/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -231
- package/dist/public/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -166
- package/dist/public/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -121
- package/dist/public/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
- package/dist/public/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
- package/dist/public/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
- package/dist/public/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
- package/dist/public/charting_library/bundles/37.90129e4904155350d6a1.js +0 -199
- package/dist/public/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -74
- package/dist/public/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
- package/dist/public/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
- package/dist/public/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -29
- package/dist/public/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
- package/dist/public/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
- package/dist/public/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
- package/dist/public/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -363
- package/dist/public/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
- package/dist/public/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -114
- package/dist/public/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -95
- package/dist/public/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
- package/dist/public/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
- package/dist/public/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -62
- package/dist/public/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
- package/dist/public/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
- package/dist/public/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
- package/dist/public/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -76
- package/dist/public/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -203
- package/dist/public/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -303
- package/dist/public/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -95
- package/dist/public/charting_library/bundles/57.236996ec416da4c1f683.js +0 -108
- package/dist/public/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -61
- package/dist/public/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
- package/dist/public/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
- package/dist/public/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
- package/dist/public/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -118
- package/dist/public/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -61
- package/dist/public/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
- package/dist/public/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
- package/dist/public/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
- package/dist/public/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
- package/dist/public/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
- package/dist/public/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
- package/dist/public/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
- package/dist/public/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -68
- package/dist/public/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
- package/dist/public/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
- package/dist/public/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
- package/dist/public/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
- package/dist/public/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
- package/dist/public/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
- package/dist/public/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
- package/dist/public/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
- package/dist/public/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
- package/dist/public/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
- package/dist/public/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
- package/dist/public/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
- package/dist/public/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
- package/dist/public/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
- package/dist/public/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
- package/dist/public/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
- package/dist/public/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
- package/dist/public/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
- package/dist/public/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
- package/dist/public/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
- package/dist/public/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
- package/dist/public/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
- package/dist/public/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
- package/dist/public/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
- package/dist/public/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
- package/dist/public/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
- package/dist/public/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
- package/dist/public/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
- package/dist/public/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
- package/dist/public/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -263
- package/dist/public/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -52
- package/dist/public/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -399
- package/dist/public/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -97
- package/dist/public/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -49
- package/dist/public/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -1199
- package/dist/public/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -181
- package/dist/public/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -107
- package/dist/public/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -131
- package/dist/public/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -71
- package/dist/public/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -250
- package/dist/public/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -78
- package/dist/public/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -508
- package/dist/public/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -92
- package/dist/public/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -85
- package/dist/public/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -104
- package/dist/public/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -361
- package/dist/public/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -224
- package/dist/public/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -228
- package/dist/public/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -26194
- package/dist/public/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -60
- package/dist/public/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -101
- package/dist/public/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -116
- package/dist/public/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -4029
- package/dist/public/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -735
- package/dist/public/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -16
- package/dist/public/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -369
- package/dist/public/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -130
- package/dist/public/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -405
- package/dist/public/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -1807
- package/dist/public/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -3715
- package/dist/public/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -354
- package/dist/public/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -566
- package/dist/public/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -79
- package/dist/public/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -8
- package/dist/public/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -52
- package/dist/public/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -5
- package/dist/public/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -11
- package/dist/public/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -189
- package/dist/public/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -39
- package/dist/public/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -174
- package/dist/public/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -204
- package/dist/public/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -125
- package/dist/public/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -320
- package/dist/public/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -123
- package/dist/public/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -35
- package/dist/public/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -74
- package/dist/public/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -1304
- package/dist/public/charting_library/charting_library.cjs.js +0 -98
- package/dist/public/charting_library/charting_library.esm.js +0 -101
- package/dist/public/charting_library/charting_library.js +0 -99
- package/dist/public/charting_library/charting_library.standalone.js +0 -99
- package/dist/src/App.js +0 -81
- package/dist/src/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -112
- package/dist/src/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
- package/dist/src/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -322
- package/dist/src/charting_library/bundles/11.df012db70159a159d927.js +0 -1
- package/dist/src/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
- package/dist/src/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
- package/dist/src/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
- package/dist/src/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -89
- package/dist/src/charting_library/bundles/16.680572949c1125757d35.js +0 -1
- package/dist/src/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
- package/dist/src/charting_library/bundles/18.78de69cfba051874e071.js +0 -120
- package/dist/src/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
- package/dist/src/charting_library/bundles/2.60931787a6734697ac13.js +0 -118
- package/dist/src/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -128
- package/dist/src/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
- package/dist/src/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
- package/dist/src/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
- package/dist/src/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
- package/dist/src/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -611
- package/dist/src/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
- package/dist/src/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -69
- package/dist/src/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
- package/dist/src/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
- package/dist/src/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
- package/dist/src/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -231
- package/dist/src/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -166
- package/dist/src/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -121
- package/dist/src/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
- package/dist/src/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
- package/dist/src/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
- package/dist/src/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
- package/dist/src/charting_library/bundles/37.90129e4904155350d6a1.js +0 -199
- package/dist/src/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -74
- package/dist/src/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
- package/dist/src/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
- package/dist/src/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -29
- package/dist/src/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
- package/dist/src/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
- package/dist/src/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
- package/dist/src/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -363
- package/dist/src/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
- package/dist/src/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -114
- package/dist/src/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -95
- package/dist/src/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
- package/dist/src/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
- package/dist/src/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -62
- package/dist/src/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
- package/dist/src/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
- package/dist/src/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
- package/dist/src/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -76
- package/dist/src/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -203
- package/dist/src/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -303
- package/dist/src/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -95
- package/dist/src/charting_library/bundles/57.236996ec416da4c1f683.js +0 -108
- package/dist/src/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -61
- package/dist/src/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
- package/dist/src/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
- package/dist/src/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
- package/dist/src/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -118
- package/dist/src/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -61
- package/dist/src/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
- package/dist/src/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
- package/dist/src/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
- package/dist/src/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
- package/dist/src/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
- package/dist/src/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
- package/dist/src/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
- package/dist/src/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -68
- package/dist/src/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
- package/dist/src/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
- package/dist/src/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
- package/dist/src/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
- package/dist/src/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
- package/dist/src/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
- package/dist/src/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
- package/dist/src/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
- package/dist/src/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
- package/dist/src/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
- package/dist/src/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
- package/dist/src/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
- package/dist/src/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
- package/dist/src/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
- package/dist/src/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
- package/dist/src/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
- package/dist/src/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
- package/dist/src/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
- package/dist/src/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
- package/dist/src/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
- package/dist/src/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
- package/dist/src/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
- package/dist/src/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
- package/dist/src/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
- package/dist/src/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
- package/dist/src/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
- package/dist/src/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
- package/dist/src/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
- package/dist/src/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
- package/dist/src/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -263
- package/dist/src/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -52
- package/dist/src/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -399
- package/dist/src/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -97
- package/dist/src/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -49
- package/dist/src/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -1199
- package/dist/src/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -181
- package/dist/src/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -107
- package/dist/src/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -131
- package/dist/src/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -71
- package/dist/src/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -250
- package/dist/src/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -78
- package/dist/src/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -508
- package/dist/src/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -92
- package/dist/src/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -85
- package/dist/src/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -104
- package/dist/src/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -361
- package/dist/src/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -224
- package/dist/src/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -228
- package/dist/src/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -26194
- package/dist/src/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -60
- package/dist/src/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -101
- package/dist/src/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -116
- package/dist/src/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -4029
- package/dist/src/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -735
- package/dist/src/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -16
- package/dist/src/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -369
- package/dist/src/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -130
- package/dist/src/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -405
- package/dist/src/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -1807
- package/dist/src/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -3715
- package/dist/src/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -354
- package/dist/src/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -566
- package/dist/src/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -79
- package/dist/src/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -8
- package/dist/src/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -52
- package/dist/src/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -5
- package/dist/src/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -11
- package/dist/src/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -189
- package/dist/src/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -39
- package/dist/src/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -174
- package/dist/src/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -204
- package/dist/src/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -125
- package/dist/src/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -320
- package/dist/src/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -123
- package/dist/src/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -35
- package/dist/src/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -74
- package/dist/src/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -1304
- package/dist/src/charting_library/charting_library.cjs.js +0 -98
- package/dist/src/charting_library/charting_library.esm.js +0 -101
- package/dist/src/charting_library/charting_library.js +0 -99
- package/dist/src/charting_library/charting_library.standalone.js +0 -515
- package/dist/src/components/TVChartContainer.js +0 -122
- package/dist/src/components/datafeed.js +0 -199
- package/dist/src/components/helpers.js +0 -58
- package/dist/src/components/index.js +0 -7
- package/dist/src/components/streaming.js +0 -92
- package/dist/src/index.js +0 -14
|
@@ -1,515 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TradingView = void 0;
|
|
4
|
-
exports.TradingView = (function (e) {
|
|
5
|
-
"use strict";
|
|
6
|
-
function t(e, i) {
|
|
7
|
-
const n = Object.assign({}, e);
|
|
8
|
-
for (const o in i)
|
|
9
|
-
"object" != typeof e[o] || null === e[o] || Array.isArray(e[o])
|
|
10
|
-
? void 0 !== i[o] && (n[o] = i[o])
|
|
11
|
-
: (n[o] = t(e[o], i[o]));
|
|
12
|
-
return n;
|
|
13
|
-
}
|
|
14
|
-
const i = {
|
|
15
|
-
mobile: {
|
|
16
|
-
disabled_features: [
|
|
17
|
-
"left_toolbar",
|
|
18
|
-
"header_widget",
|
|
19
|
-
"timeframes_toolbar",
|
|
20
|
-
"edit_buttons_in_legend",
|
|
21
|
-
"context_menus",
|
|
22
|
-
"control_bar",
|
|
23
|
-
"border_around_the_chart",
|
|
24
|
-
],
|
|
25
|
-
enabled_features: [],
|
|
26
|
-
},
|
|
27
|
-
}, n = {
|
|
28
|
-
width: 800,
|
|
29
|
-
height: 500,
|
|
30
|
-
interval: "1D",
|
|
31
|
-
timezone: "Etc/UTC",
|
|
32
|
-
container: "",
|
|
33
|
-
library_path: "",
|
|
34
|
-
locale: "en",
|
|
35
|
-
widgetbar: {
|
|
36
|
-
details: !1,
|
|
37
|
-
watchlist: !1,
|
|
38
|
-
watchlist_settings: { default_symbols: [] },
|
|
39
|
-
},
|
|
40
|
-
overrides: { "mainSeriesProperties.showCountdown": !1 },
|
|
41
|
-
studies_overrides: {},
|
|
42
|
-
trading_customization: { position: {}, order: {} },
|
|
43
|
-
brokerConfig: { configFlags: {} },
|
|
44
|
-
fullscreen: !1,
|
|
45
|
-
autosize: !1,
|
|
46
|
-
disabled_features: [],
|
|
47
|
-
enabled_features: [],
|
|
48
|
-
debug: !1,
|
|
49
|
-
logo: {},
|
|
50
|
-
time_frames: [
|
|
51
|
-
{ text: "5y", resolution: "1W" },
|
|
52
|
-
{ text: "1y", resolution: "1W" },
|
|
53
|
-
{ text: "6m", resolution: "120" },
|
|
54
|
-
{ text: "3m", resolution: "60" },
|
|
55
|
-
{ text: "1m", resolution: "30" },
|
|
56
|
-
{ text: "5d", resolution: "5" },
|
|
57
|
-
{ text: "1d", resolution: "1" },
|
|
58
|
-
],
|
|
59
|
-
client_id: "0",
|
|
60
|
-
user_id: "0",
|
|
61
|
-
charts_storage_api_version: "1.0",
|
|
62
|
-
favorites: { intervals: [], chartTypes: [] },
|
|
63
|
-
};
|
|
64
|
-
let o = !1;
|
|
65
|
-
function s() {
|
|
66
|
-
return "CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)";
|
|
67
|
-
}
|
|
68
|
-
const r = class {
|
|
69
|
-
constructor(e) {
|
|
70
|
-
if (((this._id = `tradingview_${((1048576 * (1 + Math.random())) | 0)
|
|
71
|
-
.toString(16)
|
|
72
|
-
.substring(1)}`),
|
|
73
|
-
(this._ready = !1),
|
|
74
|
-
(this._readyHandlers = []),
|
|
75
|
-
(this._onWindowResize = this._autoResizeChart.bind(this)),
|
|
76
|
-
!e.datafeed))
|
|
77
|
-
throw new Error("Datafeed is not defined");
|
|
78
|
-
if (((this._options = t(n, e)), e.preset)) {
|
|
79
|
-
const t = i[e.preset];
|
|
80
|
-
t
|
|
81
|
-
? (void 0 !== this._options.disabled_features
|
|
82
|
-
? (this._options.disabled_features =
|
|
83
|
-
this._options.disabled_features.concat(t.disabled_features))
|
|
84
|
-
: (this._options.disabled_features = t.disabled_features),
|
|
85
|
-
void 0 !== this._options.enabled_features
|
|
86
|
-
? (this._options.enabled_features =
|
|
87
|
-
this._options.enabled_features.concat(t.enabled_features))
|
|
88
|
-
: (this._options.enabled_features = t.enabled_features))
|
|
89
|
-
: console.warn("Unknown preset: `" + e.preset + "`");
|
|
90
|
-
}
|
|
91
|
-
"Dark" === this._options.theme &&
|
|
92
|
-
void 0 === this._options.loading_screen &&
|
|
93
|
-
(this._options.loading_screen = { backgroundColor: "#131722" }),
|
|
94
|
-
this._options.debug &&
|
|
95
|
-
(o ||
|
|
96
|
-
((o = !0),
|
|
97
|
-
console.log("Using CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"))),
|
|
98
|
-
this._create();
|
|
99
|
-
}
|
|
100
|
-
onChartReady(e) {
|
|
101
|
-
this._ready ? e.call(this) : this._readyHandlers.push(e);
|
|
102
|
-
}
|
|
103
|
-
headerReady() {
|
|
104
|
-
return this._innerWindowLoaded.then(() => this._innerWindow().headerReady());
|
|
105
|
-
}
|
|
106
|
-
onGrayedObjectClicked(e) {
|
|
107
|
-
this._doWhenInnerApiLoaded((t) => {
|
|
108
|
-
t.onGrayedObjectClicked(e);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
onShortcut(e, t) {
|
|
112
|
-
this._doWhenInnerWindowLoaded((i) => {
|
|
113
|
-
i.createShortcutAction(e, t);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
subscribe(e, t) {
|
|
117
|
-
this._doWhenInnerApiLoaded((i) => {
|
|
118
|
-
i.subscribe(e, t);
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
unsubscribe(e, t) {
|
|
122
|
-
this._doWhenInnerApiLoaded((i) => {
|
|
123
|
-
i.unsubscribe(e, t);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
chart(e) {
|
|
127
|
-
return this._innerAPI().chart(e);
|
|
128
|
-
}
|
|
129
|
-
getLanguage() {
|
|
130
|
-
return this._options.locale;
|
|
131
|
-
}
|
|
132
|
-
setSymbol(e, t, i) {
|
|
133
|
-
this._innerAPI().changeSymbol(e, t, i);
|
|
134
|
-
}
|
|
135
|
-
remove() {
|
|
136
|
-
window.removeEventListener("resize", this._onWindowResize),
|
|
137
|
-
this._readyHandlers.splice(0, this._readyHandlers.length),
|
|
138
|
-
delete window[this._id],
|
|
139
|
-
this._iFrame.parentNode &&
|
|
140
|
-
this._iFrame.parentNode.removeChild(this._iFrame);
|
|
141
|
-
}
|
|
142
|
-
closePopupsAndDialogs() {
|
|
143
|
-
this._doWhenInnerApiLoaded((e) => {
|
|
144
|
-
e.closePopupsAndDialogs();
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
selectLineTool(e) {
|
|
148
|
-
this._innerAPI().selectLineTool(e);
|
|
149
|
-
}
|
|
150
|
-
selectedLineTool() {
|
|
151
|
-
return this._innerAPI().selectedLineTool();
|
|
152
|
-
}
|
|
153
|
-
save(e) {
|
|
154
|
-
this._innerAPI().saveChart(e);
|
|
155
|
-
}
|
|
156
|
-
load(e, t) {
|
|
157
|
-
this._innerAPI().loadChart({ json: e, extendedData: t });
|
|
158
|
-
}
|
|
159
|
-
getSavedCharts(e) {
|
|
160
|
-
this._innerAPI().getSavedCharts(e);
|
|
161
|
-
}
|
|
162
|
-
loadChartFromServer(e) {
|
|
163
|
-
this._innerAPI().loadChartFromServer(e);
|
|
164
|
-
}
|
|
165
|
-
saveChartToServer(e, t, i) {
|
|
166
|
-
this._innerAPI().saveChartToServer(e, t, i);
|
|
167
|
-
}
|
|
168
|
-
removeChartFromServer(e, t) {
|
|
169
|
-
this._innerAPI().removeChartFromServer(e, t);
|
|
170
|
-
}
|
|
171
|
-
onContextMenu(e) {
|
|
172
|
-
this._doWhenInnerApiLoaded((t) => {
|
|
173
|
-
t.onContextMenu(e);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
createButton(e) {
|
|
177
|
-
return this._innerWindow().createButton(e);
|
|
178
|
-
}
|
|
179
|
-
createDropdown(e) {
|
|
180
|
-
return this._innerWindow().createDropdown(e);
|
|
181
|
-
}
|
|
182
|
-
showNoticeDialog(e) {
|
|
183
|
-
this._doWhenInnerApiLoaded((t) => {
|
|
184
|
-
t.showNoticeDialog(e);
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
showConfirmDialog(e) {
|
|
188
|
-
this._doWhenInnerApiLoaded((t) => {
|
|
189
|
-
t.showConfirmDialog(e);
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
showLoadChartDialog() {
|
|
193
|
-
this._innerAPI().showLoadChartDialog();
|
|
194
|
-
}
|
|
195
|
-
showSaveAsChartDialog() {
|
|
196
|
-
this._innerAPI().showSaveAsChartDialog();
|
|
197
|
-
}
|
|
198
|
-
symbolInterval() {
|
|
199
|
-
return this._innerAPI().getSymbolInterval();
|
|
200
|
-
}
|
|
201
|
-
mainSeriesPriceFormatter() {
|
|
202
|
-
return this._innerAPI().mainSeriesPriceFormatter();
|
|
203
|
-
}
|
|
204
|
-
getIntervals() {
|
|
205
|
-
return this._innerAPI().getIntervals();
|
|
206
|
-
}
|
|
207
|
-
getStudiesList() {
|
|
208
|
-
return this._innerAPI().getStudiesList();
|
|
209
|
-
}
|
|
210
|
-
getStudyInputs(e) {
|
|
211
|
-
return this._innerAPI().getStudyInputs(e);
|
|
212
|
-
}
|
|
213
|
-
addCustomCSSFile(e) {
|
|
214
|
-
this._innerWindow().addCustomCSSFile(e);
|
|
215
|
-
}
|
|
216
|
-
applyOverrides(e) {
|
|
217
|
-
(this._options = t(this._options, { overrides: e })),
|
|
218
|
-
this._doWhenInnerWindowLoaded((t) => {
|
|
219
|
-
t.applyOverrides(e);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
applyStudiesOverrides(e) {
|
|
223
|
-
this._doWhenInnerWindowLoaded((t) => {
|
|
224
|
-
t.applyStudiesOverrides(e);
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
watchList() {
|
|
228
|
-
return this._innerAPI().watchlist();
|
|
229
|
-
}
|
|
230
|
-
news() {
|
|
231
|
-
return this._innerAPI().news();
|
|
232
|
-
}
|
|
233
|
-
activeChart() {
|
|
234
|
-
return this._innerAPI().activeChart();
|
|
235
|
-
}
|
|
236
|
-
chartsCount() {
|
|
237
|
-
return this._innerAPI().chartsCount();
|
|
238
|
-
}
|
|
239
|
-
layout() {
|
|
240
|
-
return this._innerAPI().layout();
|
|
241
|
-
}
|
|
242
|
-
setLayout(e) {
|
|
243
|
-
this._innerAPI().setLayout(e);
|
|
244
|
-
}
|
|
245
|
-
layoutName() {
|
|
246
|
-
return this._innerAPI().layoutName();
|
|
247
|
-
}
|
|
248
|
-
changeTheme(e, t) {
|
|
249
|
-
return this._innerWindow().changeTheme(e, t);
|
|
250
|
-
}
|
|
251
|
-
getTheme() {
|
|
252
|
-
return this._innerWindow().getTheme();
|
|
253
|
-
}
|
|
254
|
-
takeScreenshot() {
|
|
255
|
-
this._doWhenInnerApiLoaded((e) => {
|
|
256
|
-
e.takeScreenshot();
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
lockAllDrawingTools() {
|
|
260
|
-
return this._innerAPI().lockAllDrawingTools();
|
|
261
|
-
}
|
|
262
|
-
hideAllDrawingTools() {
|
|
263
|
-
return this._innerAPI().hideAllDrawingTools();
|
|
264
|
-
}
|
|
265
|
-
drawOnAllCharts(e) {
|
|
266
|
-
this._innerAPI().drawOnAllCharts(e);
|
|
267
|
-
}
|
|
268
|
-
magnetEnabled() {
|
|
269
|
-
return this._innerAPI().magnetEnabled();
|
|
270
|
-
}
|
|
271
|
-
magnetMode() {
|
|
272
|
-
return this._innerAPI().magnetMode();
|
|
273
|
-
}
|
|
274
|
-
undoRedoState() {
|
|
275
|
-
return this._innerAPI().undoRedoState();
|
|
276
|
-
}
|
|
277
|
-
setIntervalLinkingEnabled(e) {
|
|
278
|
-
this._innerAPI().setIntervalLinkingEnabled(e);
|
|
279
|
-
}
|
|
280
|
-
setTimeFrame(e) {
|
|
281
|
-
this._innerAPI().setTimeFrame(e);
|
|
282
|
-
}
|
|
283
|
-
symbolSync() {
|
|
284
|
-
return this._innerAPI().symbolSync();
|
|
285
|
-
}
|
|
286
|
-
intervalSync() {
|
|
287
|
-
return this._innerAPI().intervalSync();
|
|
288
|
-
}
|
|
289
|
-
crosshairSync() {
|
|
290
|
-
return this._innerAPI().crosshairSync();
|
|
291
|
-
}
|
|
292
|
-
timeSync() {
|
|
293
|
-
return this._innerAPI().timeSync();
|
|
294
|
-
}
|
|
295
|
-
getAllFeatures() {
|
|
296
|
-
return this._innerWindow().getAllFeatures();
|
|
297
|
-
}
|
|
298
|
-
clearUndoHistory() {
|
|
299
|
-
return this._innerAPI().clearUndoHistory();
|
|
300
|
-
}
|
|
301
|
-
undo() {
|
|
302
|
-
return this._innerAPI().undo();
|
|
303
|
-
}
|
|
304
|
-
redo() {
|
|
305
|
-
return this._innerAPI().redo();
|
|
306
|
-
}
|
|
307
|
-
startFullscreen() {
|
|
308
|
-
this._innerAPI().startFullscreen();
|
|
309
|
-
}
|
|
310
|
-
exitFullscreen() {
|
|
311
|
-
this._innerAPI().exitFullscreen();
|
|
312
|
-
}
|
|
313
|
-
takeClientScreenshot(e) {
|
|
314
|
-
return this._innerAPI().takeClientScreenshot(e);
|
|
315
|
-
}
|
|
316
|
-
navigationButtonsVisibility() {
|
|
317
|
-
return this._innerWindow().getNavigationButtonsVisibility();
|
|
318
|
-
}
|
|
319
|
-
paneButtonsVisibility() {
|
|
320
|
-
return this._innerWindow().getPaneButtonsVisibility();
|
|
321
|
-
}
|
|
322
|
-
dateFormat() {
|
|
323
|
-
return this._innerWindow().getDateFormat();
|
|
324
|
-
}
|
|
325
|
-
_innerAPI() {
|
|
326
|
-
return this._innerWindow().tradingViewApi;
|
|
327
|
-
}
|
|
328
|
-
_innerWindow() {
|
|
329
|
-
return this._iFrame.contentWindow;
|
|
330
|
-
}
|
|
331
|
-
_doWhenInnerWindowLoaded(e) {
|
|
332
|
-
this._ready
|
|
333
|
-
? e(this._innerWindow())
|
|
334
|
-
: this._innerWindowLoaded.then(() => {
|
|
335
|
-
e(this._innerWindow());
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
_doWhenInnerApiLoaded(e) {
|
|
339
|
-
this._doWhenInnerWindowLoaded((t) => {
|
|
340
|
-
t.doWhenApiIsReady(() => e(this._innerAPI()));
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
_autoResizeChart() {
|
|
344
|
-
this._options.fullscreen &&
|
|
345
|
-
(this._iFrame.style.height = window.innerHeight + "px");
|
|
346
|
-
}
|
|
347
|
-
_create() {
|
|
348
|
-
const e = this._render();
|
|
349
|
-
this._options.container_id &&
|
|
350
|
-
console.warn("`container_id` is now deprecated. Please use `container` instead to either still pass a string or an `HTMLElement`.");
|
|
351
|
-
const t = this._options.container_id || this._options.container, i = "string" == typeof t ? document.getElementById(t) : t;
|
|
352
|
-
if (null === i)
|
|
353
|
-
throw new Error(`There is no such element - #${this._options.container}`);
|
|
354
|
-
(i.innerHTML = e), (this._iFrame = i.querySelector(`#${this._id}`));
|
|
355
|
-
const n = this._iFrame;
|
|
356
|
-
(this._options.autosize || this._options.fullscreen) &&
|
|
357
|
-
((n.style.width = "100%"),
|
|
358
|
-
this._options.fullscreen || (n.style.height = "100%")),
|
|
359
|
-
window.addEventListener("resize", this._onWindowResize),
|
|
360
|
-
this._onWindowResize(),
|
|
361
|
-
(this._innerWindowLoaded = new Promise((e) => {
|
|
362
|
-
const t = () => {
|
|
363
|
-
n.removeEventListener("load", t, !1), e();
|
|
364
|
-
};
|
|
365
|
-
n.addEventListener("load", t, !1);
|
|
366
|
-
})),
|
|
367
|
-
this._innerWindowLoaded.then(() => {
|
|
368
|
-
this._innerWindow().widgetReady(() => {
|
|
369
|
-
this._ready = !0;
|
|
370
|
-
for (const e of this._readyHandlers)
|
|
371
|
-
try {
|
|
372
|
-
e.call(this);
|
|
373
|
-
}
|
|
374
|
-
catch (e) {
|
|
375
|
-
console.error(e);
|
|
376
|
-
}
|
|
377
|
-
this._innerWindow().initializationFinished();
|
|
378
|
-
});
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
_render() {
|
|
382
|
-
const e = window;
|
|
383
|
-
if (((e[this._id] = {
|
|
384
|
-
datafeed: this._options.datafeed,
|
|
385
|
-
customFormatters: this._options.custom_formatters || this._options.customFormatters,
|
|
386
|
-
brokerFactory: this._options.broker_factory || this._options.brokerFactory,
|
|
387
|
-
overrides: this._options.overrides,
|
|
388
|
-
studiesOverrides: this._options.studies_overrides,
|
|
389
|
-
tradingCustomization: this._options.trading_customization,
|
|
390
|
-
disabledFeatures: this._options.disabled_features,
|
|
391
|
-
enabledFeatures: this._options.enabled_features,
|
|
392
|
-
brokerConfig: this._options.broker_config || this._options.brokerConfig,
|
|
393
|
-
restConfig: this._options.restConfig,
|
|
394
|
-
favorites: this._options.favorites,
|
|
395
|
-
logo: this._options.logo,
|
|
396
|
-
numeric_formatting: this._options.numeric_formatting,
|
|
397
|
-
rss_news_feed: this._options.rss_news_feed,
|
|
398
|
-
newsProvider: this._options.news_provider,
|
|
399
|
-
loadLastChart: this._options.load_last_chart,
|
|
400
|
-
saveLoadAdapter: this._options.save_load_adapter,
|
|
401
|
-
loading_screen: this._options.loading_screen,
|
|
402
|
-
settingsAdapter: this._options.settings_adapter,
|
|
403
|
-
getCustomIndicators: this._options.custom_indicators_getter,
|
|
404
|
-
additionalSymbolInfoFields: this._options.additional_symbol_info_fields,
|
|
405
|
-
headerWidgetButtonsMode: this._options.header_widget_buttons_mode,
|
|
406
|
-
symbolSearchComplete: this._options.symbol_search_complete,
|
|
407
|
-
}),
|
|
408
|
-
this._options.saved_data))
|
|
409
|
-
(e[this._id].chartContent = { json: this._options.saved_data }),
|
|
410
|
-
this._options.saved_data_meta_info &&
|
|
411
|
-
(e[this._id].chartContentExtendedData =
|
|
412
|
-
this._options.saved_data_meta_info);
|
|
413
|
-
else if (!this._options.load_last_chart && !this._options.symbol)
|
|
414
|
-
throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set");
|
|
415
|
-
const t = (this._options.library_path || "") +
|
|
416
|
-
`${encodeURIComponent(this._options.locale)}-tv-chart.f0bc1e45.html#symbol=` +
|
|
417
|
-
encodeURIComponent(this._options.symbol || "") +
|
|
418
|
-
"&interval=" +
|
|
419
|
-
encodeURIComponent(this._options.interval) +
|
|
420
|
-
(this._options.timeframe
|
|
421
|
-
? "&timeframe=" + encodeURIComponent(this._options.timeframe)
|
|
422
|
-
: "") +
|
|
423
|
-
(this._options.toolbar_bg
|
|
424
|
-
? "&toolbarbg=" +
|
|
425
|
-
encodeURIComponent(this._options.toolbar_bg.replace("#", ""))
|
|
426
|
-
: "") +
|
|
427
|
-
(this._options.studies_access
|
|
428
|
-
? "&studiesAccess=" +
|
|
429
|
-
encodeURIComponent(JSON.stringify(this._options.studies_access))
|
|
430
|
-
: "") +
|
|
431
|
-
"&widgetbar=" +
|
|
432
|
-
encodeURIComponent(JSON.stringify(this._options.widgetbar)) +
|
|
433
|
-
(this._options.drawings_access
|
|
434
|
-
? "&drawingsAccess=" +
|
|
435
|
-
encodeURIComponent(JSON.stringify(this._options.drawings_access))
|
|
436
|
-
: "") +
|
|
437
|
-
"&timeFrames=" +
|
|
438
|
-
encodeURIComponent(JSON.stringify(this._options.time_frames)) +
|
|
439
|
-
"&locale=" +
|
|
440
|
-
encodeURIComponent(this._options.locale) +
|
|
441
|
-
"&uid=" +
|
|
442
|
-
encodeURIComponent(this._id) +
|
|
443
|
-
"&clientId=" +
|
|
444
|
-
encodeURIComponent(String(this._options.client_id)) +
|
|
445
|
-
"&userId=" +
|
|
446
|
-
encodeURIComponent(String(this._options.user_id)) +
|
|
447
|
-
(this._options.charts_storage_url
|
|
448
|
-
? "&chartsStorageUrl=" +
|
|
449
|
-
encodeURIComponent(this._options.charts_storage_url)
|
|
450
|
-
: "") +
|
|
451
|
-
(this._options.charts_storage_api_version
|
|
452
|
-
? "&chartsStorageVer=" +
|
|
453
|
-
encodeURIComponent(this._options.charts_storage_api_version)
|
|
454
|
-
: "") +
|
|
455
|
-
(this._options.custom_css_url
|
|
456
|
-
? "&customCSS=" + encodeURIComponent(this._options.custom_css_url)
|
|
457
|
-
: "") +
|
|
458
|
-
(this._options.auto_save_delay
|
|
459
|
-
? "&autoSaveDelay=" +
|
|
460
|
-
encodeURIComponent(String(this._options.auto_save_delay))
|
|
461
|
-
: "") +
|
|
462
|
-
"&debug=" +
|
|
463
|
-
encodeURIComponent(String(this._options.debug)) +
|
|
464
|
-
(this._options.snapshot_url
|
|
465
|
-
? "&snapshotUrl=" + encodeURIComponent(this._options.snapshot_url)
|
|
466
|
-
: "") +
|
|
467
|
-
(this._options.timezone
|
|
468
|
-
? "&timezone=" + encodeURIComponent(this._options.timezone)
|
|
469
|
-
: "") +
|
|
470
|
-
(this._options.study_count_limit
|
|
471
|
-
? "&studyCountLimit=" +
|
|
472
|
-
encodeURIComponent(String(this._options.study_count_limit))
|
|
473
|
-
: "") +
|
|
474
|
-
(this._options.symbol_search_request_delay
|
|
475
|
-
? "&ssreqdelay=" +
|
|
476
|
-
encodeURIComponent(String(this._options.symbol_search_request_delay))
|
|
477
|
-
: "") +
|
|
478
|
-
(this._options.compare_symbols
|
|
479
|
-
? "&compareSymbols=" +
|
|
480
|
-
encodeURIComponent(JSON.stringify(this._options.compare_symbols))
|
|
481
|
-
: "") +
|
|
482
|
-
(this._options.theme
|
|
483
|
-
? "&theme=" + encodeURIComponent(String(this._options.theme))
|
|
484
|
-
: "") +
|
|
485
|
-
(this._options.header_widget_buttons_mode
|
|
486
|
-
? "&header_widget_buttons_mode=" +
|
|
487
|
-
encodeURIComponent(String(this._options.header_widget_buttons_mode))
|
|
488
|
-
: "") +
|
|
489
|
-
(this._options.time_scale
|
|
490
|
-
? "&time_scale=" +
|
|
491
|
-
encodeURIComponent(JSON.stringify(this._options.time_scale))
|
|
492
|
-
: "");
|
|
493
|
-
return ('<iframe id="' +
|
|
494
|
-
this._id +
|
|
495
|
-
'" name="' +
|
|
496
|
-
this._id +
|
|
497
|
-
'" src="' +
|
|
498
|
-
t +
|
|
499
|
-
'"' +
|
|
500
|
-
(this._options.autosize || this._options.fullscreen
|
|
501
|
-
? ""
|
|
502
|
-
: ' width="' +
|
|
503
|
-
this._options.width +
|
|
504
|
-
'" height="' +
|
|
505
|
-
this._options.height +
|
|
506
|
-
'"') +
|
|
507
|
-
' title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;"></iframe>');
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
return ((window.TradingView = window.TradingView || {}),
|
|
511
|
-
(window.TradingView.version = s),
|
|
512
|
-
(e.version = s),
|
|
513
|
-
(e.widget = r),
|
|
514
|
-
e);
|
|
515
|
-
})({});
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
const react_1 = require("react");
|
|
17
|
-
const charting_library_1 = require("../charting_library/charting_library");
|
|
18
|
-
const datafeed_1 = __importDefault(require("./datafeed"));
|
|
19
|
-
const use_immer_1 = require("use-immer");
|
|
20
|
-
const TVChartContainer = ({ symbol = "BTCUSDT", interval = "1h", libraryPath = "/charting_library/", timescaleMarks = [], orderLines = [], height = "calc(100vh - 80px)", onTick, getLatestBar, }) => {
|
|
21
|
-
const containerRef = (0, react_1.useRef)(null);
|
|
22
|
-
const [chartOrderLines, setChartOrderLines] = (0, use_immer_1.useImmer)([]);
|
|
23
|
-
const [widgetState, setWidgetState] = (0, use_immer_1.useImmer)(null);
|
|
24
|
-
const [symbolState] = (0, react_1.useState)(null);
|
|
25
|
-
const prevTimescaleMarks = (0, react_1.useRef)(timescaleMarks);
|
|
26
|
-
(0, react_1.useEffect)(() => {
|
|
27
|
-
if (!widgetState) {
|
|
28
|
-
initializeChart(interval);
|
|
29
|
-
}
|
|
30
|
-
if (orderLines && orderLines.length > 0) {
|
|
31
|
-
updateOrderLines(orderLines);
|
|
32
|
-
}
|
|
33
|
-
if (widgetState && symbol !== symbolState) {
|
|
34
|
-
widgetState.setSymbol(symbol, interval);
|
|
35
|
-
}
|
|
36
|
-
if (widgetState &&
|
|
37
|
-
prevTimescaleMarks.current &&
|
|
38
|
-
timescaleMarks !== prevTimescaleMarks.current) {
|
|
39
|
-
widgetState._options.datafeed.timescaleMarks = timescaleMarks;
|
|
40
|
-
prevTimescaleMarks.current = timescaleMarks;
|
|
41
|
-
}
|
|
42
|
-
}, [orderLines, timescaleMarks]);
|
|
43
|
-
const initializeChart = (interval) => {
|
|
44
|
-
const widgetOptions = {
|
|
45
|
-
symbol: symbol,
|
|
46
|
-
datafeed: new datafeed_1.default(timescaleMarks, interval),
|
|
47
|
-
interval: interval,
|
|
48
|
-
container: containerRef.current,
|
|
49
|
-
library_path: libraryPath,
|
|
50
|
-
locale: "en",
|
|
51
|
-
fullscreen: false,
|
|
52
|
-
autosize: true,
|
|
53
|
-
studies_overrides: {},
|
|
54
|
-
symbol_search_request_delay: 1000,
|
|
55
|
-
overrides: {
|
|
56
|
-
volumePaneSize: "small",
|
|
57
|
-
"mainSeriesProperties.barStyle.dontDrawOpen": false,
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
const tvWidget = new charting_library_1.widget(widgetOptions);
|
|
61
|
-
tvWidget.onChartReady(() => {
|
|
62
|
-
tvWidget.subscribe("onTick", (event) => onTick && onTick(event));
|
|
63
|
-
setWidgetState(tvWidget);
|
|
64
|
-
// get latest bar for last price
|
|
65
|
-
const prices = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
|
-
const data = yield tvWidget.activeChart().exportData({
|
|
67
|
-
includeTime: false,
|
|
68
|
-
includeSeries: true,
|
|
69
|
-
includedStudies: [],
|
|
70
|
-
});
|
|
71
|
-
getLatestBar && getLatestBar(data.data[data.data.length - 1]);
|
|
72
|
-
});
|
|
73
|
-
prices();
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
const updateOrderLines = (orderLines) => {
|
|
77
|
-
if (chartOrderLines && chartOrderLines.length > 0) {
|
|
78
|
-
chartOrderLines.forEach((item) => {
|
|
79
|
-
orderLines.forEach((order) => {
|
|
80
|
-
if (item.id == order.id) {
|
|
81
|
-
item
|
|
82
|
-
.setText(order.text)
|
|
83
|
-
.setTooltip(order.tooltip)
|
|
84
|
-
.setQuantity(order.quantity)
|
|
85
|
-
.setPrice(order.price);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
if (widgetState && orderLines && orderLines.length > 0) {
|
|
92
|
-
orderLines.forEach((order) => {
|
|
93
|
-
const lineStyle = order.lineStyle || 0;
|
|
94
|
-
let chartOrderLine = widgetState
|
|
95
|
-
.chart()
|
|
96
|
-
.createOrderLine()
|
|
97
|
-
.setText(order.text)
|
|
98
|
-
.setTooltip(order.tooltip)
|
|
99
|
-
.setQuantity(order.quantity)
|
|
100
|
-
.setQuantityFont("inherit 14px Arial")
|
|
101
|
-
.setQuantityBackgroundColor(order.color)
|
|
102
|
-
.setQuantityBorderColor(order.color)
|
|
103
|
-
.setLineStyle(lineStyle)
|
|
104
|
-
.setLineLength(25)
|
|
105
|
-
.setLineColor(order.color)
|
|
106
|
-
.setBodyFont("inherit 14px Arial")
|
|
107
|
-
.setBodyBorderColor(order.color)
|
|
108
|
-
.setBodyTextColor(order.color)
|
|
109
|
-
.setPrice(order.price);
|
|
110
|
-
// set custom id easier search
|
|
111
|
-
chartOrderLine.id = order.id;
|
|
112
|
-
setChartOrderLines((draft) => {
|
|
113
|
-
draft.push(chartOrderLine);
|
|
114
|
-
return draft;
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
return (0, jsx_runtime_1.jsx)("div", { ref: containerRef, style: { height: height } });
|
|
121
|
-
};
|
|
122
|
-
exports.default = TVChartContainer;
|