@remotion/three 3.0.0-lambda.91 → 3.0.0-wrapped.208

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ThreeCanvas.d.ts","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAY,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAoC,MAAM,OAAO,CAAC;AAIzD,oBAAY,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,eAAO,MAAM,WAAW,UAAW,gBAAgB,gBA4BlD,CAAC"}
1
+ {"version":3,"file":"ThreeCanvas.d.ts","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAiD,MAAM,OAAO,CAAC;AAItE,oBAAY,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,eAAO,MAAM,WAAW,UAAW,gBAAgB,gBAuClD,CAAC"}
@@ -17,7 +17,8 @@ const Scale = ({ width, height }) => {
17
17
  return null;
18
18
  };
19
19
  const ThreeCanvas = (props) => {
20
- const { children, width, height, style, ...rest } = props;
20
+ const { children, width, height, style, onCreated, ...rest } = props;
21
+ const [waitForCreated] = (0, react_1.useState)(() => (0, remotion_1.delayRender)());
21
22
  remotion_1.Internals.validateDimension(width, 'width', 'of the <ThreeCanvas /> component');
22
23
  remotion_1.Internals.validateDimension(height, 'height', 'of the <ThreeCanvas /> component');
23
24
  const contexts = remotion_1.Internals.useRemotionContexts();
@@ -26,7 +27,11 @@ const ThreeCanvas = (props) => {
26
27
  height: props.height,
27
28
  ...(style !== null && style !== void 0 ? style : {}),
28
29
  };
29
- return ((0, jsx_runtime_1.jsx)(SuspenseLoader_1.SuspenseLoader, { children: (0, jsx_runtime_1.jsxs)(fiber_1.Canvas, Object.assign({ style: actualStyle }, rest, { children: [(0, jsx_runtime_1.jsx)(Scale, { width: width, height: height }, void 0), (0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionContextProvider, Object.assign({ contexts: contexts }, { children: children }), void 0)] }), void 0) }, void 0));
30
+ const remotion_onCreated = (0, react_1.useCallback)((state) => {
31
+ (0, remotion_1.continueRender)(waitForCreated);
32
+ onCreated === null || onCreated === void 0 ? void 0 : onCreated(state);
33
+ }, [onCreated, waitForCreated]);
34
+ return ((0, jsx_runtime_1.jsx)(SuspenseLoader_1.SuspenseLoader, { children: (0, jsx_runtime_1.jsxs)(fiber_1.Canvas, Object.assign({ style: actualStyle }, rest, { onCreated: remotion_onCreated }, { children: [(0, jsx_runtime_1.jsx)(Scale, { width: width, height: height }, void 0), (0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionContextProvider, Object.assign({ contexts: contexts }, { children: children }), void 0)] }), void 0) }, void 0));
30
35
  };
31
36
  exports.ThreeCanvas = ThreeCanvas;
32
37
  //# sourceMappingURL=ThreeCanvas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThreeCanvas.js","sourceRoot":"","sources":["../src/ThreeCanvas.tsx"],"names":[],"mappings":";;;;AAAA,8CAAsD;AACtD,iCAAyD;AACzD,uCAAqC;AACrC,qDAAkD;AAOlD,MAAM,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAqC,EAAE,EAAE;IACtE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAClD,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,YAAY,CA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,CAAC;IACjD,MAAM,WAAW,GAAG;QACnB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,GAAG,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;KAChB,CAAC;IAEF,MAAM,kBAAkB,GAAqB,IAAA,mBAAW,EACvD,CAAC,KAAgB,EAAE,EAAE;QACpB,IAAA,yBAAc,EAAC,cAAc,CAAC,CAAC;QAC/B,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,KAAK,CAAC,CAAC;IACpB,CAAC,EACD,CAAC,SAAS,EAAE,cAAc,CAAC,CAC3B,CAAC;IAEF,OAAO,CACN,uBAAC,+BAAc,cACd,wBAAC,cAAM,kBAAC,KAAK,EAAE,WAAW,IAAM,IAAI,IAAE,SAAS,EAAE,kBAAkB,iBAClE,uBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAI,EACvC,uBAAC,oBAAS,CAAC,uBAAuB,kBAAC,QAAQ,EAAE,QAAQ,gBACnD,QAAQ,YAC0B,aAC5B,WACO,CACjB,CAAC;AACH,CAAC,CAAC;AAvCW,QAAA,WAAW,eAuCtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/three",
3
- "version": "3.0.0-lambda.91+64e6b73a8",
3
+ "version": "3.0.0-wrapped.208+8f00d07f6",
4
4
  "description": "Utility functions for using react-three-fiber with remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,26 +17,26 @@
17
17
  "url": "https://github.com/remotion-dev/remotion"
18
18
  },
19
19
  "dependencies": {
20
- "remotion": "^3.0.0-lambda.91+64e6b73a8"
20
+ "remotion": "3.0.0-wrapped.208+8f00d07f6"
21
21
  },
22
22
  "peerDependencies": {
23
- "@react-three/fiber": ">=6.0.14",
23
+ "@react-three/fiber": ">=7.0.19",
24
24
  "react": ">=17.0.1",
25
25
  "react-dom": ">=17.0.1",
26
- "three": ">=0.129.0"
26
+ "three": ">=0.134.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@jonny/eslint-config": "^2.1.248",
30
30
  "@types/node": "^14.14.14",
31
- "@types/three": "^0.128.0",
31
+ "@types/three": "^0.134.0",
32
32
  "eslint": "^7.4.0",
33
33
  "prettier": "^2.0.5",
34
34
  "prettier-plugin-organize-imports": "^1.1.1",
35
- "three": "^0.133.0",
35
+ "three": "^0.134.0",
36
36
  "typescript": "^4.4.2"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "64e6b73a84e600534219d3c9a5b9f8eb628b449c"
41
+ "gitHead": "8f00d07f683fd727e3a7fdf4b988d57053dbdf5d"
42
42
  }