@khanacademy/perseus 22.0.2 → 22.2.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/dist/components/info-tip/info-tip.d.ts +2 -10
- package/dist/es/index.css +15 -1
- package/dist/es/index.js +342 -310
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +15 -1
- package/dist/index.js +343 -305
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph.d.ts +3 -3
- package/dist/widgets/interactive-graphs/axis-labels.d.ts +2 -0
- package/dist/widgets/interactive-graphs/graph-locked-layer.d.ts +2 -0
- package/dist/widgets/interactive-graphs/graphs/components/arrowhead.d.ts +2 -2
- package/dist/widgets/interactive-graphs/graphs/components/movable-line.d.ts +1 -0
- package/dist/widgets/interactive-graphs/graphs/components/vector.d.ts +2 -1
- package/dist/widgets/interactive-graphs/graphs/use-transform.d.ts +9 -2
- package/dist/widgets/interactive-graphs/graphs/utils.d.ts +6 -4
- package/dist/widgets/interactive-graphs/locked-line.d.ts +5 -1
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
- package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +4 -0
- package/package.json +5 -5
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
type Props = {
|
|
3
|
-
children: React.
|
|
3
|
+
children: string | React.ReactElement | React.ReactElement[];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
hover: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare class InfoTip extends React.Component<Props, State> {
|
|
9
|
-
state: State;
|
|
10
|
-
handleMouseEnter: () => void;
|
|
11
|
-
handleMouseLeave: () => void;
|
|
12
|
-
render(): React.ReactNode;
|
|
13
|
-
}
|
|
5
|
+
export declare const InfoTip: (props: Props) => JSX.Element;
|
|
14
6
|
export default InfoTip;
|
package/dist/es/index.css
CHANGED
|
@@ -2470,7 +2470,10 @@ img.zoom-img {
|
|
|
2470
2470
|
padding-top: 5px;
|
|
2471
2471
|
}
|
|
2472
2472
|
.framework-perseus .svg-image {
|
|
2473
|
-
display:
|
|
2473
|
+
display: block;
|
|
2474
|
+
margin: 0 auto;
|
|
2475
|
+
margin-inline-start: auto;
|
|
2476
|
+
margin-inline-end: auto;
|
|
2474
2477
|
}
|
|
2475
2478
|
.framework-perseus .unresponsive-svg-image,
|
|
2476
2479
|
.framework-perseus .perseus-rendered-radio .unresponsive-svg-image {
|
|
@@ -2750,6 +2753,16 @@ body.mobile .categorizer-container td.category input[type="radio"] + span:active
|
|
|
2750
2753
|
.perseus-image-editor .graph-settings {
|
|
2751
2754
|
margin-top: 5px;
|
|
2752
2755
|
}
|
|
2756
|
+
.perseus-image-widget {
|
|
2757
|
+
margin-inline-start: auto;
|
|
2758
|
+
margin-inline-end: auto;
|
|
2759
|
+
}
|
|
2760
|
+
.perseus-hint-renderer .perseus-image-widget {
|
|
2761
|
+
margin-inline-start: 0;
|
|
2762
|
+
}
|
|
2763
|
+
.perseus-hint-renderer .svg-image {
|
|
2764
|
+
margin-inline-start: 0;
|
|
2765
|
+
}
|
|
2753
2766
|
.perseus-widget-interactive-graph {
|
|
2754
2767
|
box-sizing: content-box;
|
|
2755
2768
|
padding: 25px 25px 0 0;
|
|
@@ -4159,6 +4172,7 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
|
|
|
4159
4172
|
|
|
4160
4173
|
--mafs-origin-color: var(--mafs-fg);
|
|
4161
4174
|
--mafs-line-color: #555;
|
|
4175
|
+
--mafs-line-stroke-dash-style: 4, 3;
|
|
4162
4176
|
--grid-line-subdivision-color: #222;
|
|
4163
4177
|
|
|
4164
4178
|
--mafs-red: #f11d0e;
|