@khanacademy/perseus 19.1.7 → 19.1.9
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/dist/es/index.js +358 -497
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +357 -497
- package/dist/index.js.map +1 -1
- package/dist/strings.js +4 -0
- package/dist/util/graphie.d.ts +23 -7
- package/package.json +3 -3
package/dist/strings.js
CHANGED
|
@@ -36,6 +36,7 @@ module.exports = [
|
|
|
36
36
|
i18n._("an integer, like $6$", {}),
|
|
37
37
|
i18n._("Beginning of reading passage footnotes.", {}),
|
|
38
38
|
i18n._("Beginning of reading passage.", {}),
|
|
39
|
+
i18n._("Bring back", {}),
|
|
39
40
|
i18n._("Check", {}),
|
|
40
41
|
i18n._("Check your significant figures.", {}),
|
|
41
42
|
i18n._("Check your units.", {}),
|
|
@@ -53,6 +54,9 @@ module.exports = [
|
|
|
53
54
|
i18n._("Correct (but you crossed it out)", {}),
|
|
54
55
|
i18n._("Correct (selected)", {}),
|
|
55
56
|
i18n._("Correct!", {}),
|
|
57
|
+
i18n._("Cross out", {}),
|
|
58
|
+
i18n._("Cross out Choice %(letter)s", {}),
|
|
59
|
+
i18n._("Cross out option", {}),
|
|
56
60
|
i18n._("Current", {}),
|
|
57
61
|
i18n._("Drag handles to make graph", {}),
|
|
58
62
|
i18n._("End of reading passage.", {}),
|
package/dist/util/graphie.d.ts
CHANGED
|
@@ -34,6 +34,9 @@ export declare class Graphie {
|
|
|
34
34
|
#private;
|
|
35
35
|
el: Element;
|
|
36
36
|
raphael?: any;
|
|
37
|
+
mouselayer?: any;
|
|
38
|
+
_mouselayerWrapper?: HTMLDivElement;
|
|
39
|
+
_visiblelayerWrapper?: HTMLDivElement;
|
|
37
40
|
isMobile: boolean;
|
|
38
41
|
currentStyle: any;
|
|
39
42
|
range?: [Interval, Interval];
|
|
@@ -104,19 +107,32 @@ export declare class Graphie {
|
|
|
104
107
|
unscalePoint: (point: number | Coord) => any;
|
|
105
108
|
unscaleVector: (point: number | Coord) => any;
|
|
106
109
|
private processAttributes;
|
|
107
|
-
getMouseCoord(event: Readonly<{
|
|
108
|
-
pageX?: number;
|
|
109
|
-
pageY?: number;
|
|
110
|
-
}>): Coord;
|
|
111
110
|
addMouseLayer(options: {
|
|
112
111
|
onClick?: MouseHandler;
|
|
113
112
|
onMouseMove?: MouseHandler;
|
|
114
|
-
onMouseDown?: MouseHandler;
|
|
115
|
-
onMouseOver?: MouseHandler;
|
|
116
|
-
onMouseOut?: MouseHandler;
|
|
113
|
+
onMouseDown?: MouseHandler | null;
|
|
114
|
+
onMouseOver?: MouseHandler | null;
|
|
115
|
+
onMouseOut?: MouseHandler | null;
|
|
116
|
+
onMouseUp?: MouseHandler | null;
|
|
117
117
|
allowScratchpad?: boolean;
|
|
118
118
|
setDrawingAreaAvailable?: (available: boolean) => void;
|
|
119
119
|
}): void;
|
|
120
|
+
addToMouseLayerWrapper(el: HTMLElement): void;
|
|
121
|
+
addToVisibleLayerWrapper(el: HTMLElement): void;
|
|
122
|
+
/**
|
|
123
|
+
* Get mouse coordinates in pixels
|
|
124
|
+
*/
|
|
125
|
+
getMousePx(event: Readonly<{
|
|
126
|
+
pageX?: number;
|
|
127
|
+
pageY?: number;
|
|
128
|
+
}>): Coord;
|
|
129
|
+
/**
|
|
130
|
+
* Get mouse coordinates in graph coordinates
|
|
131
|
+
*/
|
|
132
|
+
getMouseCoord(event: Readonly<{
|
|
133
|
+
pageX?: number;
|
|
134
|
+
pageY?: number;
|
|
135
|
+
}>): Coord;
|
|
120
136
|
}
|
|
121
137
|
type RangeSpecifier = [Interval, Interval] | Coord | number;
|
|
122
138
|
export declare function normalizeRange(range: RangeSpecifier): [Interval, Interval];
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "19.1.
|
|
6
|
+
"version": "19.1.9",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@khanacademy/kas": "^0.3.8",
|
|
29
29
|
"@khanacademy/kmath": "^0.1.12",
|
|
30
|
-
"@khanacademy/math-input": "^17.0.
|
|
30
|
+
"@khanacademy/math-input": "^17.0.7",
|
|
31
31
|
"@khanacademy/perseus-core": "1.4.2",
|
|
32
32
|
"@khanacademy/perseus-linter": "^0.3.11",
|
|
33
33
|
"@khanacademy/pure-markdown": "^0.2.14",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@khanacademy/wonder-blocks-banner": "^3.0.33"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@khanacademy/mathjax-renderer": "git+ssh://git@github.com:Khan/mathjax-renderer.git#v1.
|
|
38
|
+
"@khanacademy/mathjax-renderer": "git+ssh://git@github.com:Khan/mathjax-renderer.git#v1.6.2",
|
|
39
39
|
"@khanacademy/wonder-blocks-button": "^6.2.5",
|
|
40
40
|
"@khanacademy/wonder-blocks-clickable": "^4.0.12",
|
|
41
41
|
"@khanacademy/wonder-blocks-color": "^3.0.0",
|