markdown-up 3.6.1 → 3.6.3
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/lib/lineChart.js +2 -1
- package/lib/scriptLibrary.js +7 -2
- package/package.json +2 -2
package/lib/lineChart.js
CHANGED
|
@@ -268,6 +268,7 @@ export function lineChartElements(data, lineChart, options = null) {
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
+
const linePointsReversed = linePoints.slice().reverse();
|
|
271
272
|
|
|
272
273
|
// No data?
|
|
273
274
|
if (xMin === null) {
|
|
@@ -585,7 +586,7 @@ export function lineChartElements(data, lineChart, options = null) {
|
|
|
585
586
|
},
|
|
586
587
|
|
|
587
588
|
// Lines
|
|
588
|
-
|
|
589
|
+
linePointsReversed.map(({color, points}) => ({
|
|
589
590
|
'svg': 'path',
|
|
590
591
|
'attr': {
|
|
591
592
|
'stroke': color,
|
package/lib/scriptLibrary.js
CHANGED
|
@@ -861,9 +861,10 @@ const markdownTitleArgs = valueArgsModel([
|
|
|
861
861
|
// $arg typeName: The type name
|
|
862
862
|
// $arg actionURLs: Optional (default is null). The
|
|
863
863
|
// $arg actionURLs: [action URL overrides](https://craigahobbs.github.io/schema-markdown-doc/doc/#var.vName='ActionURL').
|
|
864
|
+
// $arg actionCustom: Optional (default is false). If true, the action has a custom response.
|
|
864
865
|
// $return: The schema type's documentation [element model](https://github.com/craigahobbs/element-model#readme)
|
|
865
866
|
function schemaElements(args, options) {
|
|
866
|
-
const [types, typeName, actionURLs = null] = valueArgsValidate(schemaElementsArgs, args);
|
|
867
|
+
const [types, typeName, actionURLs = null, actionCustom] = valueArgsValidate(schemaElementsArgs, args);
|
|
867
868
|
const schemaOptions = {
|
|
868
869
|
'params': encodeQueryString(options.params),
|
|
869
870
|
'markdownOptions': options.markdownOptions
|
|
@@ -871,13 +872,17 @@ function schemaElements(args, options) {
|
|
|
871
872
|
if (actionURLs !== null) {
|
|
872
873
|
schemaOptions.actionURLs = actionURLs;
|
|
873
874
|
}
|
|
875
|
+
if (actionCustom) {
|
|
876
|
+
schemaOptions.actionCustom = true;
|
|
877
|
+
}
|
|
874
878
|
return schemaMarkdownDoc(types, typeName, schemaOptions);
|
|
875
879
|
}
|
|
876
880
|
|
|
877
881
|
const schemaElementsArgs = valueArgsModel([
|
|
878
882
|
{'name': 'types', 'type': 'object'},
|
|
879
883
|
{'name': 'typeName', 'type': 'string'},
|
|
880
|
-
{'name': 'actionURLs', 'type': 'array', 'nullable': true}
|
|
884
|
+
{'name': 'actionURLs', 'type': 'array', 'nullable': true},
|
|
885
|
+
{'name': 'actionCustom', 'type': 'boolean', 'default': false}
|
|
881
886
|
]);
|
|
882
887
|
|
|
883
888
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "markdown-up",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.3",
|
|
5
5
|
"description": "MarkdownUp is a Markdown viewer",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"markdown",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"c8": "~10.1",
|
|
33
|
-
"eslint": "~9.
|
|
33
|
+
"eslint": "~9.33",
|
|
34
34
|
"jsdoc": "~4.0",
|
|
35
35
|
"jsdom": "~26.1"
|
|
36
36
|
}
|