@pixerate/editor-svelte 0.114.1 → 0.115.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.
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import {
|
|
12
12
|
CHART_COLOR_SCHEMES,
|
|
13
13
|
CHART_CURVES,
|
|
14
|
+
CHART_RADAR_GRATICULES,
|
|
14
15
|
CHART_ERROR_BAR_DIRECTIONS,
|
|
15
16
|
CHART_ERROR_BAR_LABELS,
|
|
16
17
|
CHART_ERROR_BAR_TYPES,
|
|
@@ -408,6 +409,22 @@
|
|
|
408
409
|
</div>
|
|
409
410
|
</div>
|
|
410
411
|
{/if}
|
|
412
|
+
{#if spec.type === 'radar'}
|
|
413
|
+
<div class="flex items-center gap-2">
|
|
414
|
+
<label for="{idPrefix}-radar-ticks" class="{chartLabelClass} w-20 shrink-0">Rings</label>
|
|
415
|
+
<div class="min-w-0 flex-1">
|
|
416
|
+
<ChartCommitInput id="{idPrefix}-radar-ticks" value={spec.radarTicks === null ? '' : String(spec.radarTicks)} placeholder="Auto" inputmode="numeric" data-option="radarTicks" oncommit={(text) => controller.update({ radarTicks: text.trim() === '' ? null : Number(text) }).ok} />
|
|
417
|
+
</div>
|
|
418
|
+
</div>
|
|
419
|
+
<div class="flex items-center gap-2">
|
|
420
|
+
<label for="{idPrefix}-radar-graticule" class="{chartLabelClass} w-20 shrink-0">Grid</label>
|
|
421
|
+
<select id="{idPrefix}-radar-graticule" class={chartInputClass} value={spec.radarGraticule} data-option="radarGraticule" onchange={(e) => controller.update({ radarGraticule: e.currentTarget.value as (typeof CHART_RADAR_GRATICULES)[number] })}>
|
|
422
|
+
{#each CHART_RADAR_GRATICULES as g (g)}
|
|
423
|
+
<option value={g}>{g === 'polygon' ? 'Polygons' : 'Circles'}</option>
|
|
424
|
+
{/each}
|
|
425
|
+
</select>
|
|
426
|
+
</div>
|
|
427
|
+
{/if}
|
|
411
428
|
{#if spec.type === 'donut'}
|
|
412
429
|
<div class="flex items-center gap-2">
|
|
413
430
|
<label for="{idPrefix}-hole" class="{chartLabelClass} w-20 shrink-0">Hole</label>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.115.0",
|
|
4
4
|
"description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"@tiptap/extension-bubble-menu": "^2.27.3",
|
|
161
161
|
"@tiptap/extension-placeholder": "^2.27.3",
|
|
162
162
|
"@tiptap/starter-kit": "^2.27.3",
|
|
163
|
-
"@pixerate/editor": "0.
|
|
163
|
+
"@pixerate/editor": "0.157.0"
|
|
164
164
|
},
|
|
165
165
|
"peerDependencies": {
|
|
166
166
|
"@dagrejs/dagre": "^1.1.4",
|