@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/index.js
CHANGED
|
@@ -29980,7 +29980,8 @@ function LockedLabel(props) {
|
|
|
29980
29980
|
left: x,
|
|
29981
29981
|
top: y,
|
|
29982
29982
|
color: lockedFigureColors[color],
|
|
29983
|
-
fontSize: wonderBlocksTokens.font.size[size]
|
|
29983
|
+
fontSize: wonderBlocksTokens.font.size[size],
|
|
29984
|
+
backgroundColor: "rgba(255, 255, 255, 0.8)"
|
|
29984
29985
|
}
|
|
29985
29986
|
}, /*#__PURE__*/React__namespace.createElement(TeX, null, text));
|
|
29986
29987
|
}
|
|
@@ -32188,6 +32189,17 @@ function useDraggablePx(args) {
|
|
|
32188
32189
|
});
|
|
32189
32190
|
}
|
|
32190
32191
|
|
|
32192
|
+
/**
|
|
32193
|
+
* Render the Mafs graph with the specified background and graph elements.
|
|
32194
|
+
*
|
|
32195
|
+
* Render order (back to front):
|
|
32196
|
+
* - Grid
|
|
32197
|
+
* - Axis Ticks, Axis Arrows, and Axis Labels
|
|
32198
|
+
* - Locked Figures
|
|
32199
|
+
* - Locked Labels
|
|
32200
|
+
* - Protractor
|
|
32201
|
+
* - Interactive Graph Elements
|
|
32202
|
+
*/
|
|
32191
32203
|
const MafsGraph = props => {
|
|
32192
32204
|
const {
|
|
32193
32205
|
state,
|
|
@@ -32266,8 +32278,6 @@ const MafsGraph = props => {
|
|
|
32266
32278
|
}, fullGraphAriaDescription), /*#__PURE__*/React__namespace.createElement(LegacyGrid, {
|
|
32267
32279
|
box: props.box,
|
|
32268
32280
|
backgroundImage: props.backgroundImage
|
|
32269
|
-
}), props.showLabelsFlag && props.lockedFigures && /*#__PURE__*/React__namespace.createElement(GraphLockedLabelsLayer, {
|
|
32270
|
-
lockedFigures: props.lockedFigures
|
|
32271
32281
|
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, {
|
|
32272
32282
|
style: {
|
|
32273
32283
|
position: "absolute",
|
|
@@ -32297,7 +32307,24 @@ const MafsGraph = props => {
|
|
|
32297
32307
|
props.markings === "graph" && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(AxisTicks, null), /*#__PURE__*/React__namespace.createElement(AxisArrows, null)), /*#__PURE__*/React__namespace.createElement("svg", nestedSVGAttributes, props.lockedFigures && /*#__PURE__*/React__namespace.createElement(GraphLockedLayer, {
|
|
32298
32308
|
lockedFigures: props.lockedFigures,
|
|
32299
32309
|
range: state.range
|
|
32300
|
-
}), props.
|
|
32310
|
+
}))), props.showLabelsFlag && props.lockedFigures && /*#__PURE__*/React__namespace.createElement(GraphLockedLabelsLayer, {
|
|
32311
|
+
lockedFigures: props.lockedFigures
|
|
32312
|
+
}), /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, {
|
|
32313
|
+
style: {
|
|
32314
|
+
position: "absolute"
|
|
32315
|
+
}
|
|
32316
|
+
}, /*#__PURE__*/React__namespace.createElement(mafs.Mafs, {
|
|
32317
|
+
preserveAspectRatio: false,
|
|
32318
|
+
viewBox: {
|
|
32319
|
+
x: state.range[X],
|
|
32320
|
+
y: state.range[Y],
|
|
32321
|
+
padding: 0
|
|
32322
|
+
},
|
|
32323
|
+
pan: false,
|
|
32324
|
+
zoom: false,
|
|
32325
|
+
width: width,
|
|
32326
|
+
height: height
|
|
32327
|
+
}, props.showProtractor && /*#__PURE__*/React__namespace.createElement(Protractor, null), renderGraph({
|
|
32301
32328
|
state,
|
|
32302
32329
|
dispatch
|
|
32303
32330
|
}))))), renderGraphControls({
|
|
@@ -43459,7 +43486,7 @@ class PhetSimulation extends React__namespace.Component {
|
|
|
43459
43486
|
className: aphrodite.css(styles$6.iframeResponsive),
|
|
43460
43487
|
src: this.state.url?.toString(),
|
|
43461
43488
|
allow: "fullscreen"
|
|
43462
|
-
})), /*#__PURE__*/React__namespace.createElement(IconButton__default["default"], {
|
|
43489
|
+
})), this.state.url !== null && /*#__PURE__*/React__namespace.createElement(IconButton__default["default"], {
|
|
43463
43490
|
icon: cornersOutIcon__default["default"],
|
|
43464
43491
|
onClick: () => {
|
|
43465
43492
|
this.iframeRef.current?.requestFullscreen();
|
|
@@ -43470,8 +43497,7 @@ class PhetSimulation extends React__namespace.Component {
|
|
|
43470
43497
|
marginTop: 5,
|
|
43471
43498
|
marginBottom: 5,
|
|
43472
43499
|
alignSelf: "flex-end"
|
|
43473
|
-
}
|
|
43474
|
-
disabled: this.state.url === null
|
|
43500
|
+
}
|
|
43475
43501
|
}));
|
|
43476
43502
|
}
|
|
43477
43503
|
}
|
|
@@ -45022,7 +45048,7 @@ const init = function (options) {
|
|
|
45022
45048
|
|
|
45023
45049
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
45024
45050
|
const libName = "@khanacademy/perseus";
|
|
45025
|
-
const libVersion = "33.2.
|
|
45051
|
+
const libVersion = "33.2.1";
|
|
45026
45052
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
45027
45053
|
|
|
45028
45054
|
const apiVersion = {
|