Skip to content

Commit

Permalink
https://1rosehip.atlassian.net/browse/RRS-101
Browse files Browse the repository at this point in the history
  • Loading branch information
mzusin committed Jul 24, 2023
1 parent 8833c75 commit 0d51841
Show file tree
Hide file tree
Showing 27 changed files with 114 additions and 91 deletions.
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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.css" />-->

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

</div>

<script src="/js/index.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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 @@ -208,6 +208,6 @@
</div>
</footer>-->

<script src="/js/index.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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 @@ -219,6 +219,6 @@
</div>
</footer>-->

<script src="/js/index.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.js"></script>
</body>
</html>
14 changes: 10 additions & 4 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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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 @@ -183,6 +183,11 @@
<span class="hljs-comment">// The default value is 0.</span>
textOffsetY?: <span class="hljs-built_in">number</span>;

<span class="hljs-comment">// A string specifying the text betwen slider&#x27;s pointer values (for</span>
<span class="hljs-comment">// example, •, | or -).</span>
<span class="hljs-comment">// The default value is undefined.</span>
textBetween?: <span class="hljs-built_in">string</span>;

<span class="hljs-comment">// ... other settings ...</span>
}</code></pre>
<p class="mb-4">For example:</p>
Expand All @@ -201,13 +206,14 @@
<span class="hljs-keyword">return</span> (
<span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">RoundSlider</span>
<span class="hljs-attr">hideText</span>=<span class="hljs-string">{</span> <span class="hljs-attr">false</span> }
<span class="hljs-attr">textPrefix</span>=<span class="hljs-string">{</span> &#x27; &#x27; }
<span class="hljs-attr">textPrefix</span>=<span class="hljs-string">{</span> &#x27;&#x27; }
<span class="hljs-attr">textSuffix</span>=<span class="hljs-string">{</span> &#x27;<span class="hljs-attr">px</span>&#x27; }
<span class="hljs-attr">textColor</span>=<span class="hljs-string">{</span> &#x27;#<span class="hljs-attr">8993B7</span>&#x27; }
<span class="hljs-attr">textFontSize</span>=<span class="hljs-string">{</span> <span class="hljs-attr">24</span> }
<span class="hljs-attr">textFontFamily</span>=<span class="hljs-string">{</span> &#x27;<span class="hljs-attr">Helvetica</span>,<span class="hljs-attr">Arial</span>,<span class="hljs-attr">sans-serif</span>&#x27; }
<span class="hljs-attr">textOffsetX</span>=<span class="hljs-string">{</span> <span class="hljs-attr">0</span> }
<span class="hljs-attr">textOffsetY</span>=<span class="hljs-string">{</span> <span class="hljs-attr">0</span> }
<span class="hljs-attr">textBetween</span>=<span class="hljs-string">{</span> &#x27; • &#x27;}

<span class="hljs-attr">pointers</span>=<span class="hljs-string">{</span> <span class="hljs-attr">pointers</span> }
<span class="hljs-attr">onChange</span>=<span class="hljs-string">{</span> <span class="hljs-attr">setPointers</span> }
Expand Down Expand Up @@ -256,6 +262,6 @@
</div>
</footer>-->

<script src="/js/index.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.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.1690040828708.css" />
<!--<link rel="stylesheet" href="/js/index.1690040828708.css" />-->
<link rel="stylesheet" href="/css/styles.1690181199516.css" />
<!--<link rel="stylesheet" href="/js/index.1690181199516.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.1690040828708.js"></script>
<script src="/js/index.1690181199516.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions src/core/domain/settings-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface ISettings {
textFontFamily?: string;
textOffsetX?: number;
textOffsetY?: number;
textBetween?: string;

// ticks -----------------
enableTicks?: boolean;
Expand Down
4 changes: 3 additions & 1 deletion src/core/ui/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const Text = (props: ITextProps) => {
});

const texts = values.map(value => `${ settings.textPrefix || '' }${ value }${ settings.textSuffix || '' }`);
setValue(texts.join(' '));

const textBetween = getString(settings.textBetween, ' ');
setValue(texts.join(textBetween));

}, [
data,
Expand Down
Loading

0 comments on commit 0d51841

Please sign in to comment.