@pie-element/graphing 3.5.4-next.1016 → 3.5.4-next.1034

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphing-config.jsx"],"names":["tools","allTools","styles","theme","container","display","flexWrap","marginBottom","spacing","unit","gridConfig","flexDirection","marginRight","graphConfig","subtitleText","marginTop","GraphingConfig","props","backgroundMarks","model","onChange","config","state","oldGridValues","gridValues","oldLabelValues","labelValues","updatedModel","domain","includeAxes","graph","range","standardGrid","domainConstraints","width","step","labelStep","rangeConstraints","height","setState","classes","graphDimensions","arrows","coordinatesOnHover","labels","title","enabled","min","max","sizeConstraints","Math","onConfigChange","includeArrows","changeBackgroundMarks","React","Component","PropTypes","object","isRequired","authoringEnabled","bool","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAEA,sBAA0BA,eAA1B,CAAQC,QAAR;AAAA,IAAQA,QAAR,gCAAmB,EAAnB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,SAAS,EAAE;AACTC,MAAAA,OAAO,EAAE,MADA;AAETC,MAAAA,QAAQ,EAAE,MAFD;AAGTC,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAH1B,KADY;AAMvBC,IAAAA,UAAU,EAAE;AACVL,MAAAA,OAAO,EAAE,MADC;AAEVM,MAAAA,aAAa,EAAE,QAFL;AAGVC,MAAAA,WAAW,EAAET,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAHxB;AAIVF,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAJzB,KANW;AAYvBI,IAAAA,WAAW,EAAE;AACXR,MAAAA,OAAO,EAAE,MADE;AAEXM,MAAAA,aAAa,EAAE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jB,SADhB;AAEE,QAAA,eAAe,EAAE,EAFnB;AAGE,QAAA,kBAAkB,EAAEC,kBAHtB;AAIE,QAAA,kBAAkB,EAAE,IAJtB;AAKE,QAAA,uBAAuB,EAAE,gCAL3B;AAME,QAAA,MAAM,EAAEf,MANV;AAOE,QAAA,GAAG,EAAC,iBAPN;AAQE,QAAA,MAAM,EAAEgB,MARV;AASE,QAAA,KAAK,EAAE1B,eATT;AAUE,QAAA,aAAa,EAAE,KAAKmC,qBAVtB;AAWE,QAAA,KAAK,EAAEtB,KAXT;AAYE,QAAA,IAAI,EAAE;AAAEG,UAAAA,KAAK,EAAEJ,KAAK,CAACI,KAAf;AAAsBI,UAAAA,MAAM,EAAER,KAAK,CAACQ;AAApC,SAZR;AAaE,QAAA,KAAK,EAAEO,KAbT;AAcE,QAAA,YAAY,EAAE5C;AAdhB,QATF,CAhBF,CADF;AA6CD;;;EApIiCqD,KAAK,CAACC,S;;;iCAA7BvC,c,eACQ;AACjBwB,EAAAA,OAAO,EAAEgB,sBAAUC,MAAV,CAAiBC,UADT;AAEjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAFX;AAGjBnB,EAAAA,eAAe,EAAEe,sBAAUC,MAHV;AAIjBtC,EAAAA,KAAK,EAAEqC,sBAAUC,MAAV,CAAiBC,UAJP;AAKjBtC,EAAAA,QAAQ,EAAEoC,sBAAUK,IAAV,CAAeH;AALR,C;AAoIpB;;eAEc,wBAAWxD,MAAX,EAAmBc,cAAnB,C","sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GraphContainer, GridSetup, tools } from '@pie-lib/graphing';\nimport { Typography } from '@material-ui/core';\nimport { withStyles } from '@material-ui/core/styles';\nimport { applyConstraints, getGridValues, getLabelValues } from './utils';\n\nconst { allTools = [] } = tools;\n\nconst styles = theme => ({\n container: {\n display: 'flex',\n flexWrap: 'wrap',\n marginBottom: theme.spacing.unit * 7\n },\n gridConfig: {\n display: 'flex',\n flexDirection: 'column',\n marginRight: theme.spacing.unit * 4,\n marginBottom: theme.spacing.unit * 3\n },\n graphConfig: {\n display: 'flex',\n flexDirection: 'column'\n },\n subtitleText: {\n marginTop: theme.spacing.unit * 1.5,\n marginBottom: theme.spacing.unit\n }\n});\n\nexport class GraphingConfig extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n authoringEnabled: PropTypes.bool,\n graphDimensions: PropTypes.object,\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n };\n\n constructor(props) {\n super(props);\n const { domain, range, graph } = props.model || {};\n\n const gridValues = {\n domain: getGridValues(domain, graph.width, true),\n range: getGridValues(range, graph.height, true)\n };\n const labelValues = {\n domain: getLabelValues(domain.step),\n range: getLabelValues(range.step)\n };\n\n this.state = { gridValues, labelValues };\n };\n\n changeBackgroundMarks = backgroundMarks => {\n const model = { ...this.props.model, backgroundMarks };\n\n this.props.onChange(model);\n };\n\n onConfigChange = config => {\n const { model, onChange } = this.props;\n const { gridValues: oldGridValues, labelValues: oldLabelValues } = this.state;\n const updatedModel = { ...model, ...config };\n const { domain, includeAxes, graph, range, standardGrid } = updatedModel;\n const gridValues = { domain: [], range: [] };\n const labelValues = { domain: [], range: [] };\n\n if (includeAxes) {\n const domainConstraints = applyConstraints(domain, graph.width, oldGridValues.domain, oldLabelValues.domain);\n\n gridValues.domain = domainConstraints.gridValues || [];\n labelValues.domain = domainConstraints.labelValues || [];\n }\n\n if (standardGrid) {\n gridValues.range = gridValues.domain;\n labelValues.range = labelValues.domain;\n range.step = domain.step;\n range.labelStep = domain.labelStep;\n } else {\n if (includeAxes) {\n const rangeConstraints = applyConstraints(range, graph.height, oldGridValues.range, oldLabelValues.range);\n\n gridValues.range = rangeConstraints.gridValues || [];\n labelValues.range = rangeConstraints.labelValues || [];\n }\n }\n\n this.setState({ gridValues, labelValues });\n onChange(updatedModel);\n };\n\n render() {\n const { classes, model, graphDimensions } = this.props;\n const {\n arrows,\n backgroundMarks,\n coordinatesOnHover,\n domain,\n includeAxes,\n labels,\n range,\n standardGrid,\n title\n } = model || {};\n const graph = (model || {}).graph || {};\n const { enabled, min, max, step } = graphDimensions || {};\n const { gridValues, labelValues } = this.state;\n\n const sizeConstraints = {\n min: Math.max(150, min),\n max: Math.min(800, max),\n step: step >= 1 ? Math.min(200, step) : 20\n };\n\n return (\n <div className={classes.container}>\n <div className={classes.gridConfig}>\n <GridSetup\n domain={domain}\n dimensionsEnabled={enabled}\n gridValues={gridValues}\n includeAxes={includeAxes}\n labelValues={labelValues}\n range={range}\n size={graph}\n sizeConstraints={sizeConstraints}\n standardGrid={standardGrid}\n onChange={this.onConfigChange}\n />\n </div>\n\n <div className={classes.graphConfig} key=\"graph\">\n <Typography component=\"div\" variant=\"subheading\">\n <span>Define Graph Attributes</span>\n </Typography>\n\n <Typography component=\"div\" variant=\"body1\" className={classes.subtitleText}>\n <span>Use this interface to add/edit a title and/or labels, and to set background shapes</span>\n </Typography>\n\n <GraphContainer\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={[]}\n coordinatesOnHover={coordinatesOnHover}\n collapsibleToolbar={true}\n collapsibleToolbarTitle={'Add Background Shapes to Graph'}\n domain={domain}\n key=\"graphing-config\"\n labels={labels}\n marks={backgroundMarks}\n onChangeMarks={this.changeBackgroundMarks}\n range={range}\n size={{ width: graph.width, height: graph.height }}\n title={title}\n toolbarTools={allTools}\n />\n </div>\n </div>\n );\n }\n};\n\nexport default withStyles(styles)(GraphingConfig);\n"],"file":"graphing-config.js"}
1
+ {"version":3,"sources":["../src/graphing-config.jsx"],"names":["styles","theme","container","display","flexWrap","marginBottom","spacing","unit","gridConfig","flexDirection","marginRight","graphConfig","subtitleText","marginTop","GraphingConfig","props","backgroundMarks","model","onChange","config","state","oldGridValues","gridValues","oldLabelValues","labelValues","updatedModel","domain","includeAxes","graph","range","standardGrid","domainConstraints","width","step","labelStep","rangeConstraints","height","setState","authoring","availableTools","classes","graphDimensions","arrows","coordinatesOnHover","labels","title","dimensionsEnabled","enabled","min","max","sizeConstraints","Math","displayedFields","axisLabel","includeAxesEnabled","standardGridEnabled","displayGridSetup","Object","values","some","field","onConfigChange","includeArrows","changeBackgroundMarks","React","Component","PropTypes","object","isRequired","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,SAAS,EAAE;AACTC,MAAAA,OAAO,EAAE,MADA;AAETC,MAAAA,QAAQ,EAAE,MAFD;AAGTC,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAH1B,KADY;AAMvBC,IAAAA,UAAU,EAAE;AACVL,MAAAA,OAAO,EAAE,MADC;AAEVM,MAAAA,aAAa,EAAE,QAFL;AAGVC,MAAAA,WAAW,EAAET,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,CAHxB;AAIVF,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB;AAJzB,KANW;AAYvBI,IAAAA,WAAW,EAAE;AACXR,MAAAA,OAAO,EAAE,MADE;AAEXM,MAAAA,aAAa,EAAE;AAFJ,KAZU;AAgBvBG,IAAAA,YAAY,EAAE;AACZC,MAAAA,SAAS,EAAEZ,KAAK,CAACK,OAAN,CAAcC,IAAd,GAAqB,GADpB;AAEZF,MAAAA,YAAY,EAAEJ,KAAK,CAACK,OAAN,CAAcC;AAFhB;AAhBS,GAAL;AAAA,CAApB;;IAsBaO,c;;;;;AASX,0BAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,8GAgBK,UAAAC,eAAe,EAAI;AACzC,UAAMC,KAAK,mCAAQ,MAAKF,KAAL,CAAWE,KAAnB;AAA0BD,QAAAA,eAAe,EAAfA;AAA1B,QAAX;;AAEA,YAAKD,KAAL,CAAWG,QAAX,CAAoBD,KAApB;A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IAAV,CAAeD;AALR,C;AAqJpB;;eAEc,wBAAWpE,MAAX,EAAmBc,cAAnB,C","sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GraphContainer, GridSetup } from '@pie-lib/graphing';\nimport { Typography } from '@material-ui/core';\nimport { withStyles } from '@material-ui/core/styles';\nimport { applyConstraints, getGridValues, getLabelValues } from './utils';\n\nconst styles = theme => ({\n container: {\n display: 'flex',\n flexWrap: 'wrap',\n marginBottom: theme.spacing.unit * 7\n },\n gridConfig: {\n display: 'flex',\n flexDirection: 'column',\n marginRight: theme.spacing.unit * 4,\n marginBottom: theme.spacing.unit * 3\n },\n graphConfig: {\n display: 'flex',\n flexDirection: 'column'\n },\n subtitleText: {\n marginTop: theme.spacing.unit * 1.5,\n marginBottom: theme.spacing.unit\n }\n});\n\nexport class GraphingConfig extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n authoring: PropTypes.object,\n graphDimensions: PropTypes.object,\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired,\n };\n\n constructor(props) {\n super(props);\n const { domain, range, graph } = props.model || {};\n\n const gridValues = {\n domain: getGridValues(domain, graph.width, true),\n range: getGridValues(range, graph.height, true)\n };\n const labelValues = {\n domain: getLabelValues(domain.step),\n range: getLabelValues(range.step)\n };\n\n this.state = { gridValues, labelValues };\n };\n\n changeBackgroundMarks = backgroundMarks => {\n const model = { ...this.props.model, backgroundMarks };\n\n this.props.onChange(model);\n };\n\n onConfigChange = config => {\n const { model, onChange } = this.props;\n const { gridValues: oldGridValues, labelValues: oldLabelValues } = this.state;\n const updatedModel = { ...model, ...config };\n const { domain, includeAxes, graph, range, standardGrid } = updatedModel;\n const gridValues = { domain: [], range: [] };\n const labelValues = { domain: [], range: [] };\n\n if (includeAxes) {\n const domainConstraints = applyConstraints(domain, graph.width, oldGridValues.domain, oldLabelValues.domain);\n\n gridValues.domain = domainConstraints.gridValues || [];\n labelValues.domain = domainConstraints.labelValues || [];\n }\n\n if (standardGrid) {\n gridValues.range = gridValues.domain;\n labelValues.range = labelValues.domain;\n range.step = domain.step;\n range.labelStep = domain.labelStep;\n } else {\n if (includeAxes) {\n const rangeConstraints = applyConstraints(range, graph.height, oldGridValues.range, oldLabelValues.range);\n\n gridValues.range = rangeConstraints.gridValues || [];\n labelValues.range = rangeConstraints.labelValues || [];\n }\n }\n\n this.setState({ gridValues, labelValues });\n onChange(updatedModel);\n };\n\n render() {\n const { authoring = {}, availableTools = [], classes, model, graphDimensions = {}} = this.props;\n const {\n arrows,\n backgroundMarks,\n coordinatesOnHover,\n domain,\n includeAxes,\n labels,\n range,\n standardGrid,\n title\n } = model || {};\n const graph = (model || {}).graph || {};\n const { enabled: dimensionsEnabled, min, max, step } = graphDimensions || {};\n const { gridValues, labelValues } = this.state;\n\n const sizeConstraints = {\n min: Math.max(150, min),\n max: Math.min(800, max),\n step: step >= 1 ? Math.min(200, step) : 20\n };\n\n const displayedFields = {\n axisLabel: authoring.axisLabel,\n dimensionsEnabled,\n includeAxesEnabled: authoring.includeAxesEnabled,\n labelStep: authoring.labelStep,\n min: authoring.min,\n max: authoring.max,\n standardGridEnabled: authoring.standardGridEnabled,\n step: authoring.step\n };\n\n const displayGridSetup = authoring.enabled &&\n Object.values(displayedFields).some(field => typeof field === 'object' ? field.enabled : field);\n\n return (\n <div className={classes.container}>\n <div className={classes.gridConfig}>\n {displayGridSetup && (\n <GridSetup\n displayedFields={displayedFields}\n domain={domain}\n dimensionsEnabled={dimensionsEnabled}\n gridValues={gridValues}\n includeAxes={includeAxes}\n labelValues={labelValues}\n range={range}\n size={graph}\n sizeConstraints={sizeConstraints}\n standardGrid={standardGrid}\n onChange={this.onConfigChange}\n />\n )}\n </div>\n\n <div className={classes.graphConfig} key=\"graph\">\n <Typography component=\"div\" variant=\"subheading\">\n <span>Define Graph Attributes</span>\n </Typography>\n\n <Typography component=\"div\" variant=\"body1\" className={classes.subtitleText}>\n <span>Use this interface to add/edit a title and/or labels, and to set background shapes</span>\n </Typography>\n\n <GraphContainer\n axesSettings={{ includeArrows: arrows }}\n backgroundMarks={[]}\n coordinatesOnHover={coordinatesOnHover}\n collapsibleToolbar={true}\n collapsibleToolbarTitle={'Add Background Shapes to Graph'}\n domain={domain}\n key=\"graphing-config\"\n labels={labels}\n marks={backgroundMarks}\n onChangeMarks={this.changeBackgroundMarks}\n range={range}\n size={{ width: graph.width, height: graph.height }}\n title={title}\n toolbarTools={availableTools}\n />\n </div>\n </div>\n );\n }\n};\n\nexport default withStyles(styles)(GraphingConfig);\n"],"file":"graphing-config.js"}
@@ -4,23 +4,113 @@
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "authoring": {
7
- "title": "ConfigurePropWithEnabled",
7
+ "title": "AuthoringConfigProp",
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "settings": {
11
- "description": "Indicates if the item has to be displayed in the Settings Panel",
11
+ "description": "Indicates if the item is displayed in the Settings Panel",
12
12
  "type": "boolean",
13
13
  "title": "settings"
14
14
  },
15
15
  "label": {
16
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
16
+ "description": "Indicates the label for the item that is displayed in the Settings Panel",
17
17
  "type": "string",
18
18
  "title": "label"
19
19
  },
20
20
  "enabled": {
21
- "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
21
+ "description": "Indicates if the Grid Setup Panel is displayed",
22
22
  "type": "boolean",
23
23
  "title": "enabled"
24
+ },
25
+ "includeAxesEnabled": {
26
+ "description": "Indicates if the \"includeAxes\" toggle is displayed in the Grid Setup Panel",
27
+ "type": "boolean",
28
+ "title": "includeAxesEnabled"
29
+ },
30
+ "standardGridEnabled": {
31
+ "description": "Indicates if the \"standardGrid\" toggle is displayed in the Grid Setup Panel",
32
+ "type": "boolean",
33
+ "title": "standardGridEnabled"
34
+ },
35
+ "min": {
36
+ "title": "GridPanelConfigProp",
37
+ "type": "object",
38
+ "properties": {
39
+ "label": {
40
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
41
+ "type": "string",
42
+ "title": "label"
43
+ },
44
+ "enabled": {
45
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
46
+ "type": "boolean",
47
+ "title": "enabled"
48
+ }
49
+ }
50
+ },
51
+ "max": {
52
+ "title": "GridPanelConfigProp",
53
+ "type": "object",
54
+ "properties": {
55
+ "label": {
56
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
57
+ "type": "string",
58
+ "title": "label"
59
+ },
60
+ "enabled": {
61
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
62
+ "type": "boolean",
63
+ "title": "enabled"
64
+ }
65
+ }
66
+ },
67
+ "axisLabel": {
68
+ "title": "GridPanelConfigProp",
69
+ "type": "object",
70
+ "properties": {
71
+ "label": {
72
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
73
+ "type": "string",
74
+ "title": "label"
75
+ },
76
+ "enabled": {
77
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
78
+ "type": "boolean",
79
+ "title": "enabled"
80
+ }
81
+ }
82
+ },
83
+ "step": {
84
+ "title": "GridPanelConfigProp",
85
+ "type": "object",
86
+ "properties": {
87
+ "label": {
88
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
89
+ "type": "string",
90
+ "title": "label"
91
+ },
92
+ "enabled": {
93
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
94
+ "type": "boolean",
95
+ "title": "enabled"
96
+ }
97
+ }
98
+ },
99
+ "labelStep": {
100
+ "title": "GridPanelConfigProp",
101
+ "type": "object",
102
+ "properties": {
103
+ "label": {
104
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
105
+ "type": "string",
106
+ "title": "label"
107
+ },
108
+ "enabled": {
109
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
110
+ "type": "boolean",
111
+ "title": "enabled"
112
+ }
113
+ }
24
114
  }
25
115
  }
