Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

2022 11 07 merge with tradingview master #11

Open
wants to merge 229 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
663826c
606: Update scales design
eugene-korobko Oct 29, 2020
54c20df
606: Temporary restored font size
eugene-korobko Nov 6, 2020
e3b0850
606: Fixed crosshair color
eugene-korobko Nov 6, 2020
08cd3f0
Merge branch 'master' into 606-update-scales-design
eugene-korobko Nov 17, 2020
6726328
606: Fixed painting issues
eugene-korobko Nov 17, 2020
8783d56
606: Fixed font size and margins
eugene-korobko Nov 30, 2020
94dbd39
606: Fixed unit tests
eugene-korobko Nov 30, 2020
029df67
606: Calculate actual font size
eugene-korobko Nov 30, 2020
989155a
606: Improved look and feel
eugene-korobko Dec 1, 2020
4499595
606: Update time axis margins and restore radius
eugene-korobko Dec 14, 2020
24b3f3b
606: Change time axis rendering
eugene-korobko Dec 22, 2020
63eb78f
606: Migrated code from TV platform
eugene-korobko Mar 26, 2021
e0625ee
Merge branch 'master' into 606-update-scales-design
eugene-korobko Mar 26, 2021
be28b39
606: fixed text alignment
eugene-korobko Mar 30, 2021
b9111c3
606: fixed test compilation
eugene-korobko Mar 30, 2021
452310f
606: removed useless code
eugene-korobko Mar 30, 2021
8cce504
606: Upgrate ts-transformer version
eugene-korobko Apr 1, 2021
73d9e2e
606: Fixed price labels rendering
eugene-korobko Apr 7, 2021
cdf95aa
606: Try to increase CI timeout
eugene-korobko Apr 30, 2021
47d5356
606: Try to increase CI timeout
eugene-korobko Apr 30, 2021
710659d
Merge branch 'master' into 606-update-scales-design
eugene-korobko May 28, 2021
9be2f7c
Render chart from codeblock
edew Jan 24, 2022
ee24bf5
Use postMessage to work around Safari behaviour
edew Jan 25, 2022
08d5665
Fix eslint error
edew Jan 25, 2022
cac2351
Add images required for 3.8 docs
edew Feb 23, 2022
6b0b74f
Fix lint errors
edew Mar 15, 2022
57f9ccf
Add dynamic import by version
edew Mar 15, 2022
ab527c6
Address review comments
edew Mar 15, 2022
fd2825d
Handle iOS Safari iframe postmessage behaviour
edew Mar 17, 2022
2ac8980
Fix comment typos
edew Mar 17, 2022
c0af587
Require CI build step before eslint step
edew Mar 17, 2022
ba0b423
Attach workspace in eslint job
edew Mar 17, 2022
e518d14
Run rollup before building website
edew Mar 17, 2022
748a6f7
Run production build before building the website
edew Mar 17, 2022
fa8df8d
Remove margin from iframe body
edew Mar 18, 2022
7c03af0
606: Merge master
eugene-korobko Mar 23, 2022
90e563a
606: Fixed linter after merge
eugene-korobko Mar 23, 2022
e8751fa
606: Merge master
eugene-korobko Mar 23, 2022
46dc252
606: Update size limits
eugene-korobko Mar 23, 2022
4b45ebc
606: Update size limits
eugene-korobko Mar 23, 2022
6539e25
Replace images in 3.8 docs
edew Mar 28, 2022
64f61cd
606: Fixed merge error
eugene-korobko Mar 30, 2022
3eeff54
Use theme colors in documentation charts
edew Mar 30, 2022
81beaf3
Remove website project from composite config
edew Apr 1, 2022
5022b3c
Merge branch 'master' into docs_replace_images_with_charts
edew Apr 1, 2022
550a377
Address review feedback
edew Apr 6, 2022
e737941
Update types and theme colors
edew Apr 8, 2022
6fd4db0
Add missing color globals
edew Apr 8, 2022
6700db8
Run tsc-verify after build
edew Apr 8, 2022
c25783a
Fix 3.8 series type charts
edew Apr 8, 2022
b9010cd
Add the ability to set width of the border of the crosshair marker #1059
olegchernenko Apr 14, 2022
f67cd11
Remove typo
edew Apr 25, 2022
2b1471a
Merge pull request #1045 from edew/docs_replace_images_with_charts
edew Apr 25, 2022
fe11aa4
Update Algolia public API key
edew Apr 26, 2022
b171370
Merge pull request #1068 from tradingview/update-algolia-public-api-k…
edew Apr 26, 2022
389ec24
Fire clicked delegate on tap event
edew Apr 26, 2022
b38f4e1
Increase size limits
edew Apr 26, 2022
12cc27e
Merge pull request #1069 from edew/fix_click_event_on_tap
edew Apr 28, 2022
f5092a9
Fix shadow root click and drag
edew Apr 28, 2022
5ef18c4
Update size limits
edew Apr 28, 2022
8d5e952
Merge pull request #1070 from edew/fix_shadow_root_click_and_drag
edew Apr 29, 2022
b1ca781
Add Reddit link to readme #1072
romfrancois Apr 29, 2022
4289887
Update README.md
john-wallace-dev May 3, 2022
e64816f
Update README.md
john-wallace-dev May 3, 2022
4d478c5
Update README.md
john-wallace-dev May 3, 2022
0a48f30
Update README.md
john-wallace-dev May 3, 2022
28be062
Merge pull request #1073 from tradingview/add-reddit-link-to-readme
edew May 5, 2022
e42fe44
Updated subscribeCrosshairMove documentation
victorbrambati May 12, 2022
405276e
Merge pull request #1081 from victorbrambati/master
edew May 13, 2022
295d204
606: Merge master
eugene-korobko May 20, 2022
643e6e5
606: Update to match current platform design
eugene-korobko May 20, 2022
479f5ad
606: Restored ticksVisible option
eugene-korobko May 23, 2022
74c985d
606: Remove debug code, fixed text align
eugene-korobko May 24, 2022
37a80ba
606: Fixed review issues
eugene-korobko May 24, 2022
675a1af
606: Fixed comments
eugene-korobko May 25, 2022
e179849
606: Fixed size limits
eugene-korobko May 27, 2022
f639d70
606: Updated size limit format
eugene-korobko May 31, 2022
4e9c4f4
Fix TS2746 error on homepage
edew May 31, 2022
a70936c
Remove any return type
edew May 31, 2022
e45ed5b
Merge pull request #1087 from tradingview/fix-TS2746-error
edew Jun 1, 2022
a09eb44
Merge branch 'master' into 606-update-scales-design
eugene-korobko Jun 1, 2022
02a064b
606: update size limit
eugene-korobko Jun 1, 2022
b4d9ad6
606: Update paddings to current platform
eugene-korobko Jun 15, 2022
de923d2
606: Updated size limits
eugene-korobko Jun 15, 2022
dc2a73f
606: Updated size limits
eugene-korobko Jun 15, 2022
b81058a
606: Fixed label sizes
eugene-korobko Jun 16, 2022
f28f811
Merge pull request #607 from tradingview/606-update-scales-design
edew Jun 20, 2022
0ad432d
Add ability to draw parts of area with different colors
kirchet Jun 28, 2022
9b6368b
Get rid of extra checks
kirchet Jun 28, 2022
edf156a
Bar colorer refactoring
kirchet Jun 28, 2022
2110773
Includes code to set the crosshair position.
Jun 28, 2022
5fbe279
Fixed CircleCI build
kirchet Jun 29, 2022
0c5771c
Add ability to draw parts of baseline with different colors
kirchet Jun 29, 2022
3a0d936
Fixed errors on painting series with one point
kirchet Jun 30, 2022
bd4bfbb
Fixed linters
kirchet Jun 30, 2022
259a353
Fixed painting line series with one point
kirchet Jun 30, 2022
8946bde
Improved series-data-by-index tests
kirchet Jun 30, 2022
e36560d
Line and Area renderers refactoring
kirchet Jun 30, 2022
60d25fe
Line and Area renderers refactoring
kirchet Jun 30, 2022
207124c
Removed duplicated code
kirchet Jun 30, 2022
5ebc38e
Series pane views refactoring
kirchet Jun 30, 2022
2a33464
Increased size limits
kirchet Jun 30, 2022
480b2b0
Added comment about styleGetter & improved walkLine
kirchet Jul 4, 2022
bc7bff0
Fixed linters
kirchet Jul 5, 2022
dd39634
Add possibility to change price axis text color
kirchet Jul 13, 2022
f0aa2c5
Reset price and time scale double click options
kirchet Jul 14, 2022
65785ff
Trying to decrease library size a little bit
kirchet Jul 14, 2022
79a8e67
Trying to fix build
kirchet Jul 14, 2022
d426d80
Fixed build
kirchet Jul 14, 2022
07fe2d4
Prevented modification defaults on series creation
kirchet Jul 15, 2022
6d8d907
Merge pull request #1101 from tradingview/Add_ability_to_draw_parts_o…
edew Jul 15, 2022
d4863ff
Merge pull request #1116 from tradingview/Add_possibility_to_change_p…
ezhukovskiy Jul 20, 2022
766b4d8
Merge remote-tracking branch 'origin/master' into Reset_price_and_tim…
kirchet Jul 20, 2022
7e151b6
Small refactoring
kirchet Jul 20, 2022
ed90ae7
Decreased size limits
kirchet Jul 20, 2022
4daa902
Merge pull request #1119 from tradingview/Reset_price_and_time_scale_…
ezhukovskiy Jul 25, 2022
70c5f43
Update website dependencies
SlicedSilver Aug 3, 2022
832330f
Kinetic animation and reset time scale conflicts
kirchet Aug 5, 2022
86f690b
Horizontal scroll animations improvements
kirchet Aug 5, 2022
4195492
Updating Docusaurus to v2
SlicedSilver Aug 8, 2022
b288a8e
Add support for Node v18
SlicedSilver Aug 8, 2022
0ff694b
fix JSDoc typo
SlicedSilver Aug 8, 2022
0793a16
Updating typescript
SlicedSilver Aug 8, 2022
a3f8eb7
Updating DevDependencies
SlicedSilver Aug 9, 2022
dc0aeea
eslint-plugin updates
SlicedSilver Aug 9, 2022
a4fbee4
update `typescript-eslint`
SlicedSilver Aug 9, 2022
f5a2305
bump min node version to 16.16
SlicedSilver Aug 9, 2022
c372bed
fix race condition on CI pipeline
SlicedSilver Aug 9, 2022
de70dae
Update CI docker images
SlicedSilver Aug 9, 2022
3b2885c
Merge pull request #1143 from tradingview/update-dependencies
ezhukovskiy Aug 11, 2022
4ebbc03
added website deps note to building.md
SlicedSilver Aug 11, 2022
8947b4d
Merge branch 'master' into docs-website-enhancements
SlicedSilver Aug 11, 2022
33e10e9
Time scale animations refactoring
kirchet Aug 12, 2022
509728d
Merge pull request #1144 from tradingview/docs-website-enhancements
edew Aug 12, 2022
3054034
Merge pull request #1140 from tradingview/Kinetic_animation_and_reset…
edew Aug 16, 2022
72e5ea2
add customization tutorial to docs
SlicedSilver Aug 15, 2022
08ce4e9
update `useColorMode` usage
SlicedSilver Aug 15, 2022
4deda43
reworked tutorials index page
SlicedSilver Aug 15, 2022
2ee6a73
add full code blocks to customization tut pages
SlicedSilver Aug 16, 2022
b16f426
add 'iterative guide' note to customization tutorial pages
SlicedSilver Aug 16, 2022
e30fbb3
fix tests for newer version of puppeteer
SlicedSilver Aug 17, 2022
42ab0d9
Merge pull request #1152 from tradingview/fix-mem-leaks-test
edew Aug 18, 2022
b0eeeb2
add conditional warning banner for tutorials
SlicedSilver Aug 16, 2022
4959aaa
specify file names for downloads
SlicedSilver Aug 16, 2022
1b07b53
move window resizing section earlier in tut
SlicedSilver Aug 18, 2022
a40e9d2
move iterative guide warning into partial file
SlicedSilver Aug 18, 2022
f5331ad
further enhanced code block component
SlicedSilver Aug 18, 2022
fd59cf2
add partial rgb string to theme-colors
SlicedSilver Aug 18, 2022
2b23985
Add 'how to' examples to the tutorials section
SlicedSilver Aug 18, 2022
12d0fcc
change JSFiddle to use TradingView account
SlicedSilver Aug 18, 2022
542f97c
Replaced CodeSandbox link with anonymous authored link
SlicedSilver Aug 18, 2022
5fc81b7
added @types/react to website dependencies
SlicedSilver Aug 18, 2022
5780f2c
fixed broken links in customization guide
SlicedSilver Aug 18, 2022
b48da05
added note about `npm run serve` and embedded html examples
SlicedSilver Aug 23, 2022
6357bca
Merge branch 'master' into customization-tutorial
SlicedSilver Aug 24, 2022
91281f2
add instant details component to customization tutorial pages
SlicedSilver Aug 24, 2022
7081935
add more information about e2e tests
SlicedSilver Aug 24, 2022
78b4afb
improve reliability of mem leaks test
SlicedSilver Aug 24, 2022
70ceecd
coverage test can now produce a covered data file
SlicedSilver Aug 24, 2022
cddfa84
increased delay within graphics e2e tests
SlicedSilver Aug 24, 2022
9992384
improved test coverage
SlicedSilver Aug 24, 2022
47f1700
improved memleaks test's timeout error message
SlicedSilver Aug 25, 2022
ac4bd5b
another 0.2% for the coverage test
SlicedSilver Aug 25, 2022
97ccc28
Merge pull request #1153 from tradingview/customization-tutorial
edew Aug 26, 2022
2ba2dc7
Merge pull request #1158 from tradingview/improve-tests
edew Aug 31, 2022
747e0a1
updated `typedoc-plugin-markdown` for doc website
SlicedSilver Sep 6, 2022
8792a3b
update `docusaurus` to v2.1
SlicedSilver Sep 6, 2022
4f2ea0c
docs chart defaults to using current version
SlicedSilver Sep 6, 2022
7786944
added Vue.js guide
SlicedSilver Sep 8, 2022
61a0776
added web components guide
SlicedSilver Sep 13, 2022
cf13f39
fix typos in web components guide
SlicedSilver Sep 13, 2022
f02baf1
add missing removeEventListener to Vuejs examples
SlicedSilver Sep 13, 2022
c9265f2
add download links to vue & wc guides
SlicedSilver Sep 14, 2022
d39b980
added usage section to web components guide
SlicedSilver Sep 14, 2022
4efefdb
fix typo in vue.js guide
SlicedSilver Sep 14, 2022
3992003
conditionally add wheel event listener
SlicedSilver Sep 14, 2022
05ea046
added interactions e2e tests
SlicedSilver Sep 14, 2022
1d7e45e
changed indentation of comments within code blocks (wc guide)
SlicedSilver Sep 14, 2022
5326a13
fix file name for CI interactions test script
SlicedSilver Sep 14, 2022
5f25c35
increase size limit
SlicedSilver Sep 14, 2022
f094063
fix chmod permissions on run-interactions-test.sh
SlicedSilver Sep 14, 2022
17461dc
fix typo in tests readme
SlicedSilver Sep 14, 2022
5df0c47
Merge pull request #1166 from tradingview/vue-and-wc-tutorials
edew Sep 15, 2022
ea38f7a
Merge branch 'master' into conditional-wheel-events-subs
SlicedSilver Sep 15, 2022
8f8d185
refactor interactions for e2e tests
SlicedSilver Sep 22, 2022
01459d6
setup coverage tests to be split
SlicedSilver Sep 22, 2022
ba7c3f5
added coverage test group: series
SlicedSilver Sep 22, 2022
930d2cf
added coverage test group: chart
SlicedSilver Sep 22, 2022
3616592
added coverage test group: interactions
SlicedSilver Sep 22, 2022
7d4eb00
added coverage test group: price-scale
SlicedSilver Sep 22, 2022
a4c4b97
added coverage test group: time-scale
SlicedSilver Sep 22, 2022
ff25c98
added coverage test: exports
SlicedSilver Sep 22, 2022
b92ed6d
increased expected coverage score
SlicedSilver Sep 22, 2022
ccc6b47
fix type for createPriceLine options parameter
SlicedSilver Sep 22, 2022
c08ecc1
created `CreatePriceLineOptions` type
SlicedSilver Sep 23, 2022
5b72684
moved `shouldSubscribeMouseWheel` into a function
SlicedSilver Sep 23, 2022
fd61a96
Merge pull request #1167 from tradingview/conditional-wheel-events-subs
edew Sep 26, 2022
0a0a739
Merge pull request #1171 from tradingview/fix-create-price-line-type
edew Sep 26, 2022
f70dae6
Merge pull request #1172 from tradingview/split-conditional-tests
edew Sep 26, 2022
08175dc
allow setting mocha options for graphics tests from cmd line
SlicedSilver Oct 3, 2022
1a2d130
graphics tests wait for crosshairMove event
SlicedSilver Oct 3, 2022
e56677e
update graphics test cases to include `getChartInstance()`
SlicedSilver Oct 3, 2022
b36caed
repeated attempts for graphics test are now run in series
SlicedSilver Oct 3, 2022
a7a712f
fix `data-validation` graphics e2e test for prod version
SlicedSilver Oct 3, 2022
b1e9d52
add try/catch to correctly record error messages into test artefacts
SlicedSilver Oct 4, 2022
4e20879
simplify graphics test cases
SlicedSilver Oct 4, 2022
ea49ce6
fixed duplicate error messages on repeated graphic tests
SlicedSilver Oct 5, 2022
e12a32d
Merge pull request #1174 from tradingview/fix-screenshot-tests-ci
edew Oct 6, 2022
86a5f47
add `invertFilledArea` option to area series
SlicedSilver Oct 20, 2022
d692e63
add coverage test for `invertFilledArea` option
SlicedSilver Oct 20, 2022
cae458e
add e2e graphics test for `invertFilledArea`
SlicedSilver Oct 20, 2022
56b7ec2
Merge pull request #1181 from tradingview/invert-filled-area
edew Oct 24, 2022
12aa39f
Fix price scale series labels cut off at edge
edew Oct 25, 2022
fc5f09b
Increase size limit
edew Oct 25, 2022
df145a4
Use scaled height value
edew Oct 25, 2022
e7291e0
Move changes outside renderer
edew Oct 25, 2022
37e93f2
fix scroll speed on Windows chromium browsers
SlicedSilver Oct 26, 2022
222b170
increase size-limit
SlicedSilver Oct 26, 2022
e5f0ff3
Remove explicit dimensions from test
edew Oct 26, 2022
d92ca98
Merge pull request #1185 from tradingview/1023-fix-partially-visible-…
edew Oct 27, 2022
4aacb73
split checks for chromium and windows
SlicedSilver Oct 31, 2022
1f87dc8
Merge branch 'master' into chrome-scroll-speed
SlicedSilver Nov 1, 2022
55d2126
Merge pull request #1187 from tradingview/chrome-scroll-speed
edew Nov 1, 2022
0ecc5e2
Merge remote-tracking branch 'upstream/master'
olegchernenko Nov 1, 2022
d20df56
Fix test
olegchernenko Nov 2, 2022
1afc8db
Merge pull request #1060 from olegchernenko/master
edew Nov 7, 2022
4d1565e
Merge branch '2022-11-07_merge'
AppsIncorporated Nov 7, 2022
4f5b506
Updated name for chart-apis.setCrossHair(). Refactored pane-widget.js…
john-wallace-dev Nov 9, 2022
2efea0c
Updated name for chart-apis.setCrossHair(). Refactored pane-widget.js…
john-wallace-dev Nov 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 31 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ aliases:
executors:
node16-executor:
docker:
- image: circleci/node:16
- image: cimg/node:16.16

