@celljs/ta-plot 4.17.0 → 4.18.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/package.json +3 -3
- package/web/index.js +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-plot",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "A pi package for Ta: functions and curves of replies drawn as animated plots, with params to drag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@celljs/ta-protocol": "4.
|
|
30
|
-
"@celljs/ta-web": "4.
|
|
29
|
+
"@celljs/ta-protocol": "4.18.0",
|
|
30
|
+
"@celljs/ta-web": "4.18.0",
|
|
31
31
|
"@types/react": "^19.3.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
package/web/index.js
CHANGED
|
@@ -1225,6 +1225,7 @@ function plotView(pi) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
return function PlotBlock({ code, closed }) {
|
|
1227
1227
|
const words = PlotWords.of(pi.ui.language);
|
|
1228
|
+
const Loading = pi.ui.Loading ?? pi.ui.Skeleton;
|
|
1228
1229
|
const read = React.useMemo(() => {
|
|
1229
1230
|
if (!closed) {
|
|
1230
1231
|
return;
|
|
@@ -1237,10 +1238,11 @@ function plotView(pi) {
|
|
|
1237
1238
|
}, [code, closed]);
|
|
1238
1239
|
if (!read) {
|
|
1239
1240
|
return /* @__PURE__ */ React.createElement("div", {
|
|
1240
|
-
className: "tpl-card
|
|
1241
|
-
}, /* @__PURE__ */ React.createElement(
|
|
1242
|
-
|
|
1243
|
-
|
|
1241
|
+
className: "tpl-card"
|
|
1242
|
+
}, /* @__PURE__ */ React.createElement(Loading, {
|
|
1243
|
+
compact: true,
|
|
1244
|
+
label: words.drawing
|
|
1245
|
+
}));
|
|
1244
1246
|
}
|
|
1245
1247
|
if (!read.plot) {
|
|
1246
1248
|
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -1289,7 +1291,6 @@ var STYLE = `
|
|
|
1289
1291
|
.tpl-line { width: 14px; height: 0; border-top: 3px solid; border-radius: 2px; }
|
|
1290
1292
|
.tpl-line[data-dash] { border-top-width: 2px; border-top-style: dashed; }
|
|
1291
1293
|
.tpl-live { font-variant-numeric: tabular-nums; color: var(--ta-muted); }
|
|
1292
|
-
.tpl-writing { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); }
|
|
1293
1294
|
.tpl-failed { margin-bottom: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale, 1)); }
|
|
1294
1295
|
`;
|
|
1295
1296
|
function injectStyle() {
|