26
116
  },
@@ -84,6 +174,14 @@
84
174
  }
85
175
  }
86
176
  },
177
+ "availableTools": {
178
+ "description": "Graph toolbar tools configuration",
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ },
183
+ "title": "availableTools"
184
+ },
87
185
  "coordinatesOnHover": {
88
186
  "title": "ConfigureProp",
89
187
  "type": "object",
@@ -347,22 +445,128 @@
347
445
  }
348
446
  },
349
447
  "definitions": {
350
- "ConfigurePropWithEnabled": {
351
- "title": "ConfigurePropWithEnabled",
448
+ "AuthoringConfigProp": {
449
+ "title": "AuthoringConfigProp",
352
450
  "type": "object",
353
451
  "properties": {
354
452
  "settings": {
355
- "description": "Indicates if the item has to be displayed in the Settings Panel",
453
+ "description": "Indicates if the item is displayed in the Settings Panel",
356
454
  "type": "boolean",
357
455
  "title": "settings"
358
456
  },
359
457
  "label": {
360
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
458
+ "description": "Indicates the label for the item that is displayed in the Settings Panel",
361
459
  "type": "string",
362
460
  "title": "label"
363
461
  },
364
462
  "enabled": {
365
- "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
463
+ "description": "Indicates if the Grid Setup Panel is displayed",
464
+ "type": "boolean",
465
+ "title": "enabled"
466
+ },
467
+ "includeAxesEnabled": {
468
+ "description": "Indicates if the \"includeAxes\" toggle is displayed in the Grid Setup Panel",
469
+ "type": "boolean",
470
+ "title": "includeAxesEnabled"
471
+ },
472
+ "standardGridEnabled": {
473
+ "description": "Indicates if the \"standardGrid\" toggle is displayed in the Grid Setup Panel",
474
+ "type": "boolean",
475
+ "title": "standardGridEnabled"
476
+ },
477
+ "min": {
478
+ "title": "GridPanelConfigProp",
479
+ "type": "object",
480
+ "properties": {
481
+ "label": {
482
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
483
+ "type": "string",
484
+ "title": "label"
485
+ },
486
+ "enabled": {
487
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
488
+ "type": "boolean",
489
+ "title": "enabled"
490
+ }
491
+ }
492
+ },
493
+ "max": {
494
+ "title": "GridPanelConfigProp",
495
+ "type": "object",
496
+ "properties": {
497
+ "label": {
498
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
499
+ "type": "string",
500
+ "title": "label"
501
+ },
502
+ "enabled": {
503
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
504
+ "type": "boolean",
505
+ "title": "enabled"
506
+ }
507
+ }
508
+ },
509
+ "axisLabel": {
510
+ "title": "GridPanelConfigProp",
511
+ "type": "object",
512
+ "properties": {
513
+ "label": {
514
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
515
+ "type": "string",
516
+ "title": "label"
517
+ },
518
+ "enabled": {
519
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
520
+ "type": "boolean",
521
+ "title": "enabled"
522
+ }
523
+ }
524
+ },
525
+ "step": {
526
+ "title": "GridPanelConfigProp",
527
+ "type": "object",
528
+ "properties": {
529
+ "label": {
530
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
531
+ "type": "string",
532
+ "title": "label"
533
+ },
534
+ "enabled": {
535
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
536
+ "type": "boolean",
537
+ "title": "enabled"
538
+ }
539
+ }
540
+ },
541
+ "labelStep": {
542
+ "title": "GridPanelConfigProp",
543
+ "type": "object",
544
+ "properties": {
545
+ "label": {
546
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
547
+ "type": "string",
548
+ "title": "label"
549
+ },
550
+ "enabled": {
551
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
552
+ "type": "boolean",
553
+ "title": "enabled"
554
+ }
555
+ }
556
+ }
557
+ }
558
+ },
559
+ "GridPanelConfigProp": {
560
+ "title": "GridPanelConfigProp",
561
+ "type": "object",
562
+ "properties": {
563
+ "label": {
564
+ "description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
565
+ "type": "string",
566
+ "title": "label"
567
+ },
568
+ "enabled": {
569
+ "description": "Indicates if the item is displayed in the Grid Setup Panel",
366
570
  "type": "boolean",
367
571
  "title": "enabled"
368
572
  }
@@ -491,6 +695,27 @@
491
695
  }
492
696
  }
493
697
  },
698
+ "ConfigurePropWithEnabled": {
699
+ "title": "ConfigurePropWithEnabled",
700
+ "type": "object",
701
+ "properties": {
702
+ "settings": {
703
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
704
+ "type": "boolean",
705
+ "title": "settings"
706
+ },
707
+ "label": {
708
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
709
+ "type": "string",
710
+ "title": "label"
711
+ },
712
+ "enabled": {
713
+ "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
714
+ "type": "boolean",
715
+ "title": "enabled"
716
+ }
717
+ }
718
+ },
494
719
  "ConfigureMaxImageDimensionsProp": {
495
720
  "title": "ConfigureMaxImageDimensionsProp",
496
721
  "type": "object",
@@ -514,4 +739,4 @@
514
739
  }
515
740
  },
