Skip to content

Commit

Permalink
https://github.com/mzusin/react-round-slider/issues/3
Browse files Browse the repository at this point in the history
  • Loading branch information
mzusin committed Nov 7, 2023
1 parent 79d7877 commit 4f28d8b
Show file tree
Hide file tree
Showing 31 changed files with 133 additions and 97 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@






## License
Expand Down
4 changes: 2 additions & 2 deletions dist/mz-react-round-slider.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/mz-react-round-slider.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/mz-react-round-slider.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/mz-react-round-slider.min.js.map

Large diffs are not rendered by default.

File renamed without changes.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="font-josefin_sans text-lg text-gray-100 hp-bg dark" id="special-page">
Expand Down Expand Up @@ -400,6 +400,6 @@ <h2 class="mt-8 font-semibold text-sky-500">Free</h2>

</div>

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/pages/animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -220,6 +220,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/basic-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -229,6 +229,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/circle-gradient.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -254,6 +254,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -243,6 +243,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/custom-pointer-shape.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -234,6 +234,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/data-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -242,6 +242,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/disabled-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -229,6 +229,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/individual-pointer-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -278,6 +278,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/path-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -269,6 +269,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/pointer-and-connection-gradient.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -238,6 +238,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/pointer-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -268,6 +268,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/pointers-overlap.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -210,6 +210,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/range-dragging.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -196,6 +196,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/text-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -262,6 +262,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/ticks-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -266,6 +266,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/ticks-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -280,6 +280,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions docs/pages/values-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link id="favicon-32" rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32.png" />
<link id="favicon-16" rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16.png" />

<link rel="stylesheet" href="/css/styles.1694421606066.css" />
<!--<link rel="stylesheet" href="/js/index.1694421606066.css" />-->
<link rel="stylesheet" href="/css/styles.1699386604131.css" />
<!--<link rel="stylesheet" href="/js/index.1699386604131.css" />-->

</head>
<body class="h-screen flex flex-col font-roboto bg-white dark:bg-slate-900 dark:text-slate-100">
Expand Down Expand Up @@ -225,6 +225,6 @@
</div>
</footer>-->

<script src="/js/index.1694421606066.js"></script>
<script src="/js/index.1699386604131.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mz-react-round-slider",
"version": "1.0.1",
"version": "1.0.2",
"description": "Multi-Pointer React Round Slider",
"type": "module",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/core/domain/data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const getData = (setting: ISettings) : IData => {
const pathEndAngle = getNumber(setting.pathEndAngle, DEFAULT_PATH_END_ANGLE);
const isClosedShape = mod(pathStartAngle, 360) === mod(pathEndAngle, 360);

const stepAngleDeg = step * 360 / (max - min);
const arrowStepAngleDeg = arrowStep * 360 / (max - min);
const stepAngleDeg = step * (pathEndAngle - pathStartAngle) / (max - min);
const arrowStepAngleDeg = arrowStep * (pathEndAngle - pathStartAngle) / (max - min);

return {
min,
Expand Down
Loading

0 comments on commit 4f28d8b

Please sign in to comment.