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