UNPKG

makelabs

Version:

Component tagging toolkit for visual editing

1 lines 4.76 kB
"use strict";var e,r=Object.create,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,n=(e,r,i,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of o(r))s.call(e,l)||l===i||t(e,l,{get:()=>r[l],enumerable:!(n=a(r,l))||n.enumerable});return e},l={};((e,r)=>{for(var a in r)t(e,a,{get:r[a],enumerable:!0})})(l,{findProjectRoot:()=>findProjectRoot,shouldTagElement:()=>shouldTagElement}),module.exports=(e=l,n(t({},"__esModule",{value:!0}),e));var u=((e,a,o)=>(o=null!=e?r(i(e)):{},n(!a&&e&&e.__esModule?o:t(o,"default",{value:e,enumerable:!0}),e)))(require("path"),1),c=require("fs");function findProjectRoot(e=process.cwd()){try{let r=e,t=0;for(;r!==u.default.parse(r).root&&t<20;){if((0,c.existsSync)(u.default.join(r,"package.json")))return r;r=u.default.dirname(r),t++}return process.cwd()}catch(e){return console.error("Error finding project root:",e),process.cwd()}}var m=["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"],d=["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:t=["Fragment","React.Fragment"],excludeThreeFiber:a=!0,excludeDrei:o=!0,customExcludes:i=[]}=r;return!t.includes(e)&&(!i.includes(e)&&((!a||!m.includes(e))&&(!o||!d.includes(e))))}