@khanacademy/perseus 33.2.0 → 33.2.1
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 +34 -8
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +34 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -29666,7 +29666,8 @@ function LockedLabel(props) {
|
|
|
29666
29666
|
left: x,
|
|
29667
29667
|
top: y,
|
|
29668
29668
|
color: lockedFigureColors[color],
|
|
29669
|
-
fontSize: font.size[size]
|
|
29669
|
+
fontSize: font.size[size],
|
|
29670
|
+
backgroundColor: "rgba(255, 255, 255, 0.8)"
|
|
29670
29671
|
}
|
|
29671
29672
|
}, /*#__PURE__*/React.createElement(TeX, null, text));
|
|
29672
29673
|
}
|
|
@@ -31855,6 +31856,17 @@ function useDraggablePx(args) {
|
|
|
31855
31856
|
});
|
|
31856
31857
|
}
|
|
31857
31858
|
|
|
31859
|
+
/**
|
|
31860
|
+
* Render the Mafs graph with the specified background and graph elements.
|
|
31861
|
+
*
|
|
31862
|
+
* Render order (back to front):
|
|
31863
|
+
* - Grid
|
|
31864
|
+
* - Axis Ticks, Axis Arrows, and Axis Labels
|
|
31865
|
+
* - Locked Figures
|
|
31866
|
+
* - Locked Labels
|
|
31867
|
+
* - Protractor
|
|
31868
|
+
* - Interactive Graph Elements
|
|
31869
|
+
*/
|
|
31858
31870
|
const MafsGraph = props => {
|
|
31859
31871
|
const {
|
|
31860
31872
|
state,
|
|
@@ -31934,8 +31946,6 @@ const MafsGraph = props => {
|
|
|
31934
31946
|
}, fullGraphAriaDescription), /*#__PURE__*/React.createElement(LegacyGrid, {
|
|
31935
31947
|
box: props.box,
|
|
31936
31948
|
backgroundImage: props.backgroundImage
|
|
31937
|
-
}), props.showLabelsFlag && props.lockedFigures && /*#__PURE__*/React.createElement(GraphLockedLabelsLayer, {
|
|
31938
|
-
lockedFigures: props.lockedFigures
|
|
31939
31949
|
}), /*#__PURE__*/React.createElement(View, {
|
|
31940
31950
|
style: {
|
|
31941
31951
|
position: "absolute",
|
|
@@ -31965,7 +31975,24 @@ const MafsGraph = props => {
|
|
|
31965
31975
|
props.markings === "graph" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AxisTicks, null), /*#__PURE__*/React.createElement(AxisArrows, null)), /*#__PURE__*/React.createElement("svg", nestedSVGAttributes, props.lockedFigures && /*#__PURE__*/React.createElement(GraphLockedLayer, {
|
|
31966
31976
|
lockedFigures: props.lockedFigures,
|
|
31967
31977
|
range: state.range
|
|
31968
|
-
}), props.
|
|
31978
|
+
}))), props.showLabelsFlag && props.lockedFigures && /*#__PURE__*/React.createElement(GraphLockedLabelsLayer, {
|
|
31979
|
+
lockedFigures: props.lockedFigures
|
|
31980
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
31981
|
+
style: {
|
|
31982
|
+
position: "absolute"
|
|
31983
|
+
}
|
|
31984
|
+
}, /*#__PURE__*/React.createElement(Mafs, {
|
|
31985
|
+
preserveAspectRatio: false,
|
|
31986
|
+
viewBox: {
|
|
31987
|
+
x: state.range[X],
|
|
31988
|
+
y: state.range[Y],
|
|
31989
|
+
padding: 0
|
|
31990
|
+
},
|
|
31991
|
+
pan: false,
|
|
31992
|
+
zoom: false,
|
|
31993
|
+
width: width,
|
|
31994
|
+
height: height
|
|
31995
|
+
}, props.showProtractor && /*#__PURE__*/React.createElement(Protractor, null), renderGraph({
|
|
31969
31996
|
state,
|
|
31970
31997
|
dispatch
|
|
31971
31998
|
}))))), renderGraphControls({
|
|
@@ -43098,7 +43125,7 @@ class PhetSimulation extends React.Component {
|
|
|
43098
43125
|
className: css(styles$6.iframeResponsive),
|
|
43099
43126
|
src: (_this$state$url = this.state.url) == null ? void 0 : _this$state$url.toString(),
|
|
43100
43127
|
allow: "fullscreen"
|
|
43101
|
-
})), /*#__PURE__*/React.createElement(IconButton, {
|
|
43128
|
+
})), this.state.url !== null && /*#__PURE__*/React.createElement(IconButton, {
|
|
43102
43129
|
icon: cornersOutIcon,
|
|
43103
43130
|
onClick: () => {
|
|
43104
43131
|
var _this$iframeRef$curre;
|
|
@@ -43110,8 +43137,7 @@ class PhetSimulation extends React.Component {
|
|
|
43110
43137
|
marginTop: 5,
|
|
43111
43138
|
marginBottom: 5,
|
|
43112
43139
|
alignSelf: "flex-end"
|
|
43113
|
-
}
|
|
43114
|
-
disabled: this.state.url === null
|
|
43140
|
+
}
|
|
43115
43141
|
}));
|
|
43116
43142
|
}
|
|
43117
43143
|
}
|
|
@@ -44666,7 +44692,7 @@ const init = function init(options) {
|
|
|
44666
44692
|
|
|
44667
44693
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44668
44694
|
const libName = "@khanacademy/perseus";
|
|
44669
|
-
const libVersion = "33.2.
|
|
44695
|
+
const libVersion = "33.2.1";
|
|
44670
44696
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44671
44697
|
|
|
44672
44698
|
const apiVersion = {
|