@bhbr/minter 1.0.0 → 1.0.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.
Files changed (58) hide show
  1. package/README.md +4 -1
  2. package/dist/{paper → apis}/APILoader.d.ts +0 -1
  3. package/dist/apis/APILoader.d.ts.map +1 -0
  4. package/dist/{paper → apis}/APILoader.js +0 -2
  5. package/dist/apis/APILoader.js.map +1 -0
  6. package/dist/apis/cindyjs/CindyCanvas.d.ts +33 -0
  7. package/dist/apis/cindyjs/CindyCanvas.d.ts.map +1 -0
  8. package/dist/apis/cindyjs/CindyCanvas.js +173 -0
  9. package/dist/apis/cindyjs/CindyCanvas.js.map +1 -0
  10. package/dist/apis/cindyjs/CindyLoader.d.ts +6 -0
  11. package/dist/apis/cindyjs/CindyLoader.d.ts.map +1 -0
  12. package/dist/apis/cindyjs/CindyLoader.js +26 -0
  13. package/dist/apis/cindyjs/CindyLoader.js.map +1 -0
  14. package/dist/apis/desmos/DesmosCalculator.d.ts +32 -0
  15. package/dist/apis/desmos/DesmosCalculator.d.ts.map +1 -0
  16. package/dist/apis/desmos/DesmosCalculator.js +130 -0
  17. package/dist/apis/desmos/DesmosCalculator.js.map +1 -0
  18. package/dist/apis/desmos/DesmosLoader.d.ts +5 -0
  19. package/dist/apis/desmos/DesmosLoader.d.ts.map +1 -0
  20. package/dist/apis/desmos/DesmosLoader.js +17 -0
  21. package/dist/apis/desmos/DesmosLoader.js.map +1 -0
  22. package/dist/apis/mathquill/MathQuillInputField.d.ts +29 -0
  23. package/dist/apis/mathquill/MathQuillInputField.d.ts.map +1 -0
  24. package/dist/apis/mathquill/MathQuillInputField.js +129 -0
  25. package/dist/apis/mathquill/MathQuillInputField.js.map +1 -0
  26. package/dist/apis/mathquill/MathQuillLoader.d.ts +5 -0
  27. package/dist/apis/mathquill/MathQuillLoader.d.ts.map +1 -0
  28. package/dist/apis/mathquill/MathQuillLoader.js +28 -0
  29. package/dist/apis/mathquill/MathQuillLoader.js.map +1 -0
  30. package/dist/creators/SpanningCreator.d.ts +1 -1
  31. package/dist/creators/SpanningCreator.d.ts.map +1 -1
  32. package/dist/creators/SpanningCreator.js +6 -6
  33. package/dist/creators/SpanningCreator.js.map +1 -1
  34. package/dist/index.d.ts +9 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +9 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/linkables/constants.js +1 -1
  39. package/dist/paper/Paper.d.ts +1 -1
  40. package/dist/paper/Paper.d.ts.map +1 -1
  41. package/dist/paper/Paper.js.map +1 -1
  42. package/dist/paper/initPaper.js +3 -2
  43. package/dist/paper/initPaper.js.map +1 -1
  44. package/dist/ui/PlayButton.d.ts +10 -0
  45. package/dist/ui/PlayButton.d.ts.map +1 -0
  46. package/dist/ui/PlayButton.js +31 -0
  47. package/dist/ui/PlayButton.js.map +1 -0
  48. package/dist/ui/Playable.d.ts +7 -0
  49. package/dist/ui/Playable.d.ts.map +1 -0
  50. package/dist/ui/Playable.js +2 -0
  51. package/dist/ui/Playable.js.map +1 -0
  52. package/html/minter.css +50 -0
  53. package/html/minter.html +51 -0
  54. package/html/paper.html +38 -0
  55. package/html/sidebar.html +36 -0
  56. package/package.json +7 -3
  57. package/dist/paper/APILoader.d.ts.map +0 -1
  58. package/dist/paper/APILoader.js.map +0 -1
