@webwriter/geogebra 1.0.0 → 1.1.0
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.
- package/.github/workflows/main.yml +8 -0
- package/README.md +629 -0
- package/assets/icons/file-earmark-arrow-up.svg +4 -0
- package/components/geogebra-app.styles.ts +10 -0
- package/components/geogebra-app.ts +517 -182
- package/components/geogebra-options.styles.ts +37 -0
- package/components/geogebra-options.ts +187 -0
- package/custom-elements.json +10518 -0
- package/dist/widgets/webwriter-geogebra-3d.css +444 -0
- package/dist/widgets/webwriter-geogebra-3d.js +25359 -1408
- package/dist/widgets/webwriter-geogebra-classic.css +444 -0
- package/dist/widgets/webwriter-geogebra-classic.js +25359 -1408
- package/dist/widgets/webwriter-geogebra-geometry.css +444 -0
- package/dist/widgets/webwriter-geogebra-geometry.js +25359 -1408
- package/dist/widgets/webwriter-geogebra-notes.css +444 -0
- package/dist/widgets/webwriter-geogebra-notes.js +25359 -1408
- package/dist/widgets/webwriter-geogebra-scientific.css +444 -0
- package/dist/widgets/webwriter-geogebra-scientific.js +25359 -1408
- package/dist/widgets/webwriter-geogebra.css +444 -0
- package/dist/widgets/webwriter-geogebra.js +25370 -1413
- package/editing-config.json +37 -0
- package/lit-localize.json +47 -0
- package/localization/ar.xlf +30 -0
- package/localization/bg.xlf +30 -0
- package/localization/cs.xlf +30 -0
- package/localization/da.xlf +30 -0
- package/localization/de.xlf +29 -0
- package/localization/el.xlf +30 -0
- package/localization/es.xlf +30 -0
- package/localization/et.xlf +30 -0
- package/localization/fi.xlf +30 -0
- package/localization/fr.xlf +30 -0
- package/localization/generated/ar.ts +22 -0
- package/localization/generated/bg.ts +22 -0
- package/localization/generated/cs.ts +22 -0
- package/localization/generated/da.ts +22 -0
- package/localization/generated/de.ts +21 -0
- package/localization/generated/el.ts +22 -0
- package/localization/generated/es.ts +22 -0
- package/localization/generated/et.ts +22 -0
- package/localization/generated/fi.ts +22 -0
- package/localization/generated/fr.ts +22 -0
- package/localization/generated/hu.ts +22 -0
- package/localization/generated/id.ts +22 -0
- package/localization/generated/index.js +3 -0
- package/localization/generated/it.ts +22 -0
- package/localization/generated/ja.ts +22 -0
- package/localization/generated/ko.ts +22 -0
- package/localization/generated/locale-codes.js +83 -0
- package/localization/generated/lt.ts +22 -0
- package/localization/generated/lv.ts +22 -0
- package/localization/generated/nb.ts +22 -0
- package/localization/generated/nl.ts +22 -0
- package/localization/generated/pl.ts +22 -0
- package/localization/generated/pt-BR.ts +22 -0
- package/localization/generated/pt-PT.ts +22 -0
- package/localization/generated/ro.ts +22 -0
- package/localization/generated/ru.ts +22 -0
- package/localization/generated/sk.ts +22 -0
- package/localization/generated/sl.ts +22 -0
- package/localization/generated/sv.ts +22 -0
- package/localization/generated/tr.ts +22 -0
- package/localization/generated/uk.ts +22 -0
- package/localization/generated/zh-hans.ts +20 -0
- package/localization/generated/zh-hant.ts +20 -0
- package/localization/hu.xlf +30 -0
- package/localization/id.xlf +30 -0
- package/localization/it.xlf +30 -0
- package/localization/ja.xlf +30 -0
- package/localization/ko.xlf +30 -0
- package/localization/lt.xlf +30 -0
- package/localization/lv.xlf +30 -0
- package/localization/nb.xlf +30 -0
- package/localization/nl.xlf +30 -0
- package/localization/pkg/ar.xliff +6 -0
- package/localization/pkg/bg.xliff +6 -0
- package/localization/pkg/cs.xliff +6 -0
- package/localization/pkg/da.xliff +6 -0
- package/localization/pkg/de.xliff +6 -0
- package/localization/pkg/el.xliff +6 -0
- package/localization/pkg/es.xliff +6 -0
- package/localization/pkg/et.xliff +6 -0
- package/localization/pkg/fi.xliff +6 -0
- package/localization/pkg/fr.xliff +6 -0
- package/localization/pkg/hu.xliff +6 -0
- package/localization/pkg/id.xliff +6 -0
- package/localization/pkg/it.xliff +6 -0
- package/localization/pkg/ja.xliff +6 -0
- package/localization/pkg/ko.xliff +6 -0
- package/localization/pkg/lt.xliff +6 -0
- package/localization/pkg/lv.xliff +6 -0
- package/localization/pkg/nb.xliff +6 -0
- package/localization/pkg/nl.xliff +6 -0
- package/localization/pkg/pl.xliff +6 -0
- package/localization/pkg/pt-BR.xliff +6 -0
- package/localization/pkg/pt-PT.xliff +6 -0
- package/localization/pkg/ro.xliff +6 -0
- package/localization/pkg/ru.xliff +6 -0
- package/localization/pkg/sk.xliff +6 -0
- package/localization/pkg/sl.xliff +6 -0
- package/localization/pkg/sv.xliff +6 -0
- package/localization/pkg/tr.xliff +6 -0
- package/localization/pkg/uk.xliff +6 -0
- package/localization/pkg/zh-hans.xliff +6 -0
- package/localization/pkg/zh-hant.xliff +6 -0
- package/localization/pl.xlf +30 -0
- package/localization/pt-BR.xlf +30 -0
- package/localization/pt-PT.xlf +30 -0
- package/localization/ro.xlf +30 -0
- package/localization/ru.xlf +30 -0
- package/localization/sk.xlf +30 -0
- package/localization/sl.xlf +30 -0
- package/localization/snippets/ar.xliff +4 -0
- package/localization/snippets/bg.xliff +4 -0
- package/localization/snippets/cs.xliff +4 -0
- package/localization/snippets/da.xliff +4 -0
- package/localization/snippets/de.xliff +4 -0
- package/localization/snippets/el.xliff +4 -0
- package/localization/snippets/es.xliff +4 -0
- package/localization/snippets/et.xliff +4 -0
- package/localization/snippets/fi.xliff +4 -0
- package/localization/snippets/fr.xliff +4 -0
- package/localization/snippets/hu.xliff +4 -0
- package/localization/snippets/id.xliff +4 -0
- package/localization/snippets/it.xliff +4 -0
- package/localization/snippets/ja.xliff +4 -0
- package/localization/snippets/ko.xliff +4 -0
- package/localization/snippets/lt.xliff +4 -0
- package/localization/snippets/lv.xliff +4 -0
- package/localization/snippets/nb.xliff +4 -0
- package/localization/snippets/nl.xliff +4 -0
- package/localization/snippets/pl.xliff +4 -0
- package/localization/snippets/pt-BR.xliff +4 -0
- package/localization/snippets/pt-PT.xliff +4 -0
- package/localization/snippets/ro.xliff +4 -0
- package/localization/snippets/ru.xliff +4 -0
- package/localization/snippets/sk.xliff +4 -0
- package/localization/snippets/sl.xliff +4 -0
- package/localization/snippets/sv.xliff +4 -0
- package/localization/snippets/tr.xliff +4 -0
- package/localization/snippets/uk.xliff +4 -0
- package/localization/snippets/zh-hans.xliff +4 -0
- package/localization/snippets/zh-hant.xliff +4 -0
- package/localization/sv.xlf +30 -0
- package/localization/tr.xlf +30 -0
- package/localization/uk.xlf +30 -0
- package/localization/zh-hans.xlf +30 -0
- package/localization/zh-hant.xlf +30 -0
- package/package.json +157 -157
- package/utils/boolean-attribute-converter.ts +8 -0
- package/widgets/webwriter-geogebra-3d.ts +9 -3
- package/widgets/webwriter-geogebra-classic.ts +9 -3
- package/widgets/webwriter-geogebra-evaluator.ts +9 -3
- package/widgets/webwriter-geogebra-geometry.ts +9 -3
- package/widgets/webwriter-geogebra-notes.ts +9 -3
- package/widgets/webwriter-geogebra-scientific.ts +9 -3
- package/widgets/webwriter-geogebra.ts +20 -11
- package/dist/widgets/webwriter-geogebra-evaluator.js +0 -1885
package/package.json
CHANGED
|
@@ -1,164 +1,164 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
2
|
+
"name": "@webwriter/geogebra",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Use the mathematics learning apps of GeoGebra for algebra and geometry.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"webwriter-widget",
|
|
7
|
+
"widget-conceptual",
|
|
8
|
+
"widget-informational",
|
|
9
|
+
"widget-online",
|
|
10
|
+
"widget-lang-en",
|
|
11
|
+
"widget-lang-de",
|
|
12
|
+
"widget-lang-af",
|
|
13
|
+
"widget-lang-am",
|
|
14
|
+
"widget-lang-ar",
|
|
15
|
+
"widget-lang-az",
|
|
16
|
+
"widget-lang-bg",
|
|
17
|
+
"widget-lang-bn",
|
|
18
|
+
"widget-lang-bs",
|
|
19
|
+
"widget-lang-ca",
|
|
20
|
+
"widget-lang-cs",
|
|
21
|
+
"widget-lang-cy",
|
|
22
|
+
"widget-lang-da",
|
|
23
|
+
"widget-lang-el",
|
|
24
|
+
"widget-lang-eo",
|
|
25
|
+
"widget-lang-es",
|
|
26
|
+
"widget-lang-et",
|
|
27
|
+
"widget-lang-eu",
|
|
28
|
+
"widget-lang-fa",
|
|
29
|
+
"widget-lang-fi",
|
|
30
|
+
"widget-lang-fil",
|
|
31
|
+
"widget-lang-fr",
|
|
32
|
+
"widget-lang-gl",
|
|
33
|
+
"widget-lang-he",
|
|
34
|
+
"widget-lang-hi",
|
|
35
|
+
"widget-lang-hr",
|
|
36
|
+
"widget-lang-hu",
|
|
37
|
+
"widget-lang-hy",
|
|
38
|
+
"widget-lang-id",
|
|
39
|
+
"widget-lang-is",
|
|
40
|
+
"widget-lang-it",
|
|
41
|
+
"widget-lang-ja",
|
|
42
|
+
"widget-lang-ka",
|
|
43
|
+
"widget-lang-kk",
|
|
44
|
+
"widget-lang-km",
|
|
45
|
+
"widget-lang-kn",
|
|
46
|
+
"widget-lang-ko",
|
|
47
|
+
"widget-lang-lt",
|
|
48
|
+
"widget-lang-lv",
|
|
49
|
+
"widget-lang-mk",
|
|
50
|
+
"widget-lang-ml",
|
|
51
|
+
"widget-lang-mn",
|
|
52
|
+
"widget-lang-mr",
|
|
53
|
+
"widget-lang-ms",
|
|
54
|
+
"widget-lang-nb",
|
|
55
|
+
"widget-lang-ne",
|
|
56
|
+
"widget-lang-nl",
|
|
57
|
+
"widget-lang-nn",
|
|
58
|
+
"widget-lang-pl",
|
|
59
|
+
"widget-lang-pt",
|
|
60
|
+
"widget-lang-ro",
|
|
61
|
+
"widget-lang-ru",
|
|
62
|
+
"widget-lang-si",
|
|
63
|
+
"widget-lang-sk",
|
|
64
|
+
"widget-lang-sl",
|
|
65
|
+
"widget-lang-sq",
|
|
66
|
+
"widget-lang-sr",
|
|
67
|
+
"widget-lang-sv",
|
|
68
|
+
"widget-lang-ta",
|
|
69
|
+
"widget-lang-tg",
|
|
70
|
+
"widget-lang-th",
|
|
71
|
+
"widget-lang-tr",
|
|
72
|
+
"widget-lang-ug",
|
|
73
|
+
"widget-lang-uk",
|
|
74
|
+
"widget-lang-uz",
|
|
75
|
+
"widget-lang-vi",
|
|
76
|
+
"widget-lang-xh",
|
|
77
|
+
"widget-lang-yi",
|
|
78
|
+
"widget-lang-zh",
|
|
79
|
+
"iscedf2013-05",
|
|
80
|
+
"isced2011-2",
|
|
81
|
+
"isced2011-3",
|
|
82
|
+
"isced2011-4",
|
|
83
|
+
"isced2011-5",
|
|
84
|
+
"isced2011-6",
|
|
85
|
+
"isced2011-7",
|
|
86
|
+
"isced2011-8",
|
|
87
|
+
"algebra",
|
|
88
|
+
"geometry",
|
|
89
|
+
"spreadsheet",
|
|
90
|
+
"table",
|
|
91
|
+
"graph",
|
|
92
|
+
"widget-lang-pt-PT",
|
|
93
|
+
"widget-lang-pt-BR",
|
|
94
|
+
"widget-lang-zh-hans",
|
|
95
|
+
"widget-lang-zh-hant"
|
|
96
|
+
],
|
|
97
|
+
"license": "MIT",
|
|
98
|
+
"author": "Frederic Salmen <frederic@fsalmen.de>",
|
|
99
|
+
"scripts": {
|
|
100
|
+
"prepublishOnly": "npx @webwriter/build",
|
|
101
|
+
"dev": "npx @webwriter/build dev",
|
|
102
|
+
"localize": "lit-localize extract && npx @webwriter/build localize && lit-localize build"
|
|
103
|
+
},
|
|
104
|
+
"dependencies": {
|
|
105
|
+
"@lit/localize": "^0.12.2",
|
|
106
|
+
"@shoelace-style/shoelace": "^2.20.1",
|
|
107
|
+
"@webwriter/lit": "^2.1.6",
|
|
108
|
+
"lit": "^3"
|
|
109
|
+
},
|
|
110
|
+
"devDependencies": {
|
|
111
|
+
"@lit/localize-tools": "^0.8"
|
|
112
|
+
},
|
|
113
|
+
"exports": {
|
|
114
|
+
"./widgets/webwriter-geogebra.*": {
|
|
115
|
+
"source": "./widgets/webwriter-geogebra.ts",
|
|
116
|
+
"default": "./dist/widgets/webwriter-geogebra.*"
|
|
97
117
|
},
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
118
|
+
"./widgets/webwriter-geogebra-geometry.*": {
|
|
119
|
+
"source": "./widgets/webwriter-geogebra-geometry.ts",
|
|
120
|
+
"default": "./dist/widgets/webwriter-geogebra-geometry.*"
|
|
101
121
|
},
|
|
102
|
-
"
|
|
103
|
-
|
|
122
|
+
"./widgets/webwriter-geogebra-3d.*": {
|
|
123
|
+
"source": "./widgets/webwriter-geogebra-3d.ts",
|
|
124
|
+
"default": "./dist/widgets/webwriter-geogebra-3d.*"
|
|
104
125
|
},
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"default": "./dist/widgets/webwriter-geogebra.*"
|
|
109
|
-
},
|
|
110
|
-
"./widgets/webwriter-geogebra-geometry.*": {
|
|
111
|
-
"source": "./widgets/webwriter-geogebra-geometry.ts",
|
|
112
|
-
"default": "./dist/widgets/webwriter-geogebra-geometry.*"
|
|
113
|
-
},
|
|
114
|
-
"./widgets/webwriter-geogebra-3d.*": {
|
|
115
|
-
"source": "./widgets/webwriter-geogebra-3d.ts",
|
|
116
|
-
"default": "./dist/widgets/webwriter-geogebra-3d.*"
|
|
117
|
-
},
|
|
118
|
-
"./widgets/webwriter-geogebra-notes.*": {
|
|
119
|
-
"source": "./widgets/webwriter-geogebra-notes.ts",
|
|
120
|
-
"default": "./dist/widgets/webwriter-geogebra-notes.*"
|
|
121
|
-
},
|
|
122
|
-
"./widgets/webwriter-geogebra-scientific.*": {
|
|
123
|
-
"source": "./widgets/webwriter-geogebra-scientific.ts",
|
|
124
|
-
"default": "./dist/widgets/webwriter-geogebra-scientific.*"
|
|
125
|
-
},
|
|
126
|
-
"./widgets/webwriter-geogebra-classic.*": {
|
|
127
|
-
"source": "./widgets/webwriter-geogebra-classic.ts",
|
|
128
|
-
"default": "./dist/widgets/webwriter-geogebra-classic.*"
|
|
129
|
-
},
|
|
130
|
-
"./icon": "./icon.svg"
|
|
126
|
+
"./widgets/webwriter-geogebra-notes.*": {
|
|
127
|
+
"source": "./widgets/webwriter-geogebra-notes.ts",
|
|
128
|
+
"default": "./dist/widgets/webwriter-geogebra-notes.*"
|
|
131
129
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
130
|
+
"./widgets/webwriter-geogebra-scientific.*": {
|
|
131
|
+
"source": "./widgets/webwriter-geogebra-scientific.ts",
|
|
132
|
+
"default": "./dist/widgets/webwriter-geogebra-scientific.*"
|
|
133
|
+
},
|
|
134
|
+
"./widgets/webwriter-geogebra-classic.*": {
|
|
135
|
+
"source": "./widgets/webwriter-geogebra-classic.ts",
|
|
136
|
+
"default": "./dist/widgets/webwriter-geogebra-classic.*"
|
|
137
|
+
},
|
|
138
|
+
"./icon": "./icon.svg",
|
|
139
|
+
"./editing-config.json": "./editing-config.json",
|
|
140
|
+
"./custom-elements.json": "./custom-elements.json"
|
|
141
|
+
},
|
|
142
|
+
"editingConfig": {
|
|
143
|
+
".": {},
|
|
144
|
+
"./widgets/webwriter-geogebra": {
|
|
145
|
+
"content": "text*"
|
|
146
|
+
},
|
|
147
|
+
"./widgets/webwriter-geogebra-geometry": {
|
|
148
|
+
"content": "text*"
|
|
149
|
+
},
|
|
150
|
+
"./widgets/webwriter-geogebra-3d": {
|
|
151
|
+
"content": "text*"
|
|
152
|
+
},
|
|
153
|
+
"./widgets/webwriter-geogebra-notes": {
|
|
154
|
+
"content": "text*"
|
|
155
|
+
},
|
|
156
|
+
"./widgets/webwriter-geogebra-scientific": {
|
|
157
|
+
"content": "text*"
|
|
158
|
+
},
|
|
159
|
+
"./widgets/webwriter-geogebra-classic": {
|
|
160
|
+
"content": "text*"
|
|
163
161
|
}
|
|
162
|
+
},
|
|
163
|
+
"customElements": "custom-elements.json"
|
|
164
164
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {customElement} from "lit/decorators.js"
|
|
2
2
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A GeoGebra 3D Graphing Calculator widget.
|
|
6
|
+
*/
|
|
4
7
|
@customElement("webwriter-geogebra-3d")
|
|
5
8
|
export class WebwriterGeogebra3D extends GeogebraApp {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
super()
|
|
11
|
+
this.type = "3d" as const
|
|
12
|
+
this.showZoomButtons = true
|
|
13
|
+
this.showFullscreenButton = true
|
|
14
|
+
}
|
|
9
15
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {customElement} from "lit/decorators.js"
|
|
2
2
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A GeoGebra Classic widget.
|
|
6
|
+
*/
|
|
4
7
|
@customElement("webwriter-geogebra-classic")
|
|
5
8
|
export class WebwriterGeogebraClassic extends GeogebraApp {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
super()
|
|
11
|
+
this.type = "classic" as const
|
|
12
|
+
this.showZoomButtons = true
|
|
13
|
+
this.showFullscreenButton = true
|
|
14
|
+
}
|
|
9
15
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {customElement} from "lit/decorators.js"
|
|
2
2
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A GeoGebra Equation Editor widget.
|
|
6
|
+
*/
|
|
4
7
|
@customElement("webwriter-geogebra-evaluator")
|
|
5
8
|
export class WebwriterGeogebraEvaluator extends GeogebraApp {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
super()
|
|
11
|
+
this.type = "evaluator" as const
|
|
12
|
+
this.showZoomButtons = true
|
|
13
|
+
this.showFullscreenButton = true
|
|
14
|
+
}
|
|
9
15
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {customElement} from "lit/decorators.js"
|
|
2
2
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A GeoGebra Geometry widget.
|
|
6
|
+
*/
|
|
4
7
|
@customElement("webwriter-geogebra-geometry")
|
|
5
8
|
export class WebwriterGeogebraGeometry extends GeogebraApp {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
super()
|
|
11
|
+
this.type = "geometry" as const
|
|
12
|
+
this.showZoomButtons = true
|
|
13
|
+
this.showFullscreenButton = true
|
|
14
|
+
}
|
|
9
15
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {customElement} from "lit/decorators.js"
|
|
2
2
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A GeoGebra Notes widget.
|
|
6
|
+
*/
|
|
4
7
|
@customElement("webwriter-geogebra-notes")
|
|
5
8
|
export class WebwriterGeogebraNotes extends GeogebraApp {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
super()
|
|
11
|
+
this.type = "notes" as const
|
|
12
|
+
this.showZoomButtons = true
|
|
13
|
+
this.showFullscreenButton = true
|
|
14
|
+
}
|
|
9
15
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {customElement} from "lit/decorators.js"
|
|
2
2
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A GeoGebra Scientific Calculator widget.
|
|
6
|
+
*/
|
|
4
7
|
@customElement("webwriter-geogebra-scientific")
|
|
5
8
|
export class WebwriterGeogebraScientific extends GeogebraApp {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
super()
|
|
11
|
+
this.type = "scientific" as const
|
|
12
|
+
this.showZoomButtons = true
|
|
13
|
+
this.showFullscreenButton = true
|
|
14
|
+
}
|
|
9
15
|
}
|
|
@@ -3,18 +3,27 @@ import {LitElementWw} from "@webwriter/lit"
|
|
|
3
3
|
import {customElement} from "lit/decorators.js"
|
|
4
4
|
import { GeogebraApp } from "../components/geogebra-app"
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* A GeoGebra Calculator Suite widget.
|
|
8
|
+
*/
|
|
6
9
|
@customElement("webwriter-geogebra")
|
|
7
10
|
export class WebwriterGeogebra extends GeogebraApp {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
constructor() {
|
|
12
|
+
super()
|
|
13
|
+
this.type = "suite" as const
|
|
14
|
+
this.showZoomButtons = true
|
|
15
|
+
this.showFullscreenButton = true
|
|
16
|
+
this.enableFileFeatures = false
|
|
17
|
+
this.enableUndoRedo = false
|
|
18
|
+
|
|
19
|
+
this.ggbStyles = css`
|
|
20
|
+
.button.undo, .button.redo {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
14
23
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
.GeoGebraFrame .toolbar .header-open-landscape .center, .GeoGebraFrame .toolbar .header-close-landscape .center {
|
|
25
|
+
top: 0 !important;
|
|
26
|
+
}
|
|
27
|
+
`.cssText
|
|
28
|
+
}
|
|
20
29
|
}
|