jsxgraph 1.4.5 → 1.4.6

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 (54) hide show
  1. package/build/Readme.md +17 -0
  2. package/build/bin/jsxcompressor.js +1 -0
  3. package/build/bin/jsxgraphcore-min.js +7 -0
  4. package/build/bin/jsxgraphcore.js +83017 -0
  5. package/build/bin/jsxgraphcore.min.js +67 -0
  6. package/build/compressor.build.json +14 -0
  7. package/build/compressor.deps.js +8 -0
  8. package/build/core-amd.build.json +14 -0
  9. package/build/core-amd.deps.js +81 -0
  10. package/build/core.build.json +14 -0
  11. package/build/core.deps.js +102 -0
  12. package/build/plot.build.json +15 -0
  13. package/distrib/geogebra.min.js +1 -1
  14. package/distrib/geonext.min.js +1 -1
  15. package/distrib/index.d.ts +1 -0
  16. package/distrib/intergeo.min.js +1 -1
  17. package/distrib/jsxgraph.css +6 -0
  18. package/distrib/jsxgraphcore.js +3 -3
  19. package/distrib/jsxgraphsrc.js +3326 -1816
  20. package/distrib/sketch.min.js +1 -1
  21. package/package.json +1 -1
  22. package/src/3d/box3d.js +43 -38
  23. package/src/3d/curve3d.js +157 -53
  24. package/src/3d/element3d.js +84 -0
  25. package/src/3d/linspace3d.js +427 -146
  26. package/src/3d/point3d.js +352 -153
  27. package/src/3d/surface3d.js +140 -42
  28. package/src/3d/view3d.js +319 -164
  29. package/src/base/board.js +42 -26
  30. package/src/base/constants.js +8 -1
  31. package/src/base/curve.js +51 -9
  32. package/src/base/polygon.js +111 -69
  33. package/src/base/text.js +125 -51
  34. package/src/base/ticks.js +11 -2
  35. package/src/element/button.js +7 -3
  36. package/src/element/checkbox.js +8 -4
  37. package/src/element/composition.js +7 -1
  38. package/src/element/conic.js +2 -2
  39. package/src/element/input.js +9 -5
  40. package/src/jsxgraph.js +2 -0
  41. package/src/loadjsxgraph.js +13 -8
  42. package/src/math/clip.js +34 -134
  43. package/src/math/geometry.js +204 -3
  44. package/src/math/math.js +1 -2
  45. package/src/math/nlp.js +789 -730
  46. package/src/options.js +159 -8
  47. package/src/options3d.js +24 -7
  48. package/src/parser/jessiecode.js +8 -2
  49. package/src/renderer/abstract.js +26 -15
  50. package/src/renderer/canvas.js +2 -2
  51. package/src/renderer/svg.js +15 -2
  52. package/src/utils/env.js +29 -46
  53. package/src/utils/type.js +75 -2
  54. package/src/3d/threed.js +0 -38
