@jiujue/react-canvas-fiber 1.1.3 → 1.1.5
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.cjs +43 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { useRef, useMemo, useCallback, useLayoutEffect, createElement } from 'react';
|
|
3
|
+
import * as ReactDOM from 'react-dom';
|
|
2
4
|
import { FlexDirection, Align, Direction, loadYoga, MeasureMode, Edge, Justify, Wrap, PositionType, Gutter } from 'yoga-layout/load';
|
|
3
5
|
import { jsx } from 'react/jsx-runtime';
|
|
4
6
|
|
|
7
|
+
var require$1 = (name) => {
|
|
8
|
+
if (name === 'react') return (React.default || React);
|
|
9
|
+
if (name === 'react-dom') return (ReactDOM.default || ReactDOM);
|
|
10
|
+
throw new Error('Dynamic require of "' + name + '" is not supported');
|
|
11
|
+
};
|
|
5
12
|
var __create = Object.create;
|
|
6
13
|
var __defProp = Object.defineProperty;
|
|
7
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
15
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
16
|
var __getProtoOf = Object.getPrototypeOf;
|
|
10
17
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
12
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
18
|
+
var __require = /* @__PURE__ */ ((x) => typeof require$1 !== "undefined" ? require$1 : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
19
|
+
get: (a, b) => (typeof require$1 !== "undefined" ? require$1 : a)[b]
|
|
13
20
|
}) : x)(function(x) {
|
|
14
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
21
|
+
if (typeof require$1 !== "undefined") return require$1.apply(this, arguments);
|
|
15
22
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
16
23
|
});
|
|
17
24
|
var __commonJS = (cb, mod) => function __require2() {
|