bare-script 3.8.17 → 3.8.18

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.
@@ -595,6 +595,7 @@ endfunction
595
595
  # $group: markdownUp.bare: window
596
596
  # $doc: Write text to the clipboard
597
597
  # $arg text: The text to write
598
+ # $arg type: The clipboard content type (default is "text/plain")
598
599
  function windowClipboardWrite(text):
599
600
  return objectSet(markdownUpState, 'windowClipboard', text)
600
601
  endfunction
package/lib/library.js CHANGED
@@ -950,6 +950,15 @@ const mathCosArgs = valueArgsModel([
950
950
  ]);
951
951
 
952
952
 
953
+ // $function: mathE
954
+ // $group: math
955
+ // $doc: Return Euler's number
956
+ // $return: Euler's number
957
+ function mathE() {
958
+ return Math.E;
959
+ }
960
+
961
+
953
962
  // $function: mathFloor
954
963
  // $group: math
955
964
  // $doc: Compute the floor of a number (round down to the next lowest integer)
@@ -2306,6 +2315,7 @@ export const scriptFunctions = {
2306
2315
  mathAtan2,
2307
2316
  mathCeil,
2308
2317
  mathCos,
2318
+ mathE,
2309
2319
  mathFloor,
2310
2320
  mathLn,
2311
2321
  mathLog,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "bare-script",
4
- "version": "3.8.17",
4
+ "version": "3.8.18",
5
5
  "description": "BareScript; a lightweight scripting and expression language",
6
6
  "keywords": [
7
7
  "expression",