bare-script 4.0.0__tar.gz → 4.0.2__tar.gz

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.
Files changed (42) hide show
  1. {bare_script-4.0.0/src/bare_script.egg-info → bare_script-4.0.2}/PKG-INFO +1 -1
  2. {bare_script-4.0.0 → bare_script-4.0.2}/setup.cfg +1 -1
  3. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/dataLineChart.bare +4 -6
  4. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/options.py +1 -1
  5. {bare_script-4.0.0 → bare_script-4.0.2/src/bare_script.egg-info}/PKG-INFO +1 -1
  6. {bare_script-4.0.0 → bare_script-4.0.2}/LICENSE +0 -0
  7. {bare_script-4.0.0 → bare_script-4.0.2}/README.md +0 -0
  8. {bare_script-4.0.0 → bare_script-4.0.2}/pyproject.toml +0 -0
  9. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/__init__.py +0 -0
  10. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/__main__.py +0 -0
  11. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/bare.py +0 -0
  12. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/__init__.py +0 -0
  13. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/args.bare +0 -0
  14. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/baredoc.bare +0 -0
  15. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/baredocCLI.bare +0 -0
  16. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/data.bare +0 -0
  17. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/dataTable.bare +0 -0
  18. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/dataUtil.bare +0 -0
  19. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/diff.bare +0 -0
  20. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/draw.bare +0 -0
  21. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/elementModel.bare +0 -0
  22. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/forms.bare +0 -0
  23. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/markdown.bare +0 -0
  24. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/markdownElements.bare +0 -0
  25. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/markdownHighlight.bare +0 -0
  26. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/markdownParser.bare +0 -0
  27. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/markdownUp.bare +0 -0
  28. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/pager.bare +0 -0
  29. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/qrcode.bare +0 -0
  30. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/schemaDoc.bare +0 -0
  31. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/unittest.bare +0 -0
  32. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/include/unittestMock.bare +0 -0
  33. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/library.py +0 -0
  34. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/model.py +0 -0
  35. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/parser.py +0 -0
  36. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/runtime.py +0 -0
  37. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script/value.py +0 -0
  38. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script.egg-info/SOURCES.txt +0 -0
  39. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script.egg-info/dependency_links.txt +0 -0
  40. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script.egg-info/entry_points.txt +0 -0
  41. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script.egg-info/requires.txt +0 -0
  42. {bare_script-4.0.0 → bare_script-4.0.2}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 4.0.0
3
+ Version: 4.0.2
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = bare-script
3
- version = 4.0.0
3
+ version = 4.0.2
4
4
  url = https://github.com/craigahobbs/bare-script
5
5
  author = Craig A. Hobbs
6
6
  author_email = craigahobbs@gmail.com
@@ -135,11 +135,10 @@ dataLineChartCategoricalColors = [ \
135
135
 
136
136
 
137
137
  # Line chart constants (all numbers in pixels)
138
- dataLineChartPixelsPerPoint = 4 / 3
139
138
  dataLineChartSvgPrecision = 3
140
139
  dataLineChartChartFontFamily = 'Arial, Helvetica, sans-serif'
141
140
  dataLineChartChartFontWidthRatio = 0.6
142
- dataLineChartChartFontDefaultSize = 12
141
+ dataLineChartChartFontDefaultSizePx = 16
143
142
  dataLineChartChartBackgroundColor = 'white'
144
143
  dataLineChartAxisColor = 'black'
145
144
  dataLineChartAxisTickLineColor = 'lightgray'
@@ -159,7 +158,7 @@ dataLineChartChartLineWidth = 3
159
158
  # $arg data: The data array
160
159
  # $arg lineChart: The [line chart model](model.html#var.vName='DataLineChart')
161
160
  # $arg options: Optional (default is null). The line chart options object with the following optional members:
162
- # $arg options: - **fontSize** - The font size, in points
161
+ # $arg options: - **fontSize** - The font size, in pixels
163
162
  function dataLineChart(data, lineChart, options):
164
163
  elementModelRender = systemGlobalGet('elementModelRender')
165
164
  elementModelRender({'html': 'p', 'elem': dataLineChartElements(data, lineChart, options)})
@@ -172,11 +171,10 @@ endfunction
172
171
  # $arg data: The data array
173
172
  # $arg lineChart: The [line chart model](model.html#var.vName='DataLineChart')
174
173
  # $arg options: Optional (default is null). The line chart options object with the following optional members:
175
- # $arg options: - **fontSize** - The font size, in points
174
+ # $arg options: - **fontSize** - The font size, in pixels
176
175
  # $return: The line chart [element model](https://github.com/craigahobbs/element-model#readme)
177
176
  function dataLineChartElements(data, lineChart, options):
178
- chartFontSize = dataLineChartPixelsPerPoint * \
179
- if(options != null && objectHas(options, 'fontSize'), objectGet(options, 'fontSize'), dataLineChartChartFontDefaultSize)
177
+ chartFontSize = if(options, objectGet(options, 'fontSize', dataLineChartChartFontDefaultSizePx), dataLineChartChartFontDefaultSizePx)
180
178
  xField = objectGet(lineChart, 'x')
181
179
  yFields = objectGet(lineChart, 'y')
182
180
  colorField = objectGet(lineChart, 'color')
@@ -99,7 +99,7 @@ def fetch_system(fetch_fn, request):
99
99
 
100
100
 
101
101
  # The system include prefix to use in conjunction with the `fetchSystem` function.
102
- FETCH_SYSTEM_PREFIX = ':bare-include:/'
102
+ FETCH_SYSTEM_PREFIX = ':bare-include:' + os.sep
103
103
 
104
104
 
105
105
  def log_stdout(text):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 4.0.0
3
+ Version: 4.0.2
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
File without changes
File without changes
File without changes