Created
May 10, 2017 04:29
-
-
Save AndrewRayCode/407067e1fe739bac7fae7e9ef295111e to your computer and use it in GitHub Desktop.
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
var assert = require('assert'); | |
var r3r_links = [ | |
"https://threejs.org/docs/#api/geometries/EdgesGeometry", | |
"https://threejs.org/docs/#api/geometries/ShapeGeometry", | |
"https://threejs.org/docs/#api/geometries/TorusKnotGeometry", | |
"https://threejs.org/docs/#api/lights/HemisphereLight", | |
"https://threejs.org/docs/#api/materials/MeshStandardMaterial", | |
"https://threejs.org/docs/#api/scenes/FogExp2", | |
"https://threejs.org/docs/#api/cameras/Camera", | |
"https://threejs.org/docs/#api/cameras/CubeCamera", | |
"https://threejs.org/docs/#api/cameras/OrthographicCamera", | |
"https://threejs.org/docs/#api/cameras/PerspectiveCamera", | |
"https://threejs.org/docs/#api/core/BufferGeometry", | |
"https://threejs.org/docs/#api/core/Geometry.colors", | |
"https://threejs.org/docs/#api/core/Geometry.dynamic", | |
"https://threejs.org/docs/#api/core/Geometry.faceVertexUvs", | |
"https://threejs.org/docs/#api/core/Geometry.faces", | |
"https://threejs.org/docs/#api/core/Geometry.vertices", | |
"https://threejs.org/docs/#api/core/Object3D", | |
"https://threejs.org/docs/#api/core/Object3D.lookAt", | |
"https://threejs.org/docs/#api/core/Object3D.name", | |
"https://threejs.org/docs/#api/extras/core/Path.absarc", | |
"https://threejs.org/docs/#api/extras/core/Path.absellipse", | |
"https://threejs.org/docs/#api/extras/core/Path.bezierCurveTo", | |
"https://threejs.org/docs/#api/extras/core/Path.lineTo", | |
"https://threejs.org/docs/#api/extras/core/Path.moveTo", | |
"https://threejs.org/docs/#api/extras/core/Path.quadraticCurveTo", | |
"https://threejs.org/docs/#api/extras/core/Path.splineThru", | |
"https://threejs.org/docs/#api/extras/core/Shape", | |
"https://threejs.org/docs/#api/extras/core/Shape.holes", | |
"https://threejs.org/docs/#api/geometries/BoxGeometry", | |
"https://threejs.org/docs/#api/core/BufferGeometry", | |
"https://threejs.org/docs/#api/geometries/CircleBufferGeometry", | |
"https://threejs.org/docs/#api/geometries/CircleGeometry", | |
"https://threejs.org/docs/#api/geometries/CylinderGeometry", | |
"https://threejs.org/docs/#api/geometries/DodecahedronGeometry", | |
"https://threejs.org/docs/#api/geometries/ExtrudeGeometry", | |
"https://threejs.org/docs/#api/core/Geometry", | |
"https://threejs.org/docs/#api/geometries/IcosahedronGeometry", | |
"https://threejs.org/docs/#api/geometries/LatheGeometry", | |
"https://threejs.org/docs/#api/geometries/OctahedronGeometry", | |
"https://threejs.org/docs/#api/geometries/ParametricGeometry", | |
"https://threejs.org/docs/#api/geometries/PlaneBufferGeometry", | |
"https://threejs.org/docs/#api/geometries/PlaneGeometry", | |
"https://threejs.org/docs/#api/geometries/PolyhedronGeometry", | |
"https://threejs.org/docs/#api/geometries/RingGeometry", | |
"https://threejs.org/docs/#api/geometries/SphereGeometry", | |
"https://threejs.org/docs/#api/geometries/TetrahedronGeometry", | |
"https://threejs.org/docs/#api/geometries/TextGeometry", | |
"https://threejs.org/docs/#api/geometries/TorusGeometry", | |
"https://threejs.org/docs/#api/geometries/TubeGeometry", | |
"https://threejs.org/docs/#api/helpers/ArrowHelper", | |
"https://threejs.org/docs/#api/helpers/AxisHelper", | |
"https://threejs.org/docs/#api/helpers/CameraHelper", | |
"https://threejs.org/docs/#api/helpers/GridHelper", | |
"https://threejs.org/docs/#api/lights/AmbientLight", | |
"https://threejs.org/docs/#api/lights/DirectionalLight", | |
"https://threejs.org/docs/#api/lights/PointLight", | |
"https://threejs.org/docs/#api/lights/SpotLight", | |
"https://threejs.org/docs/#api/loaders/TextureLoader.crossOrigin", | |
"https://threejs.org/docs/#api/loaders/TextureLoader.load", | |
"https://threejs.org/docs/#api/materials/LineBasicMaterial", | |
"https://threejs.org/docs/#api/materials/LineDashedMaterial", | |
"https://threejs.org/docs/#api/materials/MeshBasicMaterial", | |
"https://threejs.org/docs/#api/materials/MeshDepthMaterial", | |
"https://threejs.org/docs/#api/materials/MeshLambertMaterial", | |
"https://threejs.org/docs/#api/materials/MeshNormalMaterial", | |
"https://threejs.org/docs/#api/materials/MeshPhongMaterial", | |
"https://threejs.org/docs/#api/materials/PointsMaterial", | |
"https://threejs.org/docs/#api/materials/RawShaderMaterial", | |
"https://threejs.org/docs/#api/materials/ShaderMaterial", | |
"https://threejs.org/docs/#api/materials/ShaderMaterial.uniforms", | |
"https://threejs.org/docs/#api/materials/SpriteMaterial", | |
"https://threejs.org/docs/#api/objects/Line", | |
"https://threejs.org/docs/#api/objects/LineSegments", | |
"https://threejs.org/docs/#api/objects/Mesh", | |
"https://threejs.org/docs/#api/objects/Points", | |
"https://threejs.org/docs/#api/objects/Sprite", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.alpha", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.antialias", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.depth", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.gammaInput", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.gammaOutput", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.logarithmicDepthBuffer", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.precision", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.premultipliedAlpha", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.preserveDrawingBuffer", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.setClearColor", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.setViewport", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.shadowMapCullFace", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.shadowMapDebug", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.shadowMapEnabled", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.shadowMapType", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.sortObjects", | |
"https://threejs.org/docs/#api/renderers/WebGLRenderer.stencil", | |
"https://threejs.org/docs/#api/scenes/Scene", | |
"https://threejs.org/docs/#api/scenes/Scene.fog", | |
"https://threejs.org/docs/#api/textures/Texture", | |
"https://threejs.org/docs/#api/textures/Texture.offset", | |
"https://threejs.org/docs/#api/textures/Texture.repeat", | |
"https://threejs.org/docs/#manual/introduction/Creating-a-scene", | |
] | |
var three_links = [ | |
"manual/introduction/Creating-a-scene", | |
"manual/introduction/WebGL-compatibility-check", | |
"manual/introduction/How-to-run-thing-locally", | |
"manual/introduction/Drawing-lines", | |
"manual/introduction/Creating-text", | |
"manual/introduction/Migration-guide", | |
"manual/introduction/Code-style-guide", | |
"manual/introduction/FAQ", | |
"manual/introduction/Useful-links", | |
"manual/introduction/How-to-update-things", | |
"manual/introduction/Matrix-transformations", | |
"manual/introduction/Animation-system", | |
"manual/buildTools/Testing-with-NPM", | |
"api/animation/AnimationAction", | |
"api/animation/AnimationClip", | |
"api/animation/AnimationMixer", | |
"api/animation/AnimationObjectGroup", | |
"api/animation/AnimationUtils", | |
"api/animation/KeyframeTrack", | |
"api/animation/PropertyBinding", | |
"api/animation/PropertyMixer", | |
"api/animation/tracks/BooleanKeyframeTrack", | |
"api/animation/tracks/ColorKeyframeTrack", | |
"api/animation/tracks/NumberKeyframeTrack", | |
"api/animation/tracks/QuaternionKeyframeTrack", | |
"api/animation/tracks/StringKeyframeTrack", | |
"api/animation/tracks/VectorKeyframeTrack", | |
"api/audio/Audio", | |
"api/audio/AudioAnalyser", | |
"api/audio/AudioContext", | |
"api/audio/AudioListener", | |
"api/audio/PositionalAudio", | |
"api/cameras/Camera", | |
"api/cameras/CubeCamera", | |
"api/cameras/OrthographicCamera", | |
"api/cameras/PerspectiveCamera", | |
"api/cameras/StereoCamera", | |
"api/constants/Animation", | |
"api/constants/Core", | |
"api/constants/CustomBlendingEquations", | |
"api/constants/DrawModes", | |
"api/constants/Materials", | |
"api/constants/Renderer", | |
"api/constants/Textures", | |
"api/core/BufferAttribute", | |
"api/core/BufferGeometry", | |
"api/core/Clock", | |
"api/core/DirectGeometry", | |
"api/core/EventDispatcher", | |
"api/core/Face3", | |
"api/core/Geometry", | |
"api/core/InstancedBufferAttribute", | |
"api/core/InstancedBufferGeometry", | |
"api/core/InstancedInterleavedBuffer", | |
"api/core/InterleavedBuffer", | |
"api/core/InterleavedBufferAttribute", | |
"api/core/Layers", | |
"api/core/Object3D", | |
"api/core/Raycaster", | |
"api/core/Uniform", | |
"api/core/bufferAttributeTypes/BufferAttributeTypes", | |
"api/deprecated/DeprecatedList", | |
"api/extras/CurveUtils", | |
"api/extras/SceneUtils", | |
"api/extras/ShapeUtils", | |
"api/extras/core/Curve", | |
"api/extras/core/CurvePath", | |
"api/extras/core/Font", | |
"api/extras/core/Path", | |
"api/extras/core/Shape", | |
"api/extras/core/ShapePath", | |
"api/extras/curves/ArcCurve", | |
"api/extras/curves/CatmullRomCurve3", | |
"api/extras/curves/CubicBezierCurve", | |
"api/extras/curves/CubicBezierCurve3", | |
"api/extras/curves/EllipseCurve", | |
"api/extras/curves/LineCurve", | |
"api/extras/curves/LineCurve3", | |
"api/extras/curves/QuadraticBezierCurve", | |
"api/extras/curves/QuadraticBezierCurve3", | |
"api/extras/curves/SplineCurve", | |
"api/extras/objects/ImmediateRenderObject", | |
"api/extras/objects/MorphBlendMesh", | |
"api/geometries/BoxBufferGeometry", | |
"api/geometries/BoxGeometry", | |
"api/geometries/CircleBufferGeometry", | |
"api/geometries/CircleGeometry", | |
"api/geometries/ConeBufferGeometry", | |
"api/geometries/ConeGeometry", | |
"api/geometries/CylinderBufferGeometry", | |
"api/geometries/CylinderGeometry", | |
"api/geometries/DodecahedronBufferGeometry", | |
"api/geometries/DodecahedronGeometry", | |
"api/geometries/EdgesGeometry", | |
"api/geometries/ExtrudeGeometry", | |
"api/geometries/ExtrudeBufferGeometry", | |
"api/geometries/IcosahedronBufferGeometry", | |
"api/geometries/IcosahedronGeometry", | |
"api/geometries/LatheBufferGeometry", | |
"api/geometries/LatheGeometry", | |
"api/geometries/OctahedronBufferGeometry", | |
"api/geometries/OctahedronGeometry", | |
"api/geometries/ParametricBufferGeometry", | |
"api/geometries/ParametricGeometry", | |
"api/geometries/PlaneBufferGeometry", | |
"api/geometries/PlaneGeometry", | |
"api/geometries/PolyhedronBufferGeometry", | |
"api/geometries/PolyhedronGeometry", | |
"api/geometries/RingBufferGeometry", | |
"api/geometries/RingGeometry", | |
"api/geometries/ShapeBufferGeometry", | |
"api/geometries/ShapeGeometry", | |
"api/geometries/SphereBufferGeometry", | |
"api/geometries/SphereGeometry", | |
"api/geometries/TetrahedronBufferGeometry", | |
"api/geometries/TetrahedronGeometry", | |
"api/geometries/TextGeometry", | |
"api/geometries/TorusBufferGeometry", | |
"api/geometries/TorusGeometry", | |
"api/geometries/TorusKnotBufferGeometry", | |
"api/geometries/TorusKnotGeometry", | |
"api/geometries/TubeGeometry", | |
"api/geometries/TubeBufferGeometry", | |
"api/geometries/WireframeGeometry", | |
"api/helpers/ArrowHelper", | |
"api/helpers/AxisHelper", | |
"api/helpers/BoxHelper", | |
"api/helpers/CameraHelper", | |
"api/helpers/DirectionalLightHelper", | |
"api/helpers/FaceNormalsHelper", | |
"api/helpers/GridHelper", | |
"api/helpers/PolarGridHelper", | |
"api/helpers/HemisphereLightHelper", | |
"api/helpers/PointLightHelper", | |
"api/helpers/RectAreaLightHelper", | |
"api/helpers/SkeletonHelper", | |
"api/helpers/SpotLightHelper", | |
"api/helpers/VertexNormalsHelper", | |
"api/lights/AmbientLight", | |
"api/lights/DirectionalLight", | |
"api/lights/HemisphereLight", | |
"api/lights/Light", | |
"api/lights/PointLight", | |
"api/lights/RectAreaLight", | |
"api/lights/SpotLight", | |
"api/lights/shadows/DirectionalLightShadow", | |
"api/lights/shadows/LightShadow", | |
"api/lights/shadows/RectAreaLightShadow", | |
"api/lights/shadows/SpotLightShadow", | |
"api/loaders/AnimationLoader", | |
"api/loaders/AudioLoader", | |
"api/loaders/BufferGeometryLoader", | |
"api/loaders/Cache", | |
"api/loaders/CompressedTextureLoader", | |
"api/loaders/CubeTextureLoader", | |
"api/loaders/DataTextureLoader", | |
"api/loaders/FileLoader", | |
"api/loaders/FontLoader", | |
"api/loaders/ImageLoader", | |
"api/loaders/JSONLoader", | |
"api/loaders/Loader", | |
"api/loaders/MaterialLoader", | |
"api/loaders/ObjectLoader", | |
"api/loaders/TextureLoader", | |
"api/loaders/managers/DefaultLoadingManager", | |
"api/loaders/managers/LoadingManager", | |
"api/materials/LineBasicMaterial", | |
"api/materials/LineDashedMaterial", | |
"api/materials/Material", | |
"api/materials/MeshBasicMaterial", | |
"api/materials/MeshDepthMaterial", | |
"api/materials/MeshLambertMaterial", | |
"api/materials/MeshNormalMaterial", | |
"api/materials/MeshPhongMaterial", | |
"api/materials/MeshPhysicalMaterial", | |
"api/materials/MeshStandardMaterial", | |
"api/materials/MeshToonMaterial", | |
"api/materials/PointsMaterial", | |
"api/materials/RawShaderMaterial", | |
"api/materials/ShaderMaterial", | |
"api/materials/ShadowMaterial", | |
"api/materials/SpriteMaterial", | |
"api/math/Box2", | |
"api/math/Box3", | |
"api/math/Color", | |
"api/math/Cylindrical", | |
"api/math/Euler", | |
"api/math/Frustum", | |
"api/math/Interpolant", | |
"api/math/Line3", | |
"api/math/Math", | |
"api/math/Matrix3", | |
"api/math/Matrix4", | |
"api/math/Plane", | |
"api/math/Quaternion", | |
"api/math/Ray", | |
"api/math/Sphere", | |
"api/math/Spherical", | |
"api/math/Triangle", | |
"api/math/Vector2", | |
"api/math/Vector3", | |
"api/math/Vector4", | |
"api/math/interpolants/CubicInterpolant", | |
"api/math/interpolants/DiscreteInterpolant", | |
"api/math/interpolants/LinearInterpolant", | |
"api/math/interpolants/QuaternionLinearInterpolant", | |
"api/objects/Bone", | |
"api/objects/Group", | |
"api/objects/LensFlare", | |
"api/objects/Line", | |
"api/objects/LineLoop", | |
"api/objects/LineSegments", | |
"api/objects/LOD", | |
"api/objects/Mesh", | |
"api/objects/Points", | |
"api/objects/Skeleton", | |
"api/objects/SkinnedMesh", | |
"api/objects/Sprite", | |
"api/renderers/WebGLRenderer", | |
"api/renderers/WebGLRenderTarget", | |
"api/renderers/WebGLRenderTargetCube", | |
"api/renderers/shaders/ShaderChunk", | |
"api/renderers/shaders/ShaderLib", | |
"api/renderers/shaders/UniformsLib", | |
"api/renderers/shaders/UniformsUtils", | |
"api/scenes/Fog", | |
"api/scenes/FogExp2", | |
"api/scenes/Scene", | |
"api/textures/CanvasTexture", | |
"api/textures/CompressedTexture", | |
"api/textures/CubeTexture", | |
"api/textures/DataTexture", | |
"api/textures/DepthTexture", | |
"api/textures/Texture", | |
"api/textures/VideoTexture", | |
"examples/collada/Animation", | |
"examples/collada/AnimationHandler", | |
"examples/collada/KeyFrameAnimation", | |
"examples/geometries/ConvexBufferGeometry", | |
"examples/geometries/ConvexGeometry", | |
"examples/loaders/BabylonLoader", | |
"examples/loaders/ColladaLoader", | |
"examples/loaders/GLTF2Loader", | |
"examples/loaders/MTLLoader", | |
"examples/loaders/OBJLoader", | |
"examples/loaders/OBJLoader2", | |
"examples/loaders/WWOBJLoader2", | |
"examples/loaders/PCDLoader", | |
"examples/loaders/PDBLoader", | |
"examples/loaders/SVGLoader", | |
"examples/loaders/TGALoader", | |
"examples/cameras/CombinedCamera", | |
"examples/Lut", | |
"examples/SpriteCanvasMaterial", | |
"examples/quickhull/Face", | |
"examples/quickhull/HalfEdge", | |
"examples/quickhull/QuickHull", | |
"examples/quickhull/VertexNode", | |
"examples/quickhull/VertexList", | |
"examples/renderers/CanvasRenderer", | |
"api/Polyfills", | |
"api/renderers/webgl/WebGLProgram", | |
"api/renderers/webgl/WebGLShader", | |
"api/renderers/webgl/WebGLState", | |
"api/renderers/webgl/plugins/LensFlarePlugin", | |
"api/renderers/webgl/plugins/SpritePlugin", | |
]; | |
var links_in_r3r_not_in_three = r3r_links.filter( ( link ) => { | |
var non_prefixed_link = link.replace( 'https://threejs.org/docs/#', '' ); | |
var non_postfixed_link = non_prefixed_link.replace( /\.\w+$/, '' ); | |
return three_links.indexOf( non_postfixed_link ) === -1; | |
}); | |
assert.equal(links_in_r3r_not_in_three.length, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment