@pie-element/math-templated 3.3.1-next.23 → 3.3.1-next.24
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +23 -10
- package/module/element.js +167 -120
- package/module/manifest.json +1 -1
- package/module/print.js +167 -120
- package/package.json +3 -3
package/configure/package.json
CHANGED
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.2.1/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.2.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.2.1/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -42541,7 +42541,6 @@ const require$$12$5 = _dll_prop_types;
|
|
|
42541
42541
|
backgroundColor: ("var(--feedback-bg-color, ").concat(color.disabled(), ")"),
|
|
42542
42542
|
borderRadius: '4px',
|
|
42543
42543
|
fontFamily: '"Roboto", "Noto", sans-serif',
|
|
42544
|
-
fontSize: '12px',
|
|
42545
42544
|
lineHeight: '25px',
|
|
42546
42545
|
margin: '0px',
|
|
42547
42546
|
padding: '10px',
|
|
@@ -59914,7 +59913,7 @@ const {omit: require$$13$1} = _dll_lodash;
|
|
|
59914
59913
|
var _classnames = _interopRequireDefault(require$$12$2);
|
|
59915
59914
|
var _omit = _interopRequireDefault(require$$13$1);
|
|
59916
59915
|
var _appendCssRules = _interopRequireDefault(appendCssRules);
|
|
59917
|
-
var _excluded = ["children", "className", "classes"];
|
|
59916
|
+
var _excluded = ["children", "className", "classes", "fontSizeFactor"];
|
|
59918
59917
|
function _createSuper(Derived) {
|
|
59919
59918
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
59920
59919
|
return function _createSuperInternal() {
|
|
@@ -59950,14 +59949,24 @@ const {omit: require$$13$1} = _dll_lodash;
|
|
|
59950
59949
|
return _this;
|
|
59951
59950
|
}
|
|
59952
59951
|
(0, _createClass2["default"])(UiLayout, [{
|
|
59952
|
+
key: "computeStyle",
|
|
59953
|
+
value: function computeStyle(fontSizeFactor) {
|
|
59954
|
+
var rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
59955
|
+
return {
|
|
59956
|
+
fontSize: ("").concat(rootFontSize * fontSizeFactor, "px")
|
|
59957
|
+
};
|
|
59958
|
+
}
|
|
59959
|
+
}, {
|
|
59953
59960
|
key: "render",
|
|
59954
59961
|
value: function render() {
|
|
59955
|
-
var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
|
|
59962
|
+
var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, fontSizeFactor = _this$props.fontSizeFactor, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
|
|
59956
59963
|
var finalClass = (0, _classnames["default"])(className, classes.extraCSSRules);
|
|
59957
59964
|
var restProps = (0, _omit["default"])(rest, 'extraCSSRules');
|
|
59958
59965
|
return _react["default"].createElement("div", (0, _extends2["default"])({
|
|
59959
59966
|
className: finalClass
|
|
59960
|
-
}, restProps
|
|
59967
|
+
}, restProps, {
|
|
59968
|
+
style: this.computeStyle(fontSizeFactor)
|
|
59969
|
+
}), children);
|
|
59961
59970
|
}
|
|
59962
59971
|
}]);
|
|
59963
59972
|
return UiLayout;
|
|
@@ -59969,10 +59978,12 @@ const {omit: require$$13$1} = _dll_lodash;
|
|
|
59969
59978
|
extraCSSRules: _propTypes["default"].shape({
|
|
59970
59979
|
names: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
59971
59980
|
rules: _propTypes["default"].string
|
|
59972
|
-
})
|
|
59981
|
+
}),
|
|
59982
|
+
fontSizeFactor: _propTypes["default"].number
|
|
59973
59983
|
});
|
|
59974
59984
|
(0, _defineProperty2["default"])(UiLayout, "defaultProps", {
|
|
59975
|
-
extraCSSRules: {}
|
|
59985
|
+
extraCSSRules: {},
|
|
59986
|
+
fontSizeFactor: 1
|
|
59976
59987
|
});
|
|
59977
59988
|
var styles = {
|
|
59978
59989
|
extraCSSRules: {}
|
|
@@ -60035,7 +60046,7 @@ const require$$10$1 = _dll_prop_types;
|
|
|
60035
60046
|
(0, _createClass2["default"])(PreviewLayout, [{
|
|
60036
60047
|
key: "render",
|
|
60037
60048
|
value: function render() {
|
|
60038
|
-
var _this$props = this.props, children = _this$props.children, classes = _this$props.classes, ariaLabel = _this$props.ariaLabel, role = _this$props.role, extraCSSRules = _this$props.extraCSSRules;
|
|
60049
|
+
var _this$props = this.props, children = _this$props.children, classes = _this$props.classes, ariaLabel = _this$props.ariaLabel, role = _this$props.role, extraCSSRules = _this$props.extraCSSRules, fontSizeFactor = _this$props.fontSizeFactor;
|
|
60039
60050
|
var accessibility = ariaLabel ? {
|
|
60040
60051
|
'aria-label': ariaLabel,
|
|
60041
60052
|
role: role
|
|
@@ -60043,7 +60054,8 @@ const require$$10$1 = _dll_prop_types;
|
|
|
60043
60054
|
return _react["default"].createElement(_uiLayout["default"], (0, _extends2["default"])({
|
|
60044
60055
|
className: classes.container
|
|
60045
60056
|
}, accessibility, {
|
|
60046
|
-
extraCSSRules: extraCSSRules
|
|
60057
|
+
extraCSSRules: extraCSSRules,
|
|
60058
|
+
fontSizeFactor: fontSizeFactor
|
|
60047
60059
|
}), children);
|
|
60048
60060
|
}
|
|
60049
60061
|
}]);
|
|
@@ -60057,7 +60069,8 @@ const require$$10$1 = _dll_prop_types;
|
|
|
60057
60069
|
extraCSSRules: _propTypes["default"].shape({
|
|
60058
60070
|
names: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
60059
60071
|
rules: _propTypes["default"].string
|
|
60060
|
-
})
|
|
60072
|
+
}),
|
|
60073
|
+
fontSizeFactor: _propTypes["default"].number
|
|
60061
60074
|
});
|
|
60062
60075
|
var styles = function styles() {
|
|
60063
60076
|
return {
|