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