Move tsconfig.json file to the tools folder.
This commit is contained in:
parent
83eb66f0d3
commit
34f3ad2bf7
@ -52,7 +52,7 @@
|
|||||||
"build_dev": "npm run build_engine_dev && npm run build_website_dev",
|
"build_dev": "npm run build_engine_dev && npm run build_website_dev",
|
||||||
"build_engine_dev": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --sourcemap --outfile=build/o3dv.min-dev.js",
|
"build_engine_dev": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --sourcemap --outfile=build/o3dv.min-dev.js",
|
||||||
"build_engine_prod": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --outfile=build/o3dv.min.js",
|
"build_engine_prod": "npm run update_engine_exports && esbuild source/engine/main.js --bundle --minify --global-name=OV --outfile=build/o3dv.min.js",
|
||||||
"build_engine_module": "npm run update_engine_exports && rollup --config tools/rollup.js && npx tsc",
|
"build_engine_module": "npm run update_engine_exports && rollup --config tools/rollup.js && tsc --project tools/tsconfig.json",
|
||||||
"build_website_dev": "esbuild source/website/index.js --bundle --minify --global-name=OV --sourcemap --outfile=build/o3dv.website.min-dev.js",
|
"build_website_dev": "esbuild source/website/index.js --bundle --minify --global-name=OV --sourcemap --outfile=build/o3dv.website.min-dev.js",
|
||||||
"build_website_prod": "esbuild source/website/index.js --bundle --minify --global-name=OV --outfile=build/o3dv.website.min.js",
|
"build_website_prod": "esbuild source/website/index.js --bundle --minify --global-name=OV --outfile=build/o3dv.website.min.js",
|
||||||
"update_engine_exports": "run-python3 tools/update_engine_exports.py"
|
"update_engine_exports": "run-python3 tools/update_engine_exports.py"
|
||||||
|
|||||||
@ -1,103 +1,186 @@
|
|||||||
import { TaskRunner, RunTaskAsync, RunTasks, RunTasksBatch, WaitWhile } from './core/taskrunner.js';
|
|
||||||
import { EventNotifier } from './core/eventnotifier.js';
|
|
||||||
import { IsDefined, ValueOrDefault, CopyObjectAttributes, IsObjectEmpty, EscapeHtmlChars } from './core/core.js';
|
import { IsDefined, ValueOrDefault, CopyObjectAttributes, IsObjectEmpty, EscapeHtmlChars } from './core/core.js';
|
||||||
import { GetFileName, GetFileExtension, RequestUrl, ReadFile, TransformFileHostUrls, IsUrl, FileSource, FileFormat } from './io/fileutils.js';
|
import { EventNotifier } from './core/eventnotifier.js';
|
||||||
import { TextWriter } from './io/textwriter.js';
|
import { TaskRunner, RunTaskAsync, RunTasks, RunTasksBatch, WaitWhile } from './core/taskrunner.js';
|
||||||
import { BinaryReader } from './io/binaryreader.js';
|
import { Exporter } from './export/exporter.js';
|
||||||
import { BinaryWriter } from './io/binarywriter.js';
|
import { Exporter3dm } from './export/exporter3dm.js';
|
||||||
import { SetExternalLibLocation, GetExternalLibPath, LoadExternalLibrary } from './io/externallibs.js';
|
import { ExportedFile, ExporterBase } from './export/exporterbase.js';
|
||||||
import { ArrayBufferToUtf8String, ArrayBufferToAsciiString, AsciiStringToArrayBuffer, Utf8StringToArrayBuffer, Base64DataURIToArrayBuffer, GetFileExtensionFromMimeType, CreateObjectUrl, CreateObjectUrlWithMimeType, RevokeObjectUrl } from './io/bufferutils.js';
|
import { ExporterBim } from './export/exporterbim.js';
|
||||||
import { CameraValidator, UpVector, Viewer, GetDefaultCamera, TraverseThreeObject, GetShadingTypeOfObject } from './viewer/viewer.js';
|
import { ExporterGltf } from './export/exportergltf.js';
|
||||||
import { EmbeddedViewer, Init3DViewerElementFromUrlList, Init3DViewerElementFromFileList, Init3DViewerElements } from './viewer/embeddedviewer.js';
|
import { ExporterSettings, ExporterModel } from './export/exportermodel.js';
|
||||||
import { ViewerModel, EdgeSettings, ViewerMainModel, SetThreeMeshPolygonOffset } from './viewer/viewermodel.js';
|
import { ExporterObj } from './export/exporterobj.js';
|
||||||
import { MouseInteraction, TouchInteraction, ClickDetector, Navigation, NavigationType } from './viewer/navigation.js';
|
import { ExporterOff } from './export/exporteroff.js';
|
||||||
import { GetIntegerFromStyle, GetDomElementExternalWidth, GetDomElementExternalHeight, GetDomElementInnerDimensions, GetDomElementClientCoordinates, CreateDomElement, AddDomElement, AddDiv, ClearDomElement, InsertDomElementBefore, InsertDomElementAfter, ShowDomElement, IsDomElementVisible, SetDomElementWidth, SetDomElementHeight, GetDomElementOuterWidth, GetDomElementOuterHeight, SetDomElementOuterWidth, SetDomElementOuterHeight, CreateDiv } from './viewer/domutils.js';
|
import { ExporterPly } from './export/exporterply.js';
|
||||||
import { EnvironmentSettings, ShadingModel } from './viewer/shadingmodel.js';
|
import { ExporterStl } from './export/exporterstl.js';
|
||||||
import { Camera, CameraIsEqual3D, CameraMode } from './viewer/camera.js';
|
import { Box3D, BoundingBoxCalculator3D } from './geometry/box3d.js';
|
||||||
import { GetTriangleArea, GetTetrahedronSignedVolume, CalculateVolume, CalculateSurfaceArea } from './model/quantities.js';
|
|
||||||
import { Mesh } from './model/mesh.js';
|
|
||||||
import { TextureMap, MaterialBase, FaceMaterial, PhongMaterial, PhysicalMaterial, TextureMapIsEqual, TextureIsEqual, MaterialType } from './model/material.js';
|
|
||||||
import { IsModelEmpty, GetBoundingBox, GetTopology, IsTwoManifold, HasDefaultMaterial, ReplaceDefaultMaterialColor } from './model/modelutils.js';
|
|
||||||
import { Object3D, ModelObject3D } from './model/object.js';
|
|
||||||
import { Property, PropertyGroup, PropertyToString, PropertyType } from './model/property.js';
|
|
||||||
import { GetMeshType, CalculateTriangleNormal, TransformMesh, FlipMeshTrianglesOrientation, MeshType } from './model/meshutils.js';
|
|
||||||
import { RGBColor, RGBAColor, ColorComponentFromFloat, ColorComponentToFloat, RGBColorFromFloatComponents, SRGBToLinear, LinearToSRGB, IntegerToHexString, RGBColorToHexString, RGBAColorToHexString, HexStringToRGBColor, HexStringToRGBAColor, ArrayToRGBColor, RGBColorIsEqual } from './model/color.js';
|
|
||||||
import { MeshInstanceId, MeshInstance } from './model/meshinstance.js';
|
|
||||||
import { Node, NodeType } from './model/node.js';
|
|
||||||
import { FinalizeModel, CheckModel } from './model/modelfinalization.js';
|
|
||||||
import { GeneratorParams, Generator, GeneratorHelper, GenerateCuboid, GenerateCone, GenerateCylinder, GenerateSphere, GeneratePlatonicSolid } from './model/generator.js';
|
|
||||||
import { Model } from './model/model.js';
|
|
||||||
import { MeshPrimitiveBuffer, MeshBuffer, ConvertMeshToMeshBuffer } from './model/meshbuffer.js';
|
|
||||||
import { Triangle } from './model/triangle.js';
|
|
||||||
import { TopologyVertex, TopologyEdge, TopologyTriangleEdge, TopologyTriangle, Topology } from './model/topology.js';
|
|
||||||
import { ParameterListBuilder, ParameterListParser, CreateUrlBuilder, CreateUrlParser, CreateModelUrlParameters, ParameterConverter } from './parameters/parameterlist.js';
|
|
||||||
import { Quaternion, QuaternionIsEqual, ArrayToQuaternion, QuaternionFromAxisAngle, QuaternionFromXYZ } from './geometry/quaternion.js';
|
|
||||||
import { Coord2D, CoordIsEqual2D, AddCoord2D, SubCoord2D, CoordDistance2D } from './geometry/coord2d.js';
|
import { Coord2D, CoordIsEqual2D, AddCoord2D, SubCoord2D, CoordDistance2D } from './geometry/coord2d.js';
|
||||||
import { Coord3D, CoordIsEqual3D, AddCoord3D, SubCoord3D, CoordDistance3D, DotVector3D, VectorAngle3D, CrossVector3D, VectorLength3D, ArrayToCoord3D } from './geometry/coord3d.js';
|
import { Coord3D, CoordIsEqual3D, AddCoord3D, SubCoord3D, CoordDistance3D, DotVector3D, VectorAngle3D, CrossVector3D, VectorLength3D, ArrayToCoord3D } from './geometry/coord3d.js';
|
||||||
import { Coord4D } from './geometry/coord4d.js';
|
import { Coord4D } from './geometry/coord4d.js';
|
||||||
import { Matrix, MatrixIsEqual } from './geometry/matrix.js';
|
|
||||||
import { Transformation, TransformationIsEqual } from './geometry/transformation.js';
|
|
||||||
import { Box3D, BoundingBoxCalculator3D } from './geometry/box3d.js';
|
|
||||||
import { OctreeNode, Octree } from './geometry/octree.js';
|
|
||||||
import { BezierTweenFunction, LinearTweenFunction, ParabolicTweenFunction, TweenCoord3D } from './geometry/tween.js';
|
|
||||||
import { IsZero, IsLower, IsGreater, IsLowerOrEqual, IsGreaterOrEqual, IsEqual, IsEqualEps, IsPositive, IsNegative, Eps, BigEps, RadDeg, DegRad, Direction } from './geometry/geometry.js';
|
import { IsZero, IsLower, IsGreater, IsLowerOrEqual, IsGreaterOrEqual, IsEqual, IsEqualEps, IsPositive, IsNegative, Eps, BigEps, RadDeg, DegRad, Direction } from './geometry/geometry.js';
|
||||||
import { ExporterBim } from './export/exporterbim.js';
|
import { Matrix, MatrixIsEqual } from './geometry/matrix.js';
|
||||||
import { Exporter } from './export/exporter.js';
|
import { OctreeNode, Octree } from './geometry/octree.js';
|
||||||
import { ExporterObj } from './export/exporterobj.js';
|
import { Quaternion, QuaternionIsEqual, ArrayToQuaternion, QuaternionFromAxisAngle, QuaternionFromXYZ } from './geometry/quaternion.js';
|
||||||
import { ExporterSettings, ExporterModel } from './export/exportermodel.js';
|
import { Transformation, TransformationIsEqual } from './geometry/transformation.js';
|
||||||
import { ExportedFile, ExporterBase } from './export/exporterbase.js';
|
import { BezierTweenFunction, LinearTweenFunction, ParabolicTweenFunction, TweenCoord3D } from './geometry/tween.js';
|
||||||
import { ExporterStl } from './export/exporterstl.js';
|
|
||||||
import { ExporterOff } from './export/exporteroff.js';
|
|
||||||
import { Exporter3dm } from './export/exporter3dm.js';
|
|
||||||
import { ExporterPly } from './export/exporterply.js';
|
|
||||||
import { ExporterGltf } from './export/exportergltf.js';
|
|
||||||
import { ColorToMaterialConverter, NameFromLine, ParametersFromLine, ReadLines, IsPowerOfTwo, NextPowerOfTwo, UpdateMaterialTransparency } from './import/importerutils.js';
|
|
||||||
import { ImporterThreeSvg } from './import/importersvg.js';
|
|
||||||
import { ImporterGltf } from './import/importergltf.js';
|
|
||||||
import { ImporterBim } from './import/importerbim.js';
|
|
||||||
import { ImporterObj } from './import/importerobj.js';
|
|
||||||
import { Importer3ds } from './import/importer3ds.js';
|
|
||||||
import { ImporterStl } from './import/importerstl.js';
|
|
||||||
import { ImporterOcct } from './import/importerocct.js';
|
|
||||||
import { ImporterFcstd } from './import/importerfcstd.js';
|
|
||||||
import { ImportSettings, ImportError, ImportResult, ImporterFileAccessor, Importer, ImportErrorCode } from './import/importer.js';
|
import { ImportSettings, ImportError, ImportResult, ImporterFileAccessor, Importer, ImportErrorCode } from './import/importer.js';
|
||||||
import { InputFile, ImporterFile, ImporterFileList, InputFilesFromUrls, InputFilesFromFileObjects } from './import/importerfiles.js';
|
|
||||||
import { Importer3dm } from './import/importer3dm.js';
|
import { Importer3dm } from './import/importer3dm.js';
|
||||||
import { ImporterOff } from './import/importeroff.js';
|
import { Importer3ds } from './import/importer3ds.js';
|
||||||
import { ImporterThreeBase, ImporterThreeFbx, ImporterThreeDae, ImporterThreeWrl, ImporterThree3mf } from './import/importerthree.js';
|
|
||||||
import { ImporterBase } from './import/importerbase.js';
|
import { ImporterBase } from './import/importerbase.js';
|
||||||
import { ImporterPly } from './import/importerply.js';
|
import { ImporterBim } from './import/importerbim.js';
|
||||||
|
import { ImporterFcstd } from './import/importerfcstd.js';
|
||||||
|
import { InputFile, ImporterFile, ImporterFileList, InputFilesFromUrls, InputFilesFromFileObjects } from './import/importerfiles.js';
|
||||||
|
import { ImporterGltf } from './import/importergltf.js';
|
||||||
import { ImporterIfc } from './import/importerifc.js';
|
import { ImporterIfc } from './import/importerifc.js';
|
||||||
|
import { ImporterObj } from './import/importerobj.js';
|
||||||
|
import { ImporterOcct } from './import/importerocct.js';
|
||||||
|
import { ImporterOff } from './import/importeroff.js';
|
||||||
|
import { ImporterPly } from './import/importerply.js';
|
||||||
|
import { ImporterStl } from './import/importerstl.js';
|
||||||
|
import { ImporterThreeSvg } from './import/importersvg.js';
|
||||||
|
import { ImporterThreeBase, ImporterThreeFbx, ImporterThreeDae, ImporterThreeWrl, ImporterThree3mf } from './import/importerthree.js';
|
||||||
|
import { ColorToMaterialConverter, NameFromLine, ParametersFromLine, ReadLines, IsPowerOfTwo, NextPowerOfTwo, UpdateMaterialTransparency } from './import/importerutils.js';
|
||||||
|
import { BinaryReader } from './io/binaryreader.js';
|
||||||
|
import { BinaryWriter } from './io/binarywriter.js';
|
||||||
|
import { ArrayBufferToUtf8String, ArrayBufferToAsciiString, AsciiStringToArrayBuffer, Utf8StringToArrayBuffer, Base64DataURIToArrayBuffer, GetFileExtensionFromMimeType, CreateObjectUrl, CreateObjectUrlWithMimeType, RevokeObjectUrl } from './io/bufferutils.js';
|
||||||
|
import { SetExternalLibLocation, GetExternalLibPath, LoadExternalLibrary } from './io/externallibs.js';
|
||||||
|
import { GetFileName, GetFileExtension, RequestUrl, ReadFile, TransformFileHostUrls, IsUrl, FileSource, FileFormat } from './io/fileutils.js';
|
||||||
|
import { TextWriter } from './io/textwriter.js';
|
||||||
|
import { RGBColor, RGBAColor, ColorComponentFromFloat, ColorComponentToFloat, RGBColorFromFloatComponents, SRGBToLinear, LinearToSRGB, IntegerToHexString, RGBColorToHexString, RGBAColorToHexString, HexStringToRGBColor, HexStringToRGBAColor, ArrayToRGBColor, RGBColorIsEqual } from './model/color.js';
|
||||||
|
import { GeneratorParams, Generator, GeneratorHelper, GenerateCuboid, GenerateCone, GenerateCylinder, GenerateSphere, GeneratePlatonicSolid } from './model/generator.js';
|
||||||
|
import { TextureMap, MaterialBase, FaceMaterial, PhongMaterial, PhysicalMaterial, TextureMapIsEqual, TextureIsEqual, MaterialType } from './model/material.js';
|
||||||
|
import { Mesh } from './model/mesh.js';
|
||||||
|
import { MeshPrimitiveBuffer, MeshBuffer, ConvertMeshToMeshBuffer } from './model/meshbuffer.js';
|
||||||
|
import { MeshInstanceId, MeshInstance } from './model/meshinstance.js';
|
||||||
|
import { GetMeshType, CalculateTriangleNormal, TransformMesh, FlipMeshTrianglesOrientation, MeshType } from './model/meshutils.js';
|
||||||
|
import { Model } from './model/model.js';
|
||||||
|
import { FinalizeModel, CheckModel } from './model/modelfinalization.js';
|
||||||
|
import { IsModelEmpty, GetBoundingBox, GetTopology, IsTwoManifold, HasDefaultMaterial, ReplaceDefaultMaterialColor } from './model/modelutils.js';
|
||||||
|
import { Node, NodeType } from './model/node.js';
|
||||||
|
import { Object3D, ModelObject3D } from './model/object.js';
|
||||||
|
import { Property, PropertyGroup, PropertyToString, PropertyType } from './model/property.js';
|
||||||
|
import { GetTriangleArea, GetTetrahedronSignedVolume, CalculateVolume, CalculateSurfaceArea } from './model/quantities.js';
|
||||||
|
import { TopologyVertex, TopologyEdge, TopologyTriangleEdge, TopologyTriangle, Topology } from './model/topology.js';
|
||||||
|
import { Triangle } from './model/triangle.js';
|
||||||
|
import { ParameterListBuilder, ParameterListParser, CreateUrlBuilder, CreateUrlParser, CreateModelUrlParameters, ParameterConverter } from './parameters/parameterlist.js';
|
||||||
import { ModelToThreeConversionParams, ModelToThreeConversionOutput, ThreeConversionStateHandler, ThreeNodeTree, ConvertModelToThreeObject } from './threejs/threeconverter.js';
|
import { ModelToThreeConversionParams, ModelToThreeConversionOutput, ThreeConversionStateHandler, ThreeNodeTree, ConvertModelToThreeObject } from './threejs/threeconverter.js';
|
||||||
import { ThreeModelLoader } from './threejs/threemodelloader.js';
|
import { ThreeModelLoader } from './threejs/threemodelloader.js';
|
||||||
import { HasHighpDriverIssue, GetShadingType, ConvertThreeColorToColor, ConvertColorToThreeColor, ConvertThreeGeometryToMesh, DisposeThreeObjects, ShadingType } from './threejs/threeutils.js';
|
import { HasHighpDriverIssue, GetShadingType, ConvertThreeColorToColor, ConvertColorToThreeColor, ConvertThreeGeometryToMesh, DisposeThreeObjects, ShadingType } from './threejs/threeutils.js';
|
||||||
|
import { Camera, CameraIsEqual3D, CameraMode } from './viewer/camera.js';
|
||||||
|
import { GetIntegerFromStyle, GetDomElementExternalWidth, GetDomElementExternalHeight, GetDomElementInnerDimensions, GetDomElementClientCoordinates, CreateDomElement, AddDomElement, AddDiv, ClearDomElement, InsertDomElementBefore, InsertDomElementAfter, ShowDomElement, IsDomElementVisible, SetDomElementWidth, SetDomElementHeight, GetDomElementOuterWidth, GetDomElementOuterHeight, SetDomElementOuterWidth, SetDomElementOuterHeight, CreateDiv } from './viewer/domutils.js';
|
||||||
|
import { EmbeddedViewer, Init3DViewerElementFromUrlList, Init3DViewerElementFromFileList, Init3DViewerElements } from './viewer/embeddedviewer.js';
|
||||||
|
import { MouseInteraction, TouchInteraction, ClickDetector, Navigation, NavigationType } from './viewer/navigation.js';
|
||||||
|
import { EnvironmentSettings, ShadingModel } from './viewer/shadingmodel.js';
|
||||||
|
import { CameraValidator, UpVector, Viewer, GetDefaultCamera, TraverseThreeObject, GetShadingTypeOfObject } from './viewer/viewer.js';
|
||||||
|
import { ViewerModel, EdgeSettings, ViewerMainModel, SetThreeMeshPolygonOffset } from './viewer/viewermodel.js';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
TaskRunner,
|
|
||||||
RunTaskAsync,
|
|
||||||
RunTasks,
|
|
||||||
RunTasksBatch,
|
|
||||||
WaitWhile,
|
|
||||||
EventNotifier,
|
|
||||||
IsDefined,
|
IsDefined,
|
||||||
ValueOrDefault,
|
ValueOrDefault,
|
||||||
CopyObjectAttributes,
|
CopyObjectAttributes,
|
||||||
IsObjectEmpty,
|
IsObjectEmpty,
|
||||||
EscapeHtmlChars,
|
EscapeHtmlChars,
|
||||||
GetFileName,
|
EventNotifier,
|
||||||
GetFileExtension,
|
TaskRunner,
|
||||||
RequestUrl,
|
RunTaskAsync,
|
||||||
ReadFile,
|
RunTasks,
|
||||||
TransformFileHostUrls,
|
RunTasksBatch,
|
||||||
IsUrl,
|
WaitWhile,
|
||||||
FileSource,
|
Exporter,
|
||||||
FileFormat,
|
Exporter3dm,
|
||||||
TextWriter,
|
ExportedFile,
|
||||||
|
ExporterBase,
|
||||||
|
ExporterBim,
|
||||||
|
ExporterGltf,
|
||||||
|
ExporterSettings,
|
||||||
|
ExporterModel,
|
||||||
|
ExporterObj,
|
||||||
|
ExporterOff,
|
||||||
|
ExporterPly,
|
||||||
|
ExporterStl,
|
||||||
|
Box3D,
|
||||||
|
BoundingBoxCalculator3D,
|
||||||
|
Coord2D,
|
||||||
|
CoordIsEqual2D,
|
||||||
|
AddCoord2D,
|
||||||
|
SubCoord2D,
|
||||||
|
CoordDistance2D,
|
||||||
|
Coord3D,
|
||||||
|
CoordIsEqual3D,
|
||||||
|
AddCoord3D,
|
||||||
|
SubCoord3D,
|
||||||
|
CoordDistance3D,
|
||||||
|
DotVector3D,
|
||||||
|
VectorAngle3D,
|
||||||
|
CrossVector3D,
|
||||||
|
VectorLength3D,
|
||||||
|
ArrayToCoord3D,
|
||||||
|
Coord4D,
|
||||||
|
IsZero,
|
||||||
|
IsLower,
|
||||||
|
IsGreater,
|
||||||
|
IsLowerOrEqual,
|
||||||
|
IsGreaterOrEqual,
|
||||||
|
IsEqual,
|
||||||
|
IsEqualEps,
|
||||||
|
IsPositive,
|
||||||
|
IsNegative,
|
||||||
|
Eps,
|
||||||
|
BigEps,
|
||||||
|
RadDeg,
|
||||||
|
DegRad,
|
||||||
|
Direction,
|
||||||
|
Matrix,
|
||||||
|
MatrixIsEqual,
|
||||||
|
OctreeNode,
|
||||||
|
Octree,
|
||||||
|
Quaternion,
|
||||||
|
QuaternionIsEqual,
|
||||||
|
ArrayToQuaternion,
|
||||||
|
QuaternionFromAxisAngle,
|
||||||
|
QuaternionFromXYZ,
|
||||||
|
Transformation,
|
||||||
|
TransformationIsEqual,
|
||||||
|
BezierTweenFunction,
|
||||||
|
LinearTweenFunction,
|
||||||
|
ParabolicTweenFunction,
|
||||||
|
TweenCoord3D,
|
||||||
|
ImportSettings,
|
||||||
|
ImportError,
|
||||||
|
ImportResult,
|
||||||
|
ImporterFileAccessor,
|
||||||
|
Importer,
|
||||||
|
ImportErrorCode,
|
||||||
|
Importer3dm,
|
||||||
|
Importer3ds,
|
||||||
|
ImporterBase,
|
||||||
|
ImporterBim,
|
||||||
|
ImporterFcstd,
|
||||||
|
InputFile,
|
||||||
|
ImporterFile,
|
||||||
|
ImporterFileList,
|
||||||
|
InputFilesFromUrls,
|
||||||
|
InputFilesFromFileObjects,
|
||||||
|
ImporterGltf,
|
||||||
|
ImporterIfc,
|
||||||
|
ImporterObj,
|
||||||
|
ImporterOcct,
|
||||||
|
ImporterOff,
|
||||||
|
ImporterPly,
|
||||||
|
ImporterStl,
|
||||||
|
ImporterThreeSvg,
|
||||||
|
ImporterThreeBase,
|
||||||
|
ImporterThreeFbx,
|
||||||
|
ImporterThreeDae,
|
||||||
|
ImporterThreeWrl,
|
||||||
|
ImporterThree3mf,
|
||||||
|
ColorToMaterialConverter,
|
||||||
|
NameFromLine,
|
||||||
|
ParametersFromLine,
|
||||||
|
ReadLines,
|
||||||
|
IsPowerOfTwo,
|
||||||
|
NextPowerOfTwo,
|
||||||
|
UpdateMaterialTransparency,
|
||||||
BinaryReader,
|
BinaryReader,
|
||||||
BinaryWriter,
|
BinaryWriter,
|
||||||
SetExternalLibLocation,
|
|
||||||
GetExternalLibPath,
|
|
||||||
LoadExternalLibrary,
|
|
||||||
ArrayBufferToUtf8String,
|
ArrayBufferToUtf8String,
|
||||||
ArrayBufferToAsciiString,
|
ArrayBufferToAsciiString,
|
||||||
AsciiStringToArrayBuffer,
|
AsciiStringToArrayBuffer,
|
||||||
@ -107,25 +190,108 @@ export {
|
|||||||
CreateObjectUrl,
|
CreateObjectUrl,
|
||||||
CreateObjectUrlWithMimeType,
|
CreateObjectUrlWithMimeType,
|
||||||
RevokeObjectUrl,
|
RevokeObjectUrl,
|
||||||
CameraValidator,
|
SetExternalLibLocation,
|
||||||
UpVector,
|
GetExternalLibPath,
|
||||||
Viewer,
|
LoadExternalLibrary,
|
||||||
GetDefaultCamera,
|
GetFileName,
|
||||||
TraverseThreeObject,
|
GetFileExtension,
|
||||||
GetShadingTypeOfObject,
|
RequestUrl,
|
||||||
EmbeddedViewer,
|
ReadFile,
|
||||||
Init3DViewerElementFromUrlList,
|
TransformFileHostUrls,
|
||||||
Init3DViewerElementFromFileList,
|
IsUrl,
|
||||||
Init3DViewerElements,
|
FileSource,
|
||||||
ViewerModel,
|
FileFormat,
|
||||||
EdgeSettings,
|
TextWriter,
|
||||||
ViewerMainModel,
|
RGBColor,
|
||||||
SetThreeMeshPolygonOffset,
|
RGBAColor,
|
||||||
MouseInteraction,
|
ColorComponentFromFloat,
|
||||||
TouchInteraction,
|
ColorComponentToFloat,
|
||||||
ClickDetector,
|
RGBColorFromFloatComponents,
|
||||||
Navigation,
|
SRGBToLinear,
|
||||||
NavigationType,
|
LinearToSRGB,
|
||||||
|
IntegerToHexString,
|
||||||
|
RGBColorToHexString,
|
||||||
|
RGBAColorToHexString,
|
||||||
|
HexStringToRGBColor,
|
||||||
|
HexStringToRGBAColor,
|
||||||
|
ArrayToRGBColor,
|
||||||
|
RGBColorIsEqual,
|
||||||
|
GeneratorParams,
|
||||||
|
Generator,
|
||||||
|
GeneratorHelper,
|
||||||
|
GenerateCuboid,
|
||||||
|
GenerateCone,
|
||||||
|
GenerateCylinder,
|
||||||
|
GenerateSphere,
|
||||||
|
GeneratePlatonicSolid,
|
||||||
|
TextureMap,
|
||||||
|
MaterialBase,
|
||||||
|
FaceMaterial,
|
||||||
|
PhongMaterial,
|
||||||
|
PhysicalMaterial,
|
||||||
|
TextureMapIsEqual,
|
||||||
|
TextureIsEqual,
|
||||||
|
MaterialType,
|
||||||
|
Mesh,
|
||||||
|
MeshPrimitiveBuffer,
|
||||||
|
MeshBuffer,
|
||||||
|
ConvertMeshToMeshBuffer,
|
||||||
|
MeshInstanceId,
|
||||||
|
MeshInstance,
|
||||||
|
GetMeshType,
|
||||||
|
CalculateTriangleNormal,
|
||||||
|
TransformMesh,
|
||||||
|
FlipMeshTrianglesOrientation,
|
||||||
|
MeshType,
|
||||||
|
Model,
|
||||||
|
FinalizeModel,
|
||||||
|
CheckModel,
|
||||||
|
IsModelEmpty,
|
||||||
|
GetBoundingBox,
|
||||||
|
GetTopology,
|
||||||
|
IsTwoManifold,
|
||||||
|
HasDefaultMaterial,
|
||||||
|
ReplaceDefaultMaterialColor,
|
||||||
|
Node,
|
||||||
|
NodeType,
|
||||||
|
Object3D,
|
||||||
|
ModelObject3D,
|
||||||
|
Property,
|
||||||
|
PropertyGroup,
|
||||||
|
PropertyToString,
|
||||||
|
PropertyType,
|
||||||
|
GetTriangleArea,
|
||||||
|
GetTetrahedronSignedVolume,
|
||||||
|
CalculateVolume,
|
||||||
|
CalculateSurfaceArea,
|
||||||
|
TopologyVertex,
|
||||||
|
TopologyEdge,
|
||||||
|
TopologyTriangleEdge,
|
||||||
|
TopologyTriangle,
|
||||||
|
Topology,
|
||||||
|
Triangle,
|
||||||
|
ParameterListBuilder,
|
||||||
|
ParameterListParser,
|
||||||
|
CreateUrlBuilder,
|
||||||
|
CreateUrlParser,
|
||||||
|
CreateModelUrlParameters,
|
||||||
|
ParameterConverter,
|
||||||
|
ModelToThreeConversionParams,
|
||||||
|
ModelToThreeConversionOutput,
|
||||||
|
ThreeConversionStateHandler,
|
||||||
|
ThreeNodeTree,
|
||||||
|
ConvertModelToThreeObject,
|
||||||
|
ThreeModelLoader,
|
||||||
|
HasHighpDriverIssue,
|
||||||
|
GetShadingType,
|
||||||
|
ConvertThreeColorToColor,
|
||||||
|
ConvertColorToThreeColor,
|
||||||
|
ConvertThreeGeometryToMesh,
|
||||||
|
DisposeThreeObjects,
|
||||||
|
ShadingType,
|
||||||
|
Camera,
|
||||||
|
CameraIsEqual3D,
|
||||||
|
CameraMode,
|
||||||
GetIntegerFromStyle,
|
GetIntegerFromStyle,
|
||||||
GetDomElementExternalWidth,
|
GetDomElementExternalWidth,
|
||||||
GetDomElementExternalHeight,
|
GetDomElementExternalHeight,
|
||||||
@ -146,191 +312,25 @@ export {
|
|||||||
SetDomElementOuterWidth,
|
SetDomElementOuterWidth,
|
||||||
SetDomElementOuterHeight,
|
SetDomElementOuterHeight,
|
||||||
CreateDiv,
|
CreateDiv,
|
||||||
|
EmbeddedViewer,
|
||||||
|
Init3DViewerElementFromUrlList,
|
||||||
|
Init3DViewerElementFromFileList,
|
||||||
|
Init3DViewerElements,
|
||||||
|
MouseInteraction,
|
||||||
|
TouchInteraction,
|
||||||
|
ClickDetector,
|
||||||
|
Navigation,
|
||||||
|
NavigationType,
|
||||||
EnvironmentSettings,
|
EnvironmentSettings,
|
||||||
ShadingModel,
|
ShadingModel,
|
||||||
Camera,
|
CameraValidator,
|
||||||
CameraIsEqual3D,
|
UpVector,
|
||||||
CameraMode,
|
Viewer,
|
||||||
GetTriangleArea,
|
GetDefaultCamera,
|
||||||
GetTetrahedronSignedVolume,
|
TraverseThreeObject,
|
||||||
CalculateVolume,
|
GetShadingTypeOfObject,
|
||||||
CalculateSurfaceArea,
|
ViewerModel,
|
||||||
Mesh,
|
EdgeSettings,
|
||||||
TextureMap,
|
ViewerMainModel,
|
||||||
MaterialBase,
|
SetThreeMeshPolygonOffset
|
||||||
FaceMaterial,
|
|
||||||
PhongMaterial,
|
|
||||||
PhysicalMaterial,
|
|
||||||
TextureMapIsEqual,
|
|
||||||
TextureIsEqual,
|
|
||||||
MaterialType,
|
|
||||||
IsModelEmpty,
|
|
||||||
GetBoundingBox,
|
|
||||||
GetTopology,
|
|
||||||
IsTwoManifold,
|
|
||||||
HasDefaultMaterial,
|
|
||||||
ReplaceDefaultMaterialColor,
|
|
||||||
Object3D,
|
|
||||||
ModelObject3D,
|
|
||||||
Property,
|
|
||||||
PropertyGroup,
|
|
||||||
PropertyToString,
|
|
||||||
PropertyType,
|
|
||||||
GetMeshType,
|
|
||||||
CalculateTriangleNormal,
|
|
||||||
TransformMesh,
|
|
||||||
FlipMeshTrianglesOrientation,
|
|
||||||
MeshType,
|
|
||||||
RGBColor,
|
|
||||||
RGBAColor,
|
|
||||||
ColorComponentFromFloat,
|
|
||||||
ColorComponentToFloat,
|
|
||||||
RGBColorFromFloatComponents,
|
|
||||||
SRGBToLinear,
|
|
||||||
LinearToSRGB,
|
|
||||||
IntegerToHexString,
|
|
||||||
RGBColorToHexString,
|
|
||||||
RGBAColorToHexString,
|
|
||||||
HexStringToRGBColor,
|
|
||||||
HexStringToRGBAColor,
|
|
||||||
ArrayToRGBColor,
|
|
||||||
RGBColorIsEqual,
|
|
||||||
MeshInstanceId,
|
|
||||||
MeshInstance,
|
|
||||||
Node,
|
|
||||||
NodeType,
|
|
||||||
FinalizeModel,
|
|
||||||
CheckModel,
|
|
||||||
GeneratorParams,
|
|
||||||
Generator,
|
|
||||||
GeneratorHelper,
|
|
||||||
GenerateCuboid,
|
|
||||||
GenerateCone,
|
|
||||||
GenerateCylinder,
|
|
||||||
GenerateSphere,
|
|
||||||
GeneratePlatonicSolid,
|
|
||||||
Model,
|
|
||||||
MeshPrimitiveBuffer,
|
|
||||||
MeshBuffer,
|
|
||||||
ConvertMeshToMeshBuffer,
|
|
||||||
Triangle,
|
|
||||||
TopologyVertex,
|
|
||||||
TopologyEdge,
|
|
||||||
TopologyTriangleEdge,
|
|
||||||
TopologyTriangle,
|
|
||||||
Topology,
|
|
||||||
ParameterListBuilder,
|
|
||||||
ParameterListParser,
|
|
||||||
CreateUrlBuilder,
|
|
||||||
CreateUrlParser,
|
|
||||||
CreateModelUrlParameters,
|
|
||||||
ParameterConverter,
|
|
||||||
Quaternion,
|
|
||||||
QuaternionIsEqual,
|
|
||||||
ArrayToQuaternion,
|
|
||||||
QuaternionFromAxisAngle,
|
|
||||||
QuaternionFromXYZ,
|
|
||||||
Coord2D,
|
|
||||||
CoordIsEqual2D,
|
|
||||||
AddCoord2D,
|
|
||||||
SubCoord2D,
|
|
||||||
CoordDistance2D,
|
|
||||||
Coord3D,
|
|
||||||
CoordIsEqual3D,
|
|
||||||
AddCoord3D,
|
|
||||||
SubCoord3D,
|
|
||||||
CoordDistance3D,
|
|
||||||
DotVector3D,
|
|
||||||
VectorAngle3D,
|
|
||||||
CrossVector3D,
|
|
||||||
VectorLength3D,
|
|
||||||
ArrayToCoord3D,
|
|
||||||
Coord4D,
|
|
||||||
Matrix,
|
|
||||||
MatrixIsEqual,
|
|
||||||
Transformation,
|
|
||||||
TransformationIsEqual,
|
|
||||||
Box3D,
|
|
||||||
BoundingBoxCalculator3D,
|
|
||||||
OctreeNode,
|
|
||||||
Octree,
|
|
||||||
BezierTweenFunction,
|
|
||||||
LinearTweenFunction,
|
|
||||||
ParabolicTweenFunction,
|
|
||||||
TweenCoord3D,
|
|
||||||
IsZero,
|
|
||||||
IsLower,
|
|
||||||
IsGreater,
|
|
||||||
IsLowerOrEqual,
|
|
||||||
IsGreaterOrEqual,
|
|
||||||
IsEqual,
|
|
||||||
IsEqualEps,
|
|
||||||
IsPositive,
|
|
||||||
IsNegative,
|
|
||||||
Eps,
|
|
||||||
BigEps,
|
|
||||||
RadDeg,
|
|
||||||
DegRad,
|
|
||||||
Direction,
|
|
||||||
ExporterBim,
|
|
||||||
Exporter,
|
|
||||||
ExporterObj,
|
|
||||||
ExporterSettings,
|
|
||||||
ExporterModel,
|
|
||||||
ExportedFile,
|
|
||||||
ExporterBase,
|
|
||||||
ExporterStl,
|
|
||||||
ExporterOff,
|
|
||||||
Exporter3dm,
|
|
||||||
ExporterPly,
|
|
||||||
ExporterGltf,
|
|
||||||
ColorToMaterialConverter,
|
|
||||||
NameFromLine,
|
|
||||||
ParametersFromLine,
|
|
||||||
ReadLines,
|
|
||||||
IsPowerOfTwo,
|
|
||||||
NextPowerOfTwo,
|
|
||||||
UpdateMaterialTransparency,
|
|
||||||
ImporterThreeSvg,
|
|
||||||
ImporterGltf,
|
|
||||||
ImporterBim,
|
|
||||||
ImporterObj,
|
|
||||||
Importer3ds,
|
|
||||||
ImporterStl,
|
|
||||||
ImporterOcct,
|
|
||||||
ImporterFcstd,
|
|
||||||
ImportSettings,
|
|
||||||
ImportError,
|
|
||||||
ImportResult,
|
|
||||||
ImporterFileAccessor,
|
|
||||||
Importer,
|
|
||||||
ImportErrorCode,
|
|
||||||
InputFile,
|
|
||||||
ImporterFile,
|
|
||||||
ImporterFileList,
|
|
||||||
InputFilesFromUrls,
|
|
||||||
InputFilesFromFileObjects,
|
|
||||||
Importer3dm,
|
|
||||||
ImporterOff,
|
|
||||||
ImporterThreeBase,
|
|
||||||
ImporterThreeFbx,
|
|
||||||
ImporterThreeDae,
|
|
||||||
ImporterThreeWrl,
|
|
||||||
ImporterThree3mf,
|
|
||||||
ImporterBase,
|
|
||||||
ImporterPly,
|
|
||||||
ImporterIfc,
|
|
||||||
ModelToThreeConversionParams,
|
|
||||||
ModelToThreeConversionOutput,
|
|
||||||
ThreeConversionStateHandler,
|
|
||||||
ThreeNodeTree,
|
|
||||||
ConvertModelToThreeObject,
|
|
||||||
ThreeModelLoader,
|
|
||||||
HasHighpDriverIssue,
|
|
||||||
GetShadingType,
|
|
||||||
ConvertThreeColorToColor,
|
|
||||||
ConvertColorToThreeColor,
|
|
||||||
ConvertThreeGeometryToMesh,
|
|
||||||
DisposeThreeObjects,
|
|
||||||
ShadingType
|
|
||||||
};
|
};
|
||||||
|
|||||||
8
tools/tsconfig.json
Normal file
8
tools/tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"include": ["../build/o3dv.module.js"],
|
||||||
|
"compilerOptions": {
|
||||||
|
"allowJs": true,
|
||||||
|
"declaration": true,
|
||||||
|
"emitDeclarationOnly": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
// Change this to match your project
|
|
||||||
"include": ["build/**/*"],
|
|
||||||
"compilerOptions": {
|
|
||||||
// Tells TypeScript to read JS files, as
|
|
||||||
// normally they are ignored as source files
|
|
||||||
"allowJs": true,
|
|
||||||
// Generate d.ts files
|
|
||||||
"declaration": true,
|
|
||||||
// This compiler run should
|
|
||||||
// only output d.ts files
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
// Types should go into this directory.
|
|
||||||
// Removing this would place the .d.ts files
|
|
||||||
// next to the .js files
|
|
||||||
// "outDir": "build",
|
|
||||||
// go to js file when using IDE functions like
|
|
||||||
// "Go to Definition" in VSCode
|
|
||||||
"declarationMap": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user