waveform-analysis 0.1.78 → 0.1.80
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/README.md +29 -13
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/core/layout.d.ts +2 -0
- package/dist/types/components/core/yAxisTicks.d.ts +1 -1
- package/dist/types/types/chart.d.ts +4 -4
- package/package.json +1 -1
- package/src/components/core/layout.ts +25 -2
- package/src/components/core/trackLayoutBuilder.ts +5 -1
- package/src/components/core/yAxisLayoutMetrics.ts +1 -1
- package/src/components/core/yAxisPadding.ts +16 -1
- package/src/components/core/yAxisTicks.ts +6 -3
- package/src/components/interaction/WaveformTooltip.vue +1 -1
- package/src/components/interaction/stepZoom.ts +16 -4
- package/src/components/interaction/zoomConstraints.ts +19 -18
- package/src/components/rendering/yAxisTickVisibility.ts +17 -7
- package/src/demo/DemoYAxisPaddingControls.vue +1 -1
- package/src/index.ts +1 -0
- package/src/types/chart.ts +4 -4
package/src/index.ts
CHANGED
|
@@ -94,6 +94,7 @@ export type {
|
|
|
94
94
|
WaveformXAxisLabelKind,
|
|
95
95
|
WaveformXAxisLabelFormatterContext,
|
|
96
96
|
WaveformXAxisLabelFormatter,
|
|
97
|
+
// Explicit axes.y padding ratios preserve exact bounds with nice ticks.
|
|
97
98
|
// Includes axes.y.maximumTickVisible and minimumTickVisible for independent extrema ticks.
|
|
98
99
|
WaveformAxesOptions,
|
|
99
100
|
WaveformYAxisLabelTextStyle,
|
package/src/types/chart.ts
CHANGED
|
@@ -285,17 +285,17 @@ export interface WaveformAxesOptions {
|
|
|
285
285
|
lineVisible?: boolean
|
|
286
286
|
/** Styles series names on both left and right Y axes, without changing tick labels. */
|
|
287
287
|
labelTextStyle?: WaveformYAxisLabelTextStyle
|
|
288
|
-
/** Target
|
|
288
|
+
/** Target Y-axis tick count before filtering to explicit padding or amplitude bounds. Defaults to 5. */
|
|
289
289
|
splitNumber?: number
|
|
290
|
-
/**
|
|
290
|
+
/** Uses human-friendly intervals; explicit padding sides keep their exact bounds. Defaults to true. */
|
|
291
291
|
nice?: boolean
|
|
292
292
|
/** Shows the full data maximum's extra tick and label. Defaults to true. */
|
|
293
293
|
maximumTickVisible?: boolean
|
|
294
294
|
/** Shows the full data minimum's extra tick and label. Defaults to true. */
|
|
295
295
|
minimumTickVisible?: boolean
|
|
296
|
-
/**
|
|
296
|
+
/** Exact fraction of the automatic Y span added above its maximum, even with nice. Defaults to 0. */
|
|
297
297
|
upperPaddingRatio?: number
|
|
298
|
-
/**
|
|
298
|
+
/** Exact fraction of the automatic Y span added below its minimum, even with nice. Defaults to 0. */
|
|
299
299
|
lowerPaddingRatio?: number
|
|
300
300
|
/** False disables upper padding; true defaults an omitted ratio to 0.1. */
|
|
301
301
|
upperPaddingEnabled?: boolean
|