Changed requested by code review

This commit is contained in:
Subhash Halder
2023-10-02 20:48:04 +05:30
parent 0d348b7994
commit 42f8990834
2 changed files with 13 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ import type {
const id = 'xychart'; const id = 'xychart';
const detector: DiagramDetector = (txt) => { const detector: DiagramDetector = (txt) => {
return /^\s*xychart/i.test(txt); return /^\s*xychart-beta/.test(txt);
}; };
const loader: DiagramLoader = async () => { const loader: DiagramLoader = async () => {

View File

@@ -1009,12 +1009,12 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
default: true default: true
labelFontSize: labelFontSize:
description: font size of the axis labels (tick text) description: font size of the axis labels (tick text)
type: integer type: number
default: 14 default: 14
minimum: 1 minimum: 1
labelPadding: labelPadding:
description: top and bottom space from axis label (tick text) description: top and bottom space from axis label (tick text)
type: integer type: number
default: 5 default: 5
minimum: 0 minimum: 0
showTitle: showTitle:
@@ -1023,12 +1023,12 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
default: true default: true
titleFontSize: titleFontSize:
description: font size of the axis title description: font size of the axis title
type: integer type: number
default: 16 default: 16
minimum: 1 minimum: 1
titlePadding: titlePadding:
description: top and bottom space from axis title description: top and bottom space from axis title
type: integer type: number
default: 5 default: 5
minimum: 0 minimum: 0
showTick: showTick:
@@ -1037,12 +1037,12 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
default: true default: true
tickLength: tickLength:
description: length of the axis tick lines description: length of the axis tick lines
type: integer type: number
default: 5 default: 5
minimum: 1 minimum: 1
tickWidth: tickWidth:
description: width of the axis tick lines description: width of the axis tick lines
type: integer type: number
default: 2 default: 2
minimum: 1 minimum: 1
showAxisLine: showAxisLine:
@@ -1051,7 +1051,7 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
default: true default: true
axisLineWidth: axisLineWidth:
description: Width of the axis line description: Width of the axis line
type: integer type: number
default: 2 default: 2
minimum: 1 minimum: 1
@@ -1074,22 +1074,22 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
properties: properties:
width: width:
description: width of the chart description: width of the chart
type: integer type: number
default: 700 default: 700
minimum: 1 minimum: 1
height: height:
description: height of the chart description: height of the chart
type: integer type: number
default: 500 default: 500
minimum: 1 minimum: 1
titleFontSize: titleFontSize:
description: Font size of the chart title description: Font size of the chart title
type: integer type: number
default: 20 default: 20
minimum: 1 minimum: 1
titlePadding: titlePadding:
description: Top and bottom space from the chart title description: Top and bottom space from the chart title
type: integer type: number
default: 10 default: 10
minimum: 0 minimum: 0
showTitle: showTitle:
@@ -1108,7 +1108,7 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
default: 'vertical' default: 'vertical'
plotReservedSpacePercent: plotReservedSpacePercent:
description: Minimum percent of space plots of the chart will take description: Minimum percent of space plots of the chart will take
type: integer type: number
default: 50 default: 50
minimum: 30 minimum: 30