microboard-ui-temp 0.1.73 → 0.1.75
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/index.js +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -346062,7 +346062,7 @@ var AIInput = () => {
|
|
|
346062
346062
|
};
|
|
346063
346063
|
|
|
346064
346064
|
// src/entities/Canvas/Canvas.tsx
|
|
346065
|
-
var
|
|
346065
|
+
var React146 = __toESM(require_react(), 1);
|
|
346066
346066
|
|
|
346067
346067
|
// src/shared/lib/withRouter.tsx
|
|
346068
346068
|
var import_react184 = __toESM(require_react(), 1);
|
|
@@ -346115,10 +346115,10 @@ function Watermark() {
|
|
|
346115
346115
|
}
|
|
346116
346116
|
|
|
346117
346117
|
// src/entities/Canvas/Canvas.tsx
|
|
346118
|
-
class CanvasBase extends
|
|
346119
|
-
stageRef =
|
|
346120
|
-
canvasRef =
|
|
346121
|
-
cursorsCanvasRef =
|
|
346118
|
+
class CanvasBase extends React146.Component {
|
|
346119
|
+
stageRef = React146.createRef();
|
|
346120
|
+
canvasRef = React146.createRef();
|
|
346121
|
+
cursorsCanvasRef = React146.createRef();
|
|
346122
346122
|
options = {
|
|
346123
346123
|
pointerdown: {},
|
|
346124
346124
|
pointerup: {},
|
|
@@ -346220,7 +346220,7 @@ class CanvasBase extends React145.Component {
|
|
|
346220
346220
|
render() {
|
|
346221
346221
|
const board = this.props.board;
|
|
346222
346222
|
const { width: width2, height: height3 } = board.camera.window;
|
|
346223
|
-
return /* @__PURE__ */
|
|
346223
|
+
return /* @__PURE__ */ React146.createElement("div", {
|
|
346224
346224
|
id: "CanvasContainer",
|
|
346225
346225
|
className: "NoContextMenu",
|
|
346226
346226
|
ref: this.stageRef,
|
|
@@ -346238,7 +346238,7 @@ class CanvasBase extends React145.Component {
|
|
|
346238
346238
|
height: `${height3}px`
|
|
346239
346239
|
},
|
|
346240
346240
|
onContextMenu: (ev) => ev.preventDefault()
|
|
346241
|
-
}, /* @__PURE__ */
|
|
346241
|
+
}, /* @__PURE__ */ React146.createElement(Watermark, null), /* @__PURE__ */ React146.createElement("canvas", {
|
|
346242
346242
|
ref: this.canvasRef,
|
|
346243
346243
|
width: Math.floor(width2 * window.devicePixelRatio),
|
|
346244
346244
|
height: Math.floor(height3 * window.devicePixelRatio),
|
|
@@ -346257,7 +346257,7 @@ class CanvasBase extends React145.Component {
|
|
|
346257
346257
|
width: `${width2}px`,
|
|
346258
346258
|
height: `${height3}px`
|
|
346259
346259
|
}
|
|
346260
|
-
}), /* @__PURE__ */
|
|
346260
|
+
}), /* @__PURE__ */ React146.createElement("canvas", {
|
|
346261
346261
|
width: Math.floor(width2 * window.devicePixelRatio),
|
|
346262
346262
|
height: Math.floor(height3 * window.devicePixelRatio),
|
|
346263
346263
|
className: "NoContextMenu",
|
|
@@ -346275,7 +346275,7 @@ class CanvasBase extends React145.Component {
|
|
|
346275
346275
|
height: `${height3}px`,
|
|
346276
346276
|
pointerEvents: "none"
|
|
346277
346277
|
}
|
|
346278
|
-
}), /* @__PURE__ */
|
|
346278
|
+
}), /* @__PURE__ */ React146.createElement("canvas", {
|
|
346279
346279
|
ref: this.cursorsCanvasRef,
|
|
346280
346280
|
width: Math.floor(width2 * window.devicePixelRatio),
|
|
346281
346281
|
height: Math.floor(height3 * window.devicePixelRatio),
|
|
@@ -346294,7 +346294,7 @@ class CanvasBase extends React145.Component {
|
|
|
346294
346294
|
height: `${height3}px`,
|
|
346295
346295
|
pointerEvents: "none"
|
|
346296
346296
|
}
|
|
346297
|
-
}), /* @__PURE__ */
|
|
346297
|
+
}), /* @__PURE__ */ React146.createElement("div", {
|
|
346298
346298
|
style: {
|
|
346299
346299
|
position: "relative",
|
|
346300
346300
|
zIndex: 0,
|
|
@@ -396112,7 +396112,7 @@ Object.defineProperty(useThemeWithoutDefault, "__esModule", {
|
|
|
396112
396112
|
value: true
|
|
396113
396113
|
});
|
|
396114
396114
|
var default_1 = useThemeWithoutDefault.default = undefined;
|
|
396115
|
-
var
|
|
396115
|
+
var React293 = _interopRequireWildcard(requireReact());
|
|
396116
396116
|
var _styledEngine = require$$12;
|
|
396117
396117
|
function _getRequireWildcardCache(e15) {
|
|
396118
396118
|
if (typeof WeakMap != "function")
|
|
@@ -396142,7 +396142,7 @@ function isObjectEmpty(obj) {
|
|
|
396142
396142
|
return Object.keys(obj).length === 0;
|
|
396143
396143
|
}
|
|
396144
396144
|
function useTheme(defaultTheme2 = null) {
|
|
396145
|
-
const contextTheme =
|
|
396145
|
+
const contextTheme = React293.useContext(_styledEngine.ThemeContext);
|
|
396146
396146
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
|
|
396147
396147
|
}
|
|
396148
396148
|
default_1 = useThemeWithoutDefault.default = useTheme;
|