@@ -0,0 +1,14 @@
1
+ {
2
+ "baseUrl": "../src/",
3
+ "name": "../node_modules/almond/almond",
4
+ "include": [
5
+ "../build/compressor.deps.js"
6
+ ],
7
+ "wrap": {
8
+ "start": "(function () {",
9
+ "end": "window.JXG = require('../build/compressor.deps.js');}())"
10
+ },
11
+ "out": './bin/jsxcompressor.js',
12
+ "optimize": "uglify2",
13
+ "preserveLicenseComments": false
14
+ }
@@ -0,0 +1,8 @@
1
+ define(['jxg', 'utils/zip', 'utils/base64'], function (JXG, Zip, Base64) {
2
+ JXG.decompress = function (str) {
3
+ //return unescape((new Zip.Unzip(Base64.decodeAsArray(str))).unzip()[0][0]);
4
+ return decodeURIComponent((new Zip.Unzip(Base64.decodeAsArray(str))).unzip()[0][0]);
5
+ };
6
+
7
+ return JXG;
8
+ });
@@ -0,0 +1,14 @@
1
+ {
2
+ "baseUrl": "../src/",
3
+ "name": "../node_modules/almond/almond",
4
+ "include": [
5
+ "../build/core-amd.deps.js"
6
+ ],
7
+ "wrap": {
8
+ "start": "define(function () {\n",
9
+ "end": "\n\nreturn require('../build/core-amd.deps.js');\n}());"
10
+ },
11
+ "out": './bin/jsxgraphcore-amd.js',
12
+ "optimize": "uglify2",
13
+ "preserveLicenseComments": false
14
+ }
@@ -0,0 +1,81 @@
1
+ /*global define: true*/
2
+ define([
3
+ 'jxg',
4
+ 'utils/env',
5
+ 'base/constants',
6
+ 'utils/type',
7
+ 'utils/xml',
8
+ 'utils/event',
9
+ 'utils/expect',
10
+ 'math/math',
11
+ 'math/extrapolate',
12
+ 'math/qdt',
13
+ 'math/numerics',
14
+ 'math/statistics',
15
+ 'math/symbolic',
16
+ 'math/geometry',
17
+ 'math/clip',
18
+ 'math/poly',
19
+ 'math/complex',
20
+ 'renderer/abstract',
21
+ 'renderer/no',
22
+ 'reader/file',
23
+ 'parser/geonext',
24
+ 'base/board',
25
+ 'options',
26
+ 'jsxgraph',
27
+ 'base/element',
28
+ 'base/coords',
29
+ 'base/point',
30
+ 'base/line',
31
+ 'base/group',
32
+ 'base/circle',
33
+ 'element/conic',
34
+ 'base/polygon',
35
+ 'base/curve',
36
+ 'element/arc',
37
+ 'element/sector',
38
+ 'base/composition',
39
+ 'element/composition',
40
+ 'element/locus',
41
+ 'base/text',
42
+ 'base/image',
43
+ 'element/slider',
44
+ 'element/measure',
45
+ 'base/chart',
46
+ 'base/transformation',
47
+ 'base/turtle',
48
+ 'utils/color',
49
+ 'base/ticks',
50
+ 'utils/zip',
51
+ 'utils/base64',
52
+ 'utils/uuid',
53
+ 'utils/encoding',
54
+ 'server/server',
55
+ 'element/locus',
56
+ 'parser/datasource',
57
+ 'parser/jessiecode',
58
+ 'utils/dump',
59
+ 'renderer/svg',
60
+ 'renderer/vml',
61
+ 'renderer/canvas',
62
+ 'renderer/no',
63
+ 'element/comb',
64
+ 'element/slopetriangle',
65
+ 'element/checkbox',
66
+ 'element/input',
67
+ 'element/button',
68
+ 'base/foreignobject',
69
+ 'options3d',
70
+ '3d/box3d',
71
+ '3d/curve3d',
72
+ '3d/linspace3d',
73
+ '3d/point3d',
74
+ '3d/surface3d',
75
+ '3d/threed',
76
+ '3d/view3d'
77
+ ], function (JXG) {
78
+ "use strict";
79
+
80
+ return JXG;
81
+ });
@@ -0,0 +1,14 @@
1
+ {
2
+ "baseUrl": "../src/",
3
+ "name": "../node_modules/almond/almond",
4
+ "include": [
5
+ "../build/core.deps.js"
6
+ ],
7
+ "wrap": {
8
+ "start": "(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define('jsxgraphcore', [], factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n root.returnExports = factory();\n }\n}(typeof self !== 'undefined' ? self : this, function () {\n",
9
+ "end": " return require('../build/core.deps.js');\n}));"
10
+ },
11
+ "out": "./bin/jsxgraphcore.js",
12
+ "optimize": "none",
13
+ "preserveLicenseComments": false
14
+ }
@@ -0,0 +1,102 @@
1
+ /*global define: true*/
2
+ define([
3
+ 'jxg',
4
+ 'utils/env',
5
+ 'base/constants',
6
+ 'utils/type',
7
+ 'utils/xml',
8
+ 'utils/event',
9
+ 'utils/expect',
10
+ 'math/math',
11
+ 'math/probfuncs',
12
+ 'math/ia',
13
+ 'math/extrapolate',
14
+ 'math/qdt',
15
+ 'math/numerics',
16
+ 'math/nlp',
17
+ 'math/plot',
18
+ 'math/metapost',
19
+ 'math/statistics',
20
+ 'math/symbolic',
21
+ 'math/geometry',
22
+ 'math/clip',
23
+ 'math/poly',
24
+ 'math/complex',
25
+ 'renderer/abstract',
26
+ 'reader/file',
27
+ 'parser/geonext',
28
+ 'base/board',
29
+ 'options',
30
+ 'jsxgraph',
31
+ 'base/element',
32
+ 'base/coords',
33
+ 'base/coordselement',
34
+ 'base/point',
35
+ 'base/line',
36
+ 'base/group',
37
+ 'base/circle',
38
+ 'element/conic',
39
+ 'base/polygon',
40
+ 'base/curve',
41
+ 'element/arc',
42
+ 'element/sector',
43
+ 'base/composition',
44
+ 'element/composition',
45
+ 'element/locus',
46
+ 'base/text',
47
+ 'base/image',
48
+ 'element/slider',
49
+ 'element/measure',
50
+ 'base/chart',
51
+ 'base/transformation',
52
+ 'base/turtle',
53
+ 'utils/color',
54
+ 'base/ticks',
55
+ 'utils/zip',
56
+ 'utils/base64',
57
+ 'utils/uuid',
58
+ 'utils/encoding',
59
+ 'server/server',
60
+ 'parser/datasource',
61
+ 'parser/jessiecode',
62
+ 'parser/ca',
63
+ 'utils/dump',
64
+ 'renderer/svg',
65
+ 'renderer/vml',
66
+ 'renderer/canvas',
67
+ 'renderer/no',
68
+ 'element/comb',
69
+ 'element/slopetriangle',
70
+ 'element/checkbox',
71
+ 'element/input',
72
+ 'element/button',
73
+ 'base/foreignobject',
74
+ 'options3d',
75
+ '3d/view3d',
76
+ '3d/element3d',
77
+ '3d/box3d',
78
+ '3d/point3d',
79
+ '3d/curve3d',
80
+ '3d/linspace3d',
81
+ '3d/surface3d'
82
+ ], function (JXG, Env) {
83
+ "use strict";
84
+
85
+ // We're in the browser, export JXG to the global JXG symbol for backwards compatibility
86
+ if (Env.isBrowser) {
87
+ window.JXG = JXG;
88
+
89
+ // In node there are two cases:
90
+ // 1) jsxgraph is used without requirejs (e.g. as jsxgraphcore.js)
91
+ // 2) jsxgraph is loaded using requirejs (e.g. the dev version)
92
+ //
93
+ // in case 2) module is undefined, the export is set in src/jsxgraphnode.js using
94
+ // the return value of this factory function
95
+ } else if (Env.isNode() && typeof module === 'object') {
96
+ module.exports = JXG;
97
+ } else if (Env.isWebWorker()) {
98
+ self.JXG = JXG;
99
+ }
100
+
101
+ return JXG;
102
+ });
@@ -0,0 +1,15 @@
1
+ {
2
+ "baseUrl": "../src/",
3
+ "name": "../node_modules/almond/almond",
4
+ "include": [
5
+ "jsxgraph",
6
+ "base/curve"
7
+ ],
8
+ "wrap": {
9
+ "start": "(function () {",
10
+ "end": "window.JXG = require('jxg');}())"
11
+ },
12
+ "out": './bin/jxgplot.js',
13
+ "optimize": "uglify2",
14
+ "preserveLicenseComments": false
15
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- JSXGraph 1.4.5
2
+ JSXGraph 1.4.6
3
3
 
4
4
  Copyright 2008-2022
5
5
  Matthias Ehmann,
@@ -1,5 +1,5 @@
1
1
  /*
2
- JSXGraph 1.4.5
2
+ JSXGraph 1.4.6
3
3
 
4
4
  Copyright 2008-2022
5
5
  Matthias Ehmann,
@@ -4956,6 +4956,7 @@ declare namespace JXG {
4956
4956
  display?: 'html' | 'internal';
4957
4957
  dragArea?: 'all' | 'small';
4958
4958
  fontSize?: number;
4959
+ fontUnit?: 'px' | 'vw' | 'vh' | 'vmax' | 'vmin' | 'rem';
4959
4960
  highlight?: boolean;
4960
4961
  highlightCssClass?: string;
4961
4962
  highlightCssDefaultStyle?: string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- JSXGraph 1.4.5
2
+ JSXGraph 1.4.6
3
3
 
4
4
  Copyright 2008-2022
5
5
  Matthias Ehmann,
@@ -108,6 +108,12 @@
108
108
  background: rgba(184, 184, 184, 0.5);
109
109
  }
110
110
 
111
+ .JXG_navigation_button svg {
112
+ top: 0.2em;
113
+ position: relative;
114
+ padding: 0;
115
+ }
116
+
111
117
  /* CSS rules for the wrapping div in fullscreen mode */
112
118
 
113
119
  .JXG_wrap_private:-moz-full-screen {