@@ -0,0 +1,36 @@
1
+ <!-- This variant of minter.html contains only the Sidebar. It is used in the native iPad app so it can simultaneously recognize finger and pen input. Modify it alongside minter.html. -->
2
+
3
+
4
+ <!DOCTYPE html>
5
+ <html>
6
+ <head>
7
+ <meta name="viewport" content="initial-scale=1.0, width=device-width, height=device-height, maximum-scale=1.0, user-scalable=0" charset="utf-8"/>
8
+ <link rel="stylesheet" href="./minter.css">
9
+
10
+ <script type="importmap">
11
+ {
12
+ "minter/": "../dist/",
13
+ "@bhbr/tsts": "../node_modules/@bhbr/tsts/dist/index.js",
14
+ "@bhbr/egalite": "../node_modules/@bhbr/egalite/dist/index.js",
15
+ "@bhbr/copycat": "../node_modules/@bhbr/copycat/dist/index.js",
16
+ "@bhbr/betray": "../node_modules/@bhbr/betray/dist/index.js",
17
+ "@bhbr/upper-class": "../node_modules/@bhbr/upper-class/dist/index.js",
18
+ "@bhbr/better-things": "../node_modules/@bhbr/better-things/dist/index.js",
19
+ "@bhbr/affr2": "../node_modules/@bhbr/affr2/dist/index.js",
20
+ "cindyjs/": "../node_modules/cindyjs/",
21
+ "mathquill/": "../node_modules/mathquill/",
22
+ "jQuery/": "../node_modules/jQuery/"
23
+ }
24
+ }
25
+ </script>
26
+ </head>
27
+
28
+ <body class="ipad" style="overflow: hidden;">
29
+ <div id="sidebar_id" style="background-color: transparent;">
30
+ </div>
31
+ <div id="htmlConsole" hidden style="width: 300px; height: 300px; position: fixed; bottom: 50px; background-color: red; color: white; white-space: pre; opacity: 0.5; font-size: 14px; font-family: Helvetica; overflow: auto;"></div>
32
+
33
+ <script type="module" src="../dist/sidebar/Sidebar.js"></script>
34
+ <script type="module" src="../dist/sidebar/initSidebar.js"></script>
35
+ </body>
36
+ </html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bhbr/minter",
3
- "version": "1.0.0",
4
- "description": "Minter (INTERactive Math objects) is a framework for creating and linking interactive objects of any kind on an infinite canvas. Its primary purpose is to explore mathematical concepts. \n - Demo video: https://youtu.be/c5QlDq5Jd4I?si=pIsPE44oB4oXDdj6 \n - Sample project: https://github.com/bhbr/minter-sample-project",
3
+ "version": "1.0.3",
4
+ "description": "INTERactive Math objects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "files": [
15
15
  "dist",
16
+ "html",
16
17
  "!dist/_tests"
17
18
  ],
18
19
  "scripts": {
@@ -38,8 +39,11 @@
38
39
  "@bhbr/affr2": "^1.0.0",
39
40
  "@bhbr/betray": "^1.0.0",
40
41
  "@bhbr/better-things": "^1.0.0",
42
+ "@bhbr/copycat": "^1.0.0",
41
43
  "@bhbr/egalite": "^1.2.0",
42
44
  "@bhbr/upper-class": "^1.0.0",
43
- "@bhbr/copycat": "^1.0.0"
45
+ "cindyjs": "^0.0.5",
46
+ "jquery": "^4.0.0",
47
+ "mathquill": "^0.10.1-a"
44
48
  }
45
49
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"APILoader.d.ts","sourceRoot":"","sources":["../../src/paper/APILoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,KAAK,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAErD,qBAAa,SAAU,SAAQ,YAAY;IAE1C,MAAM,EAAE,aAAa,CAAA;IAErB,QAAQ,IAAI,MAAM;IAMlB,IAAI;IAOJ,MAAM;CAGN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"APILoader.js","sourceRoot":"","sources":["../../src/paper/APILoader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,OAAO,SAAU,SAAQ,YAAY;IAI1C,QAAQ;QACP,OAAO;YACN,MAAM,EAAE,SAAS;SACjB,CAAA;IACF,CAAC;IAED,IAAI;QACH,IAAI,CAAC,MAAM,CAAC;YACX,MAAM,EAAE,QAAQ;SAChB,CAAC,CAAA;QACF,QAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IAC3B,CAAC;IAED,MAAM;IAEN,CAAC;CACD"}