516
741
  "$schema": "http://json-schema.org/draft-07/schema#"
517
- }
742
+ }
@@ -8,16 +8,83 @@ Properties of the `authoring` object:
8
8
 
9
9
  ## `settings` (boolean)
10
10
 
11
- Indicates if the item has to be displayed in the Settings Panel
11
+ Indicates if the item is displayed in the Settings Panel
12
12
 
13
13
  ## `label` (string)
14
14
 
15
- Indicates the label for the item that has to be displayed in the Settings Panel
15
+ Indicates the label for the item that is displayed in the Settings Panel
16
16
 
17
17
  ## `enabled` (boolean)
18
18
 
19
- Indicates the value of the item if it affects config-ui
20
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
19
+ Indicates if the Grid Setup Panel is displayed
20
+
21
+ ## `includeAxesEnabled` (boolean)
22
+
23
+ Indicates if the "includeAxes" toggle is displayed in the Grid Setup Panel
24
+
25
+ ## `standardGridEnabled` (boolean)
26
+
27
+ Indicates if the "standardGrid" toggle is displayed in the Grid Setup Panel
28
+
29
+ ## `min` (object)
30
+
31
+ Properties of the `min` object:
32
+
33
+ ### `label` (string)
34
+
35
+ Indicates the label for the item that is displayed in the Grid Setup Panel
36
+
37
+ ### `enabled` (boolean)
38
+
39
+ Indicates if the item is displayed in the Grid Setup Panel
40
+
41
+ ## `max` (object)
42
+
43
+ Properties of the `max` object:
44
+
45
+ ### `label` (string)
46
+
47
+ Indicates the label for the item that is displayed in the Grid Setup Panel
48
+
49
+ ### `enabled` (boolean)
50
+
51
+ Indicates if the item is displayed in the Grid Setup Panel
52
+
53
+ ## `axisLabel` (object)
54
+
55
+ Properties of the `axisLabel` object:
56
+
57
+ ### `label` (string)
58
+
59
+ Indicates the label for the item that is displayed in the Grid Setup Panel
60
+
61
+ ### `enabled` (boolean)
62
+
63
+ Indicates if the item is displayed in the Grid Setup Panel
64
+
65
+ ## `step` (object)
66
+
67
+ Properties of the `step` object:
68
+
69
+ ### `label` (string)
70
+
71
+ Indicates the label for the item that is displayed in the Grid Setup Panel
72
+
73
+ ### `enabled` (boolean)
74
+
75
+ Indicates if the item is displayed in the Grid Setup Panel
76
+
77
+ ## `labelStep` (object)
78
+
79
+ Properties of the `labelStep` object:
80
+
81
+ ### `label` (string)
82
+
83
+ Indicates the label for the item that is displayed in the Grid Setup Panel
84
+
85
+ ### `enabled` (boolean)
86
+
87
+ Indicates if the item is displayed in the Grid Setup Panel
21
88
 
22
89
  # `arrows` (object)
23
90
 
@@ -63,6 +130,12 @@ Properties of the `down` object:
63
130
 
64
131
  Indicates the label for the arrow that has to be displayed in the Settings Panel
65
132
 
133
+ # `availableTools` (array)
134
+
135
+ Graph toolbar tools configuration
136
+
137
+ The object is an array with all elements of the type `string`.
138
+
66
139
  # `coordinatesOnHover` (object)
67
140
 
68
141
  Properties of the `coordinatesOnHover` object:
@@ -272,22 +345,101 @@ Default: `true`
272
345
 
273
346
  The schema defines the following additional types:
274
347
 
275
- ## `ConfigurePropWithEnabled` (object)
348
+ ## `AuthoringConfigProp` (object)
276
349
 
277
- Properties of the `ConfigurePropWithEnabled` object:
350
+ Properties of the `AuthoringConfigProp` object:
278
351
 
279
352
  ### `settings` (boolean)
280
353
 
281
- Indicates if the item has to be displayed in the Settings Panel
354
+ Indicates if the item is displayed in the Settings Panel
282
355
 
283
356
  ### `label` (string)
284
357
 
285
- Indicates the label for the item that has to be displayed in the Settings Panel
358
+ Indicates the label for the item that is displayed in the Settings Panel
286
359
 
287
360
  ### `enabled` (boolean)
288
361
 
289
- Indicates the value of the item if it affects config-ui
290
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
362
+ Indicates if the Grid Setup Panel is displayed
363
+
364
+ ### `includeAxesEnabled` (boolean)
365
+
366
+ Indicates if the "includeAxes" toggle is displayed in the Grid Setup Panel
367
+
368
+ ### `standardGridEnabled` (boolean)
369
+
370
+ Indicates if the "standardGrid" toggle is displayed in the Grid Setup Panel
371
+
372
+ ### `min` (object)
373
+
374
+ Properties of the `min` object:
375
+
376
+ #### `label` (string)
377
+
378
+ Indicates the label for the item that is displayed in the Grid Setup Panel
379
+
380
+ #### `enabled` (boolean)
381
+
382
+ Indicates if the item is displayed in the Grid Setup Panel
383
+
384
+ ### `max` (object)
385
+
386
+ Properties of the `max` object:
387
+
388
+ #### `label` (string)
389
+
390
+ Indicates the label for the item that is displayed in the Grid Setup Panel
391
+
392
+ #### `enabled` (boolean)
393
+
394
+ Indicates if the item is displayed in the Grid Setup Panel
395
+
396
+ ### `axisLabel` (object)
397
+
398
+ Properties of the `axisLabel` object:
399
+
400
+ #### `label` (string)
401
+
402
+ Indicates the label for the item that is displayed in the Grid Setup Panel
403
+
404
+ #### `enabled` (boolean)
405
+
406
+ Indicates if the item is displayed in the Grid Setup Panel
407
+
408
+ ### `step` (object)
409
+
410
+ Properties of the `step` object:
411
+
412
+ #### `label` (string)
413
+
414
+ Indicates the label for the item that is displayed in the Grid Setup Panel
415
+
416
+ #### `enabled` (boolean)
417
+
418
+ Indicates if the item is displayed in the Grid Setup Panel
419
+
420
+ ### `labelStep` (object)
421
+
422
+ Properties of the `labelStep` object:
423
+
424
+ #### `label` (string)
425
+
426
+ Indicates the label for the item that is displayed in the Grid Setup Panel
427
+
428
+ #### `enabled` (boolean)
429
+
430
+ Indicates if the item is displayed in the Grid Setup Panel
431
+
432
+ ## `GridPanelConfigProp` (object)
433
+
434
+ Properties of the `GridPanelConfigProp` object:
435
+
436
+ ### `label` (string)
437
+
438
+ Indicates the label for the item that is displayed in the Grid Setup Panel
439
+
440
+ ### `enabled` (boolean)
441
+
442
+ Indicates if the item is displayed in the Grid Setup Panel
291
443
 
292
444
  ## `ArrowsConfigProp` (object)
293
445
 
@@ -381,6 +533,23 @@ Indicates the maximum value for the graph width and height
381
533
 
382
534
  Indicates the increase/decrease value for the graph width and height
383
535
 
536
+ ## `ConfigurePropWithEnabled` (object)
537
+
538
+ Properties of the `ConfigurePropWithEnabled` object:
539
+
540
+ ### `settings` (boolean)
541
+
542
+ Indicates if the item has to be displayed in the Settings Panel
543
+
544
+ ### `label` (string)
545
+
546
+ Indicates the label for the item that has to be displayed in the Settings Panel
547
+
548
+ ### `enabled` (boolean)
549
+
550
+ Indicates the value of the item if it affects config-ui
551
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
552
+
384
553
  ## `ConfigureMaxImageDimensionsProp` (object)
385
554
 
386
555
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -395,4 +564,4 @@ Indicates the max dimension for images in prompt - this is also the default dime
395
564
 
396
565
  ### `rationale` (number)
397
566
 
398
- Indicates the max dimension for images in rationale
567
+ Indicates the max dimension for images in rationale