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,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function e(t, i) { const n = Object.assign({}, t); for (const o in i)
|
|
3
|
-
"object" != typeof t[o] || null === t[o] || Array.isArray(t[o]) ? void 0 !== i[o] && (n[o] = i[o]) : n[o] = e(t[o], i[o]); return n; }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
5
|
-
const t = { mobile: { disabled_features: ["left_toolbar", "header_widget", "timeframes_toolbar", "edit_buttons_in_legend", "context_menus", "control_bar", "border_around_the_chart"], enabled_features: [] } }, i = { width: 800, height: 500, interval: "1D", timezone: "Etc/UTC", container: "", library_path: "", locale: "en", widgetbar: { details: !1, watchlist: !1, watchlist_settings: { default_symbols: [] } }, overrides: { "mainSeriesProperties.showCountdown": !1 }, studies_overrides: {}, trading_customization: { position: {}, order: {} }, brokerConfig: { configFlags: {} }, fullscreen: !1, autosize: !1, disabled_features: [], enabled_features: [], debug: !1, logo: {}, time_frames: [{ text: "5y", resolution: "1W" }, { text: "1y", resolution: "1W" }, { text: "6m", resolution: "120" }, { text: "3m", resolution: "60" }, { text: "1m", resolution: "30" }, { text: "5d", resolution: "5" }, { text: "1d", resolution: "1" }], client_id: "0", user_id: "0", charts_storage_api_version: "1.0", favorites: { intervals: [], chartTypes: [] } };
|
|
6
|
-
let n = !1;
|
|
7
|
-
function o() { return "CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"; }
|
|
8
|
-
const s = class {
|
|
9
|
-
constructor(o) { if (this._id = `tradingview_${(1048576 * (1 + Math.random()) | 0).toString(16).substring(1)}`, this._ready = !1, this._readyHandlers = [], this._onWindowResize = this._autoResizeChart.bind(this), !o.datafeed)
|
|
10
|
-
throw new Error("Datafeed is not defined"); if (this._options = e(i, o), o.preset) {
|
|
11
|
-
const e = t[o.preset];
|
|
12
|
-
e ? (void 0 !== this._options.disabled_features ? this._options.disabled_features = this._options.disabled_features.concat(e.disabled_features) : this._options.disabled_features = e.disabled_features, void 0 !== this._options.enabled_features ? this._options.enabled_features = this._options.enabled_features.concat(e.enabled_features) : this._options.enabled_features = e.enabled_features) : console.warn("Unknown preset: `" + o.preset + "`");
|
|
13
|
-
} "Dark" === this._options.theme && void 0 === this._options.loading_screen && (this._options.loading_screen = { backgroundColor: "#131722" }), this._options.debug && (n || (n = !0, console.log("Using CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"))), this._create(); }
|
|
14
|
-
onChartReady(e) { this._ready ? e.call(this) : this._readyHandlers.push(e); }
|
|
15
|
-
headerReady() { return this._innerWindowLoaded.then((() => this._innerWindow().headerReady())); }
|
|
16
|
-
onGrayedObjectClicked(e) { this._doWhenInnerApiLoaded((t => { t.onGrayedObjectClicked(e); })); }
|
|
17
|
-
onShortcut(e, t) { this._doWhenInnerWindowLoaded((i => { i.createShortcutAction(e, t); })); }
|
|
18
|
-
subscribe(e, t) { this._doWhenInnerApiLoaded((i => { i.subscribe(e, t); })); }
|
|
19
|
-
unsubscribe(e, t) { this._doWhenInnerApiLoaded((i => { i.unsubscribe(e, t); })); }
|
|
20
|
-
chart(e) { return this._innerAPI().chart(e); }
|
|
21
|
-
getLanguage() { return this._options.locale; }
|
|
22
|
-
setSymbol(e, t, i) { this._innerAPI().changeSymbol(e, t, i); }
|
|
23
|
-
remove() { window.removeEventListener("resize", this._onWindowResize), this._readyHandlers.splice(0, this._readyHandlers.length), delete window[this._id], this._iFrame.parentNode && this._iFrame.parentNode.removeChild(this._iFrame); }
|
|
24
|
-
closePopupsAndDialogs() { this._doWhenInnerApiLoaded((e => { e.closePopupsAndDialogs(); })); }
|
|
25
|
-
selectLineTool(e) { this._innerAPI().selectLineTool(e); }
|
|
26
|
-
selectedLineTool() { return this._innerAPI().selectedLineTool(); }
|
|
27
|
-
save(e) { this._innerAPI().saveChart(e); }
|
|
28
|
-
load(e, t) { this._innerAPI().loadChart({ json: e, extendedData: t }); }
|
|
29
|
-
getSavedCharts(e) { this._innerAPI().getSavedCharts(e); }
|
|
30
|
-
loadChartFromServer(e) { this._innerAPI().loadChartFromServer(e); }
|
|
31
|
-
saveChartToServer(e, t, i) { this._innerAPI().saveChartToServer(e, t, i); }
|
|
32
|
-
removeChartFromServer(e, t) { this._innerAPI().removeChartFromServer(e, t); }
|
|
33
|
-
onContextMenu(e) { this._doWhenInnerApiLoaded((t => { t.onContextMenu(e); })); }
|
|
34
|
-
createButton(e) { return this._innerWindow().createButton(e); }
|
|
35
|
-
createDropdown(e) { return this._innerWindow().createDropdown(e); }
|
|
36
|
-
showNoticeDialog(e) { this._doWhenInnerApiLoaded((t => { t.showNoticeDialog(e); })); }
|
|
37
|
-
showConfirmDialog(e) { this._doWhenInnerApiLoaded((t => { t.showConfirmDialog(e); })); }
|
|
38
|
-
showLoadChartDialog() { this._innerAPI().showLoadChartDialog(); }
|
|
39
|
-
showSaveAsChartDialog() { this._innerAPI().showSaveAsChartDialog(); }
|
|
40
|
-
symbolInterval() { return this._innerAPI().getSymbolInterval(); }
|
|
41
|
-
mainSeriesPriceFormatter() { return this._innerAPI().mainSeriesPriceFormatter(); }
|
|
42
|
-
getIntervals() { return this._innerAPI().getIntervals(); }
|
|
43
|
-
getStudiesList() { return this._innerAPI().getStudiesList(); }
|
|
44
|
-
getStudyInputs(e) { return this._innerAPI().getStudyInputs(e); }
|
|
45
|
-
addCustomCSSFile(e) { this._innerWindow().addCustomCSSFile(e); }
|
|
46
|
-
applyOverrides(t) { this._options = e(this._options, { overrides: t }), this._doWhenInnerWindowLoaded((e => { e.applyOverrides(t); })); }
|
|
47
|
-
applyStudiesOverrides(e) { this._doWhenInnerWindowLoaded((t => { t.applyStudiesOverrides(e); })); }
|
|
48
|
-
watchList() { return this._innerAPI().watchlist(); }
|
|
49
|
-
news() { return this._innerAPI().news(); }
|
|
50
|
-
activeChart() { return this._innerAPI().activeChart(); }
|
|
51
|
-
chartsCount() { return this._innerAPI().chartsCount(); }
|
|
52
|
-
layout() { return this._innerAPI().layout(); }
|
|
53
|
-
setLayout(e) { this._innerAPI().setLayout(e); }
|
|
54
|
-
layoutName() { return this._innerAPI().layoutName(); }
|
|
55
|
-
changeTheme(e, t) { return this._innerWindow().changeTheme(e, t); }
|
|
56
|
-
getTheme() { return this._innerWindow().getTheme(); }
|
|
57
|
-
takeScreenshot() { this._doWhenInnerApiLoaded((e => { e.takeScreenshot(); })); }
|
|
58
|
-
lockAllDrawingTools() { return this._innerAPI().lockAllDrawingTools(); }
|
|
59
|
-
hideAllDrawingTools() { return this._innerAPI().hideAllDrawingTools(); }
|
|
60
|
-
drawOnAllCharts(e) { this._innerAPI().drawOnAllCharts(e); }
|
|
61
|
-
magnetEnabled() { return this._innerAPI().magnetEnabled(); }
|
|
62
|
-
magnetMode() { return this._innerAPI().magnetMode(); }
|
|
63
|
-
undoRedoState() { return this._innerAPI().undoRedoState(); }
|
|
64
|
-
setIntervalLinkingEnabled(e) { this._innerAPI().setIntervalLinkingEnabled(e); }
|
|
65
|
-
setTimeFrame(e) { this._innerAPI().setTimeFrame(e); }
|
|
66
|
-
symbolSync() { return this._innerAPI().symbolSync(); }
|
|
67
|
-
intervalSync() { return this._innerAPI().intervalSync(); }
|
|
68
|
-
crosshairSync() { return this._innerAPI().crosshairSync(); }
|
|
69
|
-
timeSync() { return this._innerAPI().timeSync(); }
|
|
70
|
-
getAllFeatures() { return this._innerWindow().getAllFeatures(); }
|
|
71
|
-
clearUndoHistory() { return this._innerAPI().clearUndoHistory(); }
|
|
72
|
-
undo() { return this._innerAPI().undo(); }
|
|
73
|
-
redo() { return this._innerAPI().redo(); }
|
|
74
|
-
startFullscreen() { this._innerAPI().startFullscreen(); }
|
|
75
|
-
exitFullscreen() { this._innerAPI().exitFullscreen(); }
|
|
76
|
-
takeClientScreenshot(e) { return this._innerAPI().takeClientScreenshot(e); }
|
|
77
|
-
navigationButtonsVisibility() { return this._innerWindow().getNavigationButtonsVisibility(); }
|
|
78
|
-
paneButtonsVisibility() { return this._innerWindow().getPaneButtonsVisibility(); }
|
|
79
|
-
dateFormat() { return this._innerWindow().getDateFormat(); }
|
|
80
|
-
_innerAPI() { return this._innerWindow().tradingViewApi; }
|
|
81
|
-
_innerWindow() { return this._iFrame.contentWindow; }
|
|
82
|
-
_doWhenInnerWindowLoaded(e) { this._ready ? e(this._innerWindow()) : this._innerWindowLoaded.then((() => { e(this._innerWindow()); })); }
|
|
83
|
-
_doWhenInnerApiLoaded(e) { this._doWhenInnerWindowLoaded((t => { t.doWhenApiIsReady((() => e(this._innerAPI()))); })); }
|
|
84
|
-
_autoResizeChart() { this._options.fullscreen && (this._iFrame.style.height = window.innerHeight + "px"); }
|
|
85
|
-
_create() { const e = this._render(); this._options.container_id && console.warn("`container_id` is now deprecated. Please use `container` instead to either still pass a string or an `HTMLElement`."); const t = this._options.container_id || this._options.container, i = "string" == typeof t ? document.getElementById(t) : t; if (null === i)
|
|
86
|
-
throw new Error(`There is no such element - #${this._options.container}`); i.innerHTML = e, this._iFrame = i.querySelector(`#${this._id}`); const n = this._iFrame; (this._options.autosize || this._options.fullscreen) && (n.style.width = "100%", this._options.fullscreen || (n.style.height = "100%")), window.addEventListener("resize", this._onWindowResize), this._onWindowResize(), this._innerWindowLoaded = new Promise((e => { const t = () => { n.removeEventListener("load", t, !1), e(); }; n.addEventListener("load", t, !1); })), this._innerWindowLoaded.then((() => { this._innerWindow().widgetReady((() => { this._ready = !0; for (const e of this._readyHandlers)
|
|
87
|
-
try {
|
|
88
|
-
e.call(this);
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
console.error(e);
|
|
92
|
-
} this._innerWindow().initializationFinished(); })); })); }
|
|
93
|
-
_render() { const e = window; if (e[this._id] = { datafeed: this._options.datafeed, customFormatters: this._options.custom_formatters || this._options.customFormatters, brokerFactory: this._options.broker_factory || this._options.brokerFactory, overrides: this._options.overrides, studiesOverrides: this._options.studies_overrides, tradingCustomization: this._options.trading_customization, disabledFeatures: this._options.disabled_features, enabledFeatures: this._options.enabled_features, brokerConfig: this._options.broker_config || this._options.brokerConfig, restConfig: this._options.restConfig, favorites: this._options.favorites, logo: this._options.logo, numeric_formatting: this._options.numeric_formatting, rss_news_feed: this._options.rss_news_feed, newsProvider: this._options.news_provider, loadLastChart: this._options.load_last_chart, saveLoadAdapter: this._options.save_load_adapter, loading_screen: this._options.loading_screen, settingsAdapter: this._options.settings_adapter, getCustomIndicators: this._options.custom_indicators_getter, additionalSymbolInfoFields: this._options.additional_symbol_info_fields, headerWidgetButtonsMode: this._options.header_widget_buttons_mode, symbolSearchComplete: this._options.symbol_search_complete }, this._options.saved_data)
|
|
94
|
-
e[this._id].chartContent = { json: this._options.saved_data }, this._options.saved_data_meta_info && (e[this._id].chartContentExtendedData = this._options.saved_data_meta_info);
|
|
95
|
-
else if (!this._options.load_last_chart && !this._options.symbol)
|
|
96
|
-
throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set"); const t = (this._options.library_path || "") + `${encodeURIComponent(this._options.locale)}-tv-chart.f0bc1e45.html#symbol=` + encodeURIComponent(this._options.symbol || "") + "&interval=" + encodeURIComponent(this._options.interval) + (this._options.timeframe ? "&timeframe=" + encodeURIComponent(this._options.timeframe) : "") + (this._options.toolbar_bg ? "&toolbarbg=" + encodeURIComponent(this._options.toolbar_bg.replace("#", "")) : "") + (this._options.studies_access ? "&studiesAccess=" + encodeURIComponent(JSON.stringify(this._options.studies_access)) : "") + "&widgetbar=" + encodeURIComponent(JSON.stringify(this._options.widgetbar)) + (this._options.drawings_access ? "&drawingsAccess=" + encodeURIComponent(JSON.stringify(this._options.drawings_access)) : "") + "&timeFrames=" + encodeURIComponent(JSON.stringify(this._options.time_frames)) + "&locale=" + encodeURIComponent(this._options.locale) + "&uid=" + encodeURIComponent(this._id) + "&clientId=" + encodeURIComponent(String(this._options.client_id)) + "&userId=" + encodeURIComponent(String(this._options.user_id)) + (this._options.charts_storage_url ? "&chartsStorageUrl=" + encodeURIComponent(this._options.charts_storage_url) : "") + (this._options.charts_storage_api_version ? "&chartsStorageVer=" + encodeURIComponent(this._options.charts_storage_api_version) : "") + (this._options.custom_css_url ? "&customCSS=" + encodeURIComponent(this._options.custom_css_url) : "") + (this._options.auto_save_delay ? "&autoSaveDelay=" + encodeURIComponent(String(this._options.auto_save_delay)) : "") + "&debug=" + encodeURIComponent(String(this._options.debug)) + (this._options.snapshot_url ? "&snapshotUrl=" + encodeURIComponent(this._options.snapshot_url) : "") + (this._options.timezone ? "&timezone=" + encodeURIComponent(this._options.timezone) : "") + (this._options.study_count_limit ? "&studyCountLimit=" + encodeURIComponent(String(this._options.study_count_limit)) : "") + (this._options.symbol_search_request_delay ? "&ssreqdelay=" + encodeURIComponent(String(this._options.symbol_search_request_delay)) : "") + (this._options.compare_symbols ? "&compareSymbols=" + encodeURIComponent(JSON.stringify(this._options.compare_symbols)) : "") + (this._options.theme ? "&theme=" + encodeURIComponent(String(this._options.theme)) : "") + (this._options.header_widget_buttons_mode ? "&header_widget_buttons_mode=" + encodeURIComponent(String(this._options.header_widget_buttons_mode)) : "") + (this._options.time_scale ? "&time_scale=" + encodeURIComponent(JSON.stringify(this._options.time_scale)) : ""); return '<iframe id="' + this._id + '" name="' + this._id + '" src="' + t + '"' + (this._options.autosize || this._options.fullscreen ? "" : ' width="' + this._options.width + '" height="' + this._options.height + '"') + ' title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;"></iframe>'; }
|
|
97
|
-
};
|
|
98
|
-
window.TradingView = window.TradingView || {}, window.TradingView.version = o, exports.version = o, exports.widget = s;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.widget = exports.version = void 0;
|
|
4
|
-
function e(t, i) { const n = Object.assign({}, t); for (const o in i)
|
|
5
|
-
"object" != typeof t[o] || null === t[o] || Array.isArray(t[o]) ? void 0 !== i[o] && (n[o] = i[o]) : n[o] = e(t[o], i[o]); return n; }
|
|
6
|
-
const t = { mobile: { disabled_features: ["left_toolbar", "header_widget", "timeframes_toolbar", "edit_buttons_in_legend", "context_menus", "control_bar", "border_around_the_chart"], enabled_features: [] } }, i = { width: 800, height: 500, interval: "1D", timezone: "Etc/UTC", container: "", library_path: "", locale: "en", widgetbar: { details: !1, watchlist: !1, watchlist_settings: { default_symbols: [] } }, overrides: { "mainSeriesProperties.showCountdown": !1 }, studies_overrides: {}, trading_customization: { position: {}, order: {} }, brokerConfig: { configFlags: {} }, fullscreen: !1, autosize: !1, disabled_features: [], enabled_features: [], debug: !1, logo: {}, time_frames: [{ text: "5y", resolution: "1W" }, { text: "1y", resolution: "1W" }, { text: "6m", resolution: "120" }, { text: "3m", resolution: "60" }, { text: "1m", resolution: "30" }, { text: "5d", resolution: "5" }, { text: "1d", resolution: "1" }], client_id: "0", user_id: "0", charts_storage_api_version: "1.0", favorites: { intervals: [], chartTypes: [] } };
|
|
7
|
-
let n = !1;
|
|
8
|
-
function o() { return "CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"; }
|
|
9
|
-
exports.version = o;
|
|
10
|
-
const s = class {
|
|
11
|
-
constructor(o) { if (this._id = `tradingview_${(1048576 * (1 + Math.random()) | 0).toString(16).substring(1)}`, this._ready = !1, this._readyHandlers = [], this._onWindowResize = this._autoResizeChart.bind(this), !o.datafeed)
|
|
12
|
-
throw new Error("Datafeed is not defined"); if (this._options = e(i, o), o.preset) {
|
|
13
|
-
const e = t[o.preset];
|
|
14
|
-
e ? (void 0 !== this._options.disabled_features ? this._options.disabled_features = this._options.disabled_features.concat(e.disabled_features) : this._options.disabled_features = e.disabled_features, void 0 !== this._options.enabled_features ? this._options.enabled_features = this._options.enabled_features.concat(e.enabled_features) : this._options.enabled_features = e.enabled_features) : console.warn("Unknown preset: `" + o.preset + "`");
|
|
15
|
-
} "Dark" === this._options.theme && void 0 === this._options.loading_screen && (this._options.loading_screen = { backgroundColor: "#131722" }), this._options.debug && (n || (n = !0, console.log("Using CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"))), this._create(); }
|
|
16
|
-
onChartReady(e) { this._ready ? e.call(this) : this._readyHandlers.push(e); }
|
|
17
|
-
headerReady() { return this._innerWindowLoaded.then((() => this._innerWindow().headerReady())); }
|
|
18
|
-
onGrayedObjectClicked(e) { this._doWhenInnerApiLoaded((t => { t.onGrayedObjectClicked(e); })); }
|
|
19
|
-
onShortcut(e, t) { this._doWhenInnerWindowLoaded((i => { i.createShortcutAction(e, t); })); }
|
|
20
|
-
subscribe(e, t) { this._doWhenInnerApiLoaded((i => { i.subscribe(e, t); })); }
|
|
21
|
-
unsubscribe(e, t) { this._doWhenInnerApiLoaded((i => { i.unsubscribe(e, t); })); }
|
|
22
|
-
chart(e) { return this._innerAPI().chart(e); }
|
|
23
|
-
getLanguage() { return this._options.locale; }
|
|
24
|
-
setSymbol(e, t, i) { this._innerAPI().changeSymbol(e, t, i); }
|
|
25
|
-
remove() { window.removeEventListener("resize", this._onWindowResize), this._readyHandlers.splice(0, this._readyHandlers.length), delete window[this._id], this._iFrame.parentNode && this._iFrame.parentNode.removeChild(this._iFrame); }
|
|
26
|
-
closePopupsAndDialogs() { this._doWhenInnerApiLoaded((e => { e.closePopupsAndDialogs(); })); }
|
|
27
|
-
selectLineTool(e) { this._innerAPI().selectLineTool(e); }
|
|
28
|
-
selectedLineTool() { return this._innerAPI().selectedLineTool(); }
|
|
29
|
-
save(e) { this._innerAPI().saveChart(e); }
|
|
30
|
-
load(e, t) { this._innerAPI().loadChart({ json: e, extendedData: t }); }
|
|
31
|
-
getSavedCharts(e) { this._innerAPI().getSavedCharts(e); }
|
|
32
|
-
loadChartFromServer(e) { this._innerAPI().loadChartFromServer(e); }
|
|
33
|
-
saveChartToServer(e, t, i) { this._innerAPI().saveChartToServer(e, t, i); }
|
|
34
|
-
removeChartFromServer(e, t) { this._innerAPI().removeChartFromServer(e, t); }
|
|
35
|
-
onContextMenu(e) { this._doWhenInnerApiLoaded((t => { t.onContextMenu(e); })); }
|
|
36
|
-
createButton(e) { return this._innerWindow().createButton(e); }
|
|
37
|
-
createDropdown(e) { return this._innerWindow().createDropdown(e); }
|
|
38
|
-
showNoticeDialog(e) { this._doWhenInnerApiLoaded((t => { t.showNoticeDialog(e); })); }
|
|
39
|
-
showConfirmDialog(e) { this._doWhenInnerApiLoaded((t => { t.showConfirmDialog(e); })); }
|
|
40
|
-
showLoadChartDialog() { this._innerAPI().showLoadChartDialog(); }
|
|
41
|
-
showSaveAsChartDialog() { this._innerAPI().showSaveAsChartDialog(); }
|
|
42
|
-
symbolInterval() { return this._innerAPI().getSymbolInterval(); }
|
|
43
|
-
mainSeriesPriceFormatter() { return this._innerAPI().mainSeriesPriceFormatter(); }
|
|
44
|
-
getIntervals() { return this._innerAPI().getIntervals(); }
|
|
45
|
-
getStudiesList() { return this._innerAPI().getStudiesList(); }
|
|
46
|
-
getStudyInputs(e) { return this._innerAPI().getStudyInputs(e); }
|
|
47
|
-
addCustomCSSFile(e) { this._innerWindow().addCustomCSSFile(e); }
|
|
48
|
-
applyOverrides(t) { this._options = e(this._options, { overrides: t }), this._doWhenInnerWindowLoaded((e => { e.applyOverrides(t); })); }
|
|
49
|
-
applyStudiesOverrides(e) { this._doWhenInnerWindowLoaded((t => { t.applyStudiesOverrides(e); })); }
|
|
50
|
-
watchList() { return this._innerAPI().watchlist(); }
|
|
51
|
-
news() { return this._innerAPI().news(); }
|
|
52
|
-
activeChart() { return this._innerAPI().activeChart(); }
|
|
53
|
-
chartsCount() { return this._innerAPI().chartsCount(); }
|
|
54
|
-
layout() { return this._innerAPI().layout(); }
|
|
55
|
-
setLayout(e) { this._innerAPI().setLayout(e); }
|
|
56
|
-
layoutName() { return this._innerAPI().layoutName(); }
|
|
57
|
-
changeTheme(e, t) { return this._innerWindow().changeTheme(e, t); }
|
|
58
|
-
getTheme() { return this._innerWindow().getTheme(); }
|
|
59
|
-
takeScreenshot() { this._doWhenInnerApiLoaded((e => { e.takeScreenshot(); })); }
|
|
60
|
-
lockAllDrawingTools() { return this._innerAPI().lockAllDrawingTools(); }
|
|
61
|
-
hideAllDrawingTools() { return this._innerAPI().hideAllDrawingTools(); }
|
|
62
|
-
drawOnAllCharts(e) { this._innerAPI().drawOnAllCharts(e); }
|
|
63
|
-
magnetEnabled() { return this._innerAPI().magnetEnabled(); }
|
|
64
|
-
magnetMode() { return this._innerAPI().magnetMode(); }
|
|
65
|
-
undoRedoState() { return this._innerAPI().undoRedoState(); }
|
|
66
|
-
setIntervalLinkingEnabled(e) { this._innerAPI().setIntervalLinkingEnabled(e); }
|
|
67
|
-
setTimeFrame(e) { this._innerAPI().setTimeFrame(e); }
|
|
68
|
-
symbolSync() { return this._innerAPI().symbolSync(); }
|
|
69
|
-
intervalSync() { return this._innerAPI().intervalSync(); }
|
|
70
|
-
crosshairSync() { return this._innerAPI().crosshairSync(); }
|
|
71
|
-
timeSync() { return this._innerAPI().timeSync(); }
|
|
72
|
-
getAllFeatures() { return this._innerWindow().getAllFeatures(); }
|
|
73
|
-
clearUndoHistory() { return this._innerAPI().clearUndoHistory(); }
|
|
74
|
-
undo() { return this._innerAPI().undo(); }
|
|
75
|
-
redo() { return this._innerAPI().redo(); }
|
|
76
|
-
startFullscreen() { this._innerAPI().startFullscreen(); }
|
|
77
|
-
exitFullscreen() { this._innerAPI().exitFullscreen(); }
|
|
78
|
-
takeClientScreenshot(e) { return this._innerAPI().takeClientScreenshot(e); }
|
|
79
|
-
navigationButtonsVisibility() { return this._innerWindow().getNavigationButtonsVisibility(); }
|
|
80
|
-
paneButtonsVisibility() { return this._innerWindow().getPaneButtonsVisibility(); }
|
|
81
|
-
dateFormat() { return this._innerWindow().getDateFormat(); }
|
|
82
|
-
_innerAPI() { return this._innerWindow().tradingViewApi; }
|
|
83
|
-
_innerWindow() { return this._iFrame.contentWindow; }
|
|
84
|
-
_doWhenInnerWindowLoaded(e) { this._ready ? e(this._innerWindow()) : this._innerWindowLoaded.then((() => { e(this._innerWindow()); })); }
|
|
85
|
-
_doWhenInnerApiLoaded(e) { this._doWhenInnerWindowLoaded((t => { t.doWhenApiIsReady((() => e(this._innerAPI()))); })); }
|
|
86
|
-
_autoResizeChart() { this._options.fullscreen && (this._iFrame.style.height = window.innerHeight + "px"); }
|
|
87
|
-
_create() { const e = this._render(); this._options.container_id && console.warn("`container_id` is now deprecated. Please use `container` instead to either still pass a string or an `HTMLElement`."); const t = this._options.container_id || this._options.container, i = "string" == typeof t ? document.getElementById(t) : t; if (null === i)
|
|
88
|
-
throw new Error(`There is no such element - #${this._options.container}`); i.innerHTML = e, this._iFrame = i.querySelector(`#${this._id}`); const n = this._iFrame; (this._options.autosize || this._options.fullscreen) && (n.style.width = "100%", this._options.fullscreen || (n.style.height = "100%")), window.addEventListener("resize", this._onWindowResize), this._onWindowResize(), this._innerWindowLoaded = new Promise((e => { const t = () => { n.removeEventListener("load", t, !1), e(); }; n.addEventListener("load", t, !1); })), this._innerWindowLoaded.then((() => { this._innerWindow().widgetReady((() => { this._ready = !0; for (const e of this._readyHandlers)
|
|
89
|
-
try {
|
|
90
|
-
e.call(this);
|
|
91
|
-
}
|
|
92
|
-
catch (e) {
|
|
93
|
-
console.error(e);
|
|
94
|
-
} this._innerWindow().initializationFinished(); })); })); }
|
|
95
|
-
_render() { const e = window; if (e[this._id] = { datafeed: this._options.datafeed, customFormatters: this._options.custom_formatters || this._options.customFormatters, brokerFactory: this._options.broker_factory || this._options.brokerFactory, overrides: this._options.overrides, studiesOverrides: this._options.studies_overrides, tradingCustomization: this._options.trading_customization, disabledFeatures: this._options.disabled_features, enabledFeatures: this._options.enabled_features, brokerConfig: this._options.broker_config || this._options.brokerConfig, restConfig: this._options.restConfig, favorites: this._options.favorites, logo: this._options.logo, numeric_formatting: this._options.numeric_formatting, rss_news_feed: this._options.rss_news_feed, newsProvider: this._options.news_provider, loadLastChart: this._options.load_last_chart, saveLoadAdapter: this._options.save_load_adapter, loading_screen: this._options.loading_screen, settingsAdapter: this._options.settings_adapter, getCustomIndicators: this._options.custom_indicators_getter, additionalSymbolInfoFields: this._options.additional_symbol_info_fields, headerWidgetButtonsMode: this._options.header_widget_buttons_mode, symbolSearchComplete: this._options.symbol_search_complete }, this._options.saved_data)
|
|
96
|
-
e[this._id].chartContent = { json: this._options.saved_data }, this._options.saved_data_meta_info && (e[this._id].chartContentExtendedData = this._options.saved_data_meta_info);
|
|
97
|
-
else if (!this._options.load_last_chart && !this._options.symbol)
|
|
98
|
-
throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set"); const t = (this._options.library_path || "") + `${encodeURIComponent(this._options.locale)}-tv-chart.f0bc1e45.html#symbol=` + encodeURIComponent(this._options.symbol || "") + "&interval=" + encodeURIComponent(this._options.interval) + (this._options.timeframe ? "&timeframe=" + encodeURIComponent(this._options.timeframe) : "") + (this._options.toolbar_bg ? "&toolbarbg=" + encodeURIComponent(this._options.toolbar_bg.replace("#", "")) : "") + (this._options.studies_access ? "&studiesAccess=" + encodeURIComponent(JSON.stringify(this._options.studies_access)) : "") + "&widgetbar=" + encodeURIComponent(JSON.stringify(this._options.widgetbar)) + (this._options.drawings_access ? "&drawingsAccess=" + encodeURIComponent(JSON.stringify(this._options.drawings_access)) : "") + "&timeFrames=" + encodeURIComponent(JSON.stringify(this._options.time_frames)) + "&locale=" + encodeURIComponent(this._options.locale) + "&uid=" + encodeURIComponent(this._id) + "&clientId=" + encodeURIComponent(String(this._options.client_id)) + "&userId=" + encodeURIComponent(String(this._options.user_id)) + (this._options.charts_storage_url ? "&chartsStorageUrl=" + encodeURIComponent(this._options.charts_storage_url) : "") + (this._options.charts_storage_api_version ? "&chartsStorageVer=" + encodeURIComponent(this._options.charts_storage_api_version) : "") + (this._options.custom_css_url ? "&customCSS=" + encodeURIComponent(this._options.custom_css_url) : "") + (this._options.auto_save_delay ? "&autoSaveDelay=" + encodeURIComponent(String(this._options.auto_save_delay)) : "") + "&debug=" + encodeURIComponent(String(this._options.debug)) + (this._options.snapshot_url ? "&snapshotUrl=" + encodeURIComponent(this._options.snapshot_url) : "") + (this._options.timezone ? "&timezone=" + encodeURIComponent(this._options.timezone) : "") + (this._options.study_count_limit ? "&studyCountLimit=" + encodeURIComponent(String(this._options.study_count_limit)) : "") + (this._options.symbol_search_request_delay ? "&ssreqdelay=" + encodeURIComponent(String(this._options.symbol_search_request_delay)) : "") + (this._options.compare_symbols ? "&compareSymbols=" + encodeURIComponent(JSON.stringify(this._options.compare_symbols)) : "") + (this._options.theme ? "&theme=" + encodeURIComponent(String(this._options.theme)) : "") + (this._options.header_widget_buttons_mode ? "&header_widget_buttons_mode=" + encodeURIComponent(String(this._options.header_widget_buttons_mode)) : "") + (this._options.time_scale ? "&time_scale=" + encodeURIComponent(JSON.stringify(this._options.time_scale)) : ""); return '<iframe id="' + this._id + '" name="' + this._id + '" src="' + t + '"' + (this._options.autosize || this._options.fullscreen ? "" : ' width="' + this._options.width + '" height="' + this._options.height + '"') + ' title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;"></iframe>'; }
|
|
99
|
-
};
|
|
100
|
-
exports.widget = s;
|
|
101
|
-
window.TradingView = window.TradingView || {}, window.TradingView.version = o;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).TradingView = {}); }(this, (function (e) {
|
|
2
|
-
"use strict";
|
|
3
|
-
function t(e, i) { const n = Object.assign({}, e); for (const o in i)
|
|
4
|
-
"object" != typeof e[o] || null === e[o] || Array.isArray(e[o]) ? void 0 !== i[o] && (n[o] = i[o]) : n[o] = t(e[o], i[o]); return n; }
|
|
5
|
-
const i = { mobile: { disabled_features: ["left_toolbar", "header_widget", "timeframes_toolbar", "edit_buttons_in_legend", "context_menus", "control_bar", "border_around_the_chart"], enabled_features: [] } }, n = { width: 800, height: 500, interval: "1D", timezone: "Etc/UTC", container: "", library_path: "", locale: "en", widgetbar: { details: !1, watchlist: !1, watchlist_settings: { default_symbols: [] } }, overrides: { "mainSeriesProperties.showCountdown": !1 }, studies_overrides: {}, trading_customization: { position: {}, order: {} }, brokerConfig: { configFlags: {} }, fullscreen: !1, autosize: !1, disabled_features: [], enabled_features: [], debug: !1, logo: {}, time_frames: [{ text: "5y", resolution: "1W" }, { text: "1y", resolution: "1W" }, { text: "6m", resolution: "120" }, { text: "3m", resolution: "60" }, { text: "1m", resolution: "30" }, { text: "5d", resolution: "5" }, { text: "1d", resolution: "1" }], client_id: "0", user_id: "0", charts_storage_api_version: "1.0", favorites: { intervals: [], chartTypes: [] } };
|
|
6
|
-
let o = !1;
|
|
7
|
-
function s() { return "CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"; }
|
|
8
|
-
const r = class {
|
|
9
|
-
constructor(e) { if (this._id = `tradingview_${(1048576 * (1 + Math.random()) | 0).toString(16).substring(1)}`, this._ready = !1, this._readyHandlers = [], this._onWindowResize = this._autoResizeChart.bind(this), !e.datafeed)
|
|
10
|
-
throw new Error("Datafeed is not defined"); if (this._options = t(n, e), e.preset) {
|
|
11
|
-
const t = i[e.preset];
|
|
12
|
-
t ? (void 0 !== this._options.disabled_features ? this._options.disabled_features = this._options.disabled_features.concat(t.disabled_features) : this._options.disabled_features = t.disabled_features, void 0 !== this._options.enabled_features ? this._options.enabled_features = this._options.enabled_features.concat(t.enabled_features) : this._options.enabled_features = t.enabled_features) : console.warn("Unknown preset: `" + e.preset + "`");
|
|
13
|
-
} "Dark" === this._options.theme && void 0 === this._options.loading_screen && (this._options.loading_screen = { backgroundColor: "#131722" }), this._options.debug && (o || (o = !0, console.log("Using CL v21.064 (internal id f0bc1e45 @ 2022-03-17T12:19:26.809Z)"))), this._create(); }
|
|
14
|
-
onChartReady(e) { this._ready ? e.call(this) : this._readyHandlers.push(e); }
|
|
15
|
-
headerReady() { return this._innerWindowLoaded.then((() => this._innerWindow().headerReady())); }
|
|
16
|
-
onGrayedObjectClicked(e) { this._doWhenInnerApiLoaded((t => { t.onGrayedObjectClicked(e); })); }
|
|
17
|
-
onShortcut(e, t) { this._doWhenInnerWindowLoaded((i => { i.createShortcutAction(e, t); })); }
|
|
18
|
-
subscribe(e, t) { this._doWhenInnerApiLoaded((i => { i.subscribe(e, t); })); }
|
|
19
|
-
unsubscribe(e, t) { this._doWhenInnerApiLoaded((i => { i.unsubscribe(e, t); })); }
|
|
20
|
-
chart(e) { return this._innerAPI().chart(e); }
|
|
21
|
-
getLanguage() { return this._options.locale; }
|
|
22
|
-
setSymbol(e, t, i) { this._innerAPI().changeSymbol(e, t, i); }
|
|
23
|
-
remove() { window.removeEventListener("resize", this._onWindowResize), this._readyHandlers.splice(0, this._readyHandlers.length), delete window[this._id], this._iFrame.parentNode && this._iFrame.parentNode.removeChild(this._iFrame); }
|
|
24
|
-
closePopupsAndDialogs() { this._doWhenInnerApiLoaded((e => { e.closePopupsAndDialogs(); })); }
|
|
25
|
-
selectLineTool(e) { this._innerAPI().selectLineTool(e); }
|
|
26
|
-
selectedLineTool() { return this._innerAPI().selectedLineTool(); }
|
|
27
|
-
save(e) { this._innerAPI().saveChart(e); }
|
|
28
|
-
load(e, t) { this._innerAPI().loadChart({ json: e, extendedData: t }); }
|
|
29
|
-
getSavedCharts(e) { this._innerAPI().getSavedCharts(e); }
|
|
30
|
-
loadChartFromServer(e) { this._innerAPI().loadChartFromServer(e); }
|
|
31
|
-
saveChartToServer(e, t, i) { this._innerAPI().saveChartToServer(e, t, i); }
|
|
32
|
-
removeChartFromServer(e, t) { this._innerAPI().removeChartFromServer(e, t); }
|
|
33
|
-
onContextMenu(e) { this._doWhenInnerApiLoaded((t => { t.onContextMenu(e); })); }
|
|
34
|
-
createButton(e) { return this._innerWindow().createButton(e); }
|
|
35
|
-
createDropdown(e) { return this._innerWindow().createDropdown(e); }
|
|
36
|
-
showNoticeDialog(e) { this._doWhenInnerApiLoaded((t => { t.showNoticeDialog(e); })); }
|
|
37
|
-
showConfirmDialog(e) { this._doWhenInnerApiLoaded((t => { t.showConfirmDialog(e); })); }
|
|
38
|
-
showLoadChartDialog() { this._innerAPI().showLoadChartDialog(); }
|
|
39
|
-
showSaveAsChartDialog() { this._innerAPI().showSaveAsChartDialog(); }
|
|
40
|
-
symbolInterval() { return this._innerAPI().getSymbolInterval(); }
|
|
41
|
-
mainSeriesPriceFormatter() { return this._innerAPI().mainSeriesPriceFormatter(); }
|
|
42
|
-
getIntervals() { return this._innerAPI().getIntervals(); }
|
|
43
|
-
getStudiesList() { return this._innerAPI().getStudiesList(); }
|
|
44
|
-
getStudyInputs(e) { return this._innerAPI().getStudyInputs(e); }
|
|
45
|
-
addCustomCSSFile(e) { this._innerWindow().addCustomCSSFile(e); }
|
|
46
|
-
applyOverrides(e) { this._options = t(this._options, { overrides: e }), this._doWhenInnerWindowLoaded((t => { t.applyOverrides(e); })); }
|
|
47
|
-
applyStudiesOverrides(e) { this._doWhenInnerWindowLoaded((t => { t.applyStudiesOverrides(e); })); }
|
|
48
|
-
watchList() { return this._innerAPI().watchlist(); }
|
|
49
|
-
news() { return this._innerAPI().news(); }
|
|
50
|
-
activeChart() { return this._innerAPI().activeChart(); }
|
|
51
|
-
chartsCount() { return this._innerAPI().chartsCount(); }
|
|
52
|
-
layout() { return this._innerAPI().layout(); }
|
|
53
|
-
setLayout(e) { this._innerAPI().setLayout(e); }
|
|
54
|
-
layoutName() { return this._innerAPI().layoutName(); }
|
|
55
|
-
changeTheme(e, t) { return this._innerWindow().changeTheme(e, t); }
|
|
56
|
-
getTheme() { return this._innerWindow().getTheme(); }
|
|
57
|
-
takeScreenshot() { this._doWhenInnerApiLoaded((e => { e.takeScreenshot(); })); }
|
|
58
|
-
lockAllDrawingTools() { return this._innerAPI().lockAllDrawingTools(); }
|
|
59
|
-
hideAllDrawingTools() { return this._innerAPI().hideAllDrawingTools(); }
|
|
60
|
-
drawOnAllCharts(e) { this._innerAPI().drawOnAllCharts(e); }
|
|
61
|
-
magnetEnabled() { return this._innerAPI().magnetEnabled(); }
|
|
62
|
-
magnetMode() { return this._innerAPI().magnetMode(); }
|
|
63
|
-
undoRedoState() { return this._innerAPI().undoRedoState(); }
|
|
64
|
-
setIntervalLinkingEnabled(e) { this._innerAPI().setIntervalLinkingEnabled(e); }
|
|
65
|
-
setTimeFrame(e) { this._innerAPI().setTimeFrame(e); }
|
|
66
|
-
symbolSync() { return this._innerAPI().symbolSync(); }
|
|
67
|
-
intervalSync() { return this._innerAPI().intervalSync(); }
|
|
68
|
-
crosshairSync() { return this._innerAPI().crosshairSync(); }
|
|
69
|
-
timeSync() { return this._innerAPI().timeSync(); }
|
|
70
|
-
getAllFeatures() { return this._innerWindow().getAllFeatures(); }
|
|
71
|
-
clearUndoHistory() { return this._innerAPI().clearUndoHistory(); }
|
|
72
|
-
undo() { return this._innerAPI().undo(); }
|
|
73
|
-
redo() { return this._innerAPI().redo(); }
|
|
74
|
-
startFullscreen() { this._innerAPI().startFullscreen(); }
|
|
75
|
-
exitFullscreen() { this._innerAPI().exitFullscreen(); }
|
|
76
|
-
takeClientScreenshot(e) { return this._innerAPI().takeClientScreenshot(e); }
|
|
77
|
-
navigationButtonsVisibility() { return this._innerWindow().getNavigationButtonsVisibility(); }
|
|
78
|
-
paneButtonsVisibility() { return this._innerWindow().getPaneButtonsVisibility(); }
|
|
79
|
-
dateFormat() { return this._innerWindow().getDateFormat(); }
|
|
80
|
-
_innerAPI() { return this._innerWindow().tradingViewApi; }
|
|
81
|
-
_innerWindow() { return this._iFrame.contentWindow; }
|
|
82
|
-
_doWhenInnerWindowLoaded(e) { this._ready ? e(this._innerWindow()) : this._innerWindowLoaded.then((() => { e(this._innerWindow()); })); }
|
|
83
|
-
_doWhenInnerApiLoaded(e) { this._doWhenInnerWindowLoaded((t => { t.doWhenApiIsReady((() => e(this._innerAPI()))); })); }
|
|
84
|
-
_autoResizeChart() { this._options.fullscreen && (this._iFrame.style.height = window.innerHeight + "px"); }
|
|
85
|
-
_create() { const e = this._render(); this._options.container_id && console.warn("`container_id` is now deprecated. Please use `container` instead to either still pass a string or an `HTMLElement`."); const t = this._options.container_id || this._options.container, i = "string" == typeof t ? document.getElementById(t) : t; if (null === i)
|
|
86
|
-
throw new Error(`There is no such element - #${this._options.container}`); i.innerHTML = e, this._iFrame = i.querySelector(`#${this._id}`); const n = this._iFrame; (this._options.autosize || this._options.fullscreen) && (n.style.width = "100%", this._options.fullscreen || (n.style.height = "100%")), window.addEventListener("resize", this._onWindowResize), this._onWindowResize(), this._innerWindowLoaded = new Promise((e => { const t = () => { n.removeEventListener("load", t, !1), e(); }; n.addEventListener("load", t, !1); })), this._innerWindowLoaded.then((() => { this._innerWindow().widgetReady((() => { this._ready = !0; for (const e of this._readyHandlers)
|
|
87
|
-
try {
|
|
88
|
-
e.call(this);
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
console.error(e);
|
|
92
|
-
} this._innerWindow().initializationFinished(); })); })); }
|
|
93
|
-
_render() { const e = window; if (e[this._id] = { datafeed: this._options.datafeed, customFormatters: this._options.custom_formatters || this._options.customFormatters, brokerFactory: this._options.broker_factory || this._options.brokerFactory, overrides: this._options.overrides, studiesOverrides: this._options.studies_overrides, tradingCustomization: this._options.trading_customization, disabledFeatures: this._options.disabled_features, enabledFeatures: this._options.enabled_features, brokerConfig: this._options.broker_config || this._options.brokerConfig, restConfig: this._options.restConfig, favorites: this._options.favorites, logo: this._options.logo, numeric_formatting: this._options.numeric_formatting, rss_news_feed: this._options.rss_news_feed, newsProvider: this._options.news_provider, loadLastChart: this._options.load_last_chart, saveLoadAdapter: this._options.save_load_adapter, loading_screen: this._options.loading_screen, settingsAdapter: this._options.settings_adapter, getCustomIndicators: this._options.custom_indicators_getter, additionalSymbolInfoFields: this._options.additional_symbol_info_fields, headerWidgetButtonsMode: this._options.header_widget_buttons_mode, symbolSearchComplete: this._options.symbol_search_complete }, this._options.saved_data)
|
|
94
|
-
e[this._id].chartContent = { json: this._options.saved_data }, this._options.saved_data_meta_info && (e[this._id].chartContentExtendedData = this._options.saved_data_meta_info);
|
|
95
|
-
else if (!this._options.load_last_chart && !this._options.symbol)
|
|
96
|
-
throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set"); const t = (this._options.library_path || "") + `${encodeURIComponent(this._options.locale)}-tv-chart.f0bc1e45.html#symbol=` + encodeURIComponent(this._options.symbol || "") + "&interval=" + encodeURIComponent(this._options.interval) + (this._options.timeframe ? "&timeframe=" + encodeURIComponent(this._options.timeframe) : "") + (this._options.toolbar_bg ? "&toolbarbg=" + encodeURIComponent(this._options.toolbar_bg.replace("#", "")) : "") + (this._options.studies_access ? "&studiesAccess=" + encodeURIComponent(JSON.stringify(this._options.studies_access)) : "") + "&widgetbar=" + encodeURIComponent(JSON.stringify(this._options.widgetbar)) + (this._options.drawings_access ? "&drawingsAccess=" + encodeURIComponent(JSON.stringify(this._options.drawings_access)) : "") + "&timeFrames=" + encodeURIComponent(JSON.stringify(this._options.time_frames)) + "&locale=" + encodeURIComponent(this._options.locale) + "&uid=" + encodeURIComponent(this._id) + "&clientId=" + encodeURIComponent(String(this._options.client_id)) + "&userId=" + encodeURIComponent(String(this._options.user_id)) + (this._options.charts_storage_url ? "&chartsStorageUrl=" + encodeURIComponent(this._options.charts_storage_url) : "") + (this._options.charts_storage_api_version ? "&chartsStorageVer=" + encodeURIComponent(this._options.charts_storage_api_version) : "") + (this._options.custom_css_url ? "&customCSS=" + encodeURIComponent(this._options.custom_css_url) : "") + (this._options.auto_save_delay ? "&autoSaveDelay=" + encodeURIComponent(String(this._options.auto_save_delay)) : "") + "&debug=" + encodeURIComponent(String(this._options.debug)) + (this._options.snapshot_url ? "&snapshotUrl=" + encodeURIComponent(this._options.snapshot_url) : "") + (this._options.timezone ? "&timezone=" + encodeURIComponent(this._options.timezone) : "") + (this._options.study_count_limit ? "&studyCountLimit=" + encodeURIComponent(String(this._options.study_count_limit)) : "") + (this._options.symbol_search_request_delay ? "&ssreqdelay=" + encodeURIComponent(String(this._options.symbol_search_request_delay)) : "") + (this._options.compare_symbols ? "&compareSymbols=" + encodeURIComponent(JSON.stringify(this._options.compare_symbols)) : "") + (this._options.theme ? "&theme=" + encodeURIComponent(String(this._options.theme)) : "") + (this._options.header_widget_buttons_mode ? "&header_widget_buttons_mode=" + encodeURIComponent(String(this._options.header_widget_buttons_mode)) : "") + (this._options.time_scale ? "&time_scale=" + encodeURIComponent(JSON.stringify(this._options.time_scale)) : ""); return '<iframe id="' + this._id + '" name="' + this._id + '" src="' + t + '"' + (this._options.autosize || this._options.fullscreen ? "" : ' width="' + this._options.width + '" height="' + this._options.height + '"') + ' title="Financial Chart" frameborder="0" allowTransparency="true" scrolling="no" allowfullscreen style="display:block;"></iframe>'; }
|
|
97
|
-
};
|
|
98
|
-
window.TradingView = window.TradingView || {}, window.TradingView.version = s, e.version = s, e.widget = r, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
99
|
-
}));
|