node16-browsers-executor:
docker:
- image: circleci/node:16-browsers
- image: cimg/node:16.16-browsers

commands:
checkout-with-deps:
Expand Down Expand Up @@ -74,7 +74,10 @@ commands:
echo 'export TESTS_REPORT_FILE="test-results/graphics/results.xml"' >> $BASH_ENV
echo 'export DEVICE_PIXEL_RATIO=<< parameters.devicePixelRatio >>' >> $BASH_ENV
echo 'export PRODUCTION_BUILD=<< parameters.productionBuild >>' >> $BASH_ENV
- run: scripts/run-graphics-tests.sh
- run:
command: scripts/run-graphics-tests.sh
no_output_timeout: 20m

- store_test_results:
path: test-results/
- store_artifacts:
Expand All @@ -101,10 +104,10 @@ jobs:
executor: node16-executor
steps:
- checkout-with-deps
- run: npm run build:prod
# make sure that the project is compiled successfully with composite projects
# so we don't have cyclic deps between projects and wrong imports
- run: npm run tsc-verify
- run: npm run build:prod
- persist_to_workspace:
root: ./
paths:
Expand All @@ -127,6 +130,8 @@ jobs:
executor: node16-executor
steps:
- checkout-with-deps
- attach_workspace:
at: ./
- run: npm run lint:eslint

lint-dts:
Expand Down Expand Up @@ -215,6 +220,19 @@ jobs:
- store_test_results:
path: test-results/

interactions:
executor: node16-browsers-executor
environment:
NO_SANDBOX: "true"
TESTS_REPORT_FILE: "test-results/interactions/results.xml"
steps:
- checkout-with-deps
- attach_workspace:
at: ./
- run: scripts/run-interactions-tests.sh
- store_test_results:
path: test-results/

size-limit:
executor: node16-executor
steps:
Expand All @@ -230,8 +248,7 @@ jobs:
executor: node16-executor
steps:
- checkout-with-deps
- run: npm run tsc
- run: npm run bundle-dts
- run: npm run build:prod
- run:
name: "Install dependencies and build website"
command: |
Expand Down Expand Up @@ -290,10 +307,7 @@ workflows:
filters: *default-filters
requires:
- install-deps
- lint-eslint:
filters: *default-filters
requires:
- install-deps
- install-deps-website
- lint-markdown:
filters: *default-filters
requires:
Expand Down Expand Up @@ -335,17 +349,18 @@ workflows:
filters: *default-filters
requires:
- build
- lint-dts:
- interactions:
filters: *default-filters
requires:
- build

website:
jobs:
- install-deps:
- lint-dts:
filters: *default-filters
- install-deps-website:
requires:
- build
- lint-eslint:
filters: *default-filters
requires:
- build
- build-docusaurus-website:
filters: *default-filters
requires:
Expand Down
20 changes: 5 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
function getNamingConventionRules(additionalDefaultFormats = []) {
return [
{ selector: 'default', format: ['camelCase', ...additionalDefaultFormats], leadingUnderscore: 'forbid', trailingUnderscore: 'forbid' },

{ selector: 'variable', format: ['camelCase', 'UPPER_CASE', ...additionalDefaultFormats] },
// {
// selector: 'variable',
// types: ['boolean'],
// format: ['PascalCase'],
// prefix: ['is', 'should', 'has', 'can', 'did', 'will', 'show', 'enable', 'need'],
// },

{ selector: 'typeLike', format: ['PascalCase'] },
{ selector: 'enumMember', format: ['PascalCase'] },

{ selector: 'memberLike', modifiers: ['private'], leadingUnderscore: 'require', format: ['camelCase'] },
{ selector: 'memberLike', modifiers: ['protected'], leadingUnderscore: 'require', format: ['camelCase'] },

{
selector: 'property',
format: ['PascalCase'],
Expand All @@ -24,8 +14,6 @@ function getNamingConventionRules(additionalDefaultFormats = []) {
regex: '^(Area|Baseline|Bar|Candlestick|Histogram|Line)$',
},
},

// { selector: 'typeParameter', format: ['PascalCase'], prefix: ['T', 'U'] },
];
}

