This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to individual react-icons imports to reduce editor bundle size
- Loading branch information
1 parent
73b7b9f
commit 281bb5f
Showing
18 changed files
with
50 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"/Users/andrew/Projects/react-three-editable/example/src/App.tsx":"1"},{"size":1528,"mtime":1606751994518,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"6"},"ic4nhf","/Users/andrew/Projects/react-three-editable/example/src/App.tsx",["7"],"import React from 'react';\nimport { Canvas } from 'react-three-fiber';\nimport { EditableManager, editable as e, configure } from '../../';\nimport { PerspectiveCamera } from '@react-three/drei';\n\nconst ECamera = e(PerspectiveCamera, 'perspectiveCamera');\n\nfunction App() {\n return (\n <Canvas shadowMap>\n <EditableManager />\n <ECamera makeDefault uniqueName=\"Camera\" />\n <e.spotLight\n uniqueName=\"Key Light\"\n shadow-mapSize-width={2048}\n shadow-mapSize-height={2048}\n castShadow\n />\n <e.spotLight\n uniqueName=\"Fill Light\"\n shadow-mapSize-width={2048}\n shadow-mapSize-height={2048}\n castShadow\n />\n <e.mesh uniqueName=\"Ground\" receiveShadow>\n <planeBufferGeometry />\n <meshStandardMaterial color=\"lightblue\" />\n </e.mesh>\n <e.group uniqueName=\"Ice Cream\">\n <e.mesh uniqueName=\"Cone\" castShadow>\n <coneBufferGeometry />\n <meshStandardMaterial color=\"orange\" />\n </e.mesh>\n <e.mesh uniqueName=\"Scoop 1\" castShadow>\n <sphereBufferGeometry />\n <meshStandardMaterial color=\"red\" />\n </e.mesh>\n <e.mesh uniqueName=\"Scoop 2\" castShadow>\n <sphereBufferGeometry />\n <meshStandardMaterial color=\"green\" />\n </e.mesh>\n <e.mesh uniqueName=\"Scoop 3\" castShadow>\n <sphereBufferGeometry />\n <meshStandardMaterial color=\"blue\" />\n </e.mesh>\n </e.group>\n </Canvas>\n );\n}\n\nexport default App;\n",{"ruleId":"8","severity":1,"message":"9","line":3,"column":42,"nodeType":"10","messageId":"11","endLine":3,"endColumn":51},"@typescript-eslint/no-unused-vars","'configure' is defined but never used.","Identifier","unusedVar"] | ||
[{"/Users/andrew/Projects/react-three-editable/example/src/App.tsx":"1"},{"size":1531,"mtime":1609089394049,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1e3o450","/Users/andrew/Projects/react-three-editable/example/src/App.tsx",[]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters