@tomaszjarosz/react-visualizers 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tomasz Jarosz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # @tomaszjarosz/react-visualizers
2
+
3
+ Interactive algorithm and data structure visualizers for React.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @tomaszjarosz/react-visualizers
9
+ ```
10
+
11
+ ## Requirements
12
+
13
+ - React 17+ or 18+
14
+ - Tailwind CSS
15
+
16
+ ## Available Visualizers
17
+
18
+ ### Sorting Algorithms
19
+ - `BubbleSortVisualizer`
20
+ - `SelectionSortVisualizer`
21
+ - `InsertionSortVisualizer`
22
+ - `MergeSortVisualizer`
23
+ - `QuickSortVisualizer`
24
+ - `HeapSortVisualizer`
25
+
26
+ ### Data Structures
27
+ - `ArrayListVisualizer`
28
+ - `LinkedListVisualizer`
29
+ - `StackVisualizer`
30
+ - `QueueVisualizer`
31
+ - `HashMapVisualizer`
32
+ - `TreeSetVisualizer`
33
+ - `TreeMapVisualizer`
34
+ - `PriorityQueueVisualizer`
35
+ - `DequeVisualizer`
36
+
37
+ ### Concurrency
38
+ - `ThreadPoolVisualizer`
39
+ - `SemaphoreVisualizer`
40
+ - `ReentrantLockVisualizer`
41
+ - `ReadWriteLockVisualizer`
42
+
43
+ ### Other
44
+ - `RecursionTreeVisualizer`
45
+ - `BinarySearchVisualizer`
46
+
47
+ ## Usage
48
+
49
+ ```tsx
50
+ import { BubbleSortVisualizer, HashMapVisualizer } from '@tomaszjarosz/react-visualizers';
51
+
52
+ function App() {
53
+ return (
54
+ <div>
55
+ <h2>Bubble Sort</h2>
56
+ <BubbleSortVisualizer />
57
+
58
+ <h2>HashMap Operations</h2>
59
+ <HashMapVisualizer />
60
+ </div>
61
+ );
62
+ }
63
+ ```
64
+
65
+ ## Shared Components
66
+
67
+ ```tsx
68
+ import { ControlPanel, CodePanel, Legend, StatusPanel } from '@tomaszjarosz/react-visualizers';
69
+ ```
70
+
71
+ ## License
72
+
73
+ MIT