Expand Down Expand Up @@ -59,6 +47,7 @@ module.exports = {
'prefer-arrow',
'unicorn',
'jsdoc',
'eslint-plugin-react',
],
settings: {
jsdoc: {
Expand All @@ -73,7 +62,7 @@ module.exports = {
'plugin:react/recommended',
],
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: 2020,
sourceType: 'module',
},
overrides: [
Expand All @@ -94,6 +83,7 @@ module.exports = {
},
rules: {
'react/prop-types': 'off',
'import/no-default-export': 'off',
},
},
],
Expand Down Expand Up @@ -180,8 +170,8 @@ module.exports = {
'no-undef': 'off',
'no-unused-vars': 'off',
indent: ['error', 4],

'unicorn/filename-case': 'off',
'react/prop-types': 'off',
},
},
{
Expand All @@ -195,7 +185,7 @@ module.exports = {
},
overrides: [
{
files: ['website/**/*.tsx'],
files: ['website/**/*.ts', 'website/**/*.tsx'],
parserOptions: {
project: 'website/tsconfig.json',
sourceType: 'module',
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ debug.html
/website/.docusaurus
/website/.cache-loader
/website/.previous-typings-cache/*.d.ts
/website/versions.d.ts

!/src/typings/**/*.d.ts

# graphics tests out data
/tests/e2e/graphics/.gendata/
tests/e2e/coverage/.gendata
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
"${input:testStandalonePath}"
],
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
"request": "launch",
"name": "Interaction tests",
"program": "${workspaceFolder}/tests/e2e/interactions/runner.js",
"args": [
"${input:testStandalonePath}"
],
"internalConsoleOptions": "openOnSessionStart"
}
],
"inputs": [
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"dist/**": true,
"lib/**": true,
"tests/e2e/graphics/.gendata/**": true,
"tests/e2e/coverage/.gendata/**": true,
"website/.docusaurus/**": true,
"website/build/**": true,
"website/docs/api/**": true,
Expand Down
7 changes: 6 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Building Lightweight Charts

The minimal supported version of [NodeJS](https://nodejs.org/) for development is 16.13.
The minimal supported version of [NodeJS](https://nodejs.org/) for development is 16.16.

**Note:** you need to run `npm install` in both the root directory and the `website` directory before you can run the lint tests.

## Compiling

Expand All @@ -19,6 +21,8 @@ The minimal supported version of [NodeJS](https://nodejs.org/) for development i
- `npm run lint` - runs lint for the code
- `npm run test` - runs unit-tests

There are several included e2e tests available which can be run individually. Please have a read through the following document for further information: [/tests/README.md](./tests/README.md)

## Tips

- You can use the following command to make sure that your local copy passes all (almost) available checks:
Expand All @@ -34,6 +38,7 @@ The minimal supported version of [NodeJS](https://nodejs.org/) for development i
1. Run `npm run docusaurus docs:version MAJ:MIN` in `website` folder to create new versioned docs.
Note that there is not patch version in docs, only major and minor parts.
1. (optional) Remove docs for the oldest version (see <https://docusaurus.io/docs/versioning#deleting-an-existing-version>).
1. Handle the new version in `import-lightweight-charts-version.ts`: add a package reference for that version to `website/package.json` (e.g. `"lightweight-charts-MAJ.MIN": "npm:lightweight-charts@~MAJ.MIN.0"`) and a import of that package in a matching case statement.
1. Bump `lightweight-charts` package version in `website/package.json` file.
1. Add all created files to git and commit changes.
Note that at this step the website cannot work since it uses unpublished so far version. It will be fixed in the next steps.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ When logging a bug, please be sure to include the following:
### Tests

1. Every pull request should have an adequate tests whenever it's possible (we have several [type of tests](./tests/), so you can find what works best for your changes).
1. If your changes affect paining, then your changes should contain a test case (or test cases) for [graphics tests](./tests/e2e/graphics).
1. If your changes affect painting, then your changes should contain a test case (or test cases) for [graphics tests](./tests/e2e/graphics).
1. Your pull request should pass CI (except checks marked as "not required" - in this case a reviewer should pay attention to job's artifacts).

### Git commit messages
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# About this fork

This is a fork of TradingView's [Lightweight Charts](https://github.com/tradingview/lightweight-charts).
I needed certain features that weren't included yet (and maybe never) in the official version of LWC.
Specifically, I have an application that is very much like TradingView.com where each window can contain multiple charts, and each chart can have multiple indicator panes.

[John Wallace](https://github.com/john-wallace-dev)
March 2022

## Multiple Panes

Allows multiple panes below the main chart. I use them to display interactive indicators below the main chart. Implemented by [ntf](https://github.com/ntf) to satisfy requests from [Lightweight Charts issue 50](https://github.com/tradingview/lightweight-charts/issues/50).

## Setting Crosshair Position

Allows you to programmatically set the crosshair, which is useful when you want to synchronize the crosshair between multiple charts on one screen. Implemented by [trior](https://github.com/triorr) to satisfy requests from [Lightweight Charts issue 438](https://github.com/tradingview/lightweight-charts/issues/438).

## From Main Branch

<!-- markdownlint-disable no-inline-html first-line-h1 -->

<div align="center">
Expand All @@ -16,7 +35,7 @@

<!-- markdownlint-enable no-inline-html -->

[Demos][demo-url] | [Documentation](https://tradingview.github.io/lightweight-charts/) | [Discord community](https://discord.gg/UC7cGkvn4U)
[Demos][demo-url] | [Documentation](https://tradingview.github.io/lightweight-charts/) | [Discord community](https://discord.gg/UC7cGkvn4U) | [Reddit](https://www.reddit.com/r/TradingView/)

TradingView Lightweight Charts are one of the smallest and fastest financial HTML5 charts.

Expand Down
Loading