UNPKG

makelabs

Version:

Component tagging toolkit for visual editing

1 lines 4.17 kB
import e from"path";import{existsSync as r}from"fs";function findProjectRoot(t=process.cwd()){try{let a=t,o=0;for(;a!==e.parse(a).root&&o<20;){if(r(e.join(a,"package.json")))return a;a=e.dirname(a),o++}return process.cwd()}catch(e){return console.error("Error finding project root:",e),process.cwd()}}var t=["object3D","audioListener","positionalAudio","mesh","batchedMesh","instancedMesh","scene","sprite","lOD","skinnedMesh","skeleton","bone","lineSegments","lineLoop","points","group","camera","perspectiveCamera","orthographicCamera","cubeCamera","arrayCamera","instancedBufferGeometry","bufferGeometry","boxBufferGeometry","circleBufferGeometry","coneBufferGeometry","cylinderBufferGeometry","dodecahedronBufferGeometry","extrudeBufferGeometry","icosahedronBufferGeometry","latheBufferGeometry","octahedronBufferGeometry","planeBufferGeometry","polyhedronBufferGeometry","ringBufferGeometry","shapeBufferGeometry","sphereBufferGeometry","tetrahedronBufferGeometry","torusBufferGeometry","torusKnotBufferGeometry","tubeBufferGeometry","wireframeGeometry","tetrahedronGeometry","octahedronGeometry","icosahedronGeometry","dodecahedronGeometry","polyhedronGeometry","tubeGeometry","torusKnotGeometry","torusGeometry","sphereGeometry","ringGeometry","planeGeometry","latheGeometry","shapeGeometry","extrudeGeometry","edgesGeometry","coneGeometry","cylinderGeometry","circleGeometry","boxGeometry","capsuleGeometry","material","shadowMaterial","spriteMaterial","rawShaderMaterial","shaderMaterial","pointsMaterial","meshPhysicalMaterial","meshStandardMaterial","meshPhongMaterial","meshToonMaterial","meshNormalMaterial","meshLambertMaterial","meshDepthMaterial","meshDistanceMaterial","meshBasicMaterial","meshMatcapMaterial","lineDashedMaterial","lineBasicMaterial","primitive","light","spotLightShadow","spotLight","pointLight","rectAreaLight","hemisphereLight","directionalLightShadow","directionalLight","ambientLight","lightShadow","ambientLightProbe","hemisphereLightProbe","lightProbe","texture","videoTexture","dataTexture","dataTexture3D","compressedTexture","cubeTexture","canvasTexture","depthTexture","raycaster","vector2","vector3","vector4","euler","matrix3","matrix4","quaternion","bufferAttribute","color","fog","fogExp2","shape"],a=["AsciiRenderer","Billboard","Clone","ComputedAttribute","Decal","Edges","Effects","GradientTexture","Image","MarchingCubes","Outlines","PositionalAudio","Sampler","ScreenSizer","ScreenSpace","Splat","Svg","Text","Text3D","Trail","CubeCamera","OrthographicCamera","PerspectiveCamera","CameraControls","FaceControls","KeyboardControls","MotionPathControls","PresentationControls","ScrollControls","DragControls","GizmoHelper","Grid","Helper","PivotControls","TransformControls","CubeTexture","Fbx","Gltf","Ktx2","Loader","Progress","ScreenVideoTexture","Texture","TrailTexture","VideoTexture","WebcamVideoTexture","CycleRaycast","DetectGPU","Example","FaceLandmarker","Fbo","Html","Select","SpriteAnimator","StatsGl","Stats","Trail","Wireframe","CurveModifier","AdaptiveDpr","AdaptiveEvents","BakeShadows","Bvh","Detailed","Instances","Merged","meshBounds","PerformanceMonitor","Points","Preload","Segments","Fisheye","Hud","Mask","MeshPortalMaterial","RenderCubeTexture","RenderTexture","View","MeshDiscardMaterial","MeshDistortMaterial","MeshReflectorMaterial","MeshRefractionMaterial","MeshTransmissionMaterial","MeshWobbleMaterial","PointMaterial","shaderMaterial","SoftShadows","CatmullRomLine","CubicBezierLine","Facemesh","Line","Mesh","QuadraticBezierLine","RoundedBox","ScreenQuad","AccumulativeShadows","Backdrop","BBAnchor","Bounds","CameraShake","Caustics","Center","Cloud","ContactShadows","Environment","Float","Lightformer","MatcapTexture","NormalTexture","RandomizedLight","Resize","ShadowAlpha","Shadow","Sky","Sparkles","SpotLightShadow","SpotLight","Stage","Stars","OrbitControls"];function shouldTagElement(e,r={}){const{excludeElements:o=["Fragment","React.Fragment"],excludeThreeFiber:i=!0,excludeDrei:s=!0,customExcludes:n=[]}=r;return!o.includes(e)&&(!n.includes(e)&&((!i||!t.includes(e))&&(!s||!a.includes(e))))}export{findProjectRoot,shouldTagElement};//# sourceMappingURL=chunk-7KSJNZ5U.js.map