@anov/3d 0.0.4-alpha.1 → 0.0.4-alpha13
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.
- package/README.md +1 -144
- package/dist/applicationApi.d.ts +34 -0
- package/dist/{core/cssRenderer.js → applicationApi.js} +53 -21
- package/dist/environment/index.d.ts +27 -0
- package/dist/environment/index.js +84 -0
- package/dist/environment/time/index.d.ts +12 -0
- package/dist/environment/time/index.js +27 -0
- package/dist/environment/weather/type.d.ts +15 -0
- package/dist/environment/weather/type.js +27 -0
- package/dist/hooksManager.d.ts +2 -0
- package/dist/hooksManager.js +15 -0
- package/dist/index.d.ts +15 -3
- package/dist/index.js +38 -5
- package/dist/messageStatus.d.ts +49 -0
- package/dist/messageStatus.js +50 -0
- package/dist/utils/index.d.ts +11 -50
- package/dist/utils/index.js +29 -92
- package/dist/utils/messageFn.d.ts +12 -0
- package/dist/utils/messageFn.js +33 -0
- package/package.json +8 -24
- package/dist/commonEnu.d.ts +0 -5
- package/dist/commonEnu.js +0 -6
- package/dist/core/camera.d.ts +0 -32
- package/dist/core/camera.js +0 -74
- package/dist/core/control/transformControls.d.ts +0 -12
- package/dist/core/control/transformControls.js +0 -72
- package/dist/core/cssRenderer.d.ts +0 -17
- package/dist/core/events.d.ts +0 -16
- package/dist/core/events.js +0 -38
- package/dist/core/global/global.d.ts +0 -27
- package/dist/core/global/global.js +0 -72
- package/dist/core/global/globalControl.d.ts +0 -17
- package/dist/core/global/globalControl.js +0 -62
- package/dist/core/group.d.ts +0 -57
- package/dist/core/group.js +0 -157
- package/dist/core/line.d.ts +0 -13
- package/dist/core/line.js +0 -83
- package/dist/core/mesh.d.ts +0 -59
- package/dist/core/mesh.js +0 -180
- package/dist/core/model.d.ts +0 -30
- package/dist/core/model.js +0 -109
- package/dist/core/scene.d.ts +0 -175
- package/dist/core/scene.js +0 -381
- package/dist/core/use/useScene.d.ts +0 -10
- package/dist/core/use/useScene.js +0 -14
- package/dist/core/use/useframe.d.ts +0 -6
- package/dist/core/use/useframe.js +0 -11
- package/dist/export.d.ts +0 -40
- package/dist/export.js +0 -36
- package/dist/threeCell.d.ts +0 -8
- package/dist/threeCell.js +0 -16
- package/dist/type.d.ts +0 -3
- package/dist/type.js +0 -1
- package/dist/utils/createElement.d.ts +0 -103
- package/dist/utils/createElement.js +0 -145
- package/dist/utils/createLabel.d.ts +0 -2
- package/dist/utils/createLabel.js +0 -4
- package/dist/utils/line.d.ts +0 -0
- package/dist/utils/line.js +0 -0
- package/dist/utils/move.d.ts +0 -48
- package/dist/utils/move.js +0 -149
- package/examples/fonts/LICENSE +0 -13
- package/examples/fonts/README.md +0 -11
- package/examples/fonts/droid/NOTICE +0 -190
- package/examples/fonts/droid/README.txt +0 -18
- package/examples/fonts/droid/droid_sans_bold.typeface.json +0 -1
- package/examples/fonts/droid/droid_sans_mono_regular.typeface.json +0 -1
- package/examples/fonts/droid/droid_sans_regular.typeface.json +0 -1
- package/examples/fonts/droid/droid_serif_bold.typeface.json +0 -1
- package/examples/fonts/droid/droid_serif_regular.typeface.json +0 -1
- package/examples/fonts/gentilis_bold.typeface.json +0 -1
- package/examples/fonts/gentilis_regular.typeface.json +0 -1
- package/examples/fonts/helvetiker_bold.typeface.json +0 -1
- package/examples/fonts/helvetiker_regular.typeface.json +0 -1
- package/examples/fonts/optimer_bold.typeface.json +0 -1
- package/examples/fonts/optimer_regular.typeface.json +0 -1
- package/examples/fonts/ttf/README.md +0 -9
- package/examples/fonts/ttf/kenpixel.ttf +0 -0
- package/examples/jsm/animation/AnimationClipCreator.js +0 -116
- package/examples/jsm/animation/CCDIKSolver.js +0 -482
- package/examples/jsm/animation/MMDAnimationHelper.js +0 -1207
- package/examples/jsm/animation/MMDPhysics.js +0 -1406
- package/examples/jsm/cameras/CinematicCamera.js +0 -208
- package/examples/jsm/capabilities/WebGL.js +0 -91
- package/examples/jsm/capabilities/WebGPU.js +0 -53
- package/examples/jsm/controls/ArcballControls.js +0 -3224
- package/examples/jsm/controls/DragControls.js +0 -220
- package/examples/jsm/controls/FirstPersonControls.js +0 -325
- package/examples/jsm/controls/FlyControls.js +0 -300
- package/examples/jsm/controls/MapControls.js +0 -28
- package/examples/jsm/controls/OrbitControls.js +0 -1388
- package/examples/jsm/controls/PointerLockControls.js +0 -162
- package/examples/jsm/controls/TrackballControls.js +0 -828
- package/examples/jsm/controls/TransformControls.js +0 -1557
- package/examples/jsm/csm/CSM.js +0 -384
- package/examples/jsm/csm/CSMFrustum.js +0 -152
- package/examples/jsm/csm/CSMHelper.js +0 -193
- package/examples/jsm/csm/CSMShader.js +0 -252
- package/examples/jsm/curves/CurveExtras.js +0 -422
- package/examples/jsm/curves/NURBSCurve.js +0 -80
- package/examples/jsm/curves/NURBSSurface.js +0 -52
- package/examples/jsm/curves/NURBSUtils.js +0 -487
- package/examples/jsm/effects/AnaglyphEffect.js +0 -154
- package/examples/jsm/effects/AsciiEffect.js +0 -263
- package/examples/jsm/effects/OutlineEffect.js +0 -539
- package/examples/jsm/effects/ParallaxBarrierEffect.js +0 -119
- package/examples/jsm/effects/PeppersGhostEffect.js +0 -153
- package/examples/jsm/effects/StereoEffect.js +0 -55
- package/examples/jsm/environments/DebugEnvironment.js +0 -52
- package/examples/jsm/environments/RoomEnvironment.js +0 -148
- package/examples/jsm/exporters/DRACOExporter.js +0 -267
- package/examples/jsm/exporters/EXRExporter.js +0 -501
- package/examples/jsm/exporters/GLTFExporter.js +0 -3161
- package/examples/jsm/exporters/KTX2Exporter.js +0 -292
- package/examples/jsm/exporters/MMDExporter.js +0 -217
- package/examples/jsm/exporters/OBJExporter.js +0 -284
- package/examples/jsm/exporters/PLYExporter.js +0 -528
- package/examples/jsm/exporters/STLExporter.js +0 -199
- package/examples/jsm/exporters/USDZExporter.js +0 -711
- package/examples/jsm/geometries/BoxLineGeometry.js +0 -69
- package/examples/jsm/geometries/ConvexGeometry.js +0 -53
- package/examples/jsm/geometries/DecalGeometry.js +0 -356
- package/examples/jsm/geometries/ParametricGeometries.js +0 -254
- package/examples/jsm/geometries/ParametricGeometry.js +0 -139
- package/examples/jsm/geometries/RoundedBoxGeometry.js +0 -155
- package/examples/jsm/geometries/TeapotGeometry.js +0 -704
- package/examples/jsm/geometries/TextGeometry.js +0 -57
- package/examples/jsm/helpers/LightProbeHelper.js +0 -130
- package/examples/jsm/helpers/OctreeHelper.js +0 -73
- package/examples/jsm/helpers/PositionalAudioHelper.js +0 -109
- package/examples/jsm/helpers/RectAreaLightHelper.js +0 -85
- package/examples/jsm/helpers/VertexNormalsHelper.js +0 -96
- package/examples/jsm/helpers/VertexTangentsHelper.js +0 -88
- package/examples/jsm/helpers/ViewHelper.js +0 -333
- package/examples/jsm/interactive/HTMLMesh.js +0 -565
- package/examples/jsm/interactive/InteractiveGroup.js +0 -116
- package/examples/jsm/interactive/SelectionBox.js +0 -227
- package/examples/jsm/interactive/SelectionHelper.js +0 -104
- package/examples/jsm/libs/ammo.wasm.js +0 -822
- package/examples/jsm/libs/ammo.wasm.wasm +0 -0
- package/examples/jsm/libs/basis/README.md +0 -46
- package/examples/jsm/libs/basis/basis_transcoder.js +0 -21
- package/examples/jsm/libs/basis/basis_transcoder.wasm +0 -0
- package/examples/jsm/libs/chevrotain.module.min.js +0 -141
- package/examples/jsm/libs/draco/README.md +0 -32
- package/examples/jsm/libs/draco/draco_decoder.js +0 -34
- package/examples/jsm/libs/draco/draco_decoder.wasm +0 -0
- package/examples/jsm/libs/draco/draco_encoder.js +0 -33
- package/examples/jsm/libs/draco/draco_wasm_wrapper.js +0 -117
- package/examples/jsm/libs/draco/gltf/draco_decoder.js +0 -33
- package/examples/jsm/libs/draco/gltf/draco_decoder.wasm +0 -0
- package/examples/jsm/libs/draco/gltf/draco_encoder.js +0 -33
- package/examples/jsm/libs/draco/gltf/draco_wasm_wrapper.js +0 -116
- package/examples/jsm/libs/ecsy.module.js +0 -1792
- package/examples/jsm/libs/fflate.module.js +0 -2474
- package/examples/jsm/libs/ktx-parse.module.js +0 -1
- package/examples/jsm/libs/lil-gui.module.min.js +0 -8
- package/examples/jsm/libs/lottie_canvas.module.js +0 -14844
- package/examples/jsm/libs/meshopt_decoder.module.js +0 -178
- package/examples/jsm/libs/mikktspace.module.js +0 -128
- package/examples/jsm/libs/mmdparser.module.js +0 -11530
- package/examples/jsm/libs/motion-controllers.module.js +0 -397
- package/examples/jsm/libs/opentype.module.js +0 -14568
- package/examples/jsm/libs/potpack.module.js +0 -125
- package/examples/jsm/libs/rhino3dm/rhino3dm.js +0 -21
- package/examples/jsm/libs/rhino3dm/rhino3dm.module.js +0 -16
- package/examples/jsm/libs/rhino3dm/rhino3dm.wasm +0 -0
- package/examples/jsm/libs/stats.module.js +0 -167
- package/examples/jsm/libs/tween.module.js +0 -803
- package/examples/jsm/libs/utif.module.js +0 -1579
- package/examples/jsm/libs/zstddec.module.js +0 -1
- package/examples/jsm/lights/IESSpotLight.js +0 -25
- package/examples/jsm/lights/LightProbeGenerator.js +0 -252
- package/examples/jsm/lights/RectAreaLightUniformsLib.js +0 -79
- package/examples/jsm/lines/Line2.js +0 -19
- package/examples/jsm/lines/LineGeometry.js +0 -79
- package/examples/jsm/lines/LineMaterial.js +0 -702
- package/examples/jsm/lines/LineSegments2.js +0 -361
- package/examples/jsm/lines/LineSegmentsGeometry.js +0 -241
- package/examples/jsm/lines/Wireframe.js +0 -56
- package/examples/jsm/lines/WireframeGeometry2.js +0 -24
- package/examples/jsm/loaders/3DMLoader.js +0 -1497
- package/examples/jsm/loaders/3MFLoader.js +0 -1478
- package/examples/jsm/loaders/AMFLoader.js +0 -521
- package/examples/jsm/loaders/BVHLoader.js +0 -437
- package/examples/jsm/loaders/ColladaLoader.js +0 -4122
- package/examples/jsm/loaders/DDSLoader.js +0 -274
- package/examples/jsm/loaders/DRACOLoader.js +0 -612
- package/examples/jsm/loaders/EXRLoader.js +0 -2309
- package/examples/jsm/loaders/FBXLoader.js +0 -4142
- package/examples/jsm/loaders/FontLoader.js +0 -183
- package/examples/jsm/loaders/GCodeLoader.js +0 -261
- package/examples/jsm/loaders/GLTFLoader.js +0 -4576
- package/examples/jsm/loaders/HDRCubeTextureLoader.js +0 -115
- package/examples/jsm/loaders/IESLoader.js +0 -337
- package/examples/jsm/loaders/KMZLoader.js +0 -130
- package/examples/jsm/loaders/KTX2Loader.js +0 -868
- package/examples/jsm/loaders/KTXLoader.js +0 -176
- package/examples/jsm/loaders/LDrawLoader.js +0 -2464
- package/examples/jsm/loaders/LUT3dlLoader.js +0 -151
- package/examples/jsm/loaders/LUTCubeLoader.js +0 -153
- package/examples/jsm/loaders/LWOLoader.js +0 -1052
- package/examples/jsm/loaders/LogLuvLoader.js +0 -606
- package/examples/jsm/loaders/LottieLoader.js +0 -77
- package/examples/jsm/loaders/MD2Loader.js +0 -399
- package/examples/jsm/loaders/MDDLoader.js +0 -102
- package/examples/jsm/loaders/MMDLoader.js +0 -2273
- package/examples/jsm/loaders/MTLLoader.js +0 -567
- package/examples/jsm/loaders/MaterialXLoader.js +0 -734
- package/examples/jsm/loaders/NRRDLoader.js +0 -699
- package/examples/jsm/loaders/OBJLoader.js +0 -905
- package/examples/jsm/loaders/PCDLoader.js +0 -467
- package/examples/jsm/loaders/PDBLoader.js +0 -232
- package/examples/jsm/loaders/PLYLoader.js +0 -771
- package/examples/jsm/loaders/PVRLoader.js +0 -251
- package/examples/jsm/loaders/RGBELoader.js +0 -468
- package/examples/jsm/loaders/RGBMLoader.js +0 -1065
- package/examples/jsm/loaders/STLLoader.js +0 -403
- package/examples/jsm/loaders/SVGLoader.js +0 -3172
- package/examples/jsm/loaders/TDSLoader.js +0 -1124
- package/examples/jsm/loaders/TGALoader.js +0 -517
- package/examples/jsm/loaders/TIFFLoader.js +0 -36
- package/examples/jsm/loaders/TTFLoader.js +0 -214
- package/examples/jsm/loaders/TiltLoader.js +0 -520
- package/examples/jsm/loaders/USDZLoader.js +0 -633
- package/examples/jsm/loaders/VOXLoader.js +0 -311
- package/examples/jsm/loaders/VRMLLoader.js +0 -3533
- package/examples/jsm/loaders/VTKLoader.js +0 -1163
- package/examples/jsm/loaders/XYZLoader.js +0 -106
- package/examples/jsm/loaders/lwo/IFFParser.js +0 -1218
- package/examples/jsm/loaders/lwo/LWO2Parser.js +0 -414
- package/examples/jsm/loaders/lwo/LWO3Parser.js +0 -373
- package/examples/jsm/materials/MeshGouraudMaterial.js +0 -420
- package/examples/jsm/math/Capsule.js +0 -137
- package/examples/jsm/math/ColorConverter.js +0 -36
- package/examples/jsm/math/ConvexHull.js +0 -1271
- package/examples/jsm/math/ImprovedNoise.js +0 -71
- package/examples/jsm/math/Lut.js +0 -204
- package/examples/jsm/math/MeshSurfaceSampler.js +0 -250
- package/examples/jsm/math/OBB.js +0 -423
- package/examples/jsm/math/Octree.js +0 -462
- package/examples/jsm/math/SimplexNoise.js +0 -444
- package/examples/jsm/misc/ConvexObjectBreaker.js +0 -519
- package/examples/jsm/misc/GPUComputationRenderer.js +0 -446
- package/examples/jsm/misc/Gyroscope.js +0 -66
- package/examples/jsm/misc/MD2Character.js +0 -276
- package/examples/jsm/misc/MD2CharacterComplex.js +0 -576
- package/examples/jsm/misc/MorphAnimMesh.js +0 -75
- package/examples/jsm/misc/MorphBlendMesh.js +0 -322
- package/examples/jsm/misc/ProgressiveLightMap.js +0 -323
- package/examples/jsm/misc/RollerCoaster.js +0 -566
- package/examples/jsm/misc/TubePainter.js +0 -205
- package/examples/jsm/misc/Volume.js +0 -473
- package/examples/jsm/misc/VolumeSlice.js +0 -229
- package/examples/jsm/modifiers/CurveModifier.js +0 -326
- package/examples/jsm/modifiers/EdgeSplitModifier.js +0 -279
- package/examples/jsm/modifiers/SimplifyModifier.js +0 -525
- package/examples/jsm/modifiers/TessellateModifier.js +0 -307
- package/examples/jsm/nodes/Nodes.js +0 -171
- package/examples/jsm/nodes/accessors/BitangentNode.js +0 -89
- package/examples/jsm/nodes/accessors/BufferAttributeNode.js +0 -99
- package/examples/jsm/nodes/accessors/BufferNode.js +0 -30
- package/examples/jsm/nodes/accessors/CameraNode.js +0 -98
- package/examples/jsm/nodes/accessors/CubeTextureNode.js +0 -103
- package/examples/jsm/nodes/accessors/ExtendedMaterialNode.js +0 -77
- package/examples/jsm/nodes/accessors/InstanceNode.js +0 -71
- package/examples/jsm/nodes/accessors/MaterialNode.js +0 -267
- package/examples/jsm/nodes/accessors/MaterialReferenceNode.js +0 -39
- package/examples/jsm/nodes/accessors/ModelNode.js +0 -34
- package/examples/jsm/nodes/accessors/ModelViewProjectionNode.js +0 -29
- package/examples/jsm/nodes/accessors/MorphNode.js +0 -70
- package/examples/jsm/nodes/accessors/NormalNode.js +0 -96
- package/examples/jsm/nodes/accessors/Object3DNode.js +0 -150
- package/examples/jsm/nodes/accessors/PointUVNode.js +0 -26
- package/examples/jsm/nodes/accessors/PositionNode.js +0 -104
- package/examples/jsm/nodes/accessors/ReferenceNode.js +0 -72
- package/examples/jsm/nodes/accessors/ReflectVectorNode.js +0 -35
- package/examples/jsm/nodes/accessors/SceneNode.js +0 -52
- package/examples/jsm/nodes/accessors/SkinningNode.js +0 -93
- package/examples/jsm/nodes/accessors/StorageBufferNode.js +0 -27
- package/examples/jsm/nodes/accessors/TangentNode.js +0 -103
- package/examples/jsm/nodes/accessors/TextureBicubicNode.js +0 -94
- package/examples/jsm/nodes/accessors/TextureNode.js +0 -271
- package/examples/jsm/nodes/accessors/TextureSizeNode.js +0 -35
- package/examples/jsm/nodes/accessors/UVNode.js +0 -47
- package/examples/jsm/nodes/accessors/UserDataNode.js +0 -29
- package/examples/jsm/nodes/code/CodeNode.js +0 -78
- package/examples/jsm/nodes/code/ExpressionNode.js +0 -37
- package/examples/jsm/nodes/code/FunctionCallNode.js +0 -96
- package/examples/jsm/nodes/code/FunctionNode.js +0 -127
- package/examples/jsm/nodes/code/ScriptableNode.js +0 -488
- package/examples/jsm/nodes/code/ScriptableValueNode.js +0 -167
- package/examples/jsm/nodes/core/ArrayUniformNode.js +0 -26
- package/examples/jsm/nodes/core/AttributeNode.js +0 -102
- package/examples/jsm/nodes/core/BypassNode.js +0 -45
- package/examples/jsm/nodes/core/CacheNode.js +0 -46
- package/examples/jsm/nodes/core/ConstNode.js +0 -32
- package/examples/jsm/nodes/core/ContextNode.js +0 -61
- package/examples/jsm/nodes/core/IndexNode.js +0 -66
- package/examples/jsm/nodes/core/InputNode.js +0 -83
- package/examples/jsm/nodes/core/LightingModel.js +0 -15
- package/examples/jsm/nodes/core/Node.js +0 -454
- package/examples/jsm/nodes/core/NodeAttribute.js +0 -15
- package/examples/jsm/nodes/core/NodeBuilder.js +0 -1016
- package/examples/jsm/nodes/core/NodeCache.js +0 -26
- package/examples/jsm/nodes/core/NodeCode.js +0 -15
- package/examples/jsm/nodes/core/NodeFrame.js +0 -110
- package/examples/jsm/nodes/core/NodeFunction.js +0 -22
- package/examples/jsm/nodes/core/NodeFunctionInput.js +0 -17
- package/examples/jsm/nodes/core/NodeKeywords.js +0 -80
- package/examples/jsm/nodes/core/NodeParser.js +0 -11
- package/examples/jsm/nodes/core/NodeUniform.js +0 -28
- package/examples/jsm/nodes/core/NodeUtils.js +0 -212
- package/examples/jsm/nodes/core/NodeVar.js +0 -14
- package/examples/jsm/nodes/core/NodeVarying.js +0 -17
- package/examples/jsm/nodes/core/PropertyNode.js +0 -61
- package/examples/jsm/nodes/core/StackNode.js +0 -99
- package/examples/jsm/nodes/core/TempNode.js +0 -58
- package/examples/jsm/nodes/core/UniformNode.js +0 -61
- package/examples/jsm/nodes/core/VarNode.js +0 -87
- package/examples/jsm/nodes/core/VaryingNode.js +0 -69
- package/examples/jsm/nodes/core/constants.js +0 -27
- package/examples/jsm/nodes/display/BlendModeNode.js +0 -99
- package/examples/jsm/nodes/display/BumpMapNode.js +0 -77
- package/examples/jsm/nodes/display/ColorAdjustmentNode.js +0 -100
- package/examples/jsm/nodes/display/ColorSpaceNode.js +0 -108
- package/examples/jsm/nodes/display/FrontFacingNode.js +0 -27
- package/examples/jsm/nodes/display/NormalMapNode.js +0 -106
- package/examples/jsm/nodes/display/PosterizeNode.js +0 -32
- package/examples/jsm/nodes/display/ToneMappingNode.js +0 -141
- package/examples/jsm/nodes/display/ViewportDepthNode.js +0 -69
- package/examples/jsm/nodes/display/ViewportDepthTextureNode.js +0 -34
- package/examples/jsm/nodes/display/ViewportNode.js +0 -115
- package/examples/jsm/nodes/display/ViewportSharedTextureNode.js +0 -31
- package/examples/jsm/nodes/display/ViewportTextureNode.js +0 -75
- package/examples/jsm/nodes/fog/FogExp2Node.js +0 -35
- package/examples/jsm/nodes/fog/FogNode.js +0 -37
- package/examples/jsm/nodes/fog/FogRangeNode.js +0 -34
- package/examples/jsm/nodes/functions/BSDF/BRDF_GGX.js +0 -40
- package/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.js +0 -9
- package/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.js +0 -43
- package/examples/jsm/nodes/functions/BSDF/DFGApprox.js +0 -29
- package/examples/jsm/nodes/functions/BSDF/D_GGX.js +0 -18
- package/examples/jsm/nodes/functions/BSDF/EnvironmentBRDF.js +0 -13
- package/examples/jsm/nodes/functions/BSDF/F_Schlick.js +0 -16
- package/examples/jsm/nodes/functions/BSDF/Schlick_to_F0.js +0 -13
- package/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.js +0 -20
- package/examples/jsm/nodes/functions/PhongLightingModel.js +0 -67
- package/examples/jsm/nodes/functions/PhysicalLightingModel.js +0 -343
- package/examples/jsm/nodes/functions/material/getGeometryRoughness.js +0 -13
- package/examples/jsm/nodes/functions/material/getRoughness.js +0 -18
- package/examples/jsm/nodes/geometry/RangeNode.js +0 -104
- package/examples/jsm/nodes/gpgpu/ComputeNode.js +0 -85
- package/examples/jsm/nodes/lighting/AONode.js +0 -27
- package/examples/jsm/nodes/lighting/AmbientLightNode.js +0 -27
- package/examples/jsm/nodes/lighting/AnalyticLightNode.js +0 -184
- package/examples/jsm/nodes/lighting/DirectionalLightNode.js +0 -40
- package/examples/jsm/nodes/lighting/EnvironmentNode.js +0 -191
- package/examples/jsm/nodes/lighting/HemisphereLightNode.js +0 -55
- package/examples/jsm/nodes/lighting/IESSpotLightNode.js +0 -39
- package/examples/jsm/nodes/lighting/LightNode.js +0 -57
- package/examples/jsm/nodes/lighting/LightUtils.js +0 -17
- package/examples/jsm/nodes/lighting/LightingContextNode.js +0 -102
- package/examples/jsm/nodes/lighting/LightingNode.js +0 -21
- package/examples/jsm/nodes/lighting/LightsNode.js +0 -128
- package/examples/jsm/nodes/lighting/PointLightNode.js +0 -68
- package/examples/jsm/nodes/lighting/SpotLightNode.js +0 -89
- package/examples/jsm/nodes/loaders/NodeLoader.js +0 -108
- package/examples/jsm/nodes/loaders/NodeMaterialLoader.js +0 -59
- package/examples/jsm/nodes/loaders/NodeObjectLoader.js +0 -70
- package/examples/jsm/nodes/materials/LineBasicNodeMaterial.js +0 -28
- package/examples/jsm/nodes/materials/Materials.js +0 -12
- package/examples/jsm/nodes/materials/MeshBasicNodeMaterial.js +0 -27
- package/examples/jsm/nodes/materials/MeshLambertNodeMaterial.js +0 -34
- package/examples/jsm/nodes/materials/MeshNormalNodeMaterial.js +0 -40
- package/examples/jsm/nodes/materials/MeshPhongNodeMaterial.js +0 -65
- package/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.js +0 -128
- package/examples/jsm/nodes/materials/MeshStandardNodeMaterial.js +0 -80
- package/examples/jsm/nodes/materials/NodeMaterial.js +0 -536
- package/examples/jsm/nodes/materials/PointsNodeMaterial.js +0 -49
- package/examples/jsm/nodes/materials/SpriteNodeMaterial.js +0 -103
- package/examples/jsm/nodes/materialx/DISCLAIMER.md +0 -199
- package/examples/jsm/nodes/materialx/MaterialXNodes.js +0 -68
- package/examples/jsm/nodes/materialx/lib/mx_hsv.js +0 -56
- package/examples/jsm/nodes/materialx/lib/mx_noise.js +0 -618
- package/examples/jsm/nodes/materialx/lib/mx_transform_color.js +0 -19
- package/examples/jsm/nodes/math/CondNode.js +0 -86
- package/examples/jsm/nodes/math/MathNode.js +0 -359
- package/examples/jsm/nodes/math/OperatorNode.js +0 -269
- package/examples/jsm/nodes/parsers/GLSLNodeFunction.js +0 -152
- package/examples/jsm/nodes/parsers/GLSLNodeParser.js +0 -14
- package/examples/jsm/nodes/procedural/CheckerNode.js +0 -42
- package/examples/jsm/nodes/shadernode/ShaderNode.js +0 -420
- package/examples/jsm/nodes/utils/ArrayElementNode.js +0 -33
- package/examples/jsm/nodes/utils/ConvertNode.js +0 -65
- package/examples/jsm/nodes/utils/DiscardNode.js +0 -26
- package/examples/jsm/nodes/utils/EquirectUVNode.js +0 -33
- package/examples/jsm/nodes/utils/JoinNode.js +0 -51
- package/examples/jsm/nodes/utils/LoopNode.js +0 -186
- package/examples/jsm/nodes/utils/MatcapUVNode.js +0 -30
- package/examples/jsm/nodes/utils/MaxMipLevelNode.js +0 -46
- package/examples/jsm/nodes/utils/OscNode.js +0 -81
- package/examples/jsm/nodes/utils/PackingNode.js +0 -55
- package/examples/jsm/nodes/utils/RemapNode.js +0 -42
- package/examples/jsm/nodes/utils/RotateUVNode.js +0 -43
- package/examples/jsm/nodes/utils/SpecularMIPLevelNode.js +0 -37
- package/examples/jsm/nodes/utils/SplitNode.js +0 -104
- package/examples/jsm/nodes/utils/SpriteSheetUVNode.js +0 -41
- package/examples/jsm/nodes/utils/TimerNode.js +0 -94
- package/examples/jsm/nodes/utils/TriplanarTexturesNode.js +0 -62
- package/examples/jsm/objects/GroundProjectedSkybox.js +0 -172
- package/examples/jsm/objects/Lensflare.js +0 -377
- package/examples/jsm/objects/MarchingCubes.js +0 -1176
- package/examples/jsm/objects/Reflector.js +0 -264
- package/examples/jsm/objects/ReflectorForSSRPass.js +0 -349
- package/examples/jsm/objects/Refractor.js +0 -324
- package/examples/jsm/objects/ShadowMesh.js +0 -80
- package/examples/jsm/objects/Sky.js +0 -219
- package/examples/jsm/objects/Water.js +0 -330
- package/examples/jsm/objects/Water2.js +0 -358
- package/examples/jsm/offscreen/jank.js +0 -45
- package/examples/jsm/offscreen/offscreen.js +0 -8
- package/examples/jsm/offscreen/scene.js +0 -86
- package/examples/jsm/physics/AmmoPhysics.js +0 -285
- package/examples/jsm/physics/RapierPhysics.js +0 -199
- package/examples/jsm/postprocessing/AfterimagePass.js +0 -104
- package/examples/jsm/postprocessing/BloomPass.js +0 -172
- package/examples/jsm/postprocessing/BokehPass.js +0 -140
- package/examples/jsm/postprocessing/ClearPass.js +0 -46
- package/examples/jsm/postprocessing/CubeTexturePass.js +0 -85
- package/examples/jsm/postprocessing/DotScreenPass.js +0 -65
- package/examples/jsm/postprocessing/EffectComposer.js +0 -231
- package/examples/jsm/postprocessing/FilmPass.js +0 -66
- package/examples/jsm/postprocessing/GlitchPass.js +0 -128
- package/examples/jsm/postprocessing/HalftonePass.js +0 -79
- package/examples/jsm/postprocessing/LUTPass.js +0 -173
- package/examples/jsm/postprocessing/MaskPass.js +0 -104
- package/examples/jsm/postprocessing/OutlinePass.js +0 -654
- package/examples/jsm/postprocessing/OutputPass.js +0 -91
- package/examples/jsm/postprocessing/Pass.js +0 -84
- package/examples/jsm/postprocessing/RenderPass.js +0 -81
- package/examples/jsm/postprocessing/RenderPixelatedPass.js +0 -235
- package/examples/jsm/postprocessing/SAOPass.js +0 -411
- package/examples/jsm/postprocessing/SMAAPass.js +0 -201
- package/examples/jsm/postprocessing/SSAARenderPass.js +0 -228
- package/examples/jsm/postprocessing/SSAOPass.js +0 -440
- package/examples/jsm/postprocessing/SSRPass.js +0 -641
- package/examples/jsm/postprocessing/SavePass.js +0 -79
- package/examples/jsm/postprocessing/ShaderPass.js +0 -77
- package/examples/jsm/postprocessing/TAARenderPass.js +0 -189
- package/examples/jsm/postprocessing/TexturePass.js +0 -67
- package/examples/jsm/postprocessing/UnrealBloomPass.js +0 -415
- package/examples/jsm/renderers/CSS2DRenderer.js +0 -215
- package/examples/jsm/renderers/CSS3DRenderer.js +0 -335
- package/examples/jsm/renderers/Projector.js +0 -918
- package/examples/jsm/renderers/SVGRenderer.js +0 -553
- package/examples/jsm/renderers/common/Animation.js +0 -58
- package/examples/jsm/renderers/common/Attributes.js +0 -75
- package/examples/jsm/renderers/common/Backend.js +0 -162
- package/examples/jsm/renderers/common/Background.js +0 -136
- package/examples/jsm/renderers/common/Binding.js +0 -19
- package/examples/jsm/renderers/common/Bindings.js +0 -165
- package/examples/jsm/renderers/common/Buffer.js +0 -38
- package/examples/jsm/renderers/common/BufferUtils.js +0 -33
- package/examples/jsm/renderers/common/ChainMap.js +0 -89
- package/examples/jsm/renderers/common/ComputePipeline.js +0 -17
- package/examples/jsm/renderers/common/Constants.js +0 -14
- package/examples/jsm/renderers/common/CubeRenderTarget.js +0 -65
- package/examples/jsm/renderers/common/DataMap.js +0 -54
- package/examples/jsm/renderers/common/Geometries.js +0 -215
- package/examples/jsm/renderers/common/Info.js +0 -73
- package/examples/jsm/renderers/common/Pipeline.js +0 -13
- package/examples/jsm/renderers/common/Pipelines.js +0 -370
- package/examples/jsm/renderers/common/ProgrammableStage.js +0 -18
- package/examples/jsm/renderers/common/RenderContext.js +0 -38
- package/examples/jsm/renderers/common/RenderContexts.js +0 -49
- package/examples/jsm/renderers/common/RenderList.js +0 -178
- package/examples/jsm/renderers/common/RenderLists.js +0 -38
- package/examples/jsm/renderers/common/RenderObject.js +0 -129
- package/examples/jsm/renderers/common/RenderObjects.js +0 -95
- package/examples/jsm/renderers/common/RenderPipeline.js +0 -16
- package/examples/jsm/renderers/common/Renderer.js +0 -895
- package/examples/jsm/renderers/common/SampledTexture.js +0 -80
- package/examples/jsm/renderers/common/Sampler.js +0 -18
- package/examples/jsm/renderers/common/StorageBuffer.js +0 -17
- package/examples/jsm/renderers/common/Textures.js +0 -218
- package/examples/jsm/renderers/common/Uniform.js +0 -140
- package/examples/jsm/renderers/common/UniformBuffer.js +0 -15
- package/examples/jsm/renderers/common/UniformsGroup.js +0 -299
- package/examples/jsm/renderers/common/nodes/NodeSampledTexture.js +0 -39
- package/examples/jsm/renderers/common/nodes/NodeSampler.js +0 -21
- package/examples/jsm/renderers/common/nodes/NodeUniform.js +0 -135
- package/examples/jsm/renderers/common/nodes/Nodes.js +0 -330
- package/examples/jsm/renderers/webgl/nodes/GLSLNodeBuilder.js +0 -340
- package/examples/jsm/renderers/webgl/nodes/SlotNode.js +0 -26
- package/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js +0 -764
- package/examples/jsm/renderers/webgl/nodes/WebGLNodes.js +0 -49
- package/examples/jsm/renderers/webgpu/WebGPUBackend.js +0 -844
- package/examples/jsm/renderers/webgpu/WebGPURenderer.js +0 -32
- package/examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js +0 -902
- package/examples/jsm/renderers/webgpu/nodes/WGSLNodeFunction.js +0 -104
- package/examples/jsm/renderers/webgpu/nodes/WGSLNodeParser.js +0 -14
- package/examples/jsm/renderers/webgpu/utils/WebGPUAttributeUtils.js +0 -274
- package/examples/jsm/renderers/webgpu/utils/WebGPUBindingUtils.js +0 -223
- package/examples/jsm/renderers/webgpu/utils/WebGPUConstants.js +0 -324
- package/examples/jsm/renderers/webgpu/utils/WebGPUPipelineUtils.js +0 -533
- package/examples/jsm/renderers/webgpu/utils/WebGPUTextureMipmapUtils.js +0 -163
- package/examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js +0 -964
- package/examples/jsm/renderers/webgpu/utils/WebGPUUtils.js +0 -92
- package/examples/jsm/shaders/ACESFilmicToneMappingShader.js +0 -87
- package/examples/jsm/shaders/AfterimageShader.js +0 -56
- package/examples/jsm/shaders/BasicShader.js +0 -27
- package/examples/jsm/shaders/BleachBypassShader.js +0 -62
- package/examples/jsm/shaders/BlendShader.js +0 -47
- package/examples/jsm/shaders/BokehShader.js +0 -143
- package/examples/jsm/shaders/BokehShader2.js +0 -393
- package/examples/jsm/shaders/BrightnessContrastShader.js +0 -54
- package/examples/jsm/shaders/ColorCorrectionShader.js +0 -50
- package/examples/jsm/shaders/ColorifyShader.js +0 -51
- package/examples/jsm/shaders/ConvolutionShader.js +0 -103
- package/examples/jsm/shaders/CopyShader.js +0 -45
- package/examples/jsm/shaders/DOFMipMapShader.js +0 -54
- package/examples/jsm/shaders/DepthLimitedBlurShader.js +0 -166
- package/examples/jsm/shaders/DigitalGlitch.js +0 -101
- package/examples/jsm/shaders/DotScreenShader.js +0 -70
- package/examples/jsm/shaders/ExposureShader.js +0 -44
- package/examples/jsm/shaders/FXAAShader.js +0 -286
- package/examples/jsm/shaders/FilmShader.js +0 -102
- package/examples/jsm/shaders/FocusShader.js +0 -87
- package/examples/jsm/shaders/FreiChenShader.js +0 -94
- package/examples/jsm/shaders/GammaCorrectionShader.js +0 -43
- package/examples/jsm/shaders/GodRaysShader.js +0 -313
- package/examples/jsm/shaders/HalftoneShader.js +0 -310
- package/examples/jsm/shaders/HorizontalBlurShader.js +0 -59
- package/examples/jsm/shaders/HorizontalTiltShiftShader.js +0 -61
- package/examples/jsm/shaders/HueSaturationShader.js +0 -65
- package/examples/jsm/shaders/KaleidoShader.js +0 -56
- package/examples/jsm/shaders/LuminosityHighPassShader.js +0 -64
- package/examples/jsm/shaders/LuminosityShader.js +0 -46
- package/examples/jsm/shaders/MMDToonShader.js +0 -132
- package/examples/jsm/shaders/MirrorShader.js +0 -54
- package/examples/jsm/shaders/NormalMapShader.js +0 -53
- package/examples/jsm/shaders/OutputShader.js +0 -78
- package/examples/jsm/shaders/RGBShiftShader.js +0 -54
- package/examples/jsm/shaders/SAOShader.js +0 -188
- package/examples/jsm/shaders/SMAAShader.js +0 -460
- package/examples/jsm/shaders/SSAOShader.js +0 -288
- package/examples/jsm/shaders/SSRShader.js +0 -364
- package/examples/jsm/shaders/SepiaShader.js +0 -52
- package/examples/jsm/shaders/SobelOperatorShader.js +0 -90
- package/examples/jsm/shaders/SubsurfaceScatteringShader.js +0 -88
- package/examples/jsm/shaders/TechnicolorShader.js +0 -43
- package/examples/jsm/shaders/ToonShader.js +0 -326
- package/examples/jsm/shaders/TriangleBlurShader.js +0 -72
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +0 -45
- package/examples/jsm/shaders/VelocityShader.js +0 -128
- package/examples/jsm/shaders/VerticalBlurShader.js +0 -59
- package/examples/jsm/shaders/VerticalTiltShiftShader.js +0 -61
- package/examples/jsm/shaders/VignetteShader.js +0 -51
- package/examples/jsm/shaders/VolumeShader.js +0 -289
- package/examples/jsm/shaders/WaterRefractionShader.js +0 -93
- package/examples/jsm/textures/FlakesTexture.js +0 -40
- package/examples/jsm/utils/BufferGeometryUtils.js +0 -1373
- package/examples/jsm/utils/CameraUtils.js +0 -73
- package/examples/jsm/utils/GPUStatsPanel.js +0 -128
- package/examples/jsm/utils/GeometryCompressionUtils.js +0 -639
- package/examples/jsm/utils/GeometryUtils.js +0 -221
- package/examples/jsm/utils/LDrawUtils.js +0 -202
- package/examples/jsm/utils/PackedPhongMaterial.js +0 -178
- package/examples/jsm/utils/SceneUtils.js +0 -254
- package/examples/jsm/utils/ShadowMapViewer.js +0 -210
- package/examples/jsm/utils/SkeletonUtils.js +0 -413
- package/examples/jsm/utils/TextureUtils.js +0 -86
- package/examples/jsm/utils/UVsDebug.js +0 -165
- package/examples/jsm/utils/WorkerPool.js +0 -102
- package/examples/jsm/webxr/ARButton.js +0 -208
- package/examples/jsm/webxr/OculusHandModel.js +0 -109
- package/examples/jsm/webxr/OculusHandPointerModel.js +0 -413
- package/examples/jsm/webxr/Text2D.js +0 -38
- package/examples/jsm/webxr/VRButton.js +0 -200
- package/examples/jsm/webxr/XRButton.js +0 -198
- package/examples/jsm/webxr/XRControllerModelFactory.js +0 -299
- package/examples/jsm/webxr/XREstimatedLight.js +0 -223
- package/examples/jsm/webxr/XRHandMeshModel.js +0 -112
- package/examples/jsm/webxr/XRHandModelFactory.js +0 -105
- package/examples/jsm/webxr/XRHandPrimitiveModel.js +0 -103
- package/examples/jsm/webxr/XRPlanes.js +0 -100
- package/lib/3d.min.js +0 -1
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { handleCamelCaseString } from "../utils";
|
|
2
|
-
/**
|
|
3
|
-
* setAttributes
|
|
4
|
-
* @param el
|
|
5
|
-
* @param attrs
|
|
6
|
-
*/
|
|
7
|
-
export var setAttributes = function setAttributes(el) {
|
|
8
|
-
var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9
|
-
Object.keys(attrs).forEach(function (attrName) {
|
|
10
|
-
if (attrs[attrName]) el.setAttribute(attrName, attrs[attrName]);
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var setStyle = function setStyle(el) {
|
|
14
|
-
var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15
|
-
var styleString = Object.keys(style).reduce(function (pre, cur) {
|
|
16
|
-
return "".concat(pre, " ").concat(handleCamelCaseString(cur), ":").concat(style[cur], ";");
|
|
17
|
-
}, '');
|
|
18
|
-
el.setAttribute('style', styleString);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* setClassList
|
|
23
|
-
* @param el
|
|
24
|
-
* @param classList
|
|
25
|
-
*/
|
|
26
|
-
export var setClassList = function setClassList(el, classList) {
|
|
27
|
-
classList.forEach(function (className) {
|
|
28
|
-
return el.classList.add(className);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* setEventListeners
|
|
34
|
-
* @param el
|
|
35
|
-
* @param events
|
|
36
|
-
*/
|
|
37
|
-
export var setEventListeners = function setEventListeners(el) {
|
|
38
|
-
var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
39
|
-
Object.keys(events).forEach(function (eventName) {
|
|
40
|
-
var eventFn = events[eventName];
|
|
41
|
-
el.addEventListener(eventName, eventFn);
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* appendChildren
|
|
47
|
-
* @param node
|
|
48
|
-
* @param children
|
|
49
|
-
*/
|
|
50
|
-
export var appendChildren = function appendChildren(node, children) {
|
|
51
|
-
children.forEach(function (child) {
|
|
52
|
-
return node.appendChild(child);
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* createElement
|
|
58
|
-
* @param tag
|
|
59
|
-
* @param options
|
|
60
|
-
* @param children
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
export var createElement = function createElement(tag) {
|
|
64
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
65
|
-
var children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
66
|
-
var result = document.createElement(tag);
|
|
67
|
-
var parent = document.createElement('div');
|
|
68
|
-
parent.appendChild(result);
|
|
69
|
-
if (options.textContent) result.textContent = options.textContent;
|
|
70
|
-
if (options.innerHTML) result.innerHTML = options.innerHTML;
|
|
71
|
-
if (options.id) result.id = options.id;
|
|
72
|
-
if (options.class) result.className = options.class;
|
|
73
|
-
setAttributes(result, options.attrs);
|
|
74
|
-
setClassList(result, options.classList || []);
|
|
75
|
-
setEventListeners(result, options.events);
|
|
76
|
-
setStyle(result, options.style || {});
|
|
77
|
-
appendChildren(result, children);
|
|
78
|
-
return parent;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* create
|
|
82
|
-
* @param tags
|
|
83
|
-
* @returns
|
|
84
|
-
*/
|
|
85
|
-
export var create = function create() {
|
|
86
|
-
for (var _len = arguments.length, tags = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
87
|
-
tags[_key] = arguments[_key];
|
|
88
|
-
}
|
|
89
|
-
return tags.map(function (tag) {
|
|
90
|
-
return function () {
|
|
91
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
92
|
-
var children = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
93
|
-
return createElement(tag, options, children);
|
|
94
|
-
};
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
export var a = create('a')[0];
|
|
98
|
-
export var article = create('article')[0];
|
|
99
|
-
export var aside = create('aside')[0];
|
|
100
|
-
export var b = create('b')[0];
|
|
101
|
-
export var br = create('br')[0];
|
|
102
|
-
export var button = create('button')[0];
|
|
103
|
-
export var canvas = create('canvas')[0];
|
|
104
|
-
export var div = create('div')[0];
|
|
105
|
-
export var fieldset = create('fieldset')[0];
|
|
106
|
-
export var footer = create('footer')[0];
|
|
107
|
-
export var form = create('form')[0];
|
|
108
|
-
export var h1 = create('h1')[0];
|
|
109
|
-
export var h2 = create('h2')[0];
|
|
110
|
-
export var h3 = create('h3')[0];
|
|
111
|
-
export var h4 = create('h4')[0];
|
|
112
|
-
export var h5 = create('h5')[0];
|
|
113
|
-
export var h6 = create('h6')[0];
|
|
114
|
-
export var header = create('header')[0];
|
|
115
|
-
export var hr = create('hr')[0];
|
|
116
|
-
export var i = create('i')[0];
|
|
117
|
-
export var iframe = create('iframe')[0];
|
|
118
|
-
export var img = create('img')[0];
|
|
119
|
-
export var input = create('input')[0];
|
|
120
|
-
export var label = create('label')[0];
|
|
121
|
-
export var li = create('li')[0];
|
|
122
|
-
export var link = create('link')[0];
|
|
123
|
-
export var main = create('main')[0];
|
|
124
|
-
export var meta = create('meta')[0];
|
|
125
|
-
export var nav = create('nav')[0];
|
|
126
|
-
export var ol = create('ol')[0];
|
|
127
|
-
export var option = create('option')[0];
|
|
128
|
-
export var p = create('p')[0];
|
|
129
|
-
export var progress = create('progress')[0];
|
|
130
|
-
export var script = create('script')[0];
|
|
131
|
-
export var section = create('section')[0];
|
|
132
|
-
export var select = create('select')[0];
|
|
133
|
-
export var span = create('span')[0];
|
|
134
|
-
export var style = create('style')[0];
|
|
135
|
-
export var sub = create('sub')[0];
|
|
136
|
-
export var sup = create('sup')[0];
|
|
137
|
-
export var svg = create('svg')[0];
|
|
138
|
-
export var table = create('table')[0];
|
|
139
|
-
export var tbody = create('tbody')[0];
|
|
140
|
-
export var td = create('td')[0];
|
|
141
|
-
export var textarea = create('textarea')[0];
|
|
142
|
-
export var th = create('th')[0];
|
|
143
|
-
export var tr = create('tr')[0];
|
|
144
|
-
export var ul = create('ul')[0];
|
|
145
|
-
export var video = create('video')[0];
|
package/dist/utils/line.d.ts
DELETED
|
File without changes
|
package/dist/utils/line.js
DELETED
|
File without changes
|
package/dist/utils/move.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { Object3D, Vector3 } from 'three';
|
|
2
|
-
import { CatmullRomCurve3 } from 'three';
|
|
3
|
-
import * as TWEEN from '@tweenjs/tween.js';
|
|
4
|
-
export declare enum Direction {
|
|
5
|
-
plus = "plus",
|
|
6
|
-
minus = "minus"
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* moveTo 直线移动
|
|
10
|
-
* @param currentObject3D
|
|
11
|
-
* @param targetObject3D
|
|
12
|
-
* @param direction
|
|
13
|
-
* @param distance
|
|
14
|
-
* @param duration
|
|
15
|
-
* @param animationMethod
|
|
16
|
-
*/
|
|
17
|
-
export declare const moveTo: (currentObject3D: Object3D, targetObject3D: Object3D, distance: number, direction: Direction, duration?: number, animationMethod?: string) => TWEEN.Tween<Vector3>;
|
|
18
|
-
export interface ControlsRetuenFuncType {
|
|
19
|
-
remove: () => void;
|
|
20
|
-
increaseSpeed: (currentStep: number) => void;
|
|
21
|
-
recoverSpeed: () => void;
|
|
22
|
-
}
|
|
23
|
-
export interface OffsetType {
|
|
24
|
-
x?: number;
|
|
25
|
-
y?: number;
|
|
26
|
-
z?: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 曲线路径移动
|
|
30
|
-
* @param currentObject
|
|
31
|
-
* @param curve
|
|
32
|
-
* @param points 曲线分割数, 同时也决定了运动速度
|
|
33
|
-
* @param lookat 默认曲线方向
|
|
34
|
-
*/
|
|
35
|
-
export declare const moveWithLine: (currentObject: Object3D, curve: CatmullRomCurve3, points?: number, offset?: OffsetType, lookat?: Vector3) => ControlsRetuenFuncType;
|
|
36
|
-
/**
|
|
37
|
-
* base 圆周运动
|
|
38
|
-
* @param currentObject3d
|
|
39
|
-
* @param speed
|
|
40
|
-
* @param duration
|
|
41
|
-
*/
|
|
42
|
-
export declare const moveWithRound: (currentObject3d: Object3D, speed?: number, duration?: number) => void;
|
|
43
|
-
/**
|
|
44
|
-
* move 方法2 移动辅助线
|
|
45
|
-
* @param currentObject3D
|
|
46
|
-
* @param targetObject3D
|
|
47
|
-
*/
|
|
48
|
-
export declare const moveLine: (currentObject3D: Object3D, targetObject3D: Object3D) => void;
|
package/dist/utils/move.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
4
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
9
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
import { BufferGeometry, CatmullRomCurve3, Line, LineBasicMaterial } from 'three';
|
|
12
|
-
import * as TWEEN from '@tweenjs/tween.js';
|
|
13
|
-
import { PerspectiveCamera } from "../core/camera";
|
|
14
|
-
import globalObjectManage from "../core/global/global";
|
|
15
|
-
import globalControl from "../core/global/globalControl";
|
|
16
|
-
var AnimationMethod;
|
|
17
|
-
(function (AnimationMethod) {})(AnimationMethod || (AnimationMethod = {}));
|
|
18
|
-
export var Direction;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* moveTo 直线移动
|
|
22
|
-
* @param currentObject3D
|
|
23
|
-
* @param targetObject3D
|
|
24
|
-
* @param direction
|
|
25
|
-
* @param distance
|
|
26
|
-
* @param duration
|
|
27
|
-
* @param animationMethod
|
|
28
|
-
*/
|
|
29
|
-
(function (Direction) {
|
|
30
|
-
Direction["plus"] = "plus";
|
|
31
|
-
Direction["minus"] = "minus";
|
|
32
|
-
})(Direction || (Direction = {}));
|
|
33
|
-
export var moveTo = function moveTo(currentObject3D, targetObject3D, distance, direction, duration, animationMethod) {
|
|
34
|
-
var targetPosition = targetObject3D.position;
|
|
35
|
-
var cameraPosition = currentObject3D.position;
|
|
36
|
-
|
|
37
|
-
// 单位方向向量
|
|
38
|
-
var toward = targetPosition.clone().sub(cameraPosition).normalize();
|
|
39
|
-
if (direction === Direction.minus) toward = toward.negate();
|
|
40
|
-
var target = cameraPosition.clone().add(toward.multiplyScalar(distance));
|
|
41
|
-
var totalDistance = cameraPosition.distanceTo(targetPosition);
|
|
42
|
-
var currentDistance = cameraPosition.distanceTo(target);
|
|
43
|
-
var lastPosition = target.clone();
|
|
44
|
-
if (direction === Direction.plus && currentDistance > totalDistance) lastPosition = targetPosition;
|
|
45
|
-
var tween = new TWEEN.Tween(cameraPosition);
|
|
46
|
-
tween.to(lastPosition, duration || 1000);
|
|
47
|
-
tween.start();
|
|
48
|
-
if (currentObject3D instanceof PerspectiveCamera) {
|
|
49
|
-
globalControl.add(function () {
|
|
50
|
-
currentObject3D.lookAt(targetPosition);
|
|
51
|
-
}, (duration || 1000) * 1.01);
|
|
52
|
-
globalControl.start();
|
|
53
|
-
}
|
|
54
|
-
return tween;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* create line
|
|
59
|
-
* @param points
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
var createLine = function createLine(points) {
|
|
63
|
-
var curve = new CatmullRomCurve3(_toConsumableArray(points));
|
|
64
|
-
var curvePoints = curve.getPoints(50);
|
|
65
|
-
var geometry = new BufferGeometry().setFromPoints(curvePoints);
|
|
66
|
-
var material = new LineBasicMaterial({
|
|
67
|
-
opacity: 1
|
|
68
|
-
});
|
|
69
|
-
return [new Line(geometry, material), curve];
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* 曲线路径移动
|
|
73
|
-
* @param currentObject
|
|
74
|
-
* @param curve
|
|
75
|
-
* @param points 曲线分割数, 同时也决定了运动速度
|
|
76
|
-
* @param lookat 默认曲线方向
|
|
77
|
-
*/
|
|
78
|
-
export var moveWithLine = function moveWithLine(currentObject, curve) {
|
|
79
|
-
var points = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 500;
|
|
80
|
-
var offset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
|
|
81
|
-
x: 0,
|
|
82
|
-
y: 0,
|
|
83
|
-
z: 0
|
|
84
|
-
};
|
|
85
|
-
var lookat = arguments.length > 4 ? arguments[4] : undefined;
|
|
86
|
-
var totlePoints = curve.getPoints(points);
|
|
87
|
-
var totle = totlePoints.length;
|
|
88
|
-
var index = 0;
|
|
89
|
-
var step = 1;
|
|
90
|
-
var calcIndex = function calcIndex(index) {
|
|
91
|
-
return index > totle ? index - totle - 1 : index;
|
|
92
|
-
};
|
|
93
|
-
var handleCallback = function handleCallback() {
|
|
94
|
-
if (index >= totle) index = calcIndex(index);
|
|
95
|
-
var nextPoint = totlePoints[calcIndex(index) % totle];
|
|
96
|
-
currentObject.position.set(nextPoint.x + offset.x || 0, nextPoint.y + offset.y || 0, nextPoint.z + offset.z || 0);
|
|
97
|
-
if (lookat) currentObject.lookAt(lookat);else currentObject.lookAt(totlePoints[calcIndex(index + 1) % totle]);
|
|
98
|
-
index += step;
|
|
99
|
-
};
|
|
100
|
-
globalControl.add(handleCallback, 100000);
|
|
101
|
-
globalControl.start();
|
|
102
|
-
return {
|
|
103
|
-
remove: function remove() {
|
|
104
|
-
return globalControl.remove(handleCallback);
|
|
105
|
-
},
|
|
106
|
-
increaseSpeed: function increaseSpeed() {
|
|
107
|
-
var currentStep = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
108
|
-
step = currentStep + step;
|
|
109
|
-
},
|
|
110
|
-
recoverSpeed: function recoverSpeed() {
|
|
111
|
-
step = 1;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* base 圆周运动
|
|
118
|
-
* @param currentObject3d
|
|
119
|
-
* @param speed
|
|
120
|
-
* @param duration
|
|
121
|
-
*/
|
|
122
|
-
export var moveWithRound = function moveWithRound(currentObject3d) {
|
|
123
|
-
var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.1;
|
|
124
|
-
var duration = arguments.length > 2 ? arguments[2] : undefined;
|
|
125
|
-
var angle = 0;
|
|
126
|
-
var x = 0;
|
|
127
|
-
var z = 0;
|
|
128
|
-
var handleCallback = function handleCallback() {
|
|
129
|
-
angle += speed;
|
|
130
|
-
x = 4 * Math.sin(angle);
|
|
131
|
-
z = 4 * Math.cos(angle);
|
|
132
|
-
currentObject3d.position.set(x, 0, z);
|
|
133
|
-
};
|
|
134
|
-
globalControl.add(handleCallback, duration);
|
|
135
|
-
globalControl.start();
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* move 方法2 移动辅助线
|
|
140
|
-
* @param currentObject3D
|
|
141
|
-
* @param targetObject3D
|
|
142
|
-
*/
|
|
143
|
-
export var moveLine = function moveLine(currentObject3D, targetObject3D) {
|
|
144
|
-
var _createLine = createLine([currentObject3D.position, targetObject3D.position]),
|
|
145
|
-
_createLine2 = _slicedToArray(_createLine, 2),
|
|
146
|
-
curveObject = _createLine2[0],
|
|
147
|
-
curve = _createLine2[1];
|
|
148
|
-
globalObjectManage.scene.add(curveObject);
|
|
149
|
-
};
|
package/examples/fonts/LICENSE
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright @ 2004 by MAGENTA Ltd. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
|
|
6
|
-
|
|
7
|
-
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.
|
|
8
|
-
|
|
9
|
-
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.
|
|
10
|
-
|
|
11
|
-
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
|
|
12
|
-
|
|
13
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/examples/fonts/README.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
## MgOpen typefaces
|
|
2
|
-
|
|
3
|
-
# Source and License
|
|
4
|
-
|
|
5
|
-
https://web.archive.org/web/20050528114140/https://ellak.gr/fonts/mgopen/index.en
|
|
6
|
-
|
|
7
|
-
# Usage
|
|
8
|
-
|
|
9
|
-
Use Facetype.js to generate typeface.json fonts: https://gero3.github.io/facetype.js/
|
|
10
|
-
|
|
11
|
-
Collection of Google fonts as typeface data for usage with three.js: https://github.com/components-ai/typefaces
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c) 2005-2008, The Android Open Source Project
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software
|
|
8
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
-
See the License for the specific language governing permissions and
|
|
11
|
-
limitations under the License.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Apache License
|
|
15
|
-
Version 2.0, January 2004
|
|
16
|
-
http://www.apache.org/licenses/
|
|
17
|
-
|
|
18
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
19
|
-
|
|
20
|
-
1. Definitions.
|
|
21
|
-
|
|
22
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
23
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
24
|
-
|
|
25
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
26
|
-
the copyright owner that is granting the License.
|
|
27
|
-
|
|
28
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
29
|
-
other entities that control, are controlled by, or are under common
|
|
30
|
-
control with that entity. For the purposes of this definition,
|
|
31
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
32
|
-
direction or management of such entity, whether by contract or
|
|
33
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
34
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
35
|
-
|
|
36
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
37
|
-
exercising permissions granted by this License.
|
|
38
|
-
|
|
39
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
40
|
-
including but not limited to software source code, documentation
|
|
41
|
-
source, and configuration files.
|
|
42
|
-
|
|
43
|
-
"Object" form shall mean any form resulting from mechanical
|
|
44
|
-
transformation or translation of a Source form, including but
|
|
45
|
-
not limited to compiled object code, generated documentation,
|
|
46
|
-
and conversions to other media types.
|
|
47
|
-
|
|
48
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
49
|
-
Object form, made available under the License, as indicated by a
|
|
50
|
-
copyright notice that is included in or attached to the work
|
|
51
|
-
(an example is provided in the Appendix below).
|
|
52
|
-
|
|
53
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
54
|
-
form, that is based on (or derived from) the Work and for which the
|
|
55
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
56
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
57
|
-
of this License, Derivative Works shall not include works that remain
|
|
58
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
59
|
-
the Work and Derivative Works thereof.
|
|
60
|
-
|
|
61
|
-
"Contribution" shall mean any work of authorship, including
|
|
62
|
-
the original version of the Work and any modifications or additions
|
|
63
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
64
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
65
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
66
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
67
|
-
means any form of electronic, verbal, or written communication sent
|
|
68
|
-
to the Licensor or its representatives, including but not limited to
|
|
69
|
-
communication on electronic mailing lists, source code control systems,
|
|
70
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
71
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
72
|
-
excluding communication that is conspicuously marked or otherwise
|
|
73
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
74
|
-
|
|
75
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
76
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
77
|
-
subsequently incorporated within the Work.
|
|
78
|
-
|
|
79
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
80
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
81
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
82
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
83
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
84
|
-
Work and such Derivative Works in Source or Object form.
|
|
85
|
-
|
|
86
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
87
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
88
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
89
|
-
(except as stated in this section) patent license to make, have made,
|
|
90
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
91
|
-
where such license applies only to those patent claims licensable
|
|
92
|
-
by such Contributor that are necessarily infringed by their
|
|
93
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
94
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
95
|
-
institute patent litigation against any entity (including a
|
|
96
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
97
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
98
|
-
or contributory patent infringement, then any patent licenses
|
|
99
|
-
granted to You under this License for that Work shall terminate
|
|
100
|
-
as of the date such litigation is filed.
|
|
101
|
-
|
|
102
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
103
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
104
|
-
modifications, and in Source or Object form, provided that You
|
|
105
|
-
meet the following conditions:
|
|
106
|
-
|
|
107
|
-
(a) You must give any other recipients of the Work or
|
|
108
|
-
Derivative Works a copy of this License; and
|
|
109
|
-
|
|
110
|
-
(b) You must cause any modified files to carry prominent notices
|
|
111
|
-
stating that You changed the files; and
|
|
112
|
-
|
|
113
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
114
|
-
that You distribute, all copyright, patent, trademark, and
|
|
115
|
-
attribution notices from the Source form of the Work,
|
|
116
|
-
excluding those notices that do not pertain to any part of
|
|
117
|
-
the Derivative Works; and
|
|
118
|
-
|
|
119
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
120
|
-
distribution, then any Derivative Works that You distribute must
|
|
121
|
-
include a readable copy of the attribution notices contained
|
|
122
|
-
within such NOTICE file, excluding those notices that do not
|
|
123
|
-
pertain to any part of the Derivative Works, in at least one
|
|
124
|
-
of the following places: within a NOTICE text file distributed
|
|
125
|
-
as part of the Derivative Works; within the Source form or
|
|
126
|
-
documentation, if provided along with the Derivative Works; or,
|
|
127
|
-
within a display generated by the Derivative Works, if and
|
|
128
|
-
wherever such third-party notices normally appear. The contents
|
|
129
|
-
of the NOTICE file are for informational purposes only and
|
|
130
|
-
do not modify the License. You may add Your own attribution
|
|
131
|
-
notices within Derivative Works that You distribute, alongside
|
|
132
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
133
|
-
that such additional attribution notices cannot be construed
|
|
134
|
-
as modifying the License.
|
|
135
|
-
|
|
136
|
-
You may add Your own copyright statement to Your modifications and
|
|
137
|
-
may provide additional or different license terms and conditions
|
|
138
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
139
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
140
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
141
|
-
the conditions stated in this License.
|
|
142
|
-
|
|
143
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
144
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
145
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
146
|
-
this License, without any additional terms or conditions.
|
|
147
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
148
|
-
the terms of any separate license agreement you may have executed
|
|
149
|
-
with Licensor regarding such Contributions.
|
|
150
|
-
|
|
151
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
152
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
153
|
-
except as required for reasonable and customary use in describing the
|
|
154
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
155
|
-
|
|
156
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
157
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
158
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
159
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
160
|
-
implied, including, without limitation, any warranties or conditions
|
|
161
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
162
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
163
|
-
appropriateness of using or redistributing the Work and assume any
|
|
164
|
-
risks associated with Your exercise of permissions under this License.
|
|
165
|
-
|
|
166
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
167
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
168
|
-
unless required by applicable law (such as deliberate and grossly
|
|
169
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
170
|
-
liable to You for damages, including any direct, indirect, special,
|
|
171
|
-
incidental, or consequential damages of any character arising as a
|
|
172
|
-
result of this License or out of the use or inability to use the
|
|
173
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
174
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
175
|
-
other commercial damages or losses), even if such Contributor
|
|
176
|
-
has been advised of the possibility of such damages.
|
|
177
|
-
|
|
178
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
179
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
180
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
181
|
-
or other liability obligations and/or rights consistent with this
|
|
182
|
-
License. However, in accepting such obligations, You may act only
|
|
183
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
184
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
185
|
-
defend, and hold each Contributor harmless for any liability
|
|
186
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
187
|
-
of your accepting any such warranty or additional liability.
|
|
188
|
-
|
|
189
|
-
END OF TERMS AND CONDITIONS
|
|
190
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Copyright (C) 2008 The Android Open Source Project
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
|
14
|
-
|
|
15
|
-
##########
|
|
16
|
-
|
|
17
|
-
This directory contains the fonts for the platform. They are licensed
|
|
18
|
-
under the Apache 2 license.
|