@tidal-ts/terminal 0.5.1 → 0.7.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/dist/terminalMachine.js +11 -3
- package/package.json +3 -3
package/dist/terminalMachine.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assign, enqueueActions, setup } from 'xstate';
|
|
2
|
-
import { COMPARE_PREFIX, hasPairOp, usesCompare, deriveId, opParams, opInputs, opNeedsColumns, opIsBand, opIsMulti, opOutputs, TARGET_ROLES, opSharesSourceAxis, studyTag, inputNames, isPickedInput, isPairOp, isValidSpec, partStudyLabel, readPairParts, specUnit, studyInputOf, studyPick, substituteInput, withStudyOutput, } from '@tidal-ts/core';
|
|
2
|
+
import { COMPARE_PREFIX, hasPairOp, usesCompare, deriveId, opParams, opInputs, opNeedsColumns, opIsBand, opIsMulti, outputMark, opOutputs, TARGET_ROLES, opSharesSourceAxis, studyTag, inputNames, isPickedInput, isPairOp, isValidSpec, partStudyLabel, readPairParts, specUnit, studyInputOf, studyPick, substituteInput, withStudyOutput, } from '@tidal-ts/core';
|
|
3
3
|
/**
|
|
4
4
|
* The bar columns each data SOURCE carries — the one fact that decides whether a
|
|
5
5
|
* multi-column study is offerable on a series. Only the price series has bars;
|
|
@@ -511,8 +511,16 @@ function studyConfig(target, op, period, id, unitOf) {
|
|
|
511
511
|
// A multi-output op can only draw as a multi-output style: its `column` is
|
|
512
512
|
// a spec id naming SEVERAL columns, so every single-column style would read
|
|
513
513
|
// nothing and draw an empty layer. A band is the Middle/Upper/Lower wash;
|
|
514
|
-
// anything else is N lines off one spec, one per declared output.
|
|
515
|
-
|
|
514
|
+
// anything else is N lines off one spec, one per declared output. A
|
|
515
|
+
// single-output study whose one output is a histogram (an Awesome
|
|
516
|
+
// Oscillator) opens as bars; the user can still restyle it.
|
|
517
|
+
style: opIsBand(op)
|
|
518
|
+
? 'band'
|
|
519
|
+
: opIsMulti(op)
|
|
520
|
+
? 'lines'
|
|
521
|
+
: outputMark(op, '') === 'bar'
|
|
522
|
+
? 'bar'
|
|
523
|
+
: 'line',
|
|
516
524
|
visible: true,
|
|
517
525
|
source: target.source,
|
|
518
526
|
column: deriveId(derive),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidal-ts/terminal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The terminal machine — an XState v5 statechart that owns a chart's configuration (rows, series, studies, pairs, axes, presets) and never its data.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"xstate": "^5.28.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@tidal-ts/chart": "0.
|
|
40
|
-
"@tidal-ts/core": "0.
|
|
39
|
+
"@tidal-ts/chart": "0.7.0",
|
|
40
|
+
"@tidal-ts/core": "0.7.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@pond-ts/charts": "^0.70.0",
|