From 7287a32c35dbf6e5828b2a324dd20875aa2681d8 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Sat, 17 Feb 2024 16:18:31 +0100 Subject: [PATCH 01/13] First pass of undoing monorepo conversion --- .prettierignore | 6 +- {packages/cli/bin => bin}/README.md | 0 {packages/cli/bin => bin}/cli.mjs | 0 generateThirdParty.js | 2 +- package.json | 42 ++++++++--- packages/base/README.md | 33 --------- packages/base/api-extractor.jsonc | 7 -- packages/base/package.json | 33 --------- packages/base/specs/jasmine.json | 6 -- packages/base/specs/jasmineHelpers.js | 2 - packages/base/specs/tsconfig.json | 13 ---- packages/base/src/tsconfig.json | 12 ---- packages/base/tsconfig.json | 11 --- packages/cli/README.md | 8 --- packages/cli/package.json | 37 ---------- packages/cli/specs/jasmine.json | 6 -- packages/cli/specs/jasmineHelpers.js | 2 - packages/cli/specs/tsconfig.json | 13 ---- packages/cli/src/tsconfig.json | 12 ---- packages/cli/tsconfig.json | 11 --- packages/gltf-extensions/README.md | 10 --- packages/gltf-extensions/api-extractor.jsonc | 7 -- packages/gltf-extensions/package.json | 27 ------- packages/gltf-extensions/src/tsconfig.json | 12 ---- packages/gltf-extensions/tsconfig.json | 10 --- packages/ktx/README.md | 9 --- packages/ktx/api-extractor.jsonc | 7 -- packages/ktx/package.json | 31 -------- packages/ktx/specs/jasmine.json | 6 -- packages/ktx/specs/jasmineHelpers.js | 2 - packages/ktx/specs/tsconfig.json | 13 ---- packages/ktx/src/tsconfig.json | 13 ---- packages/ktx/tsconfig.json | 12 ---- packages/metadata/README.md | 14 ---- packages/metadata/api-extractor.jsonc | 7 -- packages/metadata/package.json | 25 ------- packages/metadata/specs/jasmine.json | 6 -- packages/metadata/specs/jasmineHelpers.js | 2 - packages/metadata/specs/tsconfig.json | 13 ---- packages/metadata/src/tsconfig.json | 12 ---- packages/metadata/tsconfig.json | 11 --- packages/spec-helpers/README.md | 4 -- packages/spec-helpers/package.json | 27 ------- packages/spec-helpers/src/index.ts | 1 - packages/spec-helpers/src/tsconfig.json | 12 ---- packages/spec-helpers/tsconfig.json | 10 --- packages/structure/README.md | 9 --- packages/structure/api-extractor.jsonc | 7 -- packages/structure/package.json | 24 ------- packages/structure/src/tsconfig.json | 12 ---- packages/structure/tsconfig.json | 10 --- packages/tilesets/README.md | 45 ------------ packages/tilesets/api-extractor.jsonc | 7 -- packages/tilesets/package.json | 38 ---------- packages/tilesets/specs/jasmine.json | 6 -- packages/tilesets/specs/jasmineHelpers.js | 2 - packages/tilesets/specs/tsconfig.json | 13 ---- packages/tilesets/src/tsconfig.json | 12 ---- packages/tilesets/tsconfig.json | 11 --- .../tools/@types/gltf-pipeline/index.d.ts | 1 - packages/tools/@types/gltfpack/index.d.ts | 1 - packages/tools/README.md | 48 ------------- packages/tools/api-extractor.jsonc | 7 -- packages/tools/package.json | 43 ------------ packages/tools/specs/jasmine.json | 6 -- packages/tools/specs/jasmineHelpers.js | 2 - packages/tools/specs/tsconfig.json | 13 ---- packages/tools/src/tsconfig.json | 12 ---- packages/tools/tsconfig.json | 11 --- .../spec-helpers/src => specs}/SpecHelpers.ts | 24 +++---- .../base}/base/BuffersJsonSpec.ts | 2 +- .../base}/base/IterablesSpec.ts | 2 +- .../contentTypes/ContentDataTypeChecksSpec.ts | 4 +- .../contentTypes/ContentDataTypesSpec.ts | 8 +-- .../base}/contentTypes/LazyContentDataSpec.ts | 4 +- .../base}/spatial/TreeCoordinatesSpec.ts | 4 +- .../cli/specs => specs/cli}/GzipUngzipSpec.ts | 4 +- specs/jasmine.json | 2 +- .../specs => specs/ktx}/ktx/KtxUtilitySpec.ts | 6 +- .../metadata}/metadata/ArrayValuesSpec.ts | 2 +- .../metadata/MetadataEntityModelBasicSpec.ts | 4 +- .../metadata/MetadataEntityModelSpec.ts | 4 +- .../metadata/PropertyTableModelsSpec.ts | 8 +-- .../PropertyTableModelsSpecialValuesSpec.ts | 10 +-- .../binary/BinaryPropertyTablesSpec.ts | 4 +- .../implicitTiling/ImplicitTilingsSpec.ts | 8 +-- .../packages/TilesetSource3dtilesSpec.ts | 4 +- .../tilesets}/tileFormats/TileFormatsSpec.ts | 6 +- .../tilesetData/TilesetSourceSpec.ts | 12 ++-- .../tilesetData/TilesetTargetSpec.ts | 12 ++-- .../tilesets}/tilesets/TilesSpec.ts | 4 +- .../contentProcessing/GltfTransformSpec.ts | 4 +- .../contentProcessing/GltfUtilitiesSpec.ts | 6 +- .../BatchTableClassPropertiesSpec.ts | 2 +- .../migration/NumberTypeDescriptionsSpec.ts | 2 +- .../migration/TileFormatsMigrationSpec.ts | 8 +-- .../BasicTilesetProcessorSpec.ts | 14 ++-- .../ImplicitTilesetProcessorSpec.ts | 12 ++-- .../PackageTilesetProcessorSpec.ts | 4 +- .../tilesetProcessing/SpecEntryProcessor.ts | 4 +- .../tilesetProcessing/TilesetCombinerSpec.ts | 6 +- .../tilesetProcessing/TilesetConverterSpec.ts | 4 +- .../TilesetDataProcessorSpec.ts | 4 +- .../TilesetJsonCreatorSpec.ts | 6 +- .../tilesetProcessing/TilesetMergerSpec.ts | 6 +- .../tilesetProcessing/TilesetProcessorSpec.ts | 4 +- .../tilesetProcessing/TilesetUpgraderSpec.ts | 4 +- .../base/src => src/base}/base/Buffers.ts | 0 .../base/src => src/base}/base/DataError.ts | 0 .../src => src/base}/base/DeveloperError.ts | 0 .../base/src => src/base}/base/Iterables.ts | 0 {packages/base/src => src/base}/base/Paths.ts | 0 {packages/base/src => src/base}/base/Uris.ts | 0 .../src => src/base}/base/defaultValue.ts | 0 .../base/src => src/base}/base/defined.ts | 0 .../base}/binary/BinaryBufferData.ts | 0 .../base}/binary/BinaryBufferDataResolver.ts | 0 .../base}/binary/BinaryBufferStructure.ts | 4 +- .../src => src/base}/binary/BinaryBuffers.ts | 4 +- .../base}/binary/BinaryDataError.ts | 0 .../base}/contentTypes/BufferedContentData.ts | 0 .../base}/contentTypes/ContentData.ts | 0 .../contentTypes/ContentDataTypeChecks.ts | 0 .../contentTypes/ContentDataTypeEntry.ts | 0 .../contentTypes/ContentDataTypeRegistry.ts | 0 .../base}/contentTypes/ContentDataTypes.ts | 0 .../base}/contentTypes/LazyContentData.ts | 0 {packages/base/src => src/base}/index.ts | 0 .../base}/io/FileResourceResolver.ts | 0 .../src => src/base}/io/ResourceResolver.ts | 0 .../src => src/base}/io/ResourceResolvers.ts | 0 .../base}/io/UnzippingResourceResolver.ts | 0 .../base/src => src/base}/logging/Loggers.ts | 0 .../src => src/base}/spatial/MortonOrder.ts | 0 .../base}/spatial/OctreeCoordinates.ts | 0 .../base/src => src/base}/spatial/Octrees.ts | 0 .../base}/spatial/QuadtreeCoordinates.ts | 0 .../src => src/base}/spatial/Quadtrees.ts | 0 .../base}/spatial/TreeCoordinates.ts | 0 {packages/cli/src => src/cli}/ToolsMain.ts | 36 +++++----- {packages/cli/src => src/cli}/main.ts | 4 +- .../gltfExtensions/EXTInstanceFeatures.ts | 0 .../gltfExtensions/EXTMeshFeatures.ts | 0 .../gltfExtensions/EXTStructuralMetadata.ts | 0 .../gltfExtensions/InstanceFeatures.ts | 0 .../gltfExtensions/MeshFeatures.ts | 0 .../gltfExtensions/StructuralMetadata.ts | 0 .../src => src/gltf-extensions}/index.ts | 0 src/index.ts | 7 ++ {packages/ktx/src => src/ktx}/index.ts | 0 .../ktx/src => src/ktx}/ktx/BasisEncoder.ts | 0 {packages/ktx/src => src/ktx}/ktx/KtxError.ts | 0 .../src => src/ktx}/ktx/KtxEtc1sOptions.ts | 0 .../ktx/src => src/ktx}/ktx/KtxOptions.ts | 0 .../src => src/ktx}/ktx/KtxUastcOptions.ts | 0 .../ktx/src => src/ktx}/ktx/KtxUtility.ts | 0 .../src => src/ktx}/ktx/external/README.md | 0 .../ktx}/ktx/external/basis_encoder.cjs | 0 .../ktx}/ktx/external/basis_encoder.wasm | Bin .../metadata/src => src/metadata}/index.ts | 0 .../metadata}/metadata/ArrayValues.ts | 0 .../metadata}/metadata/ClassProperties.ts | 4 +- .../metadata/DefaultMetadataEntityModel.ts | 2 +- .../metadata/DefaultPropertyModel.ts | 0 .../metadata/DefaultPropertyTableModel.ts | 4 +- .../metadata/MetadataComponentTypes.ts | 0 .../metadata}/metadata/MetadataEntityModel.ts | 0 .../metadata/MetadataEntityModels.ts | 8 +-- .../metadata}/metadata/MetadataError.ts | 0 .../metadata}/metadata/MetadataTypes.ts | 0 .../metadata}/metadata/MetadataUtilities.ts | 8 +-- .../metadata}/metadata/MetadataValues.ts | 4 +- .../metadata}/metadata/PropertyModel.ts | 0 .../metadata}/metadata/PropertyModels.ts | 0 .../metadata}/metadata/PropertyTableModel.ts | 4 +- .../metadata}/metadata/PropertyTableModels.ts | 0 .../metadata/TableMetadataEntityModel.ts | 2 +- .../metadata}/metadata/binary/ArrayBuffers.ts | 0 .../metadata/binary/BinaryEnumInfo.ts | 0 .../metadata/binary/BinaryMetadata.ts | 6 +- .../metadata/binary/BinaryPropertyModels.ts | 0 .../metadata/binary/BinaryPropertyTable.ts | 2 +- .../binary/BinaryPropertyTableBuilder.ts | 14 ++-- .../binary/BinaryPropertyTableModel.ts | 4 +- .../metadata/binary/BinaryPropertyTables.ts | 24 +++---- .../binary/BooleanArrayPropertyModel.ts | 0 .../metadata/binary/BooleanPropertyModel.ts | 0 .../binary/NumericArrayPropertyModel.ts | 0 .../metadata/binary/NumericBuffers.ts | 0 .../metadata/binary/NumericPropertyModel.ts | 0 .../binary/StringArrayPropertyModel.ts | 0 .../metadata/binary/StringPropertyModel.ts | 0 .../structure/src => src/structure}/index.ts | 0 .../src => src/structure}/structure/Asset.ts | 0 .../structure}/structure/Availability.ts | 0 .../structure}/structure/BoundingVolume.ts | 0 .../structure}/structure/BufferObject.ts | 0 .../structure}/structure/BufferView.ts | 0 .../structure}/structure/Content.ts | 0 .../src => src/structure}/structure/Group.ts | 0 .../structure/Metadata/ClassProperty.ts | 0 .../structure/Metadata/EnumValue.ts | 0 .../structure/Metadata/MetadataClass.ts | 0 .../structure/Metadata/MetadataEnum.ts | 0 .../structure}/structure/Metadata/Schema.ts | 0 .../structure}/structure/MetadataEntity.ts | 0 .../structure}/structure/Properties.ts | 0 .../structure}/structure/PropertyTable.ts | 0 .../structure/PropertyTableProperty.ts | 0 .../structure}/structure/RootProperty.ts | 0 .../structure}/structure/Statistics.ts | 0 .../structure}/structure/StatisticsClass.ts | 0 .../structure/StatisticsClassProperty.ts | 0 .../structure}/structure/Style/Style.ts | 0 .../structure}/structure/Subtree.ts | 0 .../structure}/structure/Subtrees.ts | 0 .../src => src/structure}/structure/Tile.ts | 0 .../structure/TileFormats/B3dmFeatureTable.ts | 0 .../structure/TileFormats/BatchTable.ts | 0 .../BatchTableBinaryBodyReference.ts | 0 .../structure/TileFormats/BinaryBodyOffset.ts | 0 .../structure/TileFormats/FeatureTable.ts | 0 .../FeatureTableBinaryBodyReference.ts | 0 .../structure/TileFormats/I3dmFeatureTable.ts | 0 .../structure/TileFormats/PntsFeatureTable.ts | 0 .../structure/TileImplicitTiling.ts | 0 .../structure}/structure/Tileset.ts | 0 .../structure/extensions/BoundingVolumeS2.ts | 0 .../implicitTiling/AvailabilityInfo.ts | 0 .../implicitTiling/AvailabilityInfos.ts | 6 +- .../implicitTiling/BinarySubtreeData.ts | 6 +- .../BinarySubtreeDataResolver.ts | 12 ++-- .../implicitTiling/BufferAvailabilityInfo.ts | 0 .../ConstantAvailabilityInfo.ts | 0 .../implicitTiling/ImplicitTilingError.ts | 0 .../implicitTiling/ImplicitTilings.ts | 12 ++-- .../tilesets}/implicitTiling/SubtreeInfo.ts | 0 .../tilesets}/implicitTiling/SubtreeInfos.ts | 6 +- .../tilesets}/implicitTiling/TemplateUris.ts | 4 +- .../tilesets/src => src/tilesets}/index.ts | 0 .../tilesets}/packages/ArchiveFunctions3tz.ts | 0 .../tilesets}/packages/IndexBuilder.ts | 0 .../tilesets}/packages/IndexBuilderEntry.ts | 0 .../tilesets}/packages/IndexEntry.ts | 0 .../packages/TableStructureValidator.ts | 0 .../packages/TilesetSource3dtiles.ts | 2 +- .../tilesets}/packages/TilesetSource3tz.ts | 2 +- .../packages/TilesetTarget3dtiles.ts | 0 .../tilesets}/packages/TilesetTarget3tz.ts | 0 .../tilesets}/packages/ZipToPackage.ts | 2 +- .../tileFormats/CompositeTileData.ts | 0 .../tilesets}/tileFormats/Header.ts | 0 .../src => src/tilesets}/tileFormats/Table.ts | 0 .../tilesets}/tileFormats/TileData.ts | 0 .../tilesets}/tileFormats/TileDataLayouts.ts | 2 +- .../tilesets}/tileFormats/TileFormatError.ts | 0 .../tilesets}/tileFormats/TileFormats.ts | 8 +-- .../tileTableData/AttributeCompression.ts | 0 .../tilesets}/tileTableData/BatchTables.ts | 2 +- .../tilesets}/tileTableData/Colors.ts | 0 .../tilesets}/tileTableData/TileTableData.ts | 18 ++--- .../tileTableData/TileTableDataI3dm.ts | 4 +- .../tileTableData/TileTableDataPnts.ts | 4 +- .../tilesets}/tileTableData/VecMath.ts | 2 +- .../tilesets}/tilesetData/TilesetEntry.ts | 0 .../tilesets}/tilesetData/TilesetError.ts | 0 .../tilesets}/tilesetData/TilesetInMemory.ts | 0 .../tilesets}/tilesetData/TilesetSource.ts | 0 .../tilesets}/tilesetData/TilesetSourceFs.ts | 4 +- .../TilesetSourceResourceResolver.ts | 6 +- .../tilesets}/tilesetData/TilesetSources.ts | 4 +- .../tilesets}/tilesetData/TilesetTarget.ts | 0 .../tilesets}/tilesetData/TilesetTargetFs.ts | 0 .../tilesets}/tilesetData/TilesetTargets.ts | 2 +- .../src => src/tilesets}/tilesets/Contents.ts | 4 +- .../tilesets}/tilesets/Extensions.ts | 0 .../tilesets/TileTraversalCallback.ts | 2 +- .../src => src/tilesets}/tilesets/Tiles.ts | 4 +- .../src => src/tilesets}/tilesets/Tilesets.ts | 0 .../traversal/ExplicitTraversedTile.ts | 12 ++-- .../traversal/ExplicitTraversedTiles.ts | 6 +- .../traversal/ImplicitTraversedTile.ts | 12 ++-- .../traversal/MetadataSemanticOverrides.ts | 12 ++-- .../traversal/SubtreeMetadataModel.ts | 4 +- .../traversal/SubtreeMetadataModels.ts | 16 ++--- .../tilesets}/traversal/SubtreeModel.ts | 0 .../tilesets}/traversal/SubtreeModels.ts | 14 ++-- .../tilesets}/traversal/TilesetTraverser.ts | 10 +-- .../tilesets}/traversal/TilesetTraversers.ts | 18 ++--- .../tilesets}/traversal/TraversalCallback.ts | 0 .../tilesets}/traversal/TraversedTile.ts | 6 +- .../cesium/BoundingVolumeDerivation.ts | 6 +- .../traversal/cesium/HilbertOrder.ts | 2 +- .../tilesets}/traversal/cesium/S2Cell.ts | 2 +- .../tools}/contentProcessing/ContentError.ts | 0 .../tools}/contentProcessing/ContentOps.ts | 2 +- .../contentProcessing/ContentUpgrades.ts | 2 +- .../tools}/contentProcessing/GltfPack.ts | 2 - .../contentProcessing/GltfPackOptions.ts | 0 .../contentProcessing/GltfPipelineLegacy.ts | 8 +-- .../tools}/contentProcessing/GltfTransform.ts | 6 +- .../GltfTransformTextures.ts | 10 +-- .../tools}/contentProcessing/GltfUtilities.ts | 8 +-- .../src => src/tools}/draco/AttributeInfo.ts | 0 .../tools}/draco/ComponentDataType.ts | 0 .../src => src/tools}/draco/DracoDecoder.ts | 2 +- .../tools}/draco/DracoDecoderResult.ts | 0 .../src => src/tools}/draco/DracoError.ts | 0 .../tools}/draco/QuantizationInfo.ts | 0 .../InstanceFeaturesUtils.ts | 4 +- .../gltfExtensionsUtils/MeshFeaturesUtils.ts | 4 +- .../gltfExtensionsUtils/StringBuilder.ts | 0 .../StructuralMetadataPropertyTables.ts | 10 +-- .../StructuralMetadataUtils.ts | 24 +++---- {packages/tools/src => src/tools}/index.ts | 0 .../tools}/migration/AccessorCreation.ts | 10 +-- .../migration/BatchTableClassProperties.ts | 6 +- .../BatchTablePropertyTableModels.ts | 12 ++-- .../tools}/migration/BatchTableSchemas.ts | 8 +-- .../tools}/migration/GltfUpgrade.ts | 2 +- .../tools/src => src/tools}/migration/Ids.ts | 0 .../migration/NumberTypeDescriptions.ts | 0 .../tools}/migration/TileFormatsMigration.ts | 0 .../migration/TileFormatsMigrationB3dm.ts | 10 +-- .../migration/TileFormatsMigrationI3dm.ts | 20 +++--- .../migration/TileFormatsMigrationPnts.ts | 18 ++--- .../migration/TileTableDataToMeshFeatures.ts | 8 +-- .../TileTableDataToStructuralMetadata.ts | 22 +++--- .../tools}/migration/TypeDetection.ts | 0 .../tools}/pipelines/ContentStage.ts | 0 .../tools}/pipelines/ContentStageExecutor.ts | 8 +-- .../tools}/pipelines/ContentStages.ts | 4 +- .../src => src/tools}/pipelines/Pipeline.ts | 0 .../tools}/pipelines/PipelineError.ts | 0 .../tools}/pipelines/PipelineExecutor.ts | 2 +- .../src => src/tools}/pipelines/Pipelines.ts | 2 +- .../src => src/tools}/pipelines/Stage.ts | 0 .../tools}/pipelines/TilesetStage.ts | 0 .../tools}/pipelines/TilesetStageExecutor.ts | 10 +-- .../tools}/pipelines/TilesetStages.ts | 6 +- .../tools}/pointClouds/DefaultPointCloud.ts | 4 +- .../pointClouds/GltfTransformPointClouds.ts | 6 +- .../tools}/pointClouds/PntsPointClouds.ts | 14 ++-- .../tools}/pointClouds/ReadablePointCloud.ts | 0 .../BasicTilesetProcessor.ts | 26 +++---- .../tilesetProcessing/BoundingVolumes.ts | 2 +- .../ContentBoundingVolumes.ts | 22 +++--- .../OrientedBoundingBoxes.ts | 0 .../TileContentProcessing.ts | 2 +- .../tilesetProcessing/TileContentProcessor.ts | 0 .../TileContentProcessors.ts | 0 .../TileContentProcessorsGltfPipeline.ts | 2 +- .../TileContentProcessorsGltfTransform.ts | 2 +- .../TileContentProcessorsGltfpack.ts | 2 +- .../TileContentProcessorsTextures.ts | 4 +- .../tilesetProcessing/TilesetCombiner.ts | 28 ++++---- .../tilesetProcessing/TilesetConverter.ts | 12 ++-- .../tilesetProcessing/TilesetDataProcessor.ts | 0 .../TilesetEntryProcessor.ts | 2 +- .../tilesetProcessing/TilesetJsonCreator.ts | 8 +-- .../tools}/tilesetProcessing/TilesetMerger.ts | 20 +++--- .../tilesetProcessing/TilesetOperations.ts | 6 +- .../tilesetProcessing/TilesetProcessing.ts | 10 +-- .../tilesetProcessing/TilesetProcessor.ts | 10 +-- .../TilesetProcessorContext.ts | 8 +-- .../TilesetProcessorContexts.ts | 6 +- .../tilesetProcessing/TilesetUpgrader.ts | 14 ++-- .../tilesetProcessing/external/README.md | 0 .../tools}/tilesetProcessing/external/dito.ts | 0 .../upgrade/TilesetObjectUpgrader.ts | 12 ++-- .../upgrade/TilesetUpgradeOptions.ts | 0 tsconfig.json | 66 ++---------------- 372 files changed, 570 insertions(+), 1454 deletions(-) rename {packages/cli/bin => bin}/README.md (100%) rename {packages/cli/bin => bin}/cli.mjs (100%) delete mode 100644 packages/base/README.md delete mode 100644 packages/base/api-extractor.jsonc delete mode 100644 packages/base/package.json delete mode 100644 packages/base/specs/jasmine.json delete mode 100644 packages/base/specs/jasmineHelpers.js delete mode 100644 packages/base/specs/tsconfig.json delete mode 100644 packages/base/src/tsconfig.json delete mode 100644 packages/base/tsconfig.json delete mode 100644 packages/cli/README.md delete mode 100644 packages/cli/package.json delete mode 100644 packages/cli/specs/jasmine.json delete mode 100644 packages/cli/specs/jasmineHelpers.js delete mode 100644 packages/cli/specs/tsconfig.json delete mode 100644 packages/cli/src/tsconfig.json delete mode 100644 packages/cli/tsconfig.json delete mode 100644 packages/gltf-extensions/README.md delete mode 100644 packages/gltf-extensions/api-extractor.jsonc delete mode 100644 packages/gltf-extensions/package.json delete mode 100644 packages/gltf-extensions/src/tsconfig.json delete mode 100644 packages/gltf-extensions/tsconfig.json delete mode 100644 packages/ktx/README.md delete mode 100644 packages/ktx/api-extractor.jsonc delete mode 100644 packages/ktx/package.json delete mode 100644 packages/ktx/specs/jasmine.json delete mode 100644 packages/ktx/specs/jasmineHelpers.js delete mode 100644 packages/ktx/specs/tsconfig.json delete mode 100644 packages/ktx/src/tsconfig.json delete mode 100644 packages/ktx/tsconfig.json delete mode 100644 packages/metadata/README.md delete mode 100644 packages/metadata/api-extractor.jsonc delete mode 100644 packages/metadata/package.json delete mode 100644 packages/metadata/specs/jasmine.json delete mode 100644 packages/metadata/specs/jasmineHelpers.js delete mode 100644 packages/metadata/specs/tsconfig.json delete mode 100644 packages/metadata/src/tsconfig.json delete mode 100644 packages/metadata/tsconfig.json delete mode 100644 packages/spec-helpers/README.md delete mode 100644 packages/spec-helpers/package.json delete mode 100644 packages/spec-helpers/src/index.ts delete mode 100644 packages/spec-helpers/src/tsconfig.json delete mode 100644 packages/spec-helpers/tsconfig.json delete mode 100644 packages/structure/README.md delete mode 100644 packages/structure/api-extractor.jsonc delete mode 100644 packages/structure/package.json delete mode 100644 packages/structure/src/tsconfig.json delete mode 100644 packages/structure/tsconfig.json delete mode 100644 packages/tilesets/README.md delete mode 100644 packages/tilesets/api-extractor.jsonc delete mode 100644 packages/tilesets/package.json delete mode 100644 packages/tilesets/specs/jasmine.json delete mode 100644 packages/tilesets/specs/jasmineHelpers.js delete mode 100644 packages/tilesets/specs/tsconfig.json delete mode 100644 packages/tilesets/src/tsconfig.json delete mode 100644 packages/tilesets/tsconfig.json delete mode 100644 packages/tools/@types/gltf-pipeline/index.d.ts delete mode 100644 packages/tools/@types/gltfpack/index.d.ts delete mode 100644 packages/tools/README.md delete mode 100644 packages/tools/api-extractor.jsonc delete mode 100644 packages/tools/package.json delete mode 100644 packages/tools/specs/jasmine.json delete mode 100644 packages/tools/specs/jasmineHelpers.js delete mode 100644 packages/tools/specs/tsconfig.json delete mode 100644 packages/tools/src/tsconfig.json delete mode 100644 packages/tools/tsconfig.json rename {packages/spec-helpers/src => specs}/SpecHelpers.ts (95%) rename {packages/base/specs => specs/base}/base/BuffersJsonSpec.ts (96%) rename {packages/base/specs => specs/base}/base/IterablesSpec.ts (97%) rename {packages/base/specs => specs/base}/contentTypes/ContentDataTypeChecksSpec.ts (96%) rename {packages/base/specs => specs/base}/contentTypes/ContentDataTypesSpec.ts (94%) rename {packages/base/specs => specs/base}/contentTypes/LazyContentDataSpec.ts (95%) rename {packages/base/specs => specs/base}/spatial/TreeCoordinatesSpec.ts (90%) rename {packages/cli/specs => specs/cli}/GzipUngzipSpec.ts (96%) rename {packages/ktx/specs => specs/ktx}/ktx/KtxUtilitySpec.ts (91%) rename {packages/metadata/specs => specs/metadata}/metadata/ArrayValuesSpec.ts (99%) rename {packages/metadata/specs => specs/metadata}/metadata/MetadataEntityModelBasicSpec.ts (99%) rename {packages/metadata/specs => specs/metadata}/metadata/MetadataEntityModelSpec.ts (98%) rename {packages/metadata/specs => specs/metadata}/metadata/PropertyTableModelsSpec.ts (98%) rename {packages/metadata/specs => specs/metadata}/metadata/PropertyTableModelsSpecialValuesSpec.ts (95%) rename {packages/metadata/specs => specs/metadata}/metadata/binary/BinaryPropertyTablesSpec.ts (96%) rename {packages/tilesets/specs => specs/tilesets}/implicitTiling/ImplicitTilingsSpec.ts (97%) rename {packages/tilesets/specs => specs/tilesets}/packages/TilesetSource3dtilesSpec.ts (94%) rename {packages/tilesets/specs => specs/tilesets}/tileFormats/TileFormatsSpec.ts (99%) rename {packages/tilesets/specs => specs/tilesets}/tilesetData/TilesetSourceSpec.ts (87%) rename {packages/tilesets/specs => specs/tilesets}/tilesetData/TilesetTargetSpec.ts (87%) rename {packages/tilesets/specs => specs/tilesets}/tilesets/TilesSpec.ts (97%) rename {packages/tools/specs => specs/tools}/contentProcessing/GltfTransformSpec.ts (88%) rename {packages/tools/specs => specs/tools}/contentProcessing/GltfUtilitiesSpec.ts (94%) rename {packages/tools/specs => specs/tools}/migration/BatchTableClassPropertiesSpec.ts (98%) rename {packages/tools/specs => specs/tools}/migration/NumberTypeDescriptionsSpec.ts (98%) rename {packages/tools/specs => specs/tools}/migration/TileFormatsMigrationSpec.ts (99%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/BasicTilesetProcessorSpec.ts (96%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/ImplicitTilesetProcessorSpec.ts (92%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/PackageTilesetProcessorSpec.ts (96%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/SpecEntryProcessor.ts (90%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetCombinerSpec.ts (90%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetConverterSpec.ts (98%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetDataProcessorSpec.ts (94%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetJsonCreatorSpec.ts (96%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetMergerSpec.ts (91%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetProcessorSpec.ts (95%) rename {packages/tools/specs => specs/tools}/tilesetProcessing/TilesetUpgraderSpec.ts (96%) rename {packages/base/src => src/base}/base/Buffers.ts (100%) rename {packages/base/src => src/base}/base/DataError.ts (100%) rename {packages/base/src => src/base}/base/DeveloperError.ts (100%) rename {packages/base/src => src/base}/base/Iterables.ts (100%) rename {packages/base/src => src/base}/base/Paths.ts (100%) rename {packages/base/src => src/base}/base/Uris.ts (100%) rename {packages/base/src => src/base}/base/defaultValue.ts (100%) rename {packages/base/src => src/base}/base/defined.ts (100%) rename {packages/base/src => src/base}/binary/BinaryBufferData.ts (100%) rename {packages/base/src => src/base}/binary/BinaryBufferDataResolver.ts (100%) rename {packages/base/src => src/base}/binary/BinaryBufferStructure.ts (70%) rename {packages/base/src => src/base}/binary/BinaryBuffers.ts (96%) rename {packages/base/src => src/base}/binary/BinaryDataError.ts (100%) rename {packages/base/src => src/base}/contentTypes/BufferedContentData.ts (100%) rename {packages/base/src => src/base}/contentTypes/ContentData.ts (100%) rename {packages/base/src => src/base}/contentTypes/ContentDataTypeChecks.ts (100%) rename {packages/base/src => src/base}/contentTypes/ContentDataTypeEntry.ts (100%) rename {packages/base/src => src/base}/contentTypes/ContentDataTypeRegistry.ts (100%) rename {packages/base/src => src/base}/contentTypes/ContentDataTypes.ts (100%) rename {packages/base/src => src/base}/contentTypes/LazyContentData.ts (100%) rename {packages/base/src => src/base}/index.ts (100%) rename {packages/base/src => src/base}/io/FileResourceResolver.ts (100%) rename {packages/base/src => src/base}/io/ResourceResolver.ts (100%) rename {packages/base/src => src/base}/io/ResourceResolvers.ts (100%) rename {packages/base/src => src/base}/io/UnzippingResourceResolver.ts (100%) rename {packages/base/src => src/base}/logging/Loggers.ts (100%) rename {packages/base/src => src/base}/spatial/MortonOrder.ts (100%) rename {packages/base/src => src/base}/spatial/OctreeCoordinates.ts (100%) rename {packages/base/src => src/base}/spatial/Octrees.ts (100%) rename {packages/base/src => src/base}/spatial/QuadtreeCoordinates.ts (100%) rename {packages/base/src => src/base}/spatial/Quadtrees.ts (100%) rename {packages/base/src => src/base}/spatial/TreeCoordinates.ts (100%) rename {packages/cli/src => src/cli}/ToolsMain.ts (95%) rename {packages/cli/src => src/cli}/main.ts (99%) rename {packages/gltf-extensions/src => src/gltf-extensions}/gltfExtensions/EXTInstanceFeatures.ts (100%) rename {packages/gltf-extensions/src => src/gltf-extensions}/gltfExtensions/EXTMeshFeatures.ts (100%) rename {packages/gltf-extensions/src => src/gltf-extensions}/gltfExtensions/EXTStructuralMetadata.ts (100%) rename {packages/gltf-extensions/src => src/gltf-extensions}/gltfExtensions/InstanceFeatures.ts (100%) rename {packages/gltf-extensions/src => src/gltf-extensions}/gltfExtensions/MeshFeatures.ts (100%) rename {packages/gltf-extensions/src => src/gltf-extensions}/gltfExtensions/StructuralMetadata.ts (100%) rename {packages/gltf-extensions/src => src/gltf-extensions}/index.ts (100%) create mode 100644 src/index.ts rename {packages/ktx/src => src/ktx}/index.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/BasisEncoder.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/KtxError.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/KtxEtc1sOptions.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/KtxOptions.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/KtxUastcOptions.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/KtxUtility.ts (100%) rename {packages/ktx/src => src/ktx}/ktx/external/README.md (100%) rename {packages/ktx/src => src/ktx}/ktx/external/basis_encoder.cjs (100%) rename {packages/ktx/src => src/ktx}/ktx/external/basis_encoder.wasm (100%) rename {packages/metadata/src => src/metadata}/index.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/ArrayValues.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/ClassProperties.ts (95%) rename {packages/metadata/src => src/metadata}/metadata/DefaultMetadataEntityModel.ts (96%) rename {packages/metadata/src => src/metadata}/metadata/DefaultPropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/DefaultPropertyTableModel.ts (96%) rename {packages/metadata/src => src/metadata}/metadata/MetadataComponentTypes.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/MetadataEntityModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/MetadataEntityModels.ts (94%) rename {packages/metadata/src => src/metadata}/metadata/MetadataError.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/MetadataTypes.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/MetadataUtilities.ts (96%) rename {packages/metadata/src => src/metadata}/metadata/MetadataValues.ts (97%) rename {packages/metadata/src => src/metadata}/metadata/PropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/PropertyModels.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/PropertyTableModel.ts (94%) rename {packages/metadata/src => src/metadata}/metadata/PropertyTableModels.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/TableMetadataEntityModel.ts (98%) rename {packages/metadata/src => src/metadata}/metadata/binary/ArrayBuffers.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryEnumInfo.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryMetadata.ts (85%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryPropertyModels.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryPropertyTable.ts (86%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryPropertyTableBuilder.ts (95%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryPropertyTableModel.ts (97%) rename {packages/metadata/src => src/metadata}/metadata/binary/BinaryPropertyTables.ts (96%) rename {packages/metadata/src => src/metadata}/metadata/binary/BooleanArrayPropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/BooleanPropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/NumericArrayPropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/NumericBuffers.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/NumericPropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/StringArrayPropertyModel.ts (100%) rename {packages/metadata/src => src/metadata}/metadata/binary/StringPropertyModel.ts (100%) rename {packages/structure/src => src/structure}/index.ts (100%) rename {packages/structure/src => src/structure}/structure/Asset.ts (100%) rename {packages/structure/src => src/structure}/structure/Availability.ts (100%) rename {packages/structure/src => src/structure}/structure/BoundingVolume.ts (100%) rename {packages/structure/src => src/structure}/structure/BufferObject.ts (100%) rename {packages/structure/src => src/structure}/structure/BufferView.ts (100%) rename {packages/structure/src => src/structure}/structure/Content.ts (100%) rename {packages/structure/src => src/structure}/structure/Group.ts (100%) rename {packages/structure/src => src/structure}/structure/Metadata/ClassProperty.ts (100%) rename {packages/structure/src => src/structure}/structure/Metadata/EnumValue.ts (100%) rename {packages/structure/src => src/structure}/structure/Metadata/MetadataClass.ts (100%) rename {packages/structure/src => src/structure}/structure/Metadata/MetadataEnum.ts (100%) rename {packages/structure/src => src/structure}/structure/Metadata/Schema.ts (100%) rename {packages/structure/src => src/structure}/structure/MetadataEntity.ts (100%) rename {packages/structure/src => src/structure}/structure/Properties.ts (100%) rename {packages/structure/src => src/structure}/structure/PropertyTable.ts (100%) rename {packages/structure/src => src/structure}/structure/PropertyTableProperty.ts (100%) rename {packages/structure/src => src/structure}/structure/RootProperty.ts (100%) rename {packages/structure/src => src/structure}/structure/Statistics.ts (100%) rename {packages/structure/src => src/structure}/structure/StatisticsClass.ts (100%) rename {packages/structure/src => src/structure}/structure/StatisticsClassProperty.ts (100%) rename {packages/structure/src => src/structure}/structure/Style/Style.ts (100%) rename {packages/structure/src => src/structure}/structure/Subtree.ts (100%) rename {packages/structure/src => src/structure}/structure/Subtrees.ts (100%) rename {packages/structure/src => src/structure}/structure/Tile.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/B3dmFeatureTable.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/BatchTable.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/BatchTableBinaryBodyReference.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/BinaryBodyOffset.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/FeatureTable.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/FeatureTableBinaryBodyReference.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/I3dmFeatureTable.ts (100%) rename {packages/structure/src => src/structure}/structure/TileFormats/PntsFeatureTable.ts (100%) rename {packages/structure/src => src/structure}/structure/TileImplicitTiling.ts (100%) rename {packages/structure/src => src/structure}/structure/Tileset.ts (100%) rename {packages/structure/src => src/structure}/structure/extensions/BoundingVolumeS2.ts (100%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/AvailabilityInfo.ts (100%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/AvailabilityInfos.ts (94%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/BinarySubtreeData.ts (80%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/BinarySubtreeDataResolver.ts (92%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/BufferAvailabilityInfo.ts (100%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/ConstantAvailabilityInfo.ts (100%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/ImplicitTilingError.ts (100%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/ImplicitTilings.ts (96%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/SubtreeInfo.ts (100%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/SubtreeInfos.ts (96%) rename {packages/tilesets/src => src/tilesets}/implicitTiling/TemplateUris.ts (95%) rename {packages/tilesets/src => src/tilesets}/index.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/ArchiveFunctions3tz.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/IndexBuilder.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/IndexBuilderEntry.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/IndexEntry.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/TableStructureValidator.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/TilesetSource3dtiles.ts (97%) rename {packages/tilesets/src => src/tilesets}/packages/TilesetSource3tz.ts (98%) rename {packages/tilesets/src => src/tilesets}/packages/TilesetTarget3dtiles.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/TilesetTarget3tz.ts (100%) rename {packages/tilesets/src => src/tilesets}/packages/ZipToPackage.ts (98%) rename {packages/tilesets/src => src/tilesets}/tileFormats/CompositeTileData.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileFormats/Header.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileFormats/Table.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileFormats/TileData.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileFormats/TileDataLayouts.ts (99%) rename {packages/tilesets/src => src/tilesets}/tileFormats/TileFormatError.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileFormats/TileFormats.ts (98%) rename {packages/tilesets/src => src/tilesets}/tileTableData/AttributeCompression.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileTableData/BatchTables.ts (95%) rename {packages/tilesets/src => src/tilesets}/tileTableData/Colors.ts (100%) rename {packages/tilesets/src => src/tilesets}/tileTableData/TileTableData.ts (96%) rename {packages/tilesets/src => src/tilesets}/tileTableData/TileTableDataI3dm.ts (99%) rename {packages/tilesets/src => src/tilesets}/tileTableData/TileTableDataPnts.ts (98%) rename {packages/tilesets/src => src/tilesets}/tileTableData/VecMath.ts (99%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetEntry.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetError.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetInMemory.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetSource.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetSourceFs.ts (94%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetSourceResourceResolver.ts (91%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetSources.ts (96%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetTarget.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetTargetFs.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesetData/TilesetTargets.ts (98%) rename {packages/tilesets/src => src/tilesets}/tilesets/Contents.ts (89%) rename {packages/tilesets/src => src/tilesets}/tilesets/Extensions.ts (100%) rename {packages/tilesets/src => src/tilesets}/tilesets/TileTraversalCallback.ts (85%) rename {packages/tilesets/src => src/tilesets}/tilesets/Tiles.ts (97%) rename {packages/tilesets/src => src/tilesets}/tilesets/Tilesets.ts (100%) rename {packages/tilesets/src => src/tilesets}/traversal/ExplicitTraversedTile.ts (96%) rename {packages/tilesets/src => src/tilesets}/traversal/ExplicitTraversedTiles.ts (96%) rename {packages/tilesets/src => src/tilesets}/traversal/ImplicitTraversedTile.ts (97%) rename {packages/tilesets/src => src/tilesets}/traversal/MetadataSemanticOverrides.ts (96%) rename {packages/tilesets/src => src/tilesets}/traversal/SubtreeMetadataModel.ts (95%) rename {packages/tilesets/src => src/tilesets}/traversal/SubtreeMetadataModels.ts (93%) rename {packages/tilesets/src => src/tilesets}/traversal/SubtreeModel.ts (100%) rename {packages/tilesets/src => src/tilesets}/traversal/SubtreeModels.ts (93%) rename {packages/tilesets/src => src/tilesets}/traversal/TilesetTraverser.ts (96%) rename {packages/tilesets/src => src/tilesets}/traversal/TilesetTraversers.ts (93%) rename {packages/tilesets/src => src/tilesets}/traversal/TraversalCallback.ts (100%) rename {packages/tilesets/src => src/tilesets}/traversal/TraversedTile.ts (97%) rename {packages/tilesets/src => src/tilesets}/traversal/cesium/BoundingVolumeDerivation.ts (98%) rename {packages/tilesets/src => src/tilesets}/traversal/cesium/HilbertOrder.ts (97%) rename {packages/tilesets/src => src/tilesets}/traversal/cesium/S2Cell.ts (98%) rename {packages/tools/src => src/tools}/contentProcessing/ContentError.ts (100%) rename {packages/tools/src => src/tools}/contentProcessing/ContentOps.ts (98%) rename {packages/tools/src => src/tools}/contentProcessing/ContentUpgrades.ts (97%) rename {packages/tools/src => src/tools}/contentProcessing/GltfPack.ts (96%) rename {packages/tools/src => src/tools}/contentProcessing/GltfPackOptions.ts (100%) rename {packages/tools/src => src/tools}/contentProcessing/GltfPipelineLegacy.ts (93%) rename {packages/tools/src => src/tools}/contentProcessing/GltfTransform.ts (92%) rename {packages/tools/src => src/tools}/contentProcessing/GltfTransformTextures.ts (96%) rename {packages/tools/src => src/tools}/contentProcessing/GltfUtilities.ts (97%) rename {packages/tools/src => src/tools}/draco/AttributeInfo.ts (100%) rename {packages/tools/src => src/tools}/draco/ComponentDataType.ts (100%) rename {packages/tools/src => src/tools}/draco/DracoDecoder.ts (99%) rename {packages/tools/src => src/tools}/draco/DracoDecoderResult.ts (100%) rename {packages/tools/src => src/tools}/draco/DracoError.ts (100%) rename {packages/tools/src => src/tools}/draco/QuantizationInfo.ts (100%) rename {packages/tools/src => src/tools}/gltfExtensionsUtils/InstanceFeaturesUtils.ts (95%) rename {packages/tools/src => src/tools}/gltfExtensionsUtils/MeshFeaturesUtils.ts (95%) rename {packages/tools/src => src/tools}/gltfExtensionsUtils/StringBuilder.ts (100%) rename {packages/tools/src => src/tools}/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts (96%) rename {packages/tools/src => src/tools}/gltfExtensionsUtils/StructuralMetadataUtils.ts (95%) rename {packages/tools/src => src/tools}/index.ts (100%) rename {packages/tools/src => src/tools}/migration/AccessorCreation.ts (95%) rename {packages/tools/src => src/tools}/migration/BatchTableClassProperties.ts (94%) rename {packages/tools/src => src/tools}/migration/BatchTablePropertyTableModels.ts (88%) rename {packages/tools/src => src/tools}/migration/BatchTableSchemas.ts (91%) rename {packages/tools/src => src/tools}/migration/GltfUpgrade.ts (99%) rename {packages/tools/src => src/tools}/migration/Ids.ts (100%) rename {packages/tools/src => src/tools}/migration/NumberTypeDescriptions.ts (100%) rename {packages/tools/src => src/tools}/migration/TileFormatsMigration.ts (100%) rename {packages/tools/src => src/tools}/migration/TileFormatsMigrationB3dm.ts (93%) rename {packages/tools/src => src/tools}/migration/TileFormatsMigrationI3dm.ts (95%) rename {packages/tools/src => src/tools}/migration/TileFormatsMigrationPnts.ts (92%) rename {packages/tools/src => src/tools}/migration/TileTableDataToMeshFeatures.ts (91%) rename {packages/tools/src => src/tools}/migration/TileTableDataToStructuralMetadata.ts (94%) rename {packages/tools/src => src/tools}/migration/TypeDetection.ts (100%) rename {packages/tools/src => src/tools}/pipelines/ContentStage.ts (100%) rename {packages/tools/src => src/tools}/pipelines/ContentStageExecutor.ts (98%) rename {packages/tools/src => src/tools}/pipelines/ContentStages.ts (98%) rename {packages/tools/src => src/tools}/pipelines/Pipeline.ts (100%) rename {packages/tools/src => src/tools}/pipelines/PipelineError.ts (100%) rename {packages/tools/src => src/tools}/pipelines/PipelineExecutor.ts (98%) rename {packages/tools/src => src/tools}/pipelines/Pipelines.ts (95%) rename {packages/tools/src => src/tools}/pipelines/Stage.ts (100%) rename {packages/tools/src => src/tools}/pipelines/TilesetStage.ts (100%) rename {packages/tools/src => src/tools}/pipelines/TilesetStageExecutor.ts (96%) rename {packages/tools/src => src/tools}/pipelines/TilesetStages.ts (96%) rename {packages/tools/src => src/tools}/pointClouds/DefaultPointCloud.ts (97%) rename {packages/tools/src => src/tools}/pointClouds/GltfTransformPointClouds.ts (98%) rename {packages/tools/src => src/tools}/pointClouds/PntsPointClouds.ts (96%) rename {packages/tools/src => src/tools}/pointClouds/ReadablePointCloud.ts (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/BasicTilesetProcessor.ts (96%) rename {packages/tools/src => src/tools}/tilesetProcessing/BoundingVolumes.ts (99%) rename {packages/tools/src => src/tools}/tilesetProcessing/ContentBoundingVolumes.ts (95%) rename {packages/tools/src => src/tools}/tilesetProcessing/OrientedBoundingBoxes.ts (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessing.ts (97%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessor.ts (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessors.ts (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessorsGltfPipeline.ts (95%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessorsGltfTransform.ts (95%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessorsGltfpack.ts (95%) rename {packages/tools/src => src/tools}/tilesetProcessing/TileContentProcessorsTextures.ts (92%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetCombiner.ts (92%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetConverter.ts (91%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetDataProcessor.ts (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetEntryProcessor.ts (95%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetJsonCreator.ts (97%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetMerger.ts (94%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetOperations.ts (95%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetProcessing.ts (91%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetProcessor.ts (97%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetProcessorContext.ts (88%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetProcessorContexts.ts (96%) rename {packages/tools/src => src/tools}/tilesetProcessing/TilesetUpgrader.ts (97%) rename {packages/tools/src => src/tools}/tilesetProcessing/external/README.md (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/external/dito.ts (100%) rename {packages/tools/src => src/tools}/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts (94%) rename {packages/tools/src => src/tools}/tilesetProcessing/upgrade/TilesetUpgradeOptions.ts (100%) diff --git a/.prettierignore b/.prettierignore index a02cd6c0..f595f387 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,10 +2,8 @@ !src/**/ !demos/**/ !specs/**/ -!packages/**/ !**/*.js !**/*.ts -src/**/*.ts specs/data/ -packages/**/build/ -packages/ktx/src/ktx/external/basis_encoder.js \ No newline at end of file +build/ +src/ktx/ktx/external/basis_encoder.js \ No newline at end of file diff --git a/packages/cli/bin/README.md b/bin/README.md similarity index 100% rename from packages/cli/bin/README.md rename to bin/README.md diff --git a/packages/cli/bin/cli.mjs b/bin/cli.mjs similarity index 100% rename from packages/cli/bin/cli.mjs rename to bin/cli.mjs diff --git a/generateThirdParty.js b/generateThirdParty.js index fcc46431..1cdeeb3f 100644 --- a/generateThirdParty.js +++ b/generateThirdParty.js @@ -99,7 +99,7 @@ async function collectThirdParty(baseDirectory, licenseDatas) { async function generateThirdParty() { // The pattern for dependency names that will be // excluded because they are actually internal ones - const exclusionRegex = "@3d-tiles-tools/.*"; + const exclusionRegex = ""; console.log("Generating ThirdParty.json..."); diff --git a/package.json b/package.json index a11f1a70..22f6eb16 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,12 @@ "author": { "name": "Cesium GS, Inc. and Contributors" }, + "source": "./src/index.ts", + "exports": "./build/src/index.js", + "types": "./build/src/index.d.ts", + "bin": { + "3d-tiles-tools": "./build/src/cli.mjs" + }, "keywords": [ "3D Tiles" ], @@ -20,15 +26,33 @@ "engines": { "node": ">=16.0.0" }, - "workspaces": [ - "packages/*" - ], + "dependencies": { + "@gltf-transform/core": "^3.9.0", + "@gltf-transform/extensions": "^3.9.0", + "@gltf-transform/functions": "^3.9.0", + "archiver": "^5.3.1", + "better-sqlite3": "^8.0.1", + "cesium": "^1.103.0", + "draco3d": "^1.5.6", + "draco3dgltf": "^1.5.6", + "gltf-pipeline": "^4.1.0", + "gltfpack": "^0.19.1", + "meshoptimizer": "^0.19.0", + "minimist": "^1.2.7", + "node-stream-zip": "^1.15.0", + "pino": "^8.15.0", + "pino-pretty": "^10.2.0", + "seedrandom": "^3.0.5", + "sharp": "^0.32.1", + "yargs": "^17.5.1" + }, "devDependencies": { "@microsoft/api-documenter": "^7.19.24", "@microsoft/api-extractor": "^7.33.6", "@types/jasmine": "^4.0.3", "@typescript-eslint/eslint-plugin": "^5.38.0", "@typescript-eslint/parser": "^5.38.0", + "@types/yargs": "^17.0.22", "c8": "^8.0.1", "del-cli": "^5.0.0", "eslint": "^8.23.1", @@ -60,25 +84,25 @@ "about:docs": "echo 'Perform a build and generate the API documentation based on the build output'", "about:package-clean": "echo 'Delete the contents of the 'build' output folder'", "about:package-prepare": "echo 'Prepare a package: Linting, formatting, build, test, documentation, and third-party information updates'", - "about:package-copy": "echo 'Copy the entry point for the application from the bin to the build directory'", "about:package": "echo 'Prepare a package that can then be published on NPM'", "start": "npx ts-node src/main.ts", "eslint": "eslint \"./**/*.ts\" --cache", "build": "tsc --build --verbose --force && npm run build-post", - "build-post": "npm run build-post --workspaces --if-present", + "build-post": "npm run build-post-ktx && npm run build-post-cli", + "build-post-ktx": "npx copyfiles --flat ./src/ktx/ktx/external/basis_encoder.wasm ./build/src/ktx/external", + "build-post-cli": "npx copyfiles --flat ./bin/cli.mjs ./build/src", "test": "npx ts-node node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", "coverage": "npx c8 --clean npm run test", "prettier-check": "prettier --check \"**/*\"", "prettier": "prettier --write \"**/*\"", "generate-third-party": "node generateThirdParty.js", "docs-prepare-directory": "mkdirp etc", - "docs-extract-api": "npm run docs-extract-api --workspaces --if-present", + "docs-extract-api": "npm run docs-extract-api", "docs-generate-markdown": "api-documenter markdown -i build/api-extractor -o build/docs", "docs-generate": "npm run docs-prepare-directory && npm run docs-extract-api && npm run docs-generate-markdown", "docs": "npm run build && npm run docs-generate", - "package-clean": "del-cli ./packages/*/build/** && del-cli ./packages/*/tsconfig.tsbuildinfo", + "package-clean": "del-cli ./build/**", "package-prepare": "npm run eslint && npm run prettier-check && npm run build && npm run test && npm run generate-third-party", - "package-copy": "npx copyfiles --flat ./packages/cli/bin/cli.mjs ./packages/cli/build", - "package": "npm run package-clean && npm run package-prepare && npm run package-copy && npm pack --workspaces" + "package": "npm run package-clean && npm run package-prepare && npm pack" } } diff --git a/packages/base/README.md b/packages/base/README.md deleted file mode 100644 index bfaa2b60..00000000 --- a/packages/base/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# @3d-tiles-tools/base - -Basic classes for the 3D Tiles Tools - -## Directory structure - -- `./src/base`: Generic, low-level utility functions. - Most of the functions here are grouped into classes. - - `Buffers`: Padding, detecting GZIPpedness, obtaining "magic" bytes... - - `DataError`: An error indicating that input data was invalid on a low level (e.g. invalid binary data, or unparseable JSON) - - `DeveloperError`: An error that was caused by the _developer_ (i.e. someone used the API in a wrong way) - - `Iterables`: Iterating over files, filtering, mapping... - - `Paths`: Resolving, checking/changing file extensions, ... - - `Uris`: Detect data URIs or absolute URIs - - Special cases: `defined` and `defaultValue`. These have some documentation explaining why they should rarely be used in TypeScript. - -- `./src/binary`: Common classes for the `buffer/bufferView` concept - - `BinaryBufferStructure`: A class that describes the "JSON part" of buffers and buffer views (i.e. their data layout and buffer URIs) - - `BinaryBufferData`: A class that contains the actual data of buffers and buffer views as JavaScript `Buffer`s - - `BinaryBufferDataResolver`: Resolves the `BinaryBufferData` for a given `BinaryBufferStructure` - -- `./src/contentTypes`: Classes for determining the type of content data - - `ContentData` as the main interface, implemented as `BufferedContentData` (to be created from a buffer that already exists in memory), or `LazyContentData` (that resolves "as little data as possible" to determine the content type) - - `ContentDataTypes`: A set of strings representing different content data types, like `CONTENT_TYPE_B3DM` or `CONTENT_TYPE_TILESET`. - - `ContentDataTypeRegistry`: Receives a `ContentData` object and returns one of the `ContentDataTypes` strings - - `ContentDataTypeChecks`: Offers methods to create predicates that check for certain `included/excluded` content types - -- `./src/io`: Classes for "loading data" in a very generic way, from different sources - - `ResourceResolver` is the main interface, with the core functionality of receiving a URI and returning the data for that URI, with implementations to obtain that data e.g. from a file system or from a 3D Tiles Package. - -- `./src/logging`: Classes for managing loggers - -- `./src/spatial`: Basic classes for dealing with tree structures, specifically with quadtrees and octrees diff --git a/packages/base/api-extractor.jsonc b/packages/base/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/base/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/base/package.json b/packages/base/package.json deleted file mode 100644 index 661ac75b..00000000 --- a/packages/base/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@3d-tiles-tools/base", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools basic utility classes", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - - "dependencies": { - "@3d-tiles-tools/structure": "0.4.0", - "pino": "^8.15.0", - "pino-pretty": "^10.2.0" - }, - "devDependencies": { - "@3d-tiles-tools/spec-helpers": "0.4.0", - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:test": "echo 'Execute the unit tests'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force", - "test": "npx ts-node ../../node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} - - - - diff --git a/packages/base/specs/jasmine.json b/packages/base/specs/jasmine.json deleted file mode 100644 index b50f225f..00000000 --- a/packages/base/specs/jasmine.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spec_dir": "specs", - "spec_files": ["**/*Spec.ts"], - "helpers": ["jasmineHelpers.js"], - "random": false -} diff --git a/packages/base/specs/jasmineHelpers.js b/packages/base/specs/jasmineHelpers.js deleted file mode 100644 index 0f41e6b2..00000000 --- a/packages/base/specs/jasmineHelpers.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-undef -process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data"; diff --git a/packages/base/specs/tsconfig.json b/packages/base/specs/tsconfig.json deleted file mode 100644 index 9a43f4e8..00000000 --- a/packages/base/specs/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../build/specs" - }, - "include": [ - "./**/*" - ], - "references": [ - { "path": "../src/tsconfig.json" } - ] -} diff --git a/packages/base/src/tsconfig.json b/packages/base/src/tsconfig.json deleted file mode 100644 index 7f8837bb..00000000 --- a/packages/base/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src" - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/base/tsconfig.json b/packages/base/tsconfig.json deleted file mode 100644 index 993b018d..00000000 --- a/packages/base/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - { "path": "./specs/tsconfig.json" } - ] -} diff --git a/packages/cli/README.md b/packages/cli/README.md deleted file mode 100644 index 95137e85..00000000 --- a/packages/cli/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# @3d-tiles-tools/cli - -Implementation of the CLI (command line interface) of the 3D Tiles Tools. - -This package only contains - -- a `main.ts` which does the command line parsing -- a `ToolsMain.ts` which contains one method for each command line command diff --git a/packages/cli/package.json b/packages/cli/package.json deleted file mode 100644 index 4b88e6c3..00000000 --- a/packages/cli/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "3d-tiles-tools", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools command line interface", - "type": "commonjs", - "source": "./src/main.ts", - "main": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "bin": { - "3d-tiles-tools": "./build/cli.mjs" - }, - "dependencies": { - "@3d-tiles-tools/base": "0.4.0", - "@3d-tiles-tools/tilesets": "0.4.0", - "@3d-tiles-tools/tools": "0.4.0", - "yargs": "^17.5.1" - }, - "devDependencies": { - "@3d-tiles-tools/spec-helpers": "0.4.0", - "@types/yargs": "^17.0.22" - }, - - "scripts": { - "about:start": "echo 'Start the tools, as a TypeScript command line application'", - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:test": "echo 'Execute the unit tests'", - "start": "npx ts-node src/main.ts", - "build": "npx tsc --build --verbose --force && npm run build-post", - "build-post": "npx copyfiles --flat ./bin/cli.mjs build/", - "test": "npx ts-node ../../node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json" - } -} - - - - diff --git a/packages/cli/specs/jasmine.json b/packages/cli/specs/jasmine.json deleted file mode 100644 index b50f225f..00000000 --- a/packages/cli/specs/jasmine.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spec_dir": "specs", - "spec_files": ["**/*Spec.ts"], - "helpers": ["jasmineHelpers.js"], - "random": false -} diff --git a/packages/cli/specs/jasmineHelpers.js b/packages/cli/specs/jasmineHelpers.js deleted file mode 100644 index 0f41e6b2..00000000 --- a/packages/cli/specs/jasmineHelpers.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-undef -process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data"; diff --git a/packages/cli/specs/tsconfig.json b/packages/cli/specs/tsconfig.json deleted file mode 100644 index ff15ed30..00000000 --- a/packages/cli/specs/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../build/specs", - }, - "include": [ - "./**/*" - ], - "references": [ - { "path": "../src/tsconfig.json" } - ] -} diff --git a/packages/cli/src/tsconfig.json b/packages/cli/src/tsconfig.json deleted file mode 100644 index e0b6fe01..00000000 --- a/packages/cli/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json deleted file mode 100644 index 993b018d..00000000 --- a/packages/cli/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - { "path": "./specs/tsconfig.json" } - ] -} diff --git a/packages/gltf-extensions/README.md b/packages/gltf-extensions/README.md deleted file mode 100644 index ad9c5a17..00000000 --- a/packages/gltf-extensions/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @3d-tiles-tools/gltf-extensions - -Implementation of the Cesium glTF extensions for glTF-Transform. - -## Directory structure - -- `./src/gltfExtensions`: Implementations of glTF metadata extensions for glTF-Transform - - `EXTMeshFeatures` and `MeshFeatures`: Implementation of `EXT_mesh_features` - - `EXTStructuralMetadata` and `StructuralMetadata`: Implementation of `EXT_structural_metadata` - - `EXTInstanceFeatures` and `InstanceFeatures`: Implementation of `EXT_instance_features` diff --git a/packages/gltf-extensions/api-extractor.jsonc b/packages/gltf-extensions/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/gltf-extensions/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/gltf-extensions/package.json b/packages/gltf-extensions/package.json deleted file mode 100644 index e2dec392..00000000 --- a/packages/gltf-extensions/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@3d-tiles-tools/gltf-extensions", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools implementations of glTF extensions", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "dependencies": { - "@gltf-transform/core": "3.9.0" - }, - "devDependencies": { - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} - - - - diff --git a/packages/gltf-extensions/src/tsconfig.json b/packages/gltf-extensions/src/tsconfig.json deleted file mode 100644 index 7f8837bb..00000000 --- a/packages/gltf-extensions/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src" - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/gltf-extensions/tsconfig.json b/packages/gltf-extensions/tsconfig.json deleted file mode 100644 index 53828cb1..00000000 --- a/packages/gltf-extensions/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - ], -} diff --git a/packages/ktx/README.md b/packages/ktx/README.md deleted file mode 100644 index 1508c21f..00000000 --- a/packages/ktx/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# @3d-tiles-tools/ktx - -Utilitiy classes wrapped around the BinomialLLC basis encoder WASM module - -## Directory structure - -- `./src/ktx`: KTX Utility classes - - `KtxUtility`: Utility class to convert (PNG or JPG) image data to KTX - - `KtxOptions` (and `KtxEtc1sOptions` and `KtxUastcOptions`): Options for encoding to KTX diff --git a/packages/ktx/api-extractor.jsonc b/packages/ktx/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/ktx/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/ktx/package.json b/packages/ktx/package.json deleted file mode 100644 index 38d55e33..00000000 --- a/packages/ktx/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@3d-tiles-tools/ktx", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools KTX utilities", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "dependencies": { - "sharp": "^0.32.1" - }, - "devDependencies": { - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:build-post": "echo 'Perform any post-build steps'", - "about:test": "echo 'Execute the unit tests'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force && npm run build-post", - "build-post": "npx copyfiles --flat ./src/ktx/external/basis_encoder.wasm build/src/ktx/external", - "test": "npx ts-node ../../node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} - - - - diff --git a/packages/ktx/specs/jasmine.json b/packages/ktx/specs/jasmine.json deleted file mode 100644 index b50f225f..00000000 --- a/packages/ktx/specs/jasmine.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spec_dir": "specs", - "spec_files": ["**/*Spec.ts"], - "helpers": ["jasmineHelpers.js"], - "random": false -} diff --git a/packages/ktx/specs/jasmineHelpers.js b/packages/ktx/specs/jasmineHelpers.js deleted file mode 100644 index 0f41e6b2..00000000 --- a/packages/ktx/specs/jasmineHelpers.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-undef -process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data"; diff --git a/packages/ktx/specs/tsconfig.json b/packages/ktx/specs/tsconfig.json deleted file mode 100644 index ff15ed30..00000000 --- a/packages/ktx/specs/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../build/specs", - }, - "include": [ - "./**/*" - ], - "references": [ - { "path": "../src/tsconfig.json" } - ] -} diff --git a/packages/ktx/src/tsconfig.json b/packages/ktx/src/tsconfig.json deleted file mode 100644 index 375e7500..00000000 --- a/packages/ktx/src/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - "allowJs": true - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/ktx/tsconfig.json b/packages/ktx/tsconfig.json deleted file mode 100644 index f12cad94..00000000 --- a/packages/ktx/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "noImplicitAny": false - }, - "references": [ - { "path": "./src/tsconfig.json" }, - { "path": "./specs/tsconfig.json" }, - ] -} diff --git a/packages/metadata/README.md b/packages/metadata/README.md deleted file mode 100644 index 2abcaf51..00000000 --- a/packages/metadata/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# @3d-tiles-tools/metadata - -Implementations for the 3D Metadata Specification - -## Directory structure - -- `./src/metadata/`: Classes for an implementation of the 3D Metadata Specification - - Utilities for dealing with the JSON representations of metadata objects `ClassProperties`/`MetadataTypes`/`MetadataComponentTypes`... - - Internal utilities for processing metadata values (e.g. normalization, `offset` and `scale` etc.), in `MetadataValues` and `ArrayValues`. - - The `PropertyTableModel`, `MetadataEntityModel` and `PropertyModel` interfaces offer a very thin and simple abstraction layer for 3D Metadata. The structure of these classes is shown here: - ![PropertyTable](../../figures/PropertyTable.png) - - Implementations of these interfaces exist: - - For the JSON-based representation of metadata entities, metadata entity model instances can be created with `MetadataEntityModels` - - `./src/metadata/binary` contains implementations of the metadata interfaces for _binary_ data, with `BinaryPropertyTableModel` being the top-level class, implementing the `PropertyTableModel` interface. diff --git a/packages/metadata/api-extractor.jsonc b/packages/metadata/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/metadata/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/metadata/package.json b/packages/metadata/package.json deleted file mode 100644 index d74da4fd..00000000 --- a/packages/metadata/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@3d-tiles-tools/metadata", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools 3D Metadata implementation", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "dependencies": { - "@3d-tiles-tools/base": "0.4.0", - "@3d-tiles-tools/structure": "0.4.0" - }, - "devDependencies": { - "typescript": "^4.8.3" - }, - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:test": "echo 'Execute the unit tests'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force", - "test": "npx ts-node ../../node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} diff --git a/packages/metadata/specs/jasmine.json b/packages/metadata/specs/jasmine.json deleted file mode 100644 index b50f225f..00000000 --- a/packages/metadata/specs/jasmine.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spec_dir": "specs", - "spec_files": ["**/*Spec.ts"], - "helpers": ["jasmineHelpers.js"], - "random": false -} diff --git a/packages/metadata/specs/jasmineHelpers.js b/packages/metadata/specs/jasmineHelpers.js deleted file mode 100644 index 0f41e6b2..00000000 --- a/packages/metadata/specs/jasmineHelpers.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-undef -process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data"; diff --git a/packages/metadata/specs/tsconfig.json b/packages/metadata/specs/tsconfig.json deleted file mode 100644 index ff15ed30..00000000 --- a/packages/metadata/specs/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../build/specs", - }, - "include": [ - "./**/*" - ], - "references": [ - { "path": "../src/tsconfig.json" } - ] -} diff --git a/packages/metadata/src/tsconfig.json b/packages/metadata/src/tsconfig.json deleted file mode 100644 index e0b6fe01..00000000 --- a/packages/metadata/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/metadata/tsconfig.json b/packages/metadata/tsconfig.json deleted file mode 100644 index 993b018d..00000000 --- a/packages/metadata/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - { "path": "./specs/tsconfig.json" } - ] -} diff --git a/packages/spec-helpers/README.md b/packages/spec-helpers/README.md deleted file mode 100644 index 6736fa3f..00000000 --- a/packages/spec-helpers/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @3d-tiles-tools/spec-helpers - -Internal utility classes for running the specs (unit tests) in all packages. - diff --git a/packages/spec-helpers/package.json b/packages/spec-helpers/package.json deleted file mode 100644 index f5ea59eb..00000000 --- a/packages/spec-helpers/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@3d-tiles-tools/spec-helpers", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools spec helper classes", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "dependencies": { - "@3d-tiles-tools/base": "0.4.0", - "@3d-tiles-tools/structure": "0.4.0", - "@3d-tiles-tools/tilesets": "0.4.0" - }, - "devDependencies": { - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "build": "npx tsc --build" - } -} - - - - diff --git a/packages/spec-helpers/src/index.ts b/packages/spec-helpers/src/index.ts deleted file mode 100644 index 299266ac..00000000 --- a/packages/spec-helpers/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./SpecHelpers"; diff --git a/packages/spec-helpers/src/tsconfig.json b/packages/spec-helpers/src/tsconfig.json deleted file mode 100644 index e0b6fe01..00000000 --- a/packages/spec-helpers/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/spec-helpers/tsconfig.json b/packages/spec-helpers/tsconfig.json deleted file mode 100644 index a6fe8cfe..00000000 --- a/packages/spec-helpers/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" } - ] -} diff --git a/packages/structure/README.md b/packages/structure/README.md deleted file mode 100644 index 0af75a63..00000000 --- a/packages/structure/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# @3d-tiles-tools/structure - -Typescript types for the 3D Tiles tileset JSON structures. The goal is to have a _typed_ representation of a tileset JSON (assuming that the input JSON was indeed structurally valid - there are no validations or actual type checks during deserialization) - -## Directory structure - -- `./src/structure`: Plain old data objects for the elements of a Tileset JSON - - E.g. `Tileset`, `Tile`, `Content`, ... - diff --git a/packages/structure/api-extractor.jsonc b/packages/structure/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/structure/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/structure/package.json b/packages/structure/package.json deleted file mode 100644 index a7bbf9b0..00000000 --- a/packages/structure/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@3d-tiles-tools/structure", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools type definitions for the basic JSON structures", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "devDependencies": { - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} - - - - diff --git a/packages/structure/src/tsconfig.json b/packages/structure/src/tsconfig.json deleted file mode 100644 index e0b6fe01..00000000 --- a/packages/structure/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/structure/tsconfig.json b/packages/structure/tsconfig.json deleted file mode 100644 index e3827633..00000000 --- a/packages/structure/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - ] -} diff --git a/packages/tilesets/README.md b/packages/tilesets/README.md deleted file mode 100644 index 9fa7a6c6..00000000 --- a/packages/tilesets/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# @3d-tiles-tools/tilesets - -Classes for handling 3D Tiles tileset data. - -## Directory structure - -- `./src/implicitTiling/`: Classes that represent the structure and information of implicit tilesets - - `AvailabilityInfo`: A simple interface for representing information about the availability of tiles, content, or child subtrees in implicit tiling. This is accessed with an _index_. Instances of classes implementing this interface can be created with the `AvailabilityInfos` class. - - `SubtreeInfo`: A structure that combines the `AvailabilityInfo` for tiles, content, and child subtrees (as it is defined in the input data). Instances of this structure can be created from a subtree JSON file or from binary subtree data, using the `SubtreeInfos` class. - - `BinarySubtreeData`: A simple structure from which the `SubtreeInfo` is created. It combines the data that represents a 'subtree' in implicit tiling, in its 'raw' form: It contains the `Subtree` JSON object, as well as a `BinaryBufferStructure`/`BinaryBufferData` that was created from the `buffers/bufferViews` and the resolved binary data - - `BinarySubtreeDataResolver`: A class that receives a `Subtree` JSON object, and returns the `BinarySubtreeData`, resolving all external `buffer.uri` references - - `ImplicitTilingError`: An error indicating that implicit tiling data was structurally invalid - - `ImplicitTilings`: Methods that try to hide the difference between `QUADTREE` and `OCTREE` tilings. They usually receive a `TileImplicitTiling` JSON object, and perform operations that _depend_ on the `subdivisionScheme`, but can be applied _agnostically_ of the subvision scheme. (Note: Some of this could be done in a cleaner and more generic way, involving ... generics (sic). This _does_ already exist (in a different language), but carrying type parameters along, as in `Availability>` can look obscure and "overengineered" at the first glance. I only hope that the current solution here does not turn out to be _underengineered_ ...) - - `TemplateUris`: Internal method to substitute quadtree- or octree coordinates into template URIs - -- `./src/packages`: Classes for reading or creating 3D Tiles Package files - - These are implementations of the `TilesetSource` and `TilesetTarget` interface (see `./src/tilesetData`), based on 3TZ or 3DTILES - -- `./src/tileFormats`: Classes for handling the (legacy) tile formats, B3DM, I3DM, PNTS and CMPT - - `TileData` as a data structure for B3DM, I3DM, PNTS - - `CompositeTileData` as a data structure for ... composite tile data (hence the name...) - - `TileFormats`: Methods for handling tile data, mainly reading/writing tile data from/to buffers - -- `./src/tilesetData`: Abstractions for the "files" that are "a tileset" - - The goal is to have an abstraction that works for file systems as well as 3D Tiles packages (3TZ or 3DTILES) - - The elements/etries are given as `key:string` which is the file name, and a `value:Buffer` which is the file contents - - `TilesetSource` allows iterating over the entries - - `TilesetTarget` allows collecting entries and writing them out - - -- `./src/tilesets`: Utility functions for tileset operations - - `Tiles` for traversing (explicit!) tile hierarchies - - `Tilesets` offering convenience functions for `merge/combine/upgrade` - - `Contents` with utility functions related to tile `content` objects - - `Extensions` for handling extensions and extension declarations in tilesets (and glTF objects) - -- `./src/tileTabledata`: Classes for handling the batch- and feature table data in the (legacy) tile formats, B3DM, I3DM, PNTS and CMPT - - `TileTableData`: Methods for accessing values from batch- and feature tables in a generic form (mainly as iterables or arrays of numbers) - - `TileTableDataPnts`: Methods for accessing the batch- and feature table values that are specific for PNTS - - `TileTableDataI3dm`: Methods for accessing the batch- and feature table values that are specific for I3DM - -- `./src/traversal`: Classes for traversing tilesets - - NOTE: The `SubtreeModel`/`SubtreeMetadataModel` interfaces _might_ at some point be moved into `implicitTiling`, but are currently tailored for the use in the traversal classes, and should be considered to be an "implementation detail" here. - - The `TilesetTraverser` class is the entry point for the traversal. It allows traversing a tileset, and offer each traversed tile as a `TraversedTile` instance. The `TraversedTile` describes a tile during traversal (e.g. with a parent, and semantic-based overrides) - diff --git a/packages/tilesets/api-extractor.jsonc b/packages/tilesets/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/tilesets/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/tilesets/package.json b/packages/tilesets/package.json deleted file mode 100644 index 97108d96..00000000 --- a/packages/tilesets/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@3d-tiles-tools/tilesets", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools tileset representation", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "dependencies": { - "@3d-tiles-tools/structure": "0.4.0", - "@3d-tiles-tools/base": "0.4.0", - "@3d-tiles-tools/metadata": "0.4.0", - "archiver": "^5.3.1", - "better-sqlite3": "^8.0.1", - "cesium": "^1.103.0", - "node-stream-zip": "^1.15.0" - }, - "devDependencies": { - "@3d-tiles-tools/spec-helpers": "0.4.0", - "@types/archiver": "^5.3.1", - "@types/better-sqlite3": "^7.6.2", - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:test": "echo 'Execute the unit tests'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force", - "test": "npx ts-node ../../node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} - - - - diff --git a/packages/tilesets/specs/jasmine.json b/packages/tilesets/specs/jasmine.json deleted file mode 100644 index b50f225f..00000000 --- a/packages/tilesets/specs/jasmine.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spec_dir": "specs", - "spec_files": ["**/*Spec.ts"], - "helpers": ["jasmineHelpers.js"], - "random": false -} diff --git a/packages/tilesets/specs/jasmineHelpers.js b/packages/tilesets/specs/jasmineHelpers.js deleted file mode 100644 index 0f41e6b2..00000000 --- a/packages/tilesets/specs/jasmineHelpers.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-undef -process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data"; diff --git a/packages/tilesets/specs/tsconfig.json b/packages/tilesets/specs/tsconfig.json deleted file mode 100644 index ff15ed30..00000000 --- a/packages/tilesets/specs/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../build/specs", - }, - "include": [ - "./**/*" - ], - "references": [ - { "path": "../src/tsconfig.json" } - ] -} diff --git a/packages/tilesets/src/tsconfig.json b/packages/tilesets/src/tsconfig.json deleted file mode 100644 index 4395edfd..00000000 --- a/packages/tilesets/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - }, - "include": [ - "./**/*", - ] -} diff --git a/packages/tilesets/tsconfig.json b/packages/tilesets/tsconfig.json deleted file mode 100644 index 2edc5461..00000000 --- a/packages/tilesets/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - { "path": "./specs/tsconfig.json" }, - ] -} diff --git a/packages/tools/@types/gltf-pipeline/index.d.ts b/packages/tools/@types/gltf-pipeline/index.d.ts deleted file mode 100644 index 7569e039..00000000 --- a/packages/tools/@types/gltf-pipeline/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module "gltf-pipeline"; diff --git a/packages/tools/@types/gltfpack/index.d.ts b/packages/tools/@types/gltfpack/index.d.ts deleted file mode 100644 index dc75f3df..00000000 --- a/packages/tools/@types/gltfpack/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module "gltfpack"; diff --git a/packages/tools/README.md b/packages/tools/README.md deleted file mode 100644 index af2f63bb..00000000 --- a/packages/tools/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# @3d-tiles-tools/tools - -The main package with implementations of the 3D Tiles Tools functionality. - -## Directory structure - -- `./src/contentProcessing`: Operations that are applied to tile content - - `ContentOps`: Functions like `glbToB3dm`, _always_ operating on buffers: "Buffer in - Buffer out" - - `GltfUtilites`/`GltfPipelineLegacy`: Wrappers around `gltf-pipeline` (e.g. for optimizing/upgrading the GLB in a B3DM) - - `GltfPack`: Wrappers around `gltfpack` (e.g. for applying meshopt compression) - - `GltfTransform`: Wrappers around `glTF-Transform` (e.g. for applying meshopt compression) - -- `./src/draco`: Utility classes for Draco decoding - - `DracoDecoder`: A thin wrapper around Draco, mainly for decoding `3DTILES_draco_point_compression` data - - `DracoDecoderResult` + related classes: Summarizes the result of decoding `3DTILES_draco_point_compression` data - -- `./src/gltfExtensionUtils`: Utility classes related to the Cesium glTF extension implementations - -- `./src/migration/`: Classes related to the migration of "legacy" tile formats to glTF+extensions - - `TileFormatsMigration`: The main class with the entry points to convert legacy tile formats into glTF+Extensions - - `TileFormatsMigrationB3dm/I3dm/Pnts`: The classes containing the format-specific migrations - - `BatchTableSchemas`: Methods to create metadata `Schema` objects that describe the structure and properties of batch tables - - `BatchTableClassProperties`: Methods for creating the metadata `ClassProperty` objects from the property information that is contained in batch tables - - `BatchTablePropertyTableModels`: Methods to create `PropertyModel` instances for the "columns" of a batc table - - `BatchTables`: Internal utility methods - - `Ids`: Methods to convert (legacy) batch table property names into "property IDs", with the constraints that are given by the 3D Metadata specification - - `NumberTypeDescriptions` and `TypeDetection`: Methods for "best-effort guesses" about the metadata property type that may be used for representing batch table properties that had been given as JSON - - `TileTableDataToMeshFeatures`: Methods for creating the glTF `EXT_mesh_features` extension objects from table data, specifically for converting the `_BATCHID` attributes into the extension objects that use the `_FEATURE_ID_n` attribute - - `TileTableDataToStructuralMetadata`: Methods for converting batch table information into an `EXT_structural_metadata` representation. This can either convert batch table columns into per-point property attributes for point clouds, or it can convert batch tables into `PropertyTable` objects - - `AccessorCreation`: Methods for creating glTF-Transform `Accessor` objects from `PropertyModel` objects - basically converting the "table column" that is represented with the `PropertyModel` into a glTF vertex attribute - -- `./src/pipelines`: **Preliminary** classes for modeling "processing pipelines" for tilesets - - The `Pipeline` class describes the pipeline with its input and output, and contains one or more `TilesetStage` objects - - The `TilesetStage` describes an operation that is applied to the tileset as a whole, usually focussing on modifications of the tileset JSON object. It may contain one or more `ContentStage` objects - - The `ContentStage` is an operation that may be applied to tile content (i.e. "files") that are part of the tileset - - Instances of these classes may be created with the `Pipelines`, `TilesetStages`, and `ContentStages` classes, respectively - - A pipeline may be executed by a `PipelineExecutor`. - -- `./src/pointClouds`: Utility classes for point clouds, focussing on reading PNTS and writing GLB - - `ReadablePointCloud`: An abstraction of "point cloud data" (read from PNTS, written to GLB) - - `PntsPointClouds`: Creates `ReadablePointCloud` objects from PNTS data - - `GltfTransformPointClouds`: Converts `ReadablePointCloud` objects into glTF/GLB assets - -- `./src/tilesetProcessing`: Higher-level operations on tilesets - - `TilesetCombiner`: Used to "inline" external tilesets into a single one - - `TilesetMerger`: Used to create one tileset that refers to others as external tilesets - - `TilesetUpgrader`: Upgrade a tileset to a newer version (many aspects unspecified here) - - The (abstract) `TilesetProcessor` class and the (concrete) `BasicTilesetProcessor` class offer an infrastructure for generic operations on the tilesets and their content. These classes serve as the basis for the implementation of the pipeline execution functionality. diff --git a/packages/tools/api-extractor.jsonc b/packages/tools/api-extractor.jsonc deleted file mode 100644 index 1a53f60a..00000000 --- a/packages/tools/api-extractor.jsonc +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.jsonc" -} diff --git a/packages/tools/package.json b/packages/tools/package.json deleted file mode 100644 index 866930ec..00000000 --- a/packages/tools/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@3d-tiles-tools/tools", - "version": "0.4.0", - "license": "Apache-2.0", - "description": "3D Tiles tools main package", - "type": "commonjs", - "source": "./src/index.ts", - "exports": "./build/src/index.js", - "types": "./build/src/index.d.ts", - "dependencies": { - "@3d-tiles-tools/structure": "0.4.0", - "@3d-tiles-tools/ktx": "0.4.0", - "@3d-tiles-tools/gltf-extensions": "0.4.0", - "@3d-tiles-tools/base": "0.4.0", - "@3d-tiles-tools/metadata": "0.4.0", - "@3d-tiles-tools/tilesets": "0.4.0", - "@gltf-transform/core": "3.9.0", - "@gltf-transform/extensions": "3.9.0", - "@gltf-transform/functions": "3.9.0", - "cesium": "^1.103.0", - "draco3d": "^1.5.6", - "gltf-pipeline": "^4.1.0", - "gltfpack": "^0.19.1" - }, - "devDependencies": { - "@3d-tiles-tools/spec-helpers": "0.4.0", - "@types/draco3d": "^1.4.2", - "typescript": "^4.8.3" - }, - - "scripts": { - "about:build": "echo 'Run the TypeScript compiler to generate the build output.'", - "about:test": "echo 'Execute the unit tests'", - "about:docs-extract-api": "echo 'Extract the API definition file from the current build output.'", - "build": "npx tsc --build --verbose --force", - "test": "npx ts-node ../../node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", - "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose" - } -} - - - - diff --git a/packages/tools/specs/jasmine.json b/packages/tools/specs/jasmine.json deleted file mode 100644 index b50f225f..00000000 --- a/packages/tools/specs/jasmine.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "spec_dir": "specs", - "spec_files": ["**/*Spec.ts"], - "helpers": ["jasmineHelpers.js"], - "random": false -} diff --git a/packages/tools/specs/jasmineHelpers.js b/packages/tools/specs/jasmineHelpers.js deleted file mode 100644 index 0f41e6b2..00000000 --- a/packages/tools/specs/jasmineHelpers.js +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line no-undef -process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data"; diff --git a/packages/tools/specs/tsconfig.json b/packages/tools/specs/tsconfig.json deleted file mode 100644 index ff15ed30..00000000 --- a/packages/tools/specs/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "../build/specs", - }, - "include": [ - "./**/*" - ], - "references": [ - { "path": "../src/tsconfig.json" } - ] -} diff --git a/packages/tools/src/tsconfig.json b/packages/tools/src/tsconfig.json deleted file mode 100644 index e0b6fe01..00000000 --- a/packages/tools/src/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - "rootDir": ".", - "outDir": "../build/src", - }, - "include": [ - "./**/*" - ] -} diff --git a/packages/tools/tsconfig.json b/packages/tools/tsconfig.json deleted file mode 100644 index 2edc5461..00000000 --- a/packages/tools/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "declaration": true, - "composite": true, - }, - "references": [ - { "path": "./src/tsconfig.json" }, - { "path": "./specs/tsconfig.json" }, - ] -} diff --git a/packages/spec-helpers/src/SpecHelpers.ts b/specs/SpecHelpers.ts similarity index 95% rename from packages/spec-helpers/src/SpecHelpers.ts rename to specs/SpecHelpers.ts index b36bae6d..4474d9f5 100644 --- a/packages/spec-helpers/src/SpecHelpers.ts +++ b/specs/SpecHelpers.ts @@ -1,19 +1,19 @@ import fs from "fs"; -import { defaultValue } from "@3d-tiles-tools/base"; -import { Iterables } from "@3d-tiles-tools/base"; -import { Buffers } from "@3d-tiles-tools/base"; -import { Paths } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { defaultValue } from "../src/base"; +import { Iterables } from "../src/base"; +import { Buffers } from "../src/base"; +import { Paths } from "../src/base"; +import { DeveloperError } from "../src/base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tile } from "../src/structure"; +import { Tileset } from "../src/structure"; -import { Tiles } from "@3d-tiles-tools/tilesets"; -import { TilesetTraverser } from "@3d-tiles-tools/tilesets"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; -import { TilesetSourceResourceResolver } from "@3d-tiles-tools/tilesets"; +import { Tiles } from "../src/tilesets"; +import { TilesetTraverser } from "../src/tilesets"; +import { TilesetSource } from "../src/tilesets"; +import { TilesetSources } from "../src/tilesets"; +import { TilesetSourceResourceResolver } from "../src/tilesets"; /** * Utility methods for the specs diff --git a/packages/base/specs/base/BuffersJsonSpec.ts b/specs/base/base/BuffersJsonSpec.ts similarity index 96% rename from packages/base/specs/base/BuffersJsonSpec.ts rename to specs/base/base/BuffersJsonSpec.ts index 967a9e0a..cb9b6e4c 100644 --- a/packages/base/specs/base/BuffersJsonSpec.ts +++ b/specs/base/base/BuffersJsonSpec.ts @@ -1,4 +1,4 @@ -import { Buffers } from "../../src/base/Buffers"; +import { Buffers } from "../../../src/base"; describe("Buffer::isProbablyJson", function () { it("detects JSON object", function () { diff --git a/packages/base/specs/base/IterablesSpec.ts b/specs/base/base/IterablesSpec.ts similarity index 97% rename from packages/base/specs/base/IterablesSpec.ts rename to specs/base/base/IterablesSpec.ts index ed887041..d4d93fc8 100644 --- a/packages/base/specs/base/IterablesSpec.ts +++ b/specs/base/base/IterablesSpec.ts @@ -1,4 +1,4 @@ -import { Iterables } from "../../src/base/Iterables"; +import { Iterables } from "../../../src/base"; // Note: These tests obtain iterable objects, most of them create // arrays from these iterable objects TWICE, to make sure that diff --git a/packages/base/specs/contentTypes/ContentDataTypeChecksSpec.ts b/specs/base/contentTypes/ContentDataTypeChecksSpec.ts similarity index 96% rename from packages/base/specs/contentTypes/ContentDataTypeChecksSpec.ts rename to specs/base/contentTypes/ContentDataTypeChecksSpec.ts index 95b7017a..9bdcd878 100644 --- a/packages/base/specs/contentTypes/ContentDataTypeChecksSpec.ts +++ b/specs/base/contentTypes/ContentDataTypeChecksSpec.ts @@ -1,5 +1,5 @@ -import { ContentDataTypes } from "../../src/contentTypes/ContentDataTypes"; -import { ContentDataTypeChecks } from "../../src/contentTypes/ContentDataTypeChecks"; +import { ContentDataTypes } from "../../../src/base"; +import { ContentDataTypeChecks } from "../../../src/base"; describe("ContentDataTypeChecks", function () { it("returns true when included is undefined and excluded is undefined", async function () { diff --git a/packages/base/specs/contentTypes/ContentDataTypesSpec.ts b/specs/base/contentTypes/ContentDataTypesSpec.ts similarity index 94% rename from packages/base/specs/contentTypes/ContentDataTypesSpec.ts rename to specs/base/contentTypes/ContentDataTypesSpec.ts index 1bb90a8b..fbfa62d4 100644 --- a/packages/base/specs/contentTypes/ContentDataTypesSpec.ts +++ b/specs/base/contentTypes/ContentDataTypesSpec.ts @@ -1,8 +1,8 @@ -import { ContentDataTypes } from "../../src/contentTypes/ContentDataTypes"; -import { BufferedContentData } from "../../src/contentTypes/BufferedContentData"; -import { ContentDataTypeRegistry } from "../../src/contentTypes/ContentDataTypeRegistry"; +import { ContentDataTypes } from "../../../src/base"; +import { BufferedContentData } from "../../../src/base"; +import { ContentDataTypeRegistry } from "../../../src/base"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/base/specs/contentTypes/LazyContentDataSpec.ts b/specs/base/contentTypes/LazyContentDataSpec.ts similarity index 95% rename from packages/base/specs/contentTypes/LazyContentDataSpec.ts rename to specs/base/contentTypes/LazyContentDataSpec.ts index 249ba8a0..6ec6b483 100644 --- a/packages/base/specs/contentTypes/LazyContentDataSpec.ts +++ b/specs/base/contentTypes/LazyContentDataSpec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { LazyContentData } from "../../src/contentTypes/LazyContentData"; -import { ResourceResolver } from "../../src/io/ResourceResolver"; +import { LazyContentData } from "../../../src/base"; +import { ResourceResolver } from "../../../src/base"; function createTestResourceResolver(): ResourceResolver { return { diff --git a/packages/base/specs/spatial/TreeCoordinatesSpec.ts b/specs/base/spatial/TreeCoordinatesSpec.ts similarity index 90% rename from packages/base/specs/spatial/TreeCoordinatesSpec.ts rename to specs/base/spatial/TreeCoordinatesSpec.ts index c48eee93..20a26efb 100644 --- a/packages/base/specs/spatial/TreeCoordinatesSpec.ts +++ b/specs/base/spatial/TreeCoordinatesSpec.ts @@ -1,5 +1,5 @@ -import { OctreeCoordinates } from "../../src/spatial/OctreeCoordinates"; -import { QuadtreeCoordinates } from "../../src/spatial/QuadtreeCoordinates"; +import { OctreeCoordinates } from "../../../src/base"; +import { QuadtreeCoordinates } from "../../../src/base"; describe("TreeCoordinates", function () { it("allows iterating over the quadtree children multiple times", function () { diff --git a/packages/cli/specs/GzipUngzipSpec.ts b/specs/cli/GzipUngzipSpec.ts similarity index 96% rename from packages/cli/specs/GzipUngzipSpec.ts rename to specs/cli/GzipUngzipSpec.ts index be593176..c6d9c6cc 100644 --- a/packages/cli/specs/GzipUngzipSpec.ts +++ b/specs/cli/GzipUngzipSpec.ts @@ -1,8 +1,8 @@ import path from "path"; -import { ToolsMain } from "../src/ToolsMain"; +import { ToolsMain } from "../../src/cli/ToolsMain"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../SpecHelpers"; const simpleTileset = "./specs/data/gzipUngzip/simpleTileset"; const simpleTilesetGzip = "./specs/data/gzipUngzip/simpleTileset-gzip"; diff --git a/specs/jasmine.json b/specs/jasmine.json index 357f9aee..a1291e19 100644 --- a/specs/jasmine.json +++ b/specs/jasmine.json @@ -1,6 +1,6 @@ { "spec_dir": "", - "spec_files": ["packages/*/specs/**/*Spec.ts"], + "spec_files": ["./specs/**/*Spec.ts"], "helpers": [], "random": false } diff --git a/packages/ktx/specs/ktx/KtxUtilitySpec.ts b/specs/ktx/ktx/KtxUtilitySpec.ts similarity index 91% rename from packages/ktx/specs/ktx/KtxUtilitySpec.ts rename to specs/ktx/ktx/KtxUtilitySpec.ts index b50b95d9..5604a0d8 100644 --- a/packages/ktx/specs/ktx/KtxUtilitySpec.ts +++ b/specs/ktx/ktx/KtxUtilitySpec.ts @@ -1,9 +1,9 @@ import fs from "fs"; -import { KtxUtility } from "../../src/ktx/KtxUtility"; -import { KtxOptions } from "../../src/ktx/KtxOptions"; +import { KtxUtility } from "../../../src/ktx"; +import { KtxOptions } from "../../../src/ktx"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/metadata/specs/metadata/ArrayValuesSpec.ts b/specs/metadata/metadata/ArrayValuesSpec.ts similarity index 99% rename from packages/metadata/specs/metadata/ArrayValuesSpec.ts rename to specs/metadata/metadata/ArrayValuesSpec.ts index b26ed432..8a668591 100644 --- a/packages/metadata/specs/metadata/ArrayValuesSpec.ts +++ b/specs/metadata/metadata/ArrayValuesSpec.ts @@ -1,4 +1,4 @@ -import { ArrayValues } from "../../src/metadata/ArrayValues"; +import { ArrayValues } from "../../../src/metadata"; describe("metadata/ArrayValues", function () { //========================================================================== diff --git a/packages/metadata/specs/metadata/MetadataEntityModelBasicSpec.ts b/specs/metadata/metadata/MetadataEntityModelBasicSpec.ts similarity index 99% rename from packages/metadata/specs/metadata/MetadataEntityModelBasicSpec.ts rename to specs/metadata/metadata/MetadataEntityModelBasicSpec.ts index 799e2898..ef5249aa 100644 --- a/packages/metadata/specs/metadata/MetadataEntityModelBasicSpec.ts +++ b/specs/metadata/metadata/MetadataEntityModelBasicSpec.ts @@ -1,6 +1,6 @@ -import { MetadataEntityModels } from "../../src/metadata/MetadataEntityModels"; +import { MetadataEntityModels } from "../../../src/metadata"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/metadata/specs/metadata/MetadataEntityModelSpec.ts b/specs/metadata/metadata/MetadataEntityModelSpec.ts similarity index 98% rename from packages/metadata/specs/metadata/MetadataEntityModelSpec.ts rename to specs/metadata/metadata/MetadataEntityModelSpec.ts index 26290bc4..0dc62193 100644 --- a/packages/metadata/specs/metadata/MetadataEntityModelSpec.ts +++ b/specs/metadata/metadata/MetadataEntityModelSpec.ts @@ -1,6 +1,6 @@ -import { MetadataClass } from "@3d-tiles-tools/structure"; +import { MetadataClass } from "../../../src/structure"; -import { MetadataEntityModels } from "../../src/metadata/MetadataEntityModels"; +import { MetadataEntityModels } from "../../../src/metadata"; // NOTE: The tests here aim at testing the handling of default- and noData // values, as well as the handling of offset/scale and the mechanism of diff --git a/packages/metadata/specs/metadata/PropertyTableModelsSpec.ts b/specs/metadata/metadata/PropertyTableModelsSpec.ts similarity index 98% rename from packages/metadata/specs/metadata/PropertyTableModelsSpec.ts rename to specs/metadata/metadata/PropertyTableModelsSpec.ts index a9fe7127..0073f767 100644 --- a/packages/metadata/specs/metadata/PropertyTableModelsSpec.ts +++ b/specs/metadata/metadata/PropertyTableModelsSpec.ts @@ -1,9 +1,9 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../../src/structure"; -import { BinaryPropertyTables } from "../../src/metadata/binary/BinaryPropertyTables"; -import { BinaryPropertyTableModel } from "../../src/metadata/binary/BinaryPropertyTableModel"; +import { BinaryPropertyTables } from "../../../src/metadata"; +import { BinaryPropertyTableModel } from "../../../src/metadata"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; /** * Test for the `PropertyTableModels` class. diff --git a/packages/metadata/specs/metadata/PropertyTableModelsSpecialValuesSpec.ts b/specs/metadata/metadata/PropertyTableModelsSpecialValuesSpec.ts similarity index 95% rename from packages/metadata/specs/metadata/PropertyTableModelsSpecialValuesSpec.ts rename to specs/metadata/metadata/PropertyTableModelsSpecialValuesSpec.ts index edb14451..8bc7428f 100644 --- a/packages/metadata/specs/metadata/PropertyTableModelsSpecialValuesSpec.ts +++ b/specs/metadata/metadata/PropertyTableModelsSpecialValuesSpec.ts @@ -1,10 +1,10 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { MetadataEnum } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../../src/structure"; +import { MetadataEnum } from "../../../src/structure"; -import { BinaryPropertyTables } from "../../src/metadata/binary/BinaryPropertyTables"; -import { BinaryPropertyTableModel } from "../../src/metadata/binary/BinaryPropertyTableModel"; +import { BinaryPropertyTables } from "../../../src/metadata"; +import { BinaryPropertyTableModel } from "../../../src/metadata"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; /** * Test for handling "special" values (namely, `noData` and `default`) diff --git a/packages/metadata/specs/metadata/binary/BinaryPropertyTablesSpec.ts b/specs/metadata/metadata/binary/BinaryPropertyTablesSpec.ts similarity index 96% rename from packages/metadata/specs/metadata/binary/BinaryPropertyTablesSpec.ts rename to specs/metadata/metadata/binary/BinaryPropertyTablesSpec.ts index 74c03832..4ce7d972 100644 --- a/packages/metadata/specs/metadata/binary/BinaryPropertyTablesSpec.ts +++ b/specs/metadata/metadata/binary/BinaryPropertyTablesSpec.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ -import { Schema } from "@3d-tiles-tools/structure"; -import { BinaryPropertyTables } from "../../../src/metadata/binary/BinaryPropertyTables"; +import { Schema } from "../../../../src/structure"; +import { BinaryPropertyTables } from "../../../../src/metadata"; // NOTE: // Some internals of the `BinaryPropertyTables` class are ported from the "MetadataTester" diff --git a/packages/tilesets/specs/implicitTiling/ImplicitTilingsSpec.ts b/specs/tilesets/implicitTiling/ImplicitTilingsSpec.ts similarity index 97% rename from packages/tilesets/specs/implicitTiling/ImplicitTilingsSpec.ts rename to specs/tilesets/implicitTiling/ImplicitTilingsSpec.ts index a2e60a97..57e04b1b 100644 --- a/packages/tilesets/specs/implicitTiling/ImplicitTilingsSpec.ts +++ b/specs/tilesets/implicitTiling/ImplicitTilingsSpec.ts @@ -1,9 +1,9 @@ -import { ImplicitTilings } from "../../src/implicitTiling/ImplicitTilings"; +import { ImplicitTilings } from "../../../src/tilesets"; -import { OctreeCoordinates } from "@3d-tiles-tools/base"; -import { QuadtreeCoordinates } from "@3d-tiles-tools/base"; +import { OctreeCoordinates } from "../../../src/base"; +import { QuadtreeCoordinates } from "../../../src/base"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; function createQuadtreeImplicitTiling(subtreeLevels: number) { const implicitTiling = { diff --git a/packages/tilesets/specs/packages/TilesetSource3dtilesSpec.ts b/specs/tilesets/packages/TilesetSource3dtilesSpec.ts similarity index 94% rename from packages/tilesets/specs/packages/TilesetSource3dtilesSpec.ts rename to specs/tilesets/packages/TilesetSource3dtilesSpec.ts index e63e14f0..5438cd2c 100644 --- a/packages/tilesets/specs/packages/TilesetSource3dtilesSpec.ts +++ b/specs/tilesets/packages/TilesetSource3dtilesSpec.ts @@ -1,6 +1,6 @@ -import { TilesetSource3dtiles } from "../../src/packages/TilesetSource3dtiles"; +import { TilesetSource3dtiles } from "../../../src/tilesets"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tilesets/specs/tileFormats/TileFormatsSpec.ts b/specs/tilesets/tileFormats/TileFormatsSpec.ts similarity index 99% rename from packages/tilesets/specs/tileFormats/TileFormatsSpec.ts rename to specs/tilesets/tileFormats/TileFormatsSpec.ts index 5f9723e2..ffa771ae 100644 --- a/packages/tilesets/specs/tileFormats/TileFormatsSpec.ts +++ b/specs/tilesets/tileFormats/TileFormatsSpec.ts @@ -1,10 +1,10 @@ import fs from "fs"; import path from "path"; -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "../../../src/base"; -import { TileFormats } from "../../src/tileFormats/TileFormats"; +import { TileFormats } from "../../../src/tilesets"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tilesets/specs/tilesetData/TilesetSourceSpec.ts b/specs/tilesets/tilesetData/TilesetSourceSpec.ts similarity index 87% rename from packages/tilesets/specs/tilesetData/TilesetSourceSpec.ts rename to specs/tilesets/tilesetData/TilesetSourceSpec.ts index 8cbde3de..a99b40c5 100644 --- a/packages/tilesets/specs/tilesetData/TilesetSourceSpec.ts +++ b/specs/tilesets/tilesetData/TilesetSourceSpec.ts @@ -1,11 +1,11 @@ -import { TilesetSource } from "../../src/tilesetData/TilesetSource"; -import { TilesetSourceFs } from "../../src/tilesetData/TilesetSourceFs"; -import { TilesetInMemory } from "../../src/tilesetData/TilesetInMemory"; +import { TilesetSource } from "../../../src/tilesets"; +import { TilesetSourceFs } from "../../../src/tilesets"; +import { TilesetInMemory } from "../../../src/tilesets"; -import { TilesetSource3tz } from "../../src/packages/TilesetSource3tz"; -import { TilesetSource3dtiles } from "../../src/packages/TilesetSource3dtiles"; +import { TilesetSource3tz } from "../../../src/tilesets"; +import { TilesetSource3dtiles } from "../../../src/tilesets"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tilesets/specs/tilesetData/TilesetTargetSpec.ts b/specs/tilesets/tilesetData/TilesetTargetSpec.ts similarity index 87% rename from packages/tilesets/specs/tilesetData/TilesetTargetSpec.ts rename to specs/tilesets/tilesetData/TilesetTargetSpec.ts index 24dc4742..90845898 100644 --- a/packages/tilesets/specs/tilesetData/TilesetTargetSpec.ts +++ b/specs/tilesets/tilesetData/TilesetTargetSpec.ts @@ -1,11 +1,11 @@ -import { TilesetTarget } from "../../src/tilesetData/TilesetTarget"; -import { TilesetTargetFs } from "../../src/tilesetData/TilesetTargetFs"; -import { TilesetInMemory } from "../../src/tilesetData/TilesetInMemory"; +import { TilesetTarget } from "../../../src/tilesets"; +import { TilesetTargetFs } from "../../../src/tilesets"; +import { TilesetInMemory } from "../../../src/tilesets"; -import { TilesetTarget3tz } from "../../src/packages/TilesetTarget3tz"; -import { TilesetTarget3dtiles } from "../../src/packages/TilesetTarget3dtiles"; +import { TilesetTarget3tz } from "../../../src/tilesets"; +import { TilesetTarget3dtiles } from "../../../src/tilesets"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tilesets/specs/tilesets/TilesSpec.ts b/specs/tilesets/tilesets/TilesSpec.ts similarity index 97% rename from packages/tilesets/specs/tilesets/TilesSpec.ts rename to specs/tilesets/tilesets/TilesSpec.ts index 278f6cd2..1125514c 100644 --- a/packages/tilesets/specs/tilesets/TilesSpec.ts +++ b/specs/tilesets/tilesets/TilesSpec.ts @@ -1,6 +1,6 @@ -import { Tile } from "@3d-tiles-tools/structure"; +import { Tile } from "../../../src/structure"; -import { Tiles } from "../../src/tilesets/Tiles"; +import { Tiles } from "../../../src/tilesets"; //============================================================================ // Test data definition diff --git a/packages/tools/specs/contentProcessing/GltfTransformSpec.ts b/specs/tools/contentProcessing/GltfTransformSpec.ts similarity index 88% rename from packages/tools/specs/contentProcessing/GltfTransformSpec.ts rename to specs/tools/contentProcessing/GltfTransformSpec.ts index d103bf27..6dbf9e7c 100644 --- a/packages/tools/specs/contentProcessing/GltfTransformSpec.ts +++ b/specs/tools/contentProcessing/GltfTransformSpec.ts @@ -1,8 +1,8 @@ import fs from "fs"; -import { GltfTransform } from "../../src/contentProcessing/GltfTransform"; +import { GltfTransform } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/contentProcessing/GltfUtilitiesSpec.ts b/specs/tools/contentProcessing/GltfUtilitiesSpec.ts similarity index 94% rename from packages/tools/specs/contentProcessing/GltfUtilitiesSpec.ts rename to specs/tools/contentProcessing/GltfUtilitiesSpec.ts index 78bb7481..baee61a0 100644 --- a/packages/tools/specs/contentProcessing/GltfUtilitiesSpec.ts +++ b/specs/tools/contentProcessing/GltfUtilitiesSpec.ts @@ -1,12 +1,10 @@ -// eslint-disable-next-line @typescript-eslint/triple-slash-reference -/// import GltfPipeline from "gltf-pipeline"; import fs from "fs"; -import { GltfUtilities } from "../../src/contentProcessing/GltfUtilities"; +import { GltfUtilities } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/migration/BatchTableClassPropertiesSpec.ts b/specs/tools/migration/BatchTableClassPropertiesSpec.ts similarity index 98% rename from packages/tools/specs/migration/BatchTableClassPropertiesSpec.ts rename to specs/tools/migration/BatchTableClassPropertiesSpec.ts index 28fd5ea1..74f26846 100644 --- a/packages/tools/specs/migration/BatchTableClassPropertiesSpec.ts +++ b/specs/tools/migration/BatchTableClassPropertiesSpec.ts @@ -1,4 +1,4 @@ -import { BatchTableClassProperties } from "../../src/migration/BatchTableClassProperties"; +import { BatchTableClassProperties } from "../../../src/tools"; describe("BatchTableClassProperties", function () { it("obtains the right type for STRING values", async function () { diff --git a/packages/tools/specs/migration/NumberTypeDescriptionsSpec.ts b/specs/tools/migration/NumberTypeDescriptionsSpec.ts similarity index 98% rename from packages/tools/specs/migration/NumberTypeDescriptionsSpec.ts rename to specs/tools/migration/NumberTypeDescriptionsSpec.ts index fc7b66bc..95d03786 100644 --- a/packages/tools/specs/migration/NumberTypeDescriptionsSpec.ts +++ b/specs/tools/migration/NumberTypeDescriptionsSpec.ts @@ -1,4 +1,4 @@ -import { NumberTypeDescriptions } from "../../src/migration/NumberTypeDescriptions"; +import { NumberTypeDescriptions } from "../../../src/tools"; describe("NumberTypeDescriptions", function () { //========================================================================== diff --git a/packages/tools/specs/migration/TileFormatsMigrationSpec.ts b/specs/tools/migration/TileFormatsMigrationSpec.ts similarity index 99% rename from packages/tools/specs/migration/TileFormatsMigrationSpec.ts rename to specs/tools/migration/TileFormatsMigrationSpec.ts index c80b25d6..9a1203ed 100644 --- a/packages/tools/specs/migration/TileFormatsMigrationSpec.ts +++ b/specs/tools/migration/TileFormatsMigrationSpec.ts @@ -1,11 +1,11 @@ import fs from "fs"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../../src/base"; -import { TilesetOperations } from "../../src/tilesetProcessing/TilesetOperations"; -import { GltfUtilities } from "../../src/contentProcessing/GltfUtilities"; +import { TilesetOperations } from "../../../src/tools"; +import { GltfUtilities } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/BasicTilesetProcessorSpec.ts b/specs/tools/tilesetProcessing/BasicTilesetProcessorSpec.ts similarity index 96% rename from packages/tools/specs/tilesetProcessing/BasicTilesetProcessorSpec.ts rename to specs/tools/tilesetProcessing/BasicTilesetProcessorSpec.ts index 93354fb5..45ca0cfa 100644 --- a/packages/tools/specs/tilesetProcessing/BasicTilesetProcessorSpec.ts +++ b/specs/tools/tilesetProcessing/BasicTilesetProcessorSpec.ts @@ -1,18 +1,18 @@ import fs from "fs"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../../src/base"; -import { Tile } from "@3d-tiles-tools/structure"; +import { Tile } from "../../../src/structure"; -import { Tiles } from "@3d-tiles-tools/tilesets"; -import { TraversedTile } from "@3d-tiles-tools/tilesets"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { Tiles } from "../../../src/tilesets"; +import { TraversedTile } from "../../../src/tilesets"; +import { TilesetEntry } from "../../../src/tilesets"; -import { BasicTilesetProcessor } from "../../src/tilesetProcessing/BasicTilesetProcessor"; +import { BasicTilesetProcessor } from "../../../src/tools"; import { SpecEntryProcessor } from "./SpecEntryProcessor"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/ImplicitTilesetProcessorSpec.ts b/specs/tools/tilesetProcessing/ImplicitTilesetProcessorSpec.ts similarity index 92% rename from packages/tools/specs/tilesetProcessing/ImplicitTilesetProcessorSpec.ts rename to specs/tools/tilesetProcessing/ImplicitTilesetProcessorSpec.ts index 707bcf23..18a04c0c 100644 --- a/packages/tools/specs/tilesetProcessing/ImplicitTilesetProcessorSpec.ts +++ b/specs/tools/tilesetProcessing/ImplicitTilesetProcessorSpec.ts @@ -1,16 +1,16 @@ import path from "path"; -import { Tile } from "@3d-tiles-tools/structure"; +import { Tile } from "../../../src/structure"; -import { Tiles } from "@3d-tiles-tools/tilesets"; -import { TraversedTile } from "@3d-tiles-tools/tilesets"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; +import { Tiles } from "../../../src/tilesets"; +import { TraversedTile } from "../../../src/tilesets"; +import { TilesetSources } from "../../../src/tilesets"; -import { BasicTilesetProcessor } from "../../src/tilesetProcessing/BasicTilesetProcessor"; +import { BasicTilesetProcessor } from "../../../src/tools"; import { SpecEntryProcessor } from "./SpecEntryProcessor"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/PackageTilesetProcessorSpec.ts b/specs/tools/tilesetProcessing/PackageTilesetProcessorSpec.ts similarity index 96% rename from packages/tools/specs/tilesetProcessing/PackageTilesetProcessorSpec.ts rename to specs/tools/tilesetProcessing/PackageTilesetProcessorSpec.ts index 92e434e8..ecb32a49 100644 --- a/packages/tools/specs/tilesetProcessing/PackageTilesetProcessorSpec.ts +++ b/specs/tools/tilesetProcessing/PackageTilesetProcessorSpec.ts @@ -1,6 +1,6 @@ -import { BasicTilesetProcessor } from "../../src/tilesetProcessing/BasicTilesetProcessor"; +import { BasicTilesetProcessor } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/SpecEntryProcessor.ts b/specs/tools/tilesetProcessing/SpecEntryProcessor.ts similarity index 90% rename from packages/tools/specs/tilesetProcessing/SpecEntryProcessor.ts rename to specs/tools/tilesetProcessing/SpecEntryProcessor.ts index ded3312c..9f173180 100644 --- a/packages/tools/specs/tilesetProcessing/SpecEntryProcessor.ts +++ b/specs/tools/tilesetProcessing/SpecEntryProcessor.ts @@ -1,9 +1,9 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../../src/base"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "../../../src/tilesets"; /** * Utility class for processing tileset entries for the specs. diff --git a/packages/tools/specs/tilesetProcessing/TilesetCombinerSpec.ts b/specs/tools/tilesetProcessing/TilesetCombinerSpec.ts similarity index 90% rename from packages/tools/specs/tilesetProcessing/TilesetCombinerSpec.ts rename to specs/tools/tilesetProcessing/TilesetCombinerSpec.ts index 320f9baf..717ff1a1 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetCombinerSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetCombinerSpec.ts @@ -1,10 +1,10 @@ import fs from "fs"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../../src/base"; -import { TilesetOperations } from "../../src/tilesetProcessing/TilesetOperations"; +import { TilesetOperations } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/TilesetConverterSpec.ts b/specs/tools/tilesetProcessing/TilesetConverterSpec.ts similarity index 98% rename from packages/tools/specs/tilesetProcessing/TilesetConverterSpec.ts rename to specs/tools/tilesetProcessing/TilesetConverterSpec.ts index e0b4bfb9..ac6f8a3e 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetConverterSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetConverterSpec.ts @@ -1,6 +1,6 @@ -import { TilesetConverter } from "../../src/tilesetProcessing/TilesetConverter"; +import { TilesetConverter } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/TilesetDataProcessorSpec.ts b/specs/tools/tilesetProcessing/TilesetDataProcessorSpec.ts similarity index 94% rename from packages/tools/specs/tilesetProcessing/TilesetDataProcessorSpec.ts rename to specs/tools/tilesetProcessing/TilesetDataProcessorSpec.ts index 0289d033..a996d9ea 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetDataProcessorSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetDataProcessorSpec.ts @@ -1,8 +1,8 @@ -import { TilesetDataProcessor } from "../../src/tilesetProcessing/TilesetDataProcessor"; +import { TilesetDataProcessor } from "../../../src/tools"; import { SpecEntryProcessor } from "./SpecEntryProcessor"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/TilesetJsonCreatorSpec.ts b/specs/tools/tilesetProcessing/TilesetJsonCreatorSpec.ts similarity index 96% rename from packages/tools/specs/tilesetProcessing/TilesetJsonCreatorSpec.ts rename to specs/tools/tilesetProcessing/TilesetJsonCreatorSpec.ts index c75d74cd..e9348ae2 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetJsonCreatorSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetJsonCreatorSpec.ts @@ -1,10 +1,10 @@ import fs from "fs"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../../src/base"; -import { TilesetJsonCreator } from "../../src/tilesetProcessing/TilesetJsonCreator"; +import { TilesetJsonCreator } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/TilesetMergerSpec.ts b/specs/tools/tilesetProcessing/TilesetMergerSpec.ts similarity index 91% rename from packages/tools/specs/tilesetProcessing/TilesetMergerSpec.ts rename to specs/tools/tilesetProcessing/TilesetMergerSpec.ts index eb8a7b9c..d7a6c54c 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetMergerSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetMergerSpec.ts @@ -1,10 +1,10 @@ import fs from "fs"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../../src/base"; -import { TilesetOperations } from "../../src/tilesetProcessing/TilesetOperations"; +import { TilesetOperations } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/TilesetProcessorSpec.ts b/specs/tools/tilesetProcessing/TilesetProcessorSpec.ts similarity index 95% rename from packages/tools/specs/tilesetProcessing/TilesetProcessorSpec.ts rename to specs/tools/tilesetProcessing/TilesetProcessorSpec.ts index 80fa64d1..b65bdf7b 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetProcessorSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetProcessorSpec.ts @@ -1,6 +1,6 @@ -import { TilesetDataProcessor } from "../../src/tilesetProcessing/TilesetDataProcessor"; +import { TilesetDataProcessor } from "../../../src/tools"; -import { SpecHelpers } from "@3d-tiles-tools/spec-helpers"; +import { SpecHelpers } from "../../SpecHelpers"; const SPECS_DATA_BASE_DIRECTORY = SpecHelpers.getSpecsDataBaseDirectory(); diff --git a/packages/tools/specs/tilesetProcessing/TilesetUpgraderSpec.ts b/specs/tools/tilesetProcessing/TilesetUpgraderSpec.ts similarity index 96% rename from packages/tools/specs/tilesetProcessing/TilesetUpgraderSpec.ts rename to specs/tools/tilesetProcessing/TilesetUpgraderSpec.ts index f3f51183..99d9183a 100644 --- a/packages/tools/specs/tilesetProcessing/TilesetUpgraderSpec.ts +++ b/specs/tools/tilesetProcessing/TilesetUpgraderSpec.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ -import { TilesetUpgrader } from "../../src/tilesetProcessing/TilesetUpgrader"; +import { TilesetUpgrader } from "../../../src/tools"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../../src/structure"; const gltfUpgradeOptions = undefined; diff --git a/packages/base/src/base/Buffers.ts b/src/base/base/Buffers.ts similarity index 100% rename from packages/base/src/base/Buffers.ts rename to src/base/base/Buffers.ts diff --git a/packages/base/src/base/DataError.ts b/src/base/base/DataError.ts similarity index 100% rename from packages/base/src/base/DataError.ts rename to src/base/base/DataError.ts diff --git a/packages/base/src/base/DeveloperError.ts b/src/base/base/DeveloperError.ts similarity index 100% rename from packages/base/src/base/DeveloperError.ts rename to src/base/base/DeveloperError.ts diff --git a/packages/base/src/base/Iterables.ts b/src/base/base/Iterables.ts similarity index 100% rename from packages/base/src/base/Iterables.ts rename to src/base/base/Iterables.ts diff --git a/packages/base/src/base/Paths.ts b/src/base/base/Paths.ts similarity index 100% rename from packages/base/src/base/Paths.ts rename to src/base/base/Paths.ts diff --git a/packages/base/src/base/Uris.ts b/src/base/base/Uris.ts similarity index 100% rename from packages/base/src/base/Uris.ts rename to src/base/base/Uris.ts diff --git a/packages/base/src/base/defaultValue.ts b/src/base/base/defaultValue.ts similarity index 100% rename from packages/base/src/base/defaultValue.ts rename to src/base/base/defaultValue.ts diff --git a/packages/base/src/base/defined.ts b/src/base/base/defined.ts similarity index 100% rename from packages/base/src/base/defined.ts rename to src/base/base/defined.ts diff --git a/packages/base/src/binary/BinaryBufferData.ts b/src/base/binary/BinaryBufferData.ts similarity index 100% rename from packages/base/src/binary/BinaryBufferData.ts rename to src/base/binary/BinaryBufferData.ts diff --git a/packages/base/src/binary/BinaryBufferDataResolver.ts b/src/base/binary/BinaryBufferDataResolver.ts similarity index 100% rename from packages/base/src/binary/BinaryBufferDataResolver.ts rename to src/base/binary/BinaryBufferDataResolver.ts diff --git a/packages/base/src/binary/BinaryBufferStructure.ts b/src/base/binary/BinaryBufferStructure.ts similarity index 70% rename from packages/base/src/binary/BinaryBufferStructure.ts rename to src/base/binary/BinaryBufferStructure.ts index 919d7679..491dfcc8 100644 --- a/packages/base/src/binary/BinaryBufferStructure.ts +++ b/src/base/binary/BinaryBufferStructure.ts @@ -1,5 +1,5 @@ -import { BufferObject } from "@3d-tiles-tools/structure"; -import { BufferView } from "@3d-tiles-tools/structure"; +import { BufferObject } from "../../structure"; +import { BufferView } from "../../structure"; /** * A basic class holding information about the structure of diff --git a/packages/base/src/binary/BinaryBuffers.ts b/src/base/binary/BinaryBuffers.ts similarity index 96% rename from packages/base/src/binary/BinaryBuffers.ts rename to src/base/binary/BinaryBuffers.ts index 9acaf542..e78d511d 100644 --- a/packages/base/src/binary/BinaryBuffers.ts +++ b/src/base/binary/BinaryBuffers.ts @@ -1,5 +1,5 @@ -import { BufferObject } from "@3d-tiles-tools/structure"; -import { BufferView } from "@3d-tiles-tools/structure"; +import { BufferObject } from "../../structure"; +import { BufferView } from "../../structure"; import { BinaryBufferStructure } from "./BinaryBufferStructure"; import { BinaryBufferData } from "./BinaryBufferData"; diff --git a/packages/base/src/binary/BinaryDataError.ts b/src/base/binary/BinaryDataError.ts similarity index 100% rename from packages/base/src/binary/BinaryDataError.ts rename to src/base/binary/BinaryDataError.ts diff --git a/packages/base/src/contentTypes/BufferedContentData.ts b/src/base/contentTypes/BufferedContentData.ts similarity index 100% rename from packages/base/src/contentTypes/BufferedContentData.ts rename to src/base/contentTypes/BufferedContentData.ts diff --git a/packages/base/src/contentTypes/ContentData.ts b/src/base/contentTypes/ContentData.ts similarity index 100% rename from packages/base/src/contentTypes/ContentData.ts rename to src/base/contentTypes/ContentData.ts diff --git a/packages/base/src/contentTypes/ContentDataTypeChecks.ts b/src/base/contentTypes/ContentDataTypeChecks.ts similarity index 100% rename from packages/base/src/contentTypes/ContentDataTypeChecks.ts rename to src/base/contentTypes/ContentDataTypeChecks.ts diff --git a/packages/base/src/contentTypes/ContentDataTypeEntry.ts b/src/base/contentTypes/ContentDataTypeEntry.ts similarity index 100% rename from packages/base/src/contentTypes/ContentDataTypeEntry.ts rename to src/base/contentTypes/ContentDataTypeEntry.ts diff --git a/packages/base/src/contentTypes/ContentDataTypeRegistry.ts b/src/base/contentTypes/ContentDataTypeRegistry.ts similarity index 100% rename from packages/base/src/contentTypes/ContentDataTypeRegistry.ts rename to src/base/contentTypes/ContentDataTypeRegistry.ts diff --git a/packages/base/src/contentTypes/ContentDataTypes.ts b/src/base/contentTypes/ContentDataTypes.ts similarity index 100% rename from packages/base/src/contentTypes/ContentDataTypes.ts rename to src/base/contentTypes/ContentDataTypes.ts diff --git a/packages/base/src/contentTypes/LazyContentData.ts b/src/base/contentTypes/LazyContentData.ts similarity index 100% rename from packages/base/src/contentTypes/LazyContentData.ts rename to src/base/contentTypes/LazyContentData.ts diff --git a/packages/base/src/index.ts b/src/base/index.ts similarity index 100% rename from packages/base/src/index.ts rename to src/base/index.ts diff --git a/packages/base/src/io/FileResourceResolver.ts b/src/base/io/FileResourceResolver.ts similarity index 100% rename from packages/base/src/io/FileResourceResolver.ts rename to src/base/io/FileResourceResolver.ts diff --git a/packages/base/src/io/ResourceResolver.ts b/src/base/io/ResourceResolver.ts similarity index 100% rename from packages/base/src/io/ResourceResolver.ts rename to src/base/io/ResourceResolver.ts diff --git a/packages/base/src/io/ResourceResolvers.ts b/src/base/io/ResourceResolvers.ts similarity index 100% rename from packages/base/src/io/ResourceResolvers.ts rename to src/base/io/ResourceResolvers.ts diff --git a/packages/base/src/io/UnzippingResourceResolver.ts b/src/base/io/UnzippingResourceResolver.ts similarity index 100% rename from packages/base/src/io/UnzippingResourceResolver.ts rename to src/base/io/UnzippingResourceResolver.ts diff --git a/packages/base/src/logging/Loggers.ts b/src/base/logging/Loggers.ts similarity index 100% rename from packages/base/src/logging/Loggers.ts rename to src/base/logging/Loggers.ts diff --git a/packages/base/src/spatial/MortonOrder.ts b/src/base/spatial/MortonOrder.ts similarity index 100% rename from packages/base/src/spatial/MortonOrder.ts rename to src/base/spatial/MortonOrder.ts diff --git a/packages/base/src/spatial/OctreeCoordinates.ts b/src/base/spatial/OctreeCoordinates.ts similarity index 100% rename from packages/base/src/spatial/OctreeCoordinates.ts rename to src/base/spatial/OctreeCoordinates.ts diff --git a/packages/base/src/spatial/Octrees.ts b/src/base/spatial/Octrees.ts similarity index 100% rename from packages/base/src/spatial/Octrees.ts rename to src/base/spatial/Octrees.ts diff --git a/packages/base/src/spatial/QuadtreeCoordinates.ts b/src/base/spatial/QuadtreeCoordinates.ts similarity index 100% rename from packages/base/src/spatial/QuadtreeCoordinates.ts rename to src/base/spatial/QuadtreeCoordinates.ts diff --git a/packages/base/src/spatial/Quadtrees.ts b/src/base/spatial/Quadtrees.ts similarity index 100% rename from packages/base/src/spatial/Quadtrees.ts rename to src/base/spatial/Quadtrees.ts diff --git a/packages/base/src/spatial/TreeCoordinates.ts b/src/base/spatial/TreeCoordinates.ts similarity index 100% rename from packages/base/src/spatial/TreeCoordinates.ts rename to src/base/spatial/TreeCoordinates.ts diff --git a/packages/cli/src/ToolsMain.ts b/src/cli/ToolsMain.ts similarity index 95% rename from packages/cli/src/ToolsMain.ts rename to src/cli/ToolsMain.ts index 60315f2f..a45af965 100644 --- a/packages/cli/src/ToolsMain.ts +++ b/src/cli/ToolsMain.ts @@ -1,30 +1,30 @@ import fs from "fs"; import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; -import { Buffers } from "@3d-tiles-tools/base"; -import { Iterables } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { Paths } from "../base"; +import { DeveloperError } from "../base"; +import { Buffers } from "../base"; +import { Iterables } from "../base"; +import { ContentDataTypes } from "../base"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; -import { TileDataLayouts } from "@3d-tiles-tools/tilesets"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../tilesets"; +import { TileDataLayouts } from "../tilesets"; +import { TileFormatError } from "../tilesets"; -import { ContentOps } from "@3d-tiles-tools/tools"; -import { GltfUtilities } from "@3d-tiles-tools/tools"; +import { ContentOps } from "../tools"; +import { GltfUtilities } from "../tools"; -import { PipelineExecutor } from "@3d-tiles-tools/tools"; -import { Pipelines } from "@3d-tiles-tools/tools"; +import { PipelineExecutor } from "../tools"; +import { Pipelines } from "../tools"; -import { TilesetOperations } from "@3d-tiles-tools/tools"; -import { TileFormatsMigration } from "@3d-tiles-tools/tools"; -import { TilesetConverter } from "@3d-tiles-tools/tools"; -import { TilesetJsonCreator } from "@3d-tiles-tools/tools"; +import { TilesetOperations } from "../tools"; +import { TileFormatsMigration } from "../tools"; +import { TilesetConverter } from "../tools"; +import { TilesetJsonCreator } from "../tools"; -import { ContentDataTypeRegistry } from "@3d-tiles-tools/base"; +import { ContentDataTypeRegistry } from "../base"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../base"; const logger = Loggers.get("CLI"); /** diff --git a/packages/cli/src/main.ts b/src/cli/main.ts similarity index 99% rename from packages/cli/src/main.ts rename to src/cli/main.ts index d43c45c3..f2229f9a 100644 --- a/packages/cli/src/main.ts +++ b/src/cli/main.ts @@ -1,9 +1,9 @@ import yargs from "yargs/yargs"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { DeveloperError } from "../base"; import { ToolsMain } from "./ToolsMain"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../base"; let logger = Loggers.get("CLI"); // Split the arguments that are intended for the tools diff --git a/packages/gltf-extensions/src/gltfExtensions/EXTInstanceFeatures.ts b/src/gltf-extensions/gltfExtensions/EXTInstanceFeatures.ts similarity index 100% rename from packages/gltf-extensions/src/gltfExtensions/EXTInstanceFeatures.ts rename to src/gltf-extensions/gltfExtensions/EXTInstanceFeatures.ts diff --git a/packages/gltf-extensions/src/gltfExtensions/EXTMeshFeatures.ts b/src/gltf-extensions/gltfExtensions/EXTMeshFeatures.ts similarity index 100% rename from packages/gltf-extensions/src/gltfExtensions/EXTMeshFeatures.ts rename to src/gltf-extensions/gltfExtensions/EXTMeshFeatures.ts diff --git a/packages/gltf-extensions/src/gltfExtensions/EXTStructuralMetadata.ts b/src/gltf-extensions/gltfExtensions/EXTStructuralMetadata.ts similarity index 100% rename from packages/gltf-extensions/src/gltfExtensions/EXTStructuralMetadata.ts rename to src/gltf-extensions/gltfExtensions/EXTStructuralMetadata.ts diff --git a/packages/gltf-extensions/src/gltfExtensions/InstanceFeatures.ts b/src/gltf-extensions/gltfExtensions/InstanceFeatures.ts similarity index 100% rename from packages/gltf-extensions/src/gltfExtensions/InstanceFeatures.ts rename to src/gltf-extensions/gltfExtensions/InstanceFeatures.ts diff --git a/packages/gltf-extensions/src/gltfExtensions/MeshFeatures.ts b/src/gltf-extensions/gltfExtensions/MeshFeatures.ts similarity index 100% rename from packages/gltf-extensions/src/gltfExtensions/MeshFeatures.ts rename to src/gltf-extensions/gltfExtensions/MeshFeatures.ts diff --git a/packages/gltf-extensions/src/gltfExtensions/StructuralMetadata.ts b/src/gltf-extensions/gltfExtensions/StructuralMetadata.ts similarity index 100% rename from packages/gltf-extensions/src/gltfExtensions/StructuralMetadata.ts rename to src/gltf-extensions/gltfExtensions/StructuralMetadata.ts diff --git a/packages/gltf-extensions/src/index.ts b/src/gltf-extensions/index.ts similarity index 100% rename from packages/gltf-extensions/src/index.ts rename to src/gltf-extensions/index.ts diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..b5b0166a --- /dev/null +++ b/src/index.ts @@ -0,0 +1,7 @@ +export * from "./base/"; +export * from "./gltf-extensions/"; +export * from "./ktx/"; +export * from "./metadata/"; +export * from "./structure/"; +export * from "./tilesets/"; +export * from "./tools/"; diff --git a/packages/ktx/src/index.ts b/src/ktx/index.ts similarity index 100% rename from packages/ktx/src/index.ts rename to src/ktx/index.ts diff --git a/packages/ktx/src/ktx/BasisEncoder.ts b/src/ktx/ktx/BasisEncoder.ts similarity index 100% rename from packages/ktx/src/ktx/BasisEncoder.ts rename to src/ktx/ktx/BasisEncoder.ts diff --git a/packages/ktx/src/ktx/KtxError.ts b/src/ktx/ktx/KtxError.ts similarity index 100% rename from packages/ktx/src/ktx/KtxError.ts rename to src/ktx/ktx/KtxError.ts diff --git a/packages/ktx/src/ktx/KtxEtc1sOptions.ts b/src/ktx/ktx/KtxEtc1sOptions.ts similarity index 100% rename from packages/ktx/src/ktx/KtxEtc1sOptions.ts rename to src/ktx/ktx/KtxEtc1sOptions.ts diff --git a/packages/ktx/src/ktx/KtxOptions.ts b/src/ktx/ktx/KtxOptions.ts similarity index 100% rename from packages/ktx/src/ktx/KtxOptions.ts rename to src/ktx/ktx/KtxOptions.ts diff --git a/packages/ktx/src/ktx/KtxUastcOptions.ts b/src/ktx/ktx/KtxUastcOptions.ts similarity index 100% rename from packages/ktx/src/ktx/KtxUastcOptions.ts rename to src/ktx/ktx/KtxUastcOptions.ts diff --git a/packages/ktx/src/ktx/KtxUtility.ts b/src/ktx/ktx/KtxUtility.ts similarity index 100% rename from packages/ktx/src/ktx/KtxUtility.ts rename to src/ktx/ktx/KtxUtility.ts diff --git a/packages/ktx/src/ktx/external/README.md b/src/ktx/ktx/external/README.md similarity index 100% rename from packages/ktx/src/ktx/external/README.md rename to src/ktx/ktx/external/README.md diff --git a/packages/ktx/src/ktx/external/basis_encoder.cjs b/src/ktx/ktx/external/basis_encoder.cjs similarity index 100% rename from packages/ktx/src/ktx/external/basis_encoder.cjs rename to src/ktx/ktx/external/basis_encoder.cjs diff --git a/packages/ktx/src/ktx/external/basis_encoder.wasm b/src/ktx/ktx/external/basis_encoder.wasm similarity index 100% rename from packages/ktx/src/ktx/external/basis_encoder.wasm rename to src/ktx/ktx/external/basis_encoder.wasm diff --git a/packages/metadata/src/index.ts b/src/metadata/index.ts similarity index 100% rename from packages/metadata/src/index.ts rename to src/metadata/index.ts diff --git a/packages/metadata/src/metadata/ArrayValues.ts b/src/metadata/metadata/ArrayValues.ts similarity index 100% rename from packages/metadata/src/metadata/ArrayValues.ts rename to src/metadata/metadata/ArrayValues.ts diff --git a/packages/metadata/src/metadata/ClassProperties.ts b/src/metadata/metadata/ClassProperties.ts similarity index 95% rename from packages/metadata/src/metadata/ClassProperties.ts rename to src/metadata/metadata/ClassProperties.ts index 4792918d..6fca40f2 100644 --- a/packages/metadata/src/metadata/ClassProperties.ts +++ b/src/metadata/metadata/ClassProperties.ts @@ -1,6 +1,6 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; -import { ClassProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../structure"; import { MetadataTypes } from "./MetadataTypes"; import { MetadataComponentTypes } from "./MetadataComponentTypes"; diff --git a/packages/metadata/src/metadata/DefaultMetadataEntityModel.ts b/src/metadata/metadata/DefaultMetadataEntityModel.ts similarity index 96% rename from packages/metadata/src/metadata/DefaultMetadataEntityModel.ts rename to src/metadata/metadata/DefaultMetadataEntityModel.ts index 1a9f6cea..f64f9624 100644 --- a/packages/metadata/src/metadata/DefaultMetadataEntityModel.ts +++ b/src/metadata/metadata/DefaultMetadataEntityModel.ts @@ -1,4 +1,4 @@ -import { MetadataClass } from "@3d-tiles-tools/structure"; +import { MetadataClass } from "../../structure"; import { MetadataEntityModel } from "./MetadataEntityModel"; import { MetadataValues } from "./MetadataValues"; diff --git a/packages/metadata/src/metadata/DefaultPropertyModel.ts b/src/metadata/metadata/DefaultPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/DefaultPropertyModel.ts rename to src/metadata/metadata/DefaultPropertyModel.ts diff --git a/packages/metadata/src/metadata/DefaultPropertyTableModel.ts b/src/metadata/metadata/DefaultPropertyTableModel.ts similarity index 96% rename from packages/metadata/src/metadata/DefaultPropertyTableModel.ts rename to src/metadata/metadata/DefaultPropertyTableModel.ts index 3b24a596..22f1ce48 100644 --- a/packages/metadata/src/metadata/DefaultPropertyTableModel.ts +++ b/src/metadata/metadata/DefaultPropertyTableModel.ts @@ -1,5 +1,5 @@ -import { PropertyTableProperty } from "@3d-tiles-tools/structure"; -import { ClassProperty } from "@3d-tiles-tools/structure"; +import { PropertyTableProperty } from "../../structure"; +import { ClassProperty } from "../../structure"; import { MetadataEntityModel } from "./MetadataEntityModel"; import { MetadataError } from "./MetadataError"; diff --git a/packages/metadata/src/metadata/MetadataComponentTypes.ts b/src/metadata/metadata/MetadataComponentTypes.ts similarity index 100% rename from packages/metadata/src/metadata/MetadataComponentTypes.ts rename to src/metadata/metadata/MetadataComponentTypes.ts diff --git a/packages/metadata/src/metadata/MetadataEntityModel.ts b/src/metadata/metadata/MetadataEntityModel.ts similarity index 100% rename from packages/metadata/src/metadata/MetadataEntityModel.ts rename to src/metadata/metadata/MetadataEntityModel.ts diff --git a/packages/metadata/src/metadata/MetadataEntityModels.ts b/src/metadata/metadata/MetadataEntityModels.ts similarity index 94% rename from packages/metadata/src/metadata/MetadataEntityModels.ts rename to src/metadata/metadata/MetadataEntityModels.ts index b5f88b28..03a3595f 100644 --- a/packages/metadata/src/metadata/MetadataEntityModels.ts +++ b/src/metadata/metadata/MetadataEntityModels.ts @@ -1,7 +1,7 @@ -import { Schema } from "@3d-tiles-tools/structure"; -import { MetadataEntity } from "@3d-tiles-tools/structure"; -import { MetadataClass } from "@3d-tiles-tools/structure"; -import { MetadataEnum } from "@3d-tiles-tools/structure"; +import { Schema } from "../../structure"; +import { MetadataEntity } from "../../structure"; +import { MetadataClass } from "../../structure"; +import { MetadataEnum } from "../../structure"; import { DefaultMetadataEntityModel } from "./DefaultMetadataEntityModel"; import { MetadataEntityModel } from "./MetadataEntityModel"; diff --git a/packages/metadata/src/metadata/MetadataError.ts b/src/metadata/metadata/MetadataError.ts similarity index 100% rename from packages/metadata/src/metadata/MetadataError.ts rename to src/metadata/metadata/MetadataError.ts diff --git a/packages/metadata/src/metadata/MetadataTypes.ts b/src/metadata/metadata/MetadataTypes.ts similarity index 100% rename from packages/metadata/src/metadata/MetadataTypes.ts rename to src/metadata/metadata/MetadataTypes.ts diff --git a/packages/metadata/src/metadata/MetadataUtilities.ts b/src/metadata/metadata/MetadataUtilities.ts similarity index 96% rename from packages/metadata/src/metadata/MetadataUtilities.ts rename to src/metadata/metadata/MetadataUtilities.ts index 4be2acf0..ecade075 100644 --- a/packages/metadata/src/metadata/MetadataUtilities.ts +++ b/src/metadata/metadata/MetadataUtilities.ts @@ -1,8 +1,8 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; -import { Schema } from "@3d-tiles-tools/structure"; -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { MetadataEnum } from "@3d-tiles-tools/structure"; +import { Schema } from "../../structure"; +import { ClassProperty } from "../../structure"; +import { MetadataEnum } from "../../structure"; import { BinaryEnumInfo } from "./binary/BinaryEnumInfo"; diff --git a/packages/metadata/src/metadata/MetadataValues.ts b/src/metadata/metadata/MetadataValues.ts similarity index 97% rename from packages/metadata/src/metadata/MetadataValues.ts rename to src/metadata/metadata/MetadataValues.ts index 755a5a3e..a34454e8 100644 --- a/packages/metadata/src/metadata/MetadataValues.ts +++ b/src/metadata/metadata/MetadataValues.ts @@ -1,6 +1,6 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; -import { ClassProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../structure"; import { MetadataComponentTypes } from "./MetadataComponentTypes"; import { ArrayValues } from "./ArrayValues"; diff --git a/packages/metadata/src/metadata/PropertyModel.ts b/src/metadata/metadata/PropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/PropertyModel.ts rename to src/metadata/metadata/PropertyModel.ts diff --git a/packages/metadata/src/metadata/PropertyModels.ts b/src/metadata/metadata/PropertyModels.ts similarity index 100% rename from packages/metadata/src/metadata/PropertyModels.ts rename to src/metadata/metadata/PropertyModels.ts diff --git a/packages/metadata/src/metadata/PropertyTableModel.ts b/src/metadata/metadata/PropertyTableModel.ts similarity index 94% rename from packages/metadata/src/metadata/PropertyTableModel.ts rename to src/metadata/metadata/PropertyTableModel.ts index 6f7308db..591804ec 100644 --- a/packages/metadata/src/metadata/PropertyTableModel.ts +++ b/src/metadata/metadata/PropertyTableModel.ts @@ -1,5 +1,5 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { PropertyTableProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../structure"; +import { PropertyTableProperty } from "../../structure"; import { PropertyModel } from "./PropertyModel"; import { MetadataEntityModel } from "./MetadataEntityModel"; diff --git a/packages/metadata/src/metadata/PropertyTableModels.ts b/src/metadata/metadata/PropertyTableModels.ts similarity index 100% rename from packages/metadata/src/metadata/PropertyTableModels.ts rename to src/metadata/metadata/PropertyTableModels.ts diff --git a/packages/metadata/src/metadata/TableMetadataEntityModel.ts b/src/metadata/metadata/TableMetadataEntityModel.ts similarity index 98% rename from packages/metadata/src/metadata/TableMetadataEntityModel.ts rename to src/metadata/metadata/TableMetadataEntityModel.ts index 2eb2b817..becc0bfc 100644 --- a/packages/metadata/src/metadata/TableMetadataEntityModel.ts +++ b/src/metadata/metadata/TableMetadataEntityModel.ts @@ -1,4 +1,4 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; import { MetadataEntityModel } from "./MetadataEntityModel"; import { MetadataValues } from "./MetadataValues"; diff --git a/packages/metadata/src/metadata/binary/ArrayBuffers.ts b/src/metadata/metadata/binary/ArrayBuffers.ts similarity index 100% rename from packages/metadata/src/metadata/binary/ArrayBuffers.ts rename to src/metadata/metadata/binary/ArrayBuffers.ts diff --git a/packages/metadata/src/metadata/binary/BinaryEnumInfo.ts b/src/metadata/metadata/binary/BinaryEnumInfo.ts similarity index 100% rename from packages/metadata/src/metadata/binary/BinaryEnumInfo.ts rename to src/metadata/metadata/binary/BinaryEnumInfo.ts diff --git a/packages/metadata/src/metadata/binary/BinaryMetadata.ts b/src/metadata/metadata/binary/BinaryMetadata.ts similarity index 85% rename from packages/metadata/src/metadata/binary/BinaryMetadata.ts rename to src/metadata/metadata/binary/BinaryMetadata.ts index 1ca75f31..f685f7c0 100644 --- a/packages/metadata/src/metadata/binary/BinaryMetadata.ts +++ b/src/metadata/metadata/binary/BinaryMetadata.ts @@ -1,7 +1,7 @@ -import { BinaryBufferData } from "@3d-tiles-tools/base"; -import { BinaryBufferStructure } from "@3d-tiles-tools/base"; +import { BinaryBufferData } from "../../../base"; +import { BinaryBufferStructure } from "../../../base"; -import { MetadataClass } from "@3d-tiles-tools/structure"; +import { MetadataClass } from "../../../structure"; import { BinaryEnumInfo } from "./BinaryEnumInfo"; diff --git a/packages/metadata/src/metadata/binary/BinaryPropertyModels.ts b/src/metadata/metadata/binary/BinaryPropertyModels.ts similarity index 100% rename from packages/metadata/src/metadata/binary/BinaryPropertyModels.ts rename to src/metadata/metadata/binary/BinaryPropertyModels.ts diff --git a/packages/metadata/src/metadata/binary/BinaryPropertyTable.ts b/src/metadata/metadata/binary/BinaryPropertyTable.ts similarity index 86% rename from packages/metadata/src/metadata/binary/BinaryPropertyTable.ts rename to src/metadata/metadata/binary/BinaryPropertyTable.ts index a2095566..f963eb51 100644 --- a/packages/metadata/src/metadata/binary/BinaryPropertyTable.ts +++ b/src/metadata/metadata/binary/BinaryPropertyTable.ts @@ -1,4 +1,4 @@ -import { PropertyTable } from "@3d-tiles-tools/structure"; +import { PropertyTable } from "../../../structure"; import { BinaryMetadata } from "./BinaryMetadata"; diff --git a/packages/metadata/src/metadata/binary/BinaryPropertyTableBuilder.ts b/src/metadata/metadata/binary/BinaryPropertyTableBuilder.ts similarity index 95% rename from packages/metadata/src/metadata/binary/BinaryPropertyTableBuilder.ts rename to src/metadata/metadata/binary/BinaryPropertyTableBuilder.ts index dc99123d..a416a01b 100644 --- a/packages/metadata/src/metadata/binary/BinaryPropertyTableBuilder.ts +++ b/src/metadata/metadata/binary/BinaryPropertyTableBuilder.ts @@ -1,11 +1,11 @@ -import { BinaryBufferData } from "@3d-tiles-tools/base"; -import { BinaryBuffers } from "@3d-tiles-tools/base"; +import { BinaryBufferData } from "../../../base"; +import { BinaryBuffers } from "../../../base"; -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { MetadataClass } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; -import { PropertyTable } from "@3d-tiles-tools/structure"; -import { PropertyTableProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../../structure"; +import { MetadataClass } from "../../../structure"; +import { Schema } from "../../../structure"; +import { PropertyTable } from "../../../structure"; +import { PropertyTableProperty } from "../../../structure"; import { MetadataError } from "../MetadataError"; diff --git a/packages/metadata/src/metadata/binary/BinaryPropertyTableModel.ts b/src/metadata/metadata/binary/BinaryPropertyTableModel.ts similarity index 97% rename from packages/metadata/src/metadata/binary/BinaryPropertyTableModel.ts rename to src/metadata/metadata/binary/BinaryPropertyTableModel.ts index ee269db7..f6472900 100644 --- a/packages/metadata/src/metadata/binary/BinaryPropertyTableModel.ts +++ b/src/metadata/metadata/binary/BinaryPropertyTableModel.ts @@ -1,5 +1,5 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { PropertyTableProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../../structure"; +import { PropertyTableProperty } from "../../../structure"; import { BinaryPropertyModels } from "./BinaryPropertyModels"; import { TableMetadataEntityModel } from "../TableMetadataEntityModel"; diff --git a/packages/metadata/src/metadata/binary/BinaryPropertyTables.ts b/src/metadata/metadata/binary/BinaryPropertyTables.ts similarity index 96% rename from packages/metadata/src/metadata/binary/BinaryPropertyTables.ts rename to src/metadata/metadata/binary/BinaryPropertyTables.ts index 0561c774..ecf2e538 100644 --- a/packages/metadata/src/metadata/binary/BinaryPropertyTables.ts +++ b/src/metadata/metadata/binary/BinaryPropertyTables.ts @@ -1,15 +1,15 @@ -import { defined } from "@3d-tiles-tools/base"; -import { defaultValue } from "@3d-tiles-tools/base"; - -import { BinaryBufferData } from "@3d-tiles-tools/base"; -import { BinaryBuffers } from "@3d-tiles-tools/base"; - -import { PropertyTable } from "@3d-tiles-tools/structure"; -import { PropertyTableProperty } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; -import { MetadataClass } from "@3d-tiles-tools/structure"; -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { MetadataEnum } from "@3d-tiles-tools/structure"; +import { defined } from "../../../base"; +import { defaultValue } from "../../../base"; + +import { BinaryBufferData } from "../../../base"; +import { BinaryBuffers } from "../../../base"; + +import { PropertyTable } from "../../../structure"; +import { PropertyTableProperty } from "../../../structure"; +import { Schema } from "../../../structure"; +import { MetadataClass } from "../../../structure"; +import { ClassProperty } from "../../../structure"; +import { MetadataEnum } from "../../../structure"; import { BinaryPropertyTable } from "./BinaryPropertyTable"; import { BinaryMetadata } from "./BinaryMetadata"; diff --git a/packages/metadata/src/metadata/binary/BooleanArrayPropertyModel.ts b/src/metadata/metadata/binary/BooleanArrayPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/binary/BooleanArrayPropertyModel.ts rename to src/metadata/metadata/binary/BooleanArrayPropertyModel.ts diff --git a/packages/metadata/src/metadata/binary/BooleanPropertyModel.ts b/src/metadata/metadata/binary/BooleanPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/binary/BooleanPropertyModel.ts rename to src/metadata/metadata/binary/BooleanPropertyModel.ts diff --git a/packages/metadata/src/metadata/binary/NumericArrayPropertyModel.ts b/src/metadata/metadata/binary/NumericArrayPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/binary/NumericArrayPropertyModel.ts rename to src/metadata/metadata/binary/NumericArrayPropertyModel.ts diff --git a/packages/metadata/src/metadata/binary/NumericBuffers.ts b/src/metadata/metadata/binary/NumericBuffers.ts similarity index 100% rename from packages/metadata/src/metadata/binary/NumericBuffers.ts rename to src/metadata/metadata/binary/NumericBuffers.ts diff --git a/packages/metadata/src/metadata/binary/NumericPropertyModel.ts b/src/metadata/metadata/binary/NumericPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/binary/NumericPropertyModel.ts rename to src/metadata/metadata/binary/NumericPropertyModel.ts diff --git a/packages/metadata/src/metadata/binary/StringArrayPropertyModel.ts b/src/metadata/metadata/binary/StringArrayPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/binary/StringArrayPropertyModel.ts rename to src/metadata/metadata/binary/StringArrayPropertyModel.ts diff --git a/packages/metadata/src/metadata/binary/StringPropertyModel.ts b/src/metadata/metadata/binary/StringPropertyModel.ts similarity index 100% rename from packages/metadata/src/metadata/binary/StringPropertyModel.ts rename to src/metadata/metadata/binary/StringPropertyModel.ts diff --git a/packages/structure/src/index.ts b/src/structure/index.ts similarity index 100% rename from packages/structure/src/index.ts rename to src/structure/index.ts diff --git a/packages/structure/src/structure/Asset.ts b/src/structure/structure/Asset.ts similarity index 100% rename from packages/structure/src/structure/Asset.ts rename to src/structure/structure/Asset.ts diff --git a/packages/structure/src/structure/Availability.ts b/src/structure/structure/Availability.ts similarity index 100% rename from packages/structure/src/structure/Availability.ts rename to src/structure/structure/Availability.ts diff --git a/packages/structure/src/structure/BoundingVolume.ts b/src/structure/structure/BoundingVolume.ts similarity index 100% rename from packages/structure/src/structure/BoundingVolume.ts rename to src/structure/structure/BoundingVolume.ts diff --git a/packages/structure/src/structure/BufferObject.ts b/src/structure/structure/BufferObject.ts similarity index 100% rename from packages/structure/src/structure/BufferObject.ts rename to src/structure/structure/BufferObject.ts diff --git a/packages/structure/src/structure/BufferView.ts b/src/structure/structure/BufferView.ts similarity index 100% rename from packages/structure/src/structure/BufferView.ts rename to src/structure/structure/BufferView.ts diff --git a/packages/structure/src/structure/Content.ts b/src/structure/structure/Content.ts similarity index 100% rename from packages/structure/src/structure/Content.ts rename to src/structure/structure/Content.ts diff --git a/packages/structure/src/structure/Group.ts b/src/structure/structure/Group.ts similarity index 100% rename from packages/structure/src/structure/Group.ts rename to src/structure/structure/Group.ts diff --git a/packages/structure/src/structure/Metadata/ClassProperty.ts b/src/structure/structure/Metadata/ClassProperty.ts similarity index 100% rename from packages/structure/src/structure/Metadata/ClassProperty.ts rename to src/structure/structure/Metadata/ClassProperty.ts diff --git a/packages/structure/src/structure/Metadata/EnumValue.ts b/src/structure/structure/Metadata/EnumValue.ts similarity index 100% rename from packages/structure/src/structure/Metadata/EnumValue.ts rename to src/structure/structure/Metadata/EnumValue.ts diff --git a/packages/structure/src/structure/Metadata/MetadataClass.ts b/src/structure/structure/Metadata/MetadataClass.ts similarity index 100% rename from packages/structure/src/structure/Metadata/MetadataClass.ts rename to src/structure/structure/Metadata/MetadataClass.ts diff --git a/packages/structure/src/structure/Metadata/MetadataEnum.ts b/src/structure/structure/Metadata/MetadataEnum.ts similarity index 100% rename from packages/structure/src/structure/Metadata/MetadataEnum.ts rename to src/structure/structure/Metadata/MetadataEnum.ts diff --git a/packages/structure/src/structure/Metadata/Schema.ts b/src/structure/structure/Metadata/Schema.ts similarity index 100% rename from packages/structure/src/structure/Metadata/Schema.ts rename to src/structure/structure/Metadata/Schema.ts diff --git a/packages/structure/src/structure/MetadataEntity.ts b/src/structure/structure/MetadataEntity.ts similarity index 100% rename from packages/structure/src/structure/MetadataEntity.ts rename to src/structure/structure/MetadataEntity.ts diff --git a/packages/structure/src/structure/Properties.ts b/src/structure/structure/Properties.ts similarity index 100% rename from packages/structure/src/structure/Properties.ts rename to src/structure/structure/Properties.ts diff --git a/packages/structure/src/structure/PropertyTable.ts b/src/structure/structure/PropertyTable.ts similarity index 100% rename from packages/structure/src/structure/PropertyTable.ts rename to src/structure/structure/PropertyTable.ts diff --git a/packages/structure/src/structure/PropertyTableProperty.ts b/src/structure/structure/PropertyTableProperty.ts similarity index 100% rename from packages/structure/src/structure/PropertyTableProperty.ts rename to src/structure/structure/PropertyTableProperty.ts diff --git a/packages/structure/src/structure/RootProperty.ts b/src/structure/structure/RootProperty.ts similarity index 100% rename from packages/structure/src/structure/RootProperty.ts rename to src/structure/structure/RootProperty.ts diff --git a/packages/structure/src/structure/Statistics.ts b/src/structure/structure/Statistics.ts similarity index 100% rename from packages/structure/src/structure/Statistics.ts rename to src/structure/structure/Statistics.ts diff --git a/packages/structure/src/structure/StatisticsClass.ts b/src/structure/structure/StatisticsClass.ts similarity index 100% rename from packages/structure/src/structure/StatisticsClass.ts rename to src/structure/structure/StatisticsClass.ts diff --git a/packages/structure/src/structure/StatisticsClassProperty.ts b/src/structure/structure/StatisticsClassProperty.ts similarity index 100% rename from packages/structure/src/structure/StatisticsClassProperty.ts rename to src/structure/structure/StatisticsClassProperty.ts diff --git a/packages/structure/src/structure/Style/Style.ts b/src/structure/structure/Style/Style.ts similarity index 100% rename from packages/structure/src/structure/Style/Style.ts rename to src/structure/structure/Style/Style.ts diff --git a/packages/structure/src/structure/Subtree.ts b/src/structure/structure/Subtree.ts similarity index 100% rename from packages/structure/src/structure/Subtree.ts rename to src/structure/structure/Subtree.ts diff --git a/packages/structure/src/structure/Subtrees.ts b/src/structure/structure/Subtrees.ts similarity index 100% rename from packages/structure/src/structure/Subtrees.ts rename to src/structure/structure/Subtrees.ts diff --git a/packages/structure/src/structure/Tile.ts b/src/structure/structure/Tile.ts similarity index 100% rename from packages/structure/src/structure/Tile.ts rename to src/structure/structure/Tile.ts diff --git a/packages/structure/src/structure/TileFormats/B3dmFeatureTable.ts b/src/structure/structure/TileFormats/B3dmFeatureTable.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/B3dmFeatureTable.ts rename to src/structure/structure/TileFormats/B3dmFeatureTable.ts diff --git a/packages/structure/src/structure/TileFormats/BatchTable.ts b/src/structure/structure/TileFormats/BatchTable.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/BatchTable.ts rename to src/structure/structure/TileFormats/BatchTable.ts diff --git a/packages/structure/src/structure/TileFormats/BatchTableBinaryBodyReference.ts b/src/structure/structure/TileFormats/BatchTableBinaryBodyReference.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/BatchTableBinaryBodyReference.ts rename to src/structure/structure/TileFormats/BatchTableBinaryBodyReference.ts diff --git a/packages/structure/src/structure/TileFormats/BinaryBodyOffset.ts b/src/structure/structure/TileFormats/BinaryBodyOffset.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/BinaryBodyOffset.ts rename to src/structure/structure/TileFormats/BinaryBodyOffset.ts diff --git a/packages/structure/src/structure/TileFormats/FeatureTable.ts b/src/structure/structure/TileFormats/FeatureTable.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/FeatureTable.ts rename to src/structure/structure/TileFormats/FeatureTable.ts diff --git a/packages/structure/src/structure/TileFormats/FeatureTableBinaryBodyReference.ts b/src/structure/structure/TileFormats/FeatureTableBinaryBodyReference.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/FeatureTableBinaryBodyReference.ts rename to src/structure/structure/TileFormats/FeatureTableBinaryBodyReference.ts diff --git a/packages/structure/src/structure/TileFormats/I3dmFeatureTable.ts b/src/structure/structure/TileFormats/I3dmFeatureTable.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/I3dmFeatureTable.ts rename to src/structure/structure/TileFormats/I3dmFeatureTable.ts diff --git a/packages/structure/src/structure/TileFormats/PntsFeatureTable.ts b/src/structure/structure/TileFormats/PntsFeatureTable.ts similarity index 100% rename from packages/structure/src/structure/TileFormats/PntsFeatureTable.ts rename to src/structure/structure/TileFormats/PntsFeatureTable.ts diff --git a/packages/structure/src/structure/TileImplicitTiling.ts b/src/structure/structure/TileImplicitTiling.ts similarity index 100% rename from packages/structure/src/structure/TileImplicitTiling.ts rename to src/structure/structure/TileImplicitTiling.ts diff --git a/packages/structure/src/structure/Tileset.ts b/src/structure/structure/Tileset.ts similarity index 100% rename from packages/structure/src/structure/Tileset.ts rename to src/structure/structure/Tileset.ts diff --git a/packages/structure/src/structure/extensions/BoundingVolumeS2.ts b/src/structure/structure/extensions/BoundingVolumeS2.ts similarity index 100% rename from packages/structure/src/structure/extensions/BoundingVolumeS2.ts rename to src/structure/structure/extensions/BoundingVolumeS2.ts diff --git a/packages/tilesets/src/implicitTiling/AvailabilityInfo.ts b/src/tilesets/implicitTiling/AvailabilityInfo.ts similarity index 100% rename from packages/tilesets/src/implicitTiling/AvailabilityInfo.ts rename to src/tilesets/implicitTiling/AvailabilityInfo.ts diff --git a/packages/tilesets/src/implicitTiling/AvailabilityInfos.ts b/src/tilesets/implicitTiling/AvailabilityInfos.ts similarity index 94% rename from packages/tilesets/src/implicitTiling/AvailabilityInfos.ts rename to src/tilesets/implicitTiling/AvailabilityInfos.ts index c3492a11..bed54d45 100644 --- a/packages/tilesets/src/implicitTiling/AvailabilityInfos.ts +++ b/src/tilesets/implicitTiling/AvailabilityInfos.ts @@ -1,7 +1,7 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; -import { Availability } from "@3d-tiles-tools/structure"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; +import { Availability } from "../../structure"; +import { TileImplicitTiling } from "../../structure"; import { AvailabilityInfo } from "./AvailabilityInfo"; import { BufferAvailabilityInfo } from "./BufferAvailabilityInfo"; diff --git a/packages/tilesets/src/implicitTiling/BinarySubtreeData.ts b/src/tilesets/implicitTiling/BinarySubtreeData.ts similarity index 80% rename from packages/tilesets/src/implicitTiling/BinarySubtreeData.ts rename to src/tilesets/implicitTiling/BinarySubtreeData.ts index 0ed6c58e..e121623c 100644 --- a/packages/tilesets/src/implicitTiling/BinarySubtreeData.ts +++ b/src/tilesets/implicitTiling/BinarySubtreeData.ts @@ -1,7 +1,7 @@ -import { BinaryBufferData } from "@3d-tiles-tools/base"; -import { BinaryBufferStructure } from "@3d-tiles-tools/base"; +import { BinaryBufferData } from "../../base"; +import { BinaryBufferStructure } from "../../base"; -import { Subtree } from "@3d-tiles-tools/structure"; +import { Subtree } from "../../structure"; /** * An interface summarizing the binary data that is associated diff --git a/packages/tilesets/src/implicitTiling/BinarySubtreeDataResolver.ts b/src/tilesets/implicitTiling/BinarySubtreeDataResolver.ts similarity index 92% rename from packages/tilesets/src/implicitTiling/BinarySubtreeDataResolver.ts rename to src/tilesets/implicitTiling/BinarySubtreeDataResolver.ts index 523852b2..6ae6bd9c 100644 --- a/packages/tilesets/src/implicitTiling/BinarySubtreeDataResolver.ts +++ b/src/tilesets/implicitTiling/BinarySubtreeDataResolver.ts @@ -1,10 +1,10 @@ -import { Buffers } from "@3d-tiles-tools/base"; -import { ResourceResolver } from "@3d-tiles-tools/base"; -import { BinaryBufferDataResolver } from "@3d-tiles-tools/base"; -import { BinaryBufferStructure } from "@3d-tiles-tools/base"; -import { BinaryDataError } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; +import { ResourceResolver } from "../../base"; +import { BinaryBufferDataResolver } from "../../base"; +import { BinaryBufferStructure } from "../../base"; +import { BinaryDataError } from "../../base"; -import { Subtree } from "@3d-tiles-tools/structure"; +import { Subtree } from "../../structure"; import { BinarySubtreeData } from "./BinarySubtreeData"; import { ImplicitTilingError } from "./ImplicitTilingError"; diff --git a/packages/tilesets/src/implicitTiling/BufferAvailabilityInfo.ts b/src/tilesets/implicitTiling/BufferAvailabilityInfo.ts similarity index 100% rename from packages/tilesets/src/implicitTiling/BufferAvailabilityInfo.ts rename to src/tilesets/implicitTiling/BufferAvailabilityInfo.ts diff --git a/packages/tilesets/src/implicitTiling/ConstantAvailabilityInfo.ts b/src/tilesets/implicitTiling/ConstantAvailabilityInfo.ts similarity index 100% rename from packages/tilesets/src/implicitTiling/ConstantAvailabilityInfo.ts rename to src/tilesets/implicitTiling/ConstantAvailabilityInfo.ts diff --git a/packages/tilesets/src/implicitTiling/ImplicitTilingError.ts b/src/tilesets/implicitTiling/ImplicitTilingError.ts similarity index 100% rename from packages/tilesets/src/implicitTiling/ImplicitTilingError.ts rename to src/tilesets/implicitTiling/ImplicitTilingError.ts diff --git a/packages/tilesets/src/implicitTiling/ImplicitTilings.ts b/src/tilesets/implicitTiling/ImplicitTilings.ts similarity index 96% rename from packages/tilesets/src/implicitTiling/ImplicitTilings.ts rename to src/tilesets/implicitTiling/ImplicitTilings.ts index f0620967..7a017ed9 100644 --- a/packages/tilesets/src/implicitTiling/ImplicitTilings.ts +++ b/src/tilesets/implicitTiling/ImplicitTilings.ts @@ -1,10 +1,10 @@ -import { TreeCoordinates } from "@3d-tiles-tools/base"; -import { Quadtrees } from "@3d-tiles-tools/base"; -import { QuadtreeCoordinates } from "@3d-tiles-tools/base"; -import { Octrees } from "@3d-tiles-tools/base"; -import { OctreeCoordinates } from "@3d-tiles-tools/base"; +import { TreeCoordinates } from "../../base"; +import { Quadtrees } from "../../base"; +import { QuadtreeCoordinates } from "../../base"; +import { Octrees } from "../../base"; +import { OctreeCoordinates } from "../../base"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; +import { TileImplicitTiling } from "../../structure"; import { TemplateUris } from "./TemplateUris"; import { ImplicitTilingError } from "./ImplicitTilingError"; diff --git a/packages/tilesets/src/implicitTiling/SubtreeInfo.ts b/src/tilesets/implicitTiling/SubtreeInfo.ts similarity index 100% rename from packages/tilesets/src/implicitTiling/SubtreeInfo.ts rename to src/tilesets/implicitTiling/SubtreeInfo.ts diff --git a/packages/tilesets/src/implicitTiling/SubtreeInfos.ts b/src/tilesets/implicitTiling/SubtreeInfos.ts similarity index 96% rename from packages/tilesets/src/implicitTiling/SubtreeInfos.ts rename to src/tilesets/implicitTiling/SubtreeInfos.ts index 52620d78..d3daab00 100644 --- a/packages/tilesets/src/implicitTiling/SubtreeInfos.ts +++ b/src/tilesets/implicitTiling/SubtreeInfos.ts @@ -1,7 +1,7 @@ -import { ResourceResolver } from "@3d-tiles-tools/base"; +import { ResourceResolver } from "../../base"; -import { Subtree } from "@3d-tiles-tools/structure"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; +import { Subtree } from "../../structure"; +import { TileImplicitTiling } from "../../structure"; import { SubtreeInfo } from "./SubtreeInfo"; import { AvailabilityInfos } from "./AvailabilityInfos"; diff --git a/packages/tilesets/src/implicitTiling/TemplateUris.ts b/src/tilesets/implicitTiling/TemplateUris.ts similarity index 95% rename from packages/tilesets/src/implicitTiling/TemplateUris.ts rename to src/tilesets/implicitTiling/TemplateUris.ts index e4fd1e1d..3ec7adaf 100644 --- a/packages/tilesets/src/implicitTiling/TemplateUris.ts +++ b/src/tilesets/implicitTiling/TemplateUris.ts @@ -1,5 +1,5 @@ -import { OctreeCoordinates } from "@3d-tiles-tools/base"; -import { QuadtreeCoordinates } from "@3d-tiles-tools/base"; +import { OctreeCoordinates } from "../../base"; +import { QuadtreeCoordinates } from "../../base"; /** * Method related to template URIs for implicit tiling. diff --git a/packages/tilesets/src/index.ts b/src/tilesets/index.ts similarity index 100% rename from packages/tilesets/src/index.ts rename to src/tilesets/index.ts diff --git a/packages/tilesets/src/packages/ArchiveFunctions3tz.ts b/src/tilesets/packages/ArchiveFunctions3tz.ts similarity index 100% rename from packages/tilesets/src/packages/ArchiveFunctions3tz.ts rename to src/tilesets/packages/ArchiveFunctions3tz.ts diff --git a/packages/tilesets/src/packages/IndexBuilder.ts b/src/tilesets/packages/IndexBuilder.ts similarity index 100% rename from packages/tilesets/src/packages/IndexBuilder.ts rename to src/tilesets/packages/IndexBuilder.ts diff --git a/packages/tilesets/src/packages/IndexBuilderEntry.ts b/src/tilesets/packages/IndexBuilderEntry.ts similarity index 100% rename from packages/tilesets/src/packages/IndexBuilderEntry.ts rename to src/tilesets/packages/IndexBuilderEntry.ts diff --git a/packages/tilesets/src/packages/IndexEntry.ts b/src/tilesets/packages/IndexEntry.ts similarity index 100% rename from packages/tilesets/src/packages/IndexEntry.ts rename to src/tilesets/packages/IndexEntry.ts diff --git a/packages/tilesets/src/packages/TableStructureValidator.ts b/src/tilesets/packages/TableStructureValidator.ts similarity index 100% rename from packages/tilesets/src/packages/TableStructureValidator.ts rename to src/tilesets/packages/TableStructureValidator.ts diff --git a/packages/tilesets/src/packages/TilesetSource3dtiles.ts b/src/tilesets/packages/TilesetSource3dtiles.ts similarity index 97% rename from packages/tilesets/src/packages/TilesetSource3dtiles.ts rename to src/tilesets/packages/TilesetSource3dtiles.ts index c8be390e..65278165 100644 --- a/packages/tilesets/src/packages/TilesetSource3dtiles.ts +++ b/src/tilesets/packages/TilesetSource3dtiles.ts @@ -1,7 +1,7 @@ import { Database } from "better-sqlite3"; import DatabaseConstructor from "better-sqlite3"; -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; import { TilesetSource } from "../tilesetData/TilesetSource"; import { TilesetError } from "../tilesetData/TilesetError"; diff --git a/packages/tilesets/src/packages/TilesetSource3tz.ts b/src/tilesets/packages/TilesetSource3tz.ts similarity index 98% rename from packages/tilesets/src/packages/TilesetSource3tz.ts rename to src/tilesets/packages/TilesetSource3tz.ts index c8d03fbe..e8cdb154 100644 --- a/packages/tilesets/src/packages/TilesetSource3tz.ts +++ b/src/tilesets/packages/TilesetSource3tz.ts @@ -1,7 +1,7 @@ import fs from "fs"; import zlib from "zlib"; -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; import { TilesetSource } from "../tilesetData/TilesetSource"; import { TilesetError } from "../tilesetData/TilesetError"; diff --git a/packages/tilesets/src/packages/TilesetTarget3dtiles.ts b/src/tilesets/packages/TilesetTarget3dtiles.ts similarity index 100% rename from packages/tilesets/src/packages/TilesetTarget3dtiles.ts rename to src/tilesets/packages/TilesetTarget3dtiles.ts diff --git a/packages/tilesets/src/packages/TilesetTarget3tz.ts b/src/tilesets/packages/TilesetTarget3tz.ts similarity index 100% rename from packages/tilesets/src/packages/TilesetTarget3tz.ts rename to src/tilesets/packages/TilesetTarget3tz.ts diff --git a/packages/tilesets/src/packages/ZipToPackage.ts b/src/tilesets/packages/ZipToPackage.ts similarity index 98% rename from packages/tilesets/src/packages/ZipToPackage.ts rename to src/tilesets/packages/ZipToPackage.ts index 787999ef..0e33db5f 100644 --- a/packages/tilesets/src/packages/ZipToPackage.ts +++ b/src/tilesets/packages/ZipToPackage.ts @@ -1,6 +1,6 @@ import StreamZip from "node-stream-zip"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; import { TilesetTargets } from "../tilesetData/TilesetTargets"; import { Tilesets } from "../tilesets/Tilesets"; diff --git a/packages/tilesets/src/tileFormats/CompositeTileData.ts b/src/tilesets/tileFormats/CompositeTileData.ts similarity index 100% rename from packages/tilesets/src/tileFormats/CompositeTileData.ts rename to src/tilesets/tileFormats/CompositeTileData.ts diff --git a/packages/tilesets/src/tileFormats/Header.ts b/src/tilesets/tileFormats/Header.ts similarity index 100% rename from packages/tilesets/src/tileFormats/Header.ts rename to src/tilesets/tileFormats/Header.ts diff --git a/packages/tilesets/src/tileFormats/Table.ts b/src/tilesets/tileFormats/Table.ts similarity index 100% rename from packages/tilesets/src/tileFormats/Table.ts rename to src/tilesets/tileFormats/Table.ts diff --git a/packages/tilesets/src/tileFormats/TileData.ts b/src/tilesets/tileFormats/TileData.ts similarity index 100% rename from packages/tilesets/src/tileFormats/TileData.ts rename to src/tilesets/tileFormats/TileData.ts diff --git a/packages/tilesets/src/tileFormats/TileDataLayouts.ts b/src/tilesets/tileFormats/TileDataLayouts.ts similarity index 99% rename from packages/tilesets/src/tileFormats/TileDataLayouts.ts rename to src/tilesets/tileFormats/TileDataLayouts.ts index f7f8dfe4..79c7956c 100644 --- a/packages/tilesets/src/tileFormats/TileDataLayouts.ts +++ b/src/tilesets/tileFormats/TileDataLayouts.ts @@ -1,4 +1,4 @@ -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; import { TileFormatError } from "./TileFormatError"; diff --git a/packages/tilesets/src/tileFormats/TileFormatError.ts b/src/tilesets/tileFormats/TileFormatError.ts similarity index 100% rename from packages/tilesets/src/tileFormats/TileFormatError.ts rename to src/tilesets/tileFormats/TileFormatError.ts diff --git a/packages/tilesets/src/tileFormats/TileFormats.ts b/src/tilesets/tileFormats/TileFormats.ts similarity index 98% rename from packages/tilesets/src/tileFormats/TileFormats.ts rename to src/tilesets/tileFormats/TileFormats.ts index ca1ba4e4..5b4d0022 100644 --- a/packages/tilesets/src/tileFormats/TileFormats.ts +++ b/src/tilesets/tileFormats/TileFormats.ts @@ -1,8 +1,8 @@ -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; -import { B3dmFeatureTable } from "@3d-tiles-tools/structure"; -import { BatchTable } from "@3d-tiles-tools/structure"; -import { I3dmFeatureTable } from "@3d-tiles-tools/structure"; +import { B3dmFeatureTable } from "../../structure"; +import { BatchTable } from "../../structure"; +import { I3dmFeatureTable } from "../../structure"; import { CompositeTileData } from "./CompositeTileData"; import { TileData } from "./TileData"; diff --git a/packages/tilesets/src/tileTableData/AttributeCompression.ts b/src/tilesets/tileTableData/AttributeCompression.ts similarity index 100% rename from packages/tilesets/src/tileTableData/AttributeCompression.ts rename to src/tilesets/tileTableData/AttributeCompression.ts diff --git a/packages/tilesets/src/tileTableData/BatchTables.ts b/src/tilesets/tileTableData/BatchTables.ts similarity index 95% rename from packages/tilesets/src/tileTableData/BatchTables.ts rename to src/tilesets/tileTableData/BatchTables.ts index e4042332..109a7072 100644 --- a/packages/tilesets/src/tileTableData/BatchTables.ts +++ b/src/tilesets/tileTableData/BatchTables.ts @@ -1,4 +1,4 @@ -import { BatchTable } from "@3d-tiles-tools/structure"; +import { BatchTable } from "../../structure"; /** * Internal uutility methods related to the migration of batch tables diff --git a/packages/tilesets/src/tileTableData/Colors.ts b/src/tilesets/tileTableData/Colors.ts similarity index 100% rename from packages/tilesets/src/tileTableData/Colors.ts rename to src/tilesets/tileTableData/Colors.ts diff --git a/packages/tilesets/src/tileTableData/TileTableData.ts b/src/tilesets/tileTableData/TileTableData.ts similarity index 96% rename from packages/tilesets/src/tileTableData/TileTableData.ts rename to src/tilesets/tileTableData/TileTableData.ts index 1d598440..79ab9bb5 100644 --- a/packages/tilesets/src/tileTableData/TileTableData.ts +++ b/src/tilesets/tileTableData/TileTableData.ts @@ -1,14 +1,14 @@ -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { PropertyModel } from "@3d-tiles-tools/metadata"; -import { PropertyModels } from "@3d-tiles-tools/metadata"; -import { NumericBuffers } from "@3d-tiles-tools/metadata"; -import { NumericPropertyModel } from "@3d-tiles-tools/metadata"; +import { PropertyModel } from "../../metadata"; +import { PropertyModels } from "../../metadata"; +import { NumericBuffers } from "../../metadata"; +import { NumericPropertyModel } from "../../metadata"; -import { BatchTableBinaryBodyReference } from "@3d-tiles-tools/structure"; -import { BinaryBodyOffset } from "@3d-tiles-tools/structure"; -import { I3dmFeatureTable } from "@3d-tiles-tools/structure"; -import { PntsFeatureTable } from "@3d-tiles-tools/structure"; +import { BatchTableBinaryBodyReference } from "../../structure"; +import { BinaryBodyOffset } from "../../structure"; +import { I3dmFeatureTable } from "../../structure"; +import { PntsFeatureTable } from "../../structure"; import { TileFormatError } from "../tileFormats/TileFormatError"; diff --git a/packages/tilesets/src/tileTableData/TileTableDataI3dm.ts b/src/tilesets/tileTableData/TileTableDataI3dm.ts similarity index 99% rename from packages/tilesets/src/tileTableData/TileTableDataI3dm.ts rename to src/tilesets/tileTableData/TileTableDataI3dm.ts index 84cd5b17..067eec81 100644 --- a/packages/tilesets/src/tileTableData/TileTableDataI3dm.ts +++ b/src/tilesets/tileTableData/TileTableDataI3dm.ts @@ -1,6 +1,6 @@ -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { I3dmFeatureTable } from "@3d-tiles-tools/structure"; +import { I3dmFeatureTable } from "../../structure"; import { TileTableData } from "./TileTableData"; import { VecMath } from "./VecMath"; diff --git a/packages/tilesets/src/tileTableData/TileTableDataPnts.ts b/src/tilesets/tileTableData/TileTableDataPnts.ts similarity index 98% rename from packages/tilesets/src/tileTableData/TileTableDataPnts.ts rename to src/tilesets/tileTableData/TileTableDataPnts.ts index e23692e6..5f7dccc1 100644 --- a/packages/tilesets/src/tileTableData/TileTableDataPnts.ts +++ b/src/tilesets/tileTableData/TileTableDataPnts.ts @@ -1,6 +1,6 @@ -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { PntsFeatureTable } from "@3d-tiles-tools/structure"; +import { PntsFeatureTable } from "../../structure"; import { TileTableData } from "./TileTableData"; import { AttributeCompression } from "./AttributeCompression"; diff --git a/packages/tilesets/src/tileTableData/VecMath.ts b/src/tilesets/tileTableData/VecMath.ts similarity index 99% rename from packages/tilesets/src/tileTableData/VecMath.ts rename to src/tilesets/tileTableData/VecMath.ts index 683fa53c..e2032357 100644 --- a/packages/tilesets/src/tileTableData/VecMath.ts +++ b/src/tilesets/tileTableData/VecMath.ts @@ -5,7 +5,7 @@ import { Matrix4 } from "cesium"; import { Cartesian3 } from "cesium"; import { Quaternion } from "cesium"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { DeveloperError } from "../../base"; /** * Vector math utility functions. diff --git a/packages/tilesets/src/tilesetData/TilesetEntry.ts b/src/tilesets/tilesetData/TilesetEntry.ts similarity index 100% rename from packages/tilesets/src/tilesetData/TilesetEntry.ts rename to src/tilesets/tilesetData/TilesetEntry.ts diff --git a/packages/tilesets/src/tilesetData/TilesetError.ts b/src/tilesets/tilesetData/TilesetError.ts similarity index 100% rename from packages/tilesets/src/tilesetData/TilesetError.ts rename to src/tilesets/tilesetData/TilesetError.ts diff --git a/packages/tilesets/src/tilesetData/TilesetInMemory.ts b/src/tilesets/tilesetData/TilesetInMemory.ts similarity index 100% rename from packages/tilesets/src/tilesetData/TilesetInMemory.ts rename to src/tilesets/tilesetData/TilesetInMemory.ts diff --git a/packages/tilesets/src/tilesetData/TilesetSource.ts b/src/tilesets/tilesetData/TilesetSource.ts similarity index 100% rename from packages/tilesets/src/tilesetData/TilesetSource.ts rename to src/tilesets/tilesetData/TilesetSource.ts diff --git a/packages/tilesets/src/tilesetData/TilesetSourceFs.ts b/src/tilesets/tilesetData/TilesetSourceFs.ts similarity index 94% rename from packages/tilesets/src/tilesetData/TilesetSourceFs.ts rename to src/tilesets/tilesetData/TilesetSourceFs.ts index 1a5f25e3..b2a8138c 100644 --- a/packages/tilesets/src/tilesetData/TilesetSourceFs.ts +++ b/src/tilesets/tilesetData/TilesetSourceFs.ts @@ -1,8 +1,8 @@ import fs from "fs"; import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; -import { Iterables } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; +import { Iterables } from "../../base"; import { TilesetSource } from "./TilesetSource"; import { TilesetError } from "./TilesetError"; diff --git a/packages/tilesets/src/tilesetData/TilesetSourceResourceResolver.ts b/src/tilesets/tilesetData/TilesetSourceResourceResolver.ts similarity index 91% rename from packages/tilesets/src/tilesetData/TilesetSourceResourceResolver.ts rename to src/tilesets/tilesetData/TilesetSourceResourceResolver.ts index 746ccc32..12f8ad97 100644 --- a/packages/tilesets/src/tilesetData/TilesetSourceResourceResolver.ts +++ b/src/tilesets/tilesetData/TilesetSourceResourceResolver.ts @@ -1,6 +1,6 @@ -import { Paths } from "@3d-tiles-tools/base"; -import { Uris } from "@3d-tiles-tools/base"; -import { ResourceResolver } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; +import { Uris } from "../../base"; +import { ResourceResolver } from "../../base"; import { TilesetSource } from "../tilesetData/TilesetSource"; diff --git a/packages/tilesets/src/tilesetData/TilesetSources.ts b/src/tilesets/tilesetData/TilesetSources.ts similarity index 96% rename from packages/tilesets/src/tilesetData/TilesetSources.ts rename to src/tilesets/tilesetData/TilesetSources.ts index 26e31e76..aa0f19e7 100644 --- a/packages/tilesets/src/tilesetData/TilesetSources.ts +++ b/src/tilesets/tilesetData/TilesetSources.ts @@ -1,6 +1,6 @@ import path from "path"; -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; import { TilesetSource3tz } from "../packages/TilesetSource3tz"; import { TilesetSource3dtiles } from "../packages/TilesetSource3dtiles"; @@ -10,7 +10,7 @@ import { TilesetError } from "./TilesetError"; import { TilesetSource } from "./TilesetSource"; import { TilesetSourceFs } from "./TilesetSourceFs"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetData"); /** diff --git a/packages/tilesets/src/tilesetData/TilesetTarget.ts b/src/tilesets/tilesetData/TilesetTarget.ts similarity index 100% rename from packages/tilesets/src/tilesetData/TilesetTarget.ts rename to src/tilesets/tilesetData/TilesetTarget.ts diff --git a/packages/tilesets/src/tilesetData/TilesetTargetFs.ts b/src/tilesets/tilesetData/TilesetTargetFs.ts similarity index 100% rename from packages/tilesets/src/tilesetData/TilesetTargetFs.ts rename to src/tilesets/tilesetData/TilesetTargetFs.ts diff --git a/packages/tilesets/src/tilesetData/TilesetTargets.ts b/src/tilesets/tilesetData/TilesetTargets.ts similarity index 98% rename from packages/tilesets/src/tilesetData/TilesetTargets.ts rename to src/tilesets/tilesetData/TilesetTargets.ts index f3e35e84..c804c6a5 100644 --- a/packages/tilesets/src/tilesetData/TilesetTargets.ts +++ b/src/tilesets/tilesetData/TilesetTargets.ts @@ -8,7 +8,7 @@ import { TilesetError } from "./TilesetError"; import { TilesetTargetFs } from "./TilesetTargetFs"; import { TilesetEntry } from "./TilesetEntry"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetData"); /** diff --git a/packages/tilesets/src/tilesets/Contents.ts b/src/tilesets/tilesets/Contents.ts similarity index 89% rename from packages/tilesets/src/tilesets/Contents.ts rename to src/tilesets/tilesets/Contents.ts index 4dad16d2..21059ff6 100644 --- a/packages/tilesets/src/tilesets/Contents.ts +++ b/src/tilesets/tilesets/Contents.ts @@ -1,6 +1,6 @@ -import { Content } from "@3d-tiles-tools/structure"; +import { Content } from "../../structure"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesets"); /** diff --git a/packages/tilesets/src/tilesets/Extensions.ts b/src/tilesets/tilesets/Extensions.ts similarity index 100% rename from packages/tilesets/src/tilesets/Extensions.ts rename to src/tilesets/tilesets/Extensions.ts diff --git a/packages/tilesets/src/tilesets/TileTraversalCallback.ts b/src/tilesets/tilesets/TileTraversalCallback.ts similarity index 85% rename from packages/tilesets/src/tilesets/TileTraversalCallback.ts rename to src/tilesets/tilesets/TileTraversalCallback.ts index bb195709..db70f987 100644 --- a/packages/tilesets/src/tilesets/TileTraversalCallback.ts +++ b/src/tilesets/tilesets/TileTraversalCallback.ts @@ -1,4 +1,4 @@ -import { Tile } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; /** * A function that can be passed to `Tiles.traverseExplicit`. diff --git a/packages/tilesets/src/tilesets/Tiles.ts b/src/tilesets/tilesets/Tiles.ts similarity index 97% rename from packages/tilesets/src/tilesets/Tiles.ts rename to src/tilesets/tilesets/Tiles.ts index daf63c9d..6f68ae59 100644 --- a/packages/tilesets/src/tilesets/Tiles.ts +++ b/src/tilesets/tilesets/Tiles.ts @@ -1,5 +1,5 @@ -import { Content } from "@3d-tiles-tools/structure"; -import { Tile } from "@3d-tiles-tools/structure"; +import { Content } from "../../structure"; +import { Tile } from "../../structure"; import { Contents } from "./Contents"; import { TileTraversalCallback } from "./TileTraversalCallback"; diff --git a/packages/tilesets/src/tilesets/Tilesets.ts b/src/tilesets/tilesets/Tilesets.ts similarity index 100% rename from packages/tilesets/src/tilesets/Tilesets.ts rename to src/tilesets/tilesets/Tilesets.ts diff --git a/packages/tilesets/src/traversal/ExplicitTraversedTile.ts b/src/tilesets/traversal/ExplicitTraversedTile.ts similarity index 96% rename from packages/tilesets/src/traversal/ExplicitTraversedTile.ts rename to src/tilesets/traversal/ExplicitTraversedTile.ts index 561873c7..17af9d02 100644 --- a/packages/tilesets/src/traversal/ExplicitTraversedTile.ts +++ b/src/tilesets/traversal/ExplicitTraversedTile.ts @@ -1,10 +1,10 @@ -import { ResourceResolver } from "@3d-tiles-tools/base"; +import { ResourceResolver } from "../../base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; -import { MetadataEntity } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Content } from "../../structure"; +import { TileImplicitTiling } from "../../structure"; +import { MetadataEntity } from "../../structure"; +import { Schema } from "../../structure"; import { TraversedTile } from "./TraversedTile"; import { ExplicitTraversedTiles } from "./ExplicitTraversedTiles"; diff --git a/packages/tilesets/src/traversal/ExplicitTraversedTiles.ts b/src/tilesets/traversal/ExplicitTraversedTiles.ts similarity index 96% rename from packages/tilesets/src/traversal/ExplicitTraversedTiles.ts rename to src/tilesets/traversal/ExplicitTraversedTiles.ts index 02ecd805..9c3382e9 100644 --- a/packages/tilesets/src/traversal/ExplicitTraversedTiles.ts +++ b/src/tilesets/traversal/ExplicitTraversedTiles.ts @@ -1,7 +1,7 @@ -import { ResourceResolver } from "@3d-tiles-tools/base"; +import { ResourceResolver } from "../../base"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { TileImplicitTiling } from "../../structure"; +import { Schema } from "../../structure"; import { TraversedTile } from "./TraversedTile"; import { ExplicitTraversedTile } from "./ExplicitTraversedTile"; diff --git a/packages/tilesets/src/traversal/ImplicitTraversedTile.ts b/src/tilesets/traversal/ImplicitTraversedTile.ts similarity index 97% rename from packages/tilesets/src/traversal/ImplicitTraversedTile.ts rename to src/tilesets/traversal/ImplicitTraversedTile.ts index 162e9934..1d84d63e 100644 --- a/packages/tilesets/src/traversal/ImplicitTraversedTile.ts +++ b/src/tilesets/traversal/ImplicitTraversedTile.ts @@ -1,10 +1,10 @@ -import { defined } from "@3d-tiles-tools/base"; -import { ResourceResolver } from "@3d-tiles-tools/base"; -import { TreeCoordinates } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; +import { ResourceResolver } from "../../base"; +import { TreeCoordinates } from "../../base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Content } from "../../structure"; +import { TileImplicitTiling } from "../../structure"; import { TraversedTile } from "./TraversedTile"; import { SubtreeModel } from "./SubtreeModel"; diff --git a/packages/tilesets/src/traversal/MetadataSemanticOverrides.ts b/src/tilesets/traversal/MetadataSemanticOverrides.ts similarity index 96% rename from packages/tilesets/src/traversal/MetadataSemanticOverrides.ts rename to src/tilesets/traversal/MetadataSemanticOverrides.ts index f3def0bc..84add81a 100644 --- a/packages/tilesets/src/traversal/MetadataSemanticOverrides.ts +++ b/src/tilesets/traversal/MetadataSemanticOverrides.ts @@ -1,11 +1,11 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Content } from "../../structure"; +import { Schema } from "../../structure"; -import { MetadataEntityModel } from "@3d-tiles-tools/metadata"; -import { MetadataEntityModels } from "@3d-tiles-tools/metadata"; +import { MetadataEntityModel } from "../../metadata"; +import { MetadataEntityModels } from "../../metadata"; import { SubtreeMetadataModel } from "./SubtreeMetadataModel"; diff --git a/packages/tilesets/src/traversal/SubtreeMetadataModel.ts b/src/tilesets/traversal/SubtreeMetadataModel.ts similarity index 95% rename from packages/tilesets/src/traversal/SubtreeMetadataModel.ts rename to src/tilesets/traversal/SubtreeMetadataModel.ts index c8f254cd..d0e16dba 100644 --- a/packages/tilesets/src/traversal/SubtreeMetadataModel.ts +++ b/src/tilesets/traversal/SubtreeMetadataModel.ts @@ -1,6 +1,6 @@ -import { PropertyTableModel } from "@3d-tiles-tools/metadata"; +import { PropertyTableModel } from "../../metadata"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Schema } from "../../structure"; /** * An interface summarizing the metadata that may be associated diff --git a/packages/tilesets/src/traversal/SubtreeMetadataModels.ts b/src/tilesets/traversal/SubtreeMetadataModels.ts similarity index 93% rename from packages/tilesets/src/traversal/SubtreeMetadataModels.ts rename to src/tilesets/traversal/SubtreeMetadataModels.ts index 12f4714a..81411033 100644 --- a/packages/tilesets/src/traversal/SubtreeMetadataModels.ts +++ b/src/tilesets/traversal/SubtreeMetadataModels.ts @@ -1,13 +1,13 @@ -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Schema } from "../../structure"; -import { MetadataError } from "@3d-tiles-tools/metadata"; -import { MetadataUtilities } from "@3d-tiles-tools/metadata"; -import { PropertyTableModel } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTable } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTableModel } from "@3d-tiles-tools/metadata"; -import { BinaryMetadata } from "@3d-tiles-tools/metadata"; +import { MetadataError } from "../../metadata"; +import { MetadataUtilities } from "../../metadata"; +import { PropertyTableModel } from "../../metadata"; +import { BinaryPropertyTable } from "../../metadata"; +import { BinaryPropertyTableModel } from "../../metadata"; +import { BinaryMetadata } from "../../metadata"; import { BinarySubtreeData } from "../implicitTiling/BinarySubtreeData"; import { SubtreeInfo } from "../implicitTiling/SubtreeInfo"; diff --git a/packages/tilesets/src/traversal/SubtreeModel.ts b/src/tilesets/traversal/SubtreeModel.ts similarity index 100% rename from packages/tilesets/src/traversal/SubtreeModel.ts rename to src/tilesets/traversal/SubtreeModel.ts diff --git a/packages/tilesets/src/traversal/SubtreeModels.ts b/src/tilesets/traversal/SubtreeModels.ts similarity index 93% rename from packages/tilesets/src/traversal/SubtreeModels.ts rename to src/tilesets/traversal/SubtreeModels.ts index 43659161..160d8640 100644 --- a/packages/tilesets/src/traversal/SubtreeModels.ts +++ b/src/tilesets/traversal/SubtreeModels.ts @@ -1,13 +1,13 @@ import path from "path"; -import { defined } from "@3d-tiles-tools/base"; -import { Buffers } from "@3d-tiles-tools/base"; -import { ResourceResolver } from "@3d-tiles-tools/base"; -import { TreeCoordinates } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; +import { Buffers } from "../../base"; +import { ResourceResolver } from "../../base"; +import { TreeCoordinates } from "../../base"; -import { Subtree } from "@3d-tiles-tools/structure"; -import { TileImplicitTiling } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Subtree } from "../../structure"; +import { TileImplicitTiling } from "../../structure"; +import { Schema } from "../../structure"; import { BinarySubtreeData } from "../implicitTiling/BinarySubtreeData"; import { BinarySubtreeDataResolver } from "../implicitTiling/BinarySubtreeDataResolver"; diff --git a/packages/tilesets/src/traversal/TilesetTraverser.ts b/src/tilesets/traversal/TilesetTraverser.ts similarity index 96% rename from packages/tilesets/src/traversal/TilesetTraverser.ts rename to src/tilesets/traversal/TilesetTraverser.ts index 9568335c..a7796076 100644 --- a/packages/tilesets/src/traversal/TilesetTraverser.ts +++ b/src/tilesets/traversal/TilesetTraverser.ts @@ -1,9 +1,9 @@ -import { ResourceResolver } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { ResourceResolver } from "../../base"; +import { DeveloperError } from "../../base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Tileset } from "../../structure"; +import { Schema } from "../../structure"; import { TraversedTile } from "./TraversedTile"; import { ExplicitTraversedTile } from "./ExplicitTraversedTile"; diff --git a/packages/tilesets/src/traversal/TilesetTraversers.ts b/src/tilesets/traversal/TilesetTraversers.ts similarity index 93% rename from packages/tilesets/src/traversal/TilesetTraversers.ts rename to src/tilesets/traversal/TilesetTraversers.ts index 19006c4e..6f3cea05 100644 --- a/packages/tilesets/src/traversal/TilesetTraversers.ts +++ b/src/tilesets/traversal/TilesetTraversers.ts @@ -1,14 +1,14 @@ import path from "path"; -import { ResourceResolver } from "@3d-tiles-tools/base"; -import { DataError } from "@3d-tiles-tools/base"; -import { LazyContentData } from "@3d-tiles-tools/base"; -import { ContentDataTypeRegistry } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; -import { Paths } from "@3d-tiles-tools/base"; +import { ResourceResolver } from "../../base"; +import { DataError } from "../../base"; +import { LazyContentData } from "../../base"; +import { ContentDataTypeRegistry } from "../../base"; +import { ContentDataTypes } from "../../base"; +import { Paths } from "../../base"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; +import { Schema } from "../../structure"; import { TilesetSourceResourceResolver } from "../tilesetData/TilesetSourceResourceResolver"; @@ -17,7 +17,7 @@ import { ExplicitTraversedTile } from "./ExplicitTraversedTile"; import { TilesetSource3tz } from "../packages/TilesetSource3tz"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("traversal"); /** diff --git a/packages/tilesets/src/traversal/TraversalCallback.ts b/src/tilesets/traversal/TraversalCallback.ts similarity index 100% rename from packages/tilesets/src/traversal/TraversalCallback.ts rename to src/tilesets/traversal/TraversalCallback.ts diff --git a/packages/tilesets/src/traversal/TraversedTile.ts b/src/tilesets/traversal/TraversedTile.ts similarity index 97% rename from packages/tilesets/src/traversal/TraversedTile.ts rename to src/tilesets/traversal/TraversedTile.ts index 1e71f44e..7067a99f 100644 --- a/packages/tilesets/src/traversal/TraversedTile.ts +++ b/src/tilesets/traversal/TraversedTile.ts @@ -1,7 +1,7 @@ -import { ResourceResolver } from "@3d-tiles-tools/base"; +import { ResourceResolver } from "../../base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Content } from "../../structure"; /** * An interface that summarizes context information for diff --git a/packages/tilesets/src/traversal/cesium/BoundingVolumeDerivation.ts b/src/tilesets/traversal/cesium/BoundingVolumeDerivation.ts similarity index 98% rename from packages/tilesets/src/traversal/cesium/BoundingVolumeDerivation.ts rename to src/tilesets/traversal/cesium/BoundingVolumeDerivation.ts index 435ad4e1..d0c041d4 100644 --- a/packages/tilesets/src/traversal/cesium/BoundingVolumeDerivation.ts +++ b/src/tilesets/traversal/cesium/BoundingVolumeDerivation.ts @@ -3,10 +3,10 @@ import { Math as CesiumMath } from "cesium"; import { Matrix3 } from "cesium"; import { Rectangle } from "cesium"; -import { defined } from "@3d-tiles-tools/base"; +import { defined } from "../../../base"; -import { BoundingVolume } from "@3d-tiles-tools/structure"; -import { BoundingVolumeS2 } from "@3d-tiles-tools/structure"; +import { BoundingVolume } from "../../../structure"; +import { BoundingVolumeS2 } from "../../../structure"; import { HilbertOrder } from "./HilbertOrder"; import { S2Cell } from "./S2Cell"; diff --git a/packages/tilesets/src/traversal/cesium/HilbertOrder.ts b/src/tilesets/traversal/cesium/HilbertOrder.ts similarity index 97% rename from packages/tilesets/src/traversal/cesium/HilbertOrder.ts rename to src/tilesets/traversal/cesium/HilbertOrder.ts index 47569f74..14bf4c91 100644 --- a/packages/tilesets/src/traversal/cesium/HilbertOrder.ts +++ b/src/tilesets/traversal/cesium/HilbertOrder.ts @@ -1,6 +1,6 @@ // Ported from https://github.com/CesiumGS/cesium/blob/4b333bc145fa9f7aed0c7ad7e0f46cb001a94ddd/Source/Core/HilbertOrder.js -import { DeveloperError } from "@3d-tiles-tools/base"; +import { DeveloperError } from "../../../base"; /** * Hilbert Order helper functions. diff --git a/packages/tilesets/src/traversal/cesium/S2Cell.ts b/src/tilesets/traversal/cesium/S2Cell.ts similarity index 98% rename from packages/tilesets/src/traversal/cesium/S2Cell.ts rename to src/tilesets/traversal/cesium/S2Cell.ts index 3177dc96..0310da61 100644 --- a/packages/tilesets/src/traversal/cesium/S2Cell.ts +++ b/src/tilesets/traversal/cesium/S2Cell.ts @@ -1,6 +1,6 @@ // Relevant functions ported from https://github.com/CesiumGS/cesium/blob/4b333bc145fa9f7aed0c7ad7e0f46cb001a94ddd/Source/Core/S2Cell.js -import { DeveloperError } from "@3d-tiles-tools/base"; +import { DeveloperError } from "../../../base"; /** * Functions related to S2 cells diff --git a/packages/tools/src/contentProcessing/ContentError.ts b/src/tools/contentProcessing/ContentError.ts similarity index 100% rename from packages/tools/src/contentProcessing/ContentError.ts rename to src/tools/contentProcessing/ContentError.ts diff --git a/packages/tools/src/contentProcessing/ContentOps.ts b/src/tools/contentProcessing/ContentOps.ts similarity index 98% rename from packages/tools/src/contentProcessing/ContentOps.ts rename to src/tools/contentProcessing/ContentOps.ts index c325103c..89805ab6 100644 --- a/packages/tools/src/contentProcessing/ContentOps.ts +++ b/src/tools/contentProcessing/ContentOps.ts @@ -1,4 +1,4 @@ -import { TileFormats } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../../tilesets"; import { GltfUtilities } from "./GltfUtilities"; diff --git a/packages/tools/src/contentProcessing/ContentUpgrades.ts b/src/tools/contentProcessing/ContentUpgrades.ts similarity index 97% rename from packages/tools/src/contentProcessing/ContentUpgrades.ts rename to src/tools/contentProcessing/ContentUpgrades.ts index d75e0708..aff8e7fd 100644 --- a/packages/tools/src/contentProcessing/ContentUpgrades.ts +++ b/src/tools/contentProcessing/ContentUpgrades.ts @@ -1,4 +1,4 @@ -import { TileFormats } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../../tilesets"; import { GltfUtilities } from "./GltfUtilities"; diff --git a/packages/tools/src/contentProcessing/GltfPack.ts b/src/tools/contentProcessing/GltfPack.ts similarity index 96% rename from packages/tools/src/contentProcessing/GltfPack.ts rename to src/tools/contentProcessing/GltfPack.ts index 5e061503..7bef0626 100644 --- a/packages/tools/src/contentProcessing/GltfPack.ts +++ b/src/tools/contentProcessing/GltfPack.ts @@ -1,5 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/triple-slash-reference -/// import gltfpack from "gltfpack"; import { ContentError } from "./ContentError"; diff --git a/packages/tools/src/contentProcessing/GltfPackOptions.ts b/src/tools/contentProcessing/GltfPackOptions.ts similarity index 100% rename from packages/tools/src/contentProcessing/GltfPackOptions.ts rename to src/tools/contentProcessing/GltfPackOptions.ts diff --git a/packages/tools/src/contentProcessing/GltfPipelineLegacy.ts b/src/tools/contentProcessing/GltfPipelineLegacy.ts similarity index 93% rename from packages/tools/src/contentProcessing/GltfPipelineLegacy.ts rename to src/tools/contentProcessing/GltfPipelineLegacy.ts index 7775f03c..85f06478 100644 --- a/packages/tools/src/contentProcessing/GltfPipelineLegacy.ts +++ b/src/tools/contentProcessing/GltfPipelineLegacy.ts @@ -1,11 +1,11 @@ import { Cartesian3 } from "cesium"; import { Ellipsoid } from "cesium"; -import { defined } from "@3d-tiles-tools/base"; -import { defaultValue } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; +import { defaultValue } from "../../base"; +import { DeveloperError } from "../../base"; -import { Extensions } from "@3d-tiles-tools/tilesets"; +import { Extensions } from "../../tilesets"; /** * Methods and fragments ported from a legacy version of gltf-pipeline. diff --git a/packages/tools/src/contentProcessing/GltfTransform.ts b/src/tools/contentProcessing/GltfTransform.ts similarity index 92% rename from packages/tools/src/contentProcessing/GltfTransform.ts rename to src/tools/contentProcessing/GltfTransform.ts index 1c4f5055..1487df3a 100644 --- a/packages/tools/src/contentProcessing/GltfTransform.ts +++ b/src/tools/contentProcessing/GltfTransform.ts @@ -8,9 +8,9 @@ import { NodeIO } from "@gltf-transform/core"; import { ALL_EXTENSIONS } from "@gltf-transform/extensions"; -import { EXTStructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; -import { EXTMeshFeatures } from "@3d-tiles-tools/gltf-extensions"; -import { EXTInstanceFeatures } from "@3d-tiles-tools/gltf-extensions"; +import { EXTStructuralMetadata } from "../../gltf-extensions"; +import { EXTMeshFeatures } from "../../gltf-extensions"; +import { EXTInstanceFeatures } from "../../gltf-extensions"; /** * Utilities for using glTF-Transform in the 3D Tiles tools diff --git a/packages/tools/src/contentProcessing/GltfTransformTextures.ts b/src/tools/contentProcessing/GltfTransformTextures.ts similarity index 96% rename from packages/tools/src/contentProcessing/GltfTransformTextures.ts rename to src/tools/contentProcessing/GltfTransformTextures.ts index a1b02ae0..a5851ef3 100644 --- a/packages/tools/src/contentProcessing/GltfTransformTextures.ts +++ b/src/tools/contentProcessing/GltfTransformTextures.ts @@ -7,12 +7,12 @@ import { listTextureSlots } from "@gltf-transform/functions"; import { KHRTextureBasisu } from "@gltf-transform/extensions"; -import { KtxUtility } from "@3d-tiles-tools/ktx"; -import { KtxEtc1sOptions } from "@3d-tiles-tools/ktx"; -import { KtxUastcOptions } from "@3d-tiles-tools/ktx"; -import { KtxOptions } from "@3d-tiles-tools/ktx"; +import { KtxUtility } from "../../ktx"; +import { KtxEtc1sOptions } from "../../ktx"; +import { KtxUastcOptions } from "../../ktx"; +import { KtxOptions } from "../../ktx"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("contentProcessing"); /** diff --git a/packages/tools/src/contentProcessing/GltfUtilities.ts b/src/tools/contentProcessing/GltfUtilities.ts similarity index 97% rename from packages/tools/src/contentProcessing/GltfUtilities.ts rename to src/tools/contentProcessing/GltfUtilities.ts index ceb40fc8..e92639de 100644 --- a/packages/tools/src/contentProcessing/GltfUtilities.ts +++ b/src/tools/contentProcessing/GltfUtilities.ts @@ -1,11 +1,9 @@ -// eslint-disable-next-line @typescript-eslint/triple-slash-reference -/// import GltfPipeline from "gltf-pipeline"; -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; -import { Extensions } from "@3d-tiles-tools/tilesets"; +import { TileFormatError } from "../../tilesets"; +import { Extensions } from "../../tilesets"; import { GltfPipelineLegacy } from "./GltfPipelineLegacy"; diff --git a/packages/tools/src/draco/AttributeInfo.ts b/src/tools/draco/AttributeInfo.ts similarity index 100% rename from packages/tools/src/draco/AttributeInfo.ts rename to src/tools/draco/AttributeInfo.ts diff --git a/packages/tools/src/draco/ComponentDataType.ts b/src/tools/draco/ComponentDataType.ts similarity index 100% rename from packages/tools/src/draco/ComponentDataType.ts rename to src/tools/draco/ComponentDataType.ts diff --git a/packages/tools/src/draco/DracoDecoder.ts b/src/tools/draco/DracoDecoder.ts similarity index 99% rename from packages/tools/src/draco/DracoDecoder.ts rename to src/tools/draco/DracoDecoder.ts index b0ae59d0..556f145e 100644 --- a/packages/tools/src/draco/DracoDecoder.ts +++ b/src/tools/draco/DracoDecoder.ts @@ -4,7 +4,7 @@ import { Decoder } from "draco3d"; import { DecoderModule } from "draco3d"; import { Mesh } from "draco3d"; -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; import { DracoError } from "./DracoError"; import { ComponentDatatype } from "./ComponentDataType"; diff --git a/packages/tools/src/draco/DracoDecoderResult.ts b/src/tools/draco/DracoDecoderResult.ts similarity index 100% rename from packages/tools/src/draco/DracoDecoderResult.ts rename to src/tools/draco/DracoDecoderResult.ts diff --git a/packages/tools/src/draco/DracoError.ts b/src/tools/draco/DracoError.ts similarity index 100% rename from packages/tools/src/draco/DracoError.ts rename to src/tools/draco/DracoError.ts diff --git a/packages/tools/src/draco/QuantizationInfo.ts b/src/tools/draco/QuantizationInfo.ts similarity index 100% rename from packages/tools/src/draco/QuantizationInfo.ts rename to src/tools/draco/QuantizationInfo.ts diff --git a/packages/tools/src/gltfExtensionsUtils/InstanceFeaturesUtils.ts b/src/tools/gltfExtensionsUtils/InstanceFeaturesUtils.ts similarity index 95% rename from packages/tools/src/gltfExtensionsUtils/InstanceFeaturesUtils.ts rename to src/tools/gltfExtensionsUtils/InstanceFeaturesUtils.ts index 4b1710cc..99e0703e 100644 --- a/packages/tools/src/gltfExtensionsUtils/InstanceFeaturesUtils.ts +++ b/src/tools/gltfExtensionsUtils/InstanceFeaturesUtils.ts @@ -3,8 +3,8 @@ import { Node } from "@gltf-transform/core"; import { InstancedMesh } from "@gltf-transform/extensions"; -import { InstanceFeatures } from "@3d-tiles-tools/gltf-extensions"; -import { InstanceFeaturesFeatureId as FeatureId } from "@3d-tiles-tools/gltf-extensions"; +import { InstanceFeatures } from "../../gltf-extensions"; +import { InstanceFeaturesFeatureId as FeatureId } from "../../gltf-extensions"; import { StringBuilder } from "./StringBuilder"; diff --git a/packages/tools/src/gltfExtensionsUtils/MeshFeaturesUtils.ts b/src/tools/gltfExtensionsUtils/MeshFeaturesUtils.ts similarity index 95% rename from packages/tools/src/gltfExtensionsUtils/MeshFeaturesUtils.ts rename to src/tools/gltfExtensionsUtils/MeshFeaturesUtils.ts index a29e5ae0..47294c8f 100644 --- a/packages/tools/src/gltfExtensionsUtils/MeshFeaturesUtils.ts +++ b/src/tools/gltfExtensionsUtils/MeshFeaturesUtils.ts @@ -2,8 +2,8 @@ import { Document } from "@gltf-transform/core"; import { Mesh } from "@gltf-transform/core"; import { Primitive } from "@gltf-transform/core"; -import { MeshFeaturesFeatureId as FeatureId } from "@3d-tiles-tools/gltf-extensions"; -import { MeshFeatures } from "@3d-tiles-tools/gltf-extensions"; +import { MeshFeaturesFeatureId as FeatureId } from "../../gltf-extensions"; +import { MeshFeatures } from "../../gltf-extensions"; import { StringBuilder } from "./StringBuilder"; diff --git a/packages/tools/src/gltfExtensionsUtils/StringBuilder.ts b/src/tools/gltfExtensionsUtils/StringBuilder.ts similarity index 100% rename from packages/tools/src/gltfExtensionsUtils/StringBuilder.ts rename to src/tools/gltfExtensionsUtils/StringBuilder.ts diff --git a/packages/tools/src/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts b/src/tools/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts similarity index 96% rename from packages/tools/src/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts rename to src/tools/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts index d6285db0..bf42ffb8 100644 --- a/packages/tools/src/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts +++ b/src/tools/gltfExtensionsUtils/StructuralMetadataPropertyTables.ts @@ -1,9 +1,9 @@ -import { MetadataError } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTable } from "@3d-tiles-tools/metadata"; +import { MetadataError } from "../../metadata"; +import { BinaryPropertyTable } from "../../metadata"; -import { EXTStructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; -import { PropertyTablePropertyOffsetType } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyTable as PropertyTable } from "@3d-tiles-tools/gltf-extensions"; +import { EXTStructuralMetadata } from "../../gltf-extensions"; +import { PropertyTablePropertyOffsetType } from "../../gltf-extensions"; +import { StructuralMetadataPropertyTable as PropertyTable } from "../../gltf-extensions"; /** * Methods for creating `PropertyTable` objects for the glTF-Transform diff --git a/packages/tools/src/gltfExtensionsUtils/StructuralMetadataUtils.ts b/src/tools/gltfExtensionsUtils/StructuralMetadataUtils.ts similarity index 95% rename from packages/tools/src/gltfExtensionsUtils/StructuralMetadataUtils.ts rename to src/tools/gltfExtensionsUtils/StructuralMetadataUtils.ts index 99113ec8..7960f65f 100644 --- a/packages/tools/src/gltfExtensionsUtils/StructuralMetadataUtils.ts +++ b/src/tools/gltfExtensionsUtils/StructuralMetadataUtils.ts @@ -2,19 +2,19 @@ import { Document } from "@gltf-transform/core"; import { Mesh } from "@gltf-transform/core"; import { Primitive } from "@gltf-transform/core"; -import { StructuralMetadataClass as Class } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataClassProperty as ClassProperty } from "@3d-tiles-tools/gltf-extensions"; -import { MeshPrimitiveStructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyAttribute as PropertyAttribute } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyAttributeProperty as PropertyAttributeProperty } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyTable as PropertyTable } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyTableProperty as PropertyTableProperty } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyTexture as PropertyTexture } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyTextureProperty as PropertyTextureProperty } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataSchema as Schema } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; +import { StructuralMetadataClass as Class } from "../../gltf-extensions"; +import { StructuralMetadataClassProperty as ClassProperty } from "../../gltf-extensions"; +import { MeshPrimitiveStructuralMetadata } from "../../gltf-extensions"; +import { StructuralMetadataPropertyAttribute as PropertyAttribute } from "../../gltf-extensions"; +import { StructuralMetadataPropertyAttributeProperty as PropertyAttributeProperty } from "../../gltf-extensions"; +import { StructuralMetadataPropertyTable as PropertyTable } from "../../gltf-extensions"; +import { StructuralMetadataPropertyTableProperty as PropertyTableProperty } from "../../gltf-extensions"; +import { StructuralMetadataPropertyTexture as PropertyTexture } from "../../gltf-extensions"; +import { StructuralMetadataPropertyTextureProperty as PropertyTextureProperty } from "../../gltf-extensions"; +import { StructuralMetadataSchema as Schema } from "../../gltf-extensions"; +import { StructuralMetadata } from "../../gltf-extensions"; -import { BinaryPropertyModels } from "@3d-tiles-tools/metadata"; +import { BinaryPropertyModels } from "../../metadata"; import { StringBuilder } from "./StringBuilder"; diff --git a/packages/tools/src/index.ts b/src/tools/index.ts similarity index 100% rename from packages/tools/src/index.ts rename to src/tools/index.ts diff --git a/packages/tools/src/migration/AccessorCreation.ts b/src/tools/migration/AccessorCreation.ts similarity index 95% rename from packages/tools/src/migration/AccessorCreation.ts rename to src/tools/migration/AccessorCreation.ts index d43787ed..621ac8a1 100644 --- a/packages/tools/src/migration/AccessorCreation.ts +++ b/src/tools/migration/AccessorCreation.ts @@ -3,14 +3,14 @@ import { TypedArray } from "@gltf-transform/core"; import { Accessor } from "@gltf-transform/core"; import { GLTF } from "@gltf-transform/core"; -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { ClassProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../structure"; -import { PropertyModel } from "@3d-tiles-tools/metadata"; -import { PropertyModels } from "@3d-tiles-tools/metadata"; +import { PropertyModel } from "../../metadata"; +import { PropertyModels } from "../../metadata"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; +import { TileFormatError } from "../../tilesets"; /** * Methods to create glTF-Transform accessors from different forms diff --git a/packages/tools/src/migration/BatchTableClassProperties.ts b/src/tools/migration/BatchTableClassProperties.ts similarity index 94% rename from packages/tools/src/migration/BatchTableClassProperties.ts rename to src/tools/migration/BatchTableClassProperties.ts index 0108dc07..5c6927c0 100644 --- a/packages/tools/src/migration/BatchTableClassProperties.ts +++ b/src/tools/migration/BatchTableClassProperties.ts @@ -1,7 +1,7 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../structure"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; -import { TileTableData } from "@3d-tiles-tools/tilesets"; +import { TileFormatError } from "../../tilesets"; +import { TileTableData } from "../../tilesets"; import { TypeDetection } from "./TypeDetection"; diff --git a/packages/tools/src/migration/BatchTablePropertyTableModels.ts b/src/tools/migration/BatchTablePropertyTableModels.ts similarity index 88% rename from packages/tools/src/migration/BatchTablePropertyTableModels.ts rename to src/tools/migration/BatchTablePropertyTableModels.ts index 173dc85c..386839a9 100644 --- a/packages/tools/src/migration/BatchTablePropertyTableModels.ts +++ b/src/tools/migration/BatchTablePropertyTableModels.ts @@ -1,10 +1,10 @@ -import { TileTableData } from "@3d-tiles-tools/tilesets"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; +import { TileTableData } from "../../tilesets"; +import { TileFormatError } from "../../tilesets"; -import { PropertyTableModel } from "@3d-tiles-tools/metadata"; -import { PropertyModel } from "@3d-tiles-tools/metadata"; -import { DefaultPropertyModel } from "@3d-tiles-tools/metadata"; -import { DefaultPropertyTableModel } from "@3d-tiles-tools/metadata"; +import { PropertyTableModel } from "../../metadata"; +import { PropertyModel } from "../../metadata"; +import { DefaultPropertyModel } from "../../metadata"; +import { DefaultPropertyTableModel } from "../../metadata"; import { BatchTableClassProperties } from "./BatchTableClassProperties"; import { Ids } from "./Ids"; diff --git a/packages/tools/src/migration/BatchTableSchemas.ts b/src/tools/migration/BatchTableSchemas.ts similarity index 91% rename from packages/tools/src/migration/BatchTableSchemas.ts rename to src/tools/migration/BatchTableSchemas.ts index 2eced3e9..9f9c4e7f 100644 --- a/packages/tools/src/migration/BatchTableSchemas.ts +++ b/src/tools/migration/BatchTableSchemas.ts @@ -1,7 +1,7 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { MetadataClass } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; -import { BatchTable } from "@3d-tiles-tools/structure"; +import { ClassProperty } from "../../structure"; +import { MetadataClass } from "../../structure"; +import { Schema } from "../../structure"; +import { BatchTable } from "../../structure"; import { BatchTableClassProperties } from "./BatchTableClassProperties"; import { Ids } from "./Ids"; diff --git a/packages/tools/src/migration/GltfUpgrade.ts b/src/tools/migration/GltfUpgrade.ts similarity index 99% rename from packages/tools/src/migration/GltfUpgrade.ts rename to src/tools/migration/GltfUpgrade.ts index a883cd6d..409f4206 100644 --- a/packages/tools/src/migration/GltfUpgrade.ts +++ b/src/tools/migration/GltfUpgrade.ts @@ -3,7 +3,7 @@ import { Accessor, Document, Logger } from "@gltf-transform/core"; import { GltfUtilities } from "../contentProcessing/GltfUtilities"; import { GltfTransform } from "../contentProcessing/GltfTransform"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; import { prune } from "@gltf-transform/functions"; const logger = Loggers.get("migration"); diff --git a/packages/tools/src/migration/Ids.ts b/src/tools/migration/Ids.ts similarity index 100% rename from packages/tools/src/migration/Ids.ts rename to src/tools/migration/Ids.ts diff --git a/packages/tools/src/migration/NumberTypeDescriptions.ts b/src/tools/migration/NumberTypeDescriptions.ts similarity index 100% rename from packages/tools/src/migration/NumberTypeDescriptions.ts rename to src/tools/migration/NumberTypeDescriptions.ts diff --git a/packages/tools/src/migration/TileFormatsMigration.ts b/src/tools/migration/TileFormatsMigration.ts similarity index 100% rename from packages/tools/src/migration/TileFormatsMigration.ts rename to src/tools/migration/TileFormatsMigration.ts diff --git a/packages/tools/src/migration/TileFormatsMigrationB3dm.ts b/src/tools/migration/TileFormatsMigrationB3dm.ts similarity index 93% rename from packages/tools/src/migration/TileFormatsMigrationB3dm.ts rename to src/tools/migration/TileFormatsMigrationB3dm.ts index ebd8b6a2..72353c16 100644 --- a/packages/tools/src/migration/TileFormatsMigrationB3dm.ts +++ b/src/tools/migration/TileFormatsMigrationB3dm.ts @@ -1,9 +1,9 @@ -import { BatchTable } from "@3d-tiles-tools/structure"; -import { B3dmFeatureTable } from "@3d-tiles-tools/structure"; +import { BatchTable } from "../../structure"; +import { B3dmFeatureTable } from "../../structure"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../../tilesets"; -import { TileTableData } from "@3d-tiles-tools/tilesets"; +import { TileTableData } from "../../tilesets"; import { GltfTransform } from "../contentProcessing/GltfTransform"; @@ -15,7 +15,7 @@ import { GltfUpgrade } from "./GltfUpgrade"; import { InstanceFeaturesUtils } from "../gltfExtensionsUtils/InstanceFeaturesUtils"; import { StructuralMetadataUtils } from "../gltfExtensionsUtils/StructuralMetadataUtils"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("migration"); /** diff --git a/packages/tools/src/migration/TileFormatsMigrationI3dm.ts b/src/tools/migration/TileFormatsMigrationI3dm.ts similarity index 95% rename from packages/tools/src/migration/TileFormatsMigrationI3dm.ts rename to src/tools/migration/TileFormatsMigrationI3dm.ts index 68e50a7e..70ade0dc 100644 --- a/packages/tools/src/migration/TileFormatsMigrationI3dm.ts +++ b/src/tools/migration/TileFormatsMigrationI3dm.ts @@ -8,18 +8,18 @@ import { prune } from "@gltf-transform/functions"; import { EXTMeshGPUInstancing } from "@gltf-transform/extensions"; -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { BatchTable } from "@3d-tiles-tools/structure"; -import { I3dmFeatureTable } from "@3d-tiles-tools/structure"; +import { BatchTable } from "../../structure"; +import { I3dmFeatureTable } from "../../structure"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; -import { TileTableDataI3dm } from "@3d-tiles-tools/tilesets"; -import { TileTableData } from "@3d-tiles-tools/tilesets"; -import { VecMath } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../../tilesets"; +import { TileFormatError } from "../../tilesets"; +import { TileTableDataI3dm } from "../../tilesets"; +import { TileTableData } from "../../tilesets"; +import { VecMath } from "../../tilesets"; -import { EXTInstanceFeatures } from "@3d-tiles-tools/gltf-extensions"; +import { EXTInstanceFeatures } from "../../gltf-extensions"; import { GltfTransform } from "../contentProcessing/GltfTransform"; @@ -30,7 +30,7 @@ import { GltfUpgrade } from "./GltfUpgrade"; import { InstanceFeaturesUtils } from "../gltfExtensionsUtils/InstanceFeaturesUtils"; import { StructuralMetadataUtils } from "../gltfExtensionsUtils/StructuralMetadataUtils"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("migration"); /** diff --git a/packages/tools/src/migration/TileFormatsMigrationPnts.ts b/src/tools/migration/TileFormatsMigrationPnts.ts similarity index 92% rename from packages/tools/src/migration/TileFormatsMigrationPnts.ts rename to src/tools/migration/TileFormatsMigrationPnts.ts index e791c654..8b579891 100644 --- a/packages/tools/src/migration/TileFormatsMigrationPnts.ts +++ b/src/tools/migration/TileFormatsMigrationPnts.ts @@ -1,14 +1,14 @@ -import { BatchTable } from "@3d-tiles-tools/structure"; -import { PntsFeatureTable } from "@3d-tiles-tools/structure"; +import { BatchTable } from "../../structure"; +import { PntsFeatureTable } from "../../structure"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; -import { TileTableData } from "@3d-tiles-tools/tilesets"; -import { BatchTables } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../../tilesets"; +import { TileTableData } from "../../tilesets"; +import { BatchTables } from "../../tilesets"; -import { MeshFeatures } from "@3d-tiles-tools/gltf-extensions"; +import { MeshFeatures } from "../../gltf-extensions"; -import { PropertyModel } from "@3d-tiles-tools/metadata"; -import { DefaultPropertyModel } from "@3d-tiles-tools/metadata"; +import { PropertyModel } from "../../metadata"; +import { DefaultPropertyModel } from "../../metadata"; import { GltfTransform } from "../contentProcessing/GltfTransform"; @@ -23,7 +23,7 @@ import { Ids } from "./Ids"; import { InstanceFeaturesUtils } from "../gltfExtensionsUtils/InstanceFeaturesUtils"; import { StructuralMetadataUtils } from "../gltfExtensionsUtils/StructuralMetadataUtils"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("migration"); /** diff --git a/packages/tools/src/migration/TileTableDataToMeshFeatures.ts b/src/tools/migration/TileTableDataToMeshFeatures.ts similarity index 91% rename from packages/tools/src/migration/TileTableDataToMeshFeatures.ts rename to src/tools/migration/TileTableDataToMeshFeatures.ts index d3801055..c20cb0ea 100644 --- a/packages/tools/src/migration/TileTableDataToMeshFeatures.ts +++ b/src/tools/migration/TileTableDataToMeshFeatures.ts @@ -2,12 +2,12 @@ import { Document } from "@gltf-transform/core"; import { Primitive } from "@gltf-transform/core"; import { Accessor } from "@gltf-transform/core"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; +import { TileFormatError } from "../../tilesets"; -import { EXTMeshFeatures } from "@3d-tiles-tools/gltf-extensions"; -import { MeshFeaturesFeatureId as FeatureId } from "@3d-tiles-tools/gltf-extensions"; +import { EXTMeshFeatures } from "../../gltf-extensions"; +import { MeshFeaturesFeatureId as FeatureId } from "../../gltf-extensions"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("migration"); /** diff --git a/packages/tools/src/migration/TileTableDataToStructuralMetadata.ts b/src/tools/migration/TileTableDataToStructuralMetadata.ts similarity index 94% rename from packages/tools/src/migration/TileTableDataToStructuralMetadata.ts rename to src/tools/migration/TileTableDataToStructuralMetadata.ts index f5eb2f35..15e3b6ea 100644 --- a/packages/tools/src/migration/TileTableDataToStructuralMetadata.ts +++ b/src/tools/migration/TileTableDataToStructuralMetadata.ts @@ -1,18 +1,18 @@ import { Document } from "@gltf-transform/core"; import { Primitive } from "@gltf-transform/core"; -import { BatchTable } from "@3d-tiles-tools/structure"; +import { BatchTable } from "../../structure"; -import { EXTStructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; -import { MeshPrimitiveStructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadataPropertyTable as PropertyTable } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; +import { EXTStructuralMetadata } from "../../gltf-extensions"; +import { MeshPrimitiveStructuralMetadata } from "../../gltf-extensions"; +import { StructuralMetadataPropertyTable as PropertyTable } from "../../gltf-extensions"; +import { StructuralMetadata } from "../../gltf-extensions"; -import { PropertyTableModels } from "@3d-tiles-tools/metadata"; -import { PropertyModels } from "@3d-tiles-tools/metadata"; -import { PropertyModel } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTableModel } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTableBuilder } from "@3d-tiles-tools/metadata"; +import { PropertyTableModels } from "../../metadata"; +import { PropertyModels } from "../../metadata"; +import { PropertyModel } from "../../metadata"; +import { BinaryPropertyTableModel } from "../../metadata"; +import { BinaryPropertyTableBuilder } from "../../metadata"; import { StructuralMetadataPropertyTables } from "../gltfExtensionsUtils/StructuralMetadataPropertyTables"; @@ -21,7 +21,7 @@ import { BatchTablePropertyTableModels } from "./BatchTablePropertyTableModels"; import { AccessorCreation } from "./AccessorCreation"; import { TileFormatsMigration } from "./TileFormatsMigration"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("migration"); /** diff --git a/packages/tools/src/migration/TypeDetection.ts b/src/tools/migration/TypeDetection.ts similarity index 100% rename from packages/tools/src/migration/TypeDetection.ts rename to src/tools/migration/TypeDetection.ts diff --git a/packages/tools/src/pipelines/ContentStage.ts b/src/tools/pipelines/ContentStage.ts similarity index 100% rename from packages/tools/src/pipelines/ContentStage.ts rename to src/tools/pipelines/ContentStage.ts diff --git a/packages/tools/src/pipelines/ContentStageExecutor.ts b/src/tools/pipelines/ContentStageExecutor.ts similarity index 98% rename from packages/tools/src/pipelines/ContentStageExecutor.ts rename to src/tools/pipelines/ContentStageExecutor.ts index 0120746f..fb62b671 100644 --- a/packages/tools/src/pipelines/ContentStageExecutor.ts +++ b/src/tools/pipelines/ContentStageExecutor.ts @@ -1,10 +1,10 @@ import path from "path"; import GltfPipeline from "gltf-pipeline"; -import { Paths } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; +import { ContentDataTypes } from "../../base"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "../../tilesets"; import { ContentStage } from "./ContentStage"; import { ContentStages } from "./ContentStages"; @@ -16,7 +16,7 @@ import { GltfUtilities } from "../contentProcessing/GltfUtilities"; import { ContentOps } from "../contentProcessing/ContentOps"; import { TileFormatsMigration } from "../migration/TileFormatsMigration"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("pipeline"); /** diff --git a/packages/tools/src/pipelines/ContentStages.ts b/src/tools/pipelines/ContentStages.ts similarity index 98% rename from packages/tools/src/pipelines/ContentStages.ts rename to src/tools/pipelines/ContentStages.ts index d6adb43a..59babf7b 100644 --- a/packages/tools/src/pipelines/ContentStages.ts +++ b/src/tools/pipelines/ContentStages.ts @@ -1,5 +1,5 @@ -import { defined } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; +import { DeveloperError } from "../../base"; import { ContentStage } from "./ContentStage"; diff --git a/packages/tools/src/pipelines/Pipeline.ts b/src/tools/pipelines/Pipeline.ts similarity index 100% rename from packages/tools/src/pipelines/Pipeline.ts rename to src/tools/pipelines/Pipeline.ts diff --git a/packages/tools/src/pipelines/PipelineError.ts b/src/tools/pipelines/PipelineError.ts similarity index 100% rename from packages/tools/src/pipelines/PipelineError.ts rename to src/tools/pipelines/PipelineError.ts diff --git a/packages/tools/src/pipelines/PipelineExecutor.ts b/src/tools/pipelines/PipelineExecutor.ts similarity index 98% rename from packages/tools/src/pipelines/PipelineExecutor.ts rename to src/tools/pipelines/PipelineExecutor.ts index 39ed8821..daaceaa6 100644 --- a/packages/tools/src/pipelines/PipelineExecutor.ts +++ b/src/tools/pipelines/PipelineExecutor.ts @@ -5,7 +5,7 @@ import path from "path"; import { Pipeline } from "./Pipeline"; import { TilesetStageExecutor } from "./TilesetStageExecutor"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("pipeline"); /** diff --git a/packages/tools/src/pipelines/Pipelines.ts b/src/tools/pipelines/Pipelines.ts similarity index 95% rename from packages/tools/src/pipelines/Pipelines.ts rename to src/tools/pipelines/Pipelines.ts index a5ddc53e..8cf2cf1f 100644 --- a/packages/tools/src/pipelines/Pipelines.ts +++ b/src/tools/pipelines/Pipelines.ts @@ -1,4 +1,4 @@ -import { DeveloperError } from "@3d-tiles-tools/base"; +import { DeveloperError } from "../../base"; import { Pipeline } from "./Pipeline"; import { TilesetStage } from "./TilesetStage"; diff --git a/packages/tools/src/pipelines/Stage.ts b/src/tools/pipelines/Stage.ts similarity index 100% rename from packages/tools/src/pipelines/Stage.ts rename to src/tools/pipelines/Stage.ts diff --git a/packages/tools/src/pipelines/TilesetStage.ts b/src/tools/pipelines/TilesetStage.ts similarity index 100% rename from packages/tools/src/pipelines/TilesetStage.ts rename to src/tools/pipelines/TilesetStage.ts diff --git a/packages/tools/src/pipelines/TilesetStageExecutor.ts b/src/tools/pipelines/TilesetStageExecutor.ts similarity index 96% rename from packages/tools/src/pipelines/TilesetStageExecutor.ts rename to src/tools/pipelines/TilesetStageExecutor.ts index 179176ae..5b0b6be3 100644 --- a/packages/tools/src/pipelines/TilesetStageExecutor.ts +++ b/src/tools/pipelines/TilesetStageExecutor.ts @@ -1,8 +1,8 @@ -import { Buffers } from "@3d-tiles-tools/base"; -import { ContentDataTypeChecks } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; +import { ContentDataTypeChecks } from "../../base"; +import { ContentDataTypes } from "../../base"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "../../tilesets"; import { TilesetStage } from "./TilesetStage"; import { ContentStageExecutor } from "./ContentStageExecutor"; @@ -14,7 +14,7 @@ import { TilesetUpgrader } from "../tilesetProcessing/TilesetUpgrader"; import { TilesetCombiner } from "../tilesetProcessing/TilesetCombiner"; import { TilesetDataProcessor } from "../tilesetProcessing/TilesetDataProcessor"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("pipeline"); /** diff --git a/packages/tools/src/pipelines/TilesetStages.ts b/src/tools/pipelines/TilesetStages.ts similarity index 96% rename from packages/tools/src/pipelines/TilesetStages.ts rename to src/tools/pipelines/TilesetStages.ts index bc5089fe..9ed6d4de 100644 --- a/packages/tools/src/pipelines/TilesetStages.ts +++ b/src/tools/pipelines/TilesetStages.ts @@ -1,6 +1,6 @@ -import { defined } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { defined } from "../../base"; +import { DeveloperError } from "../../base"; +import { ContentDataTypes } from "../../base"; import { ContentStage } from "./ContentStage"; import { TilesetStage } from "./TilesetStage"; diff --git a/packages/tools/src/pointClouds/DefaultPointCloud.ts b/src/tools/pointClouds/DefaultPointCloud.ts similarity index 97% rename from packages/tools/src/pointClouds/DefaultPointCloud.ts rename to src/tools/pointClouds/DefaultPointCloud.ts index bc015f7f..d8fa1ebd 100644 --- a/packages/tools/src/pointClouds/DefaultPointCloud.ts +++ b/src/tools/pointClouds/DefaultPointCloud.ts @@ -1,6 +1,6 @@ -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; +import { TileFormatError } from "../../tilesets"; import { ReadablePointCloud } from "./ReadablePointCloud"; diff --git a/packages/tools/src/pointClouds/GltfTransformPointClouds.ts b/src/tools/pointClouds/GltfTransformPointClouds.ts similarity index 98% rename from packages/tools/src/pointClouds/GltfTransformPointClouds.ts rename to src/tools/pointClouds/GltfTransformPointClouds.ts index db61c85b..994bf7c1 100644 --- a/packages/tools/src/pointClouds/GltfTransformPointClouds.ts +++ b/src/tools/pointClouds/GltfTransformPointClouds.ts @@ -9,11 +9,11 @@ import { QuantizeOptions } from "@gltf-transform/functions"; import { KHRMeshQuantization } from "@gltf-transform/extensions"; -import { EXTMeshFeatures } from "@3d-tiles-tools/gltf-extensions"; +import { EXTMeshFeatures } from "../../gltf-extensions"; -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; +import { TileFormatError } from "../../tilesets"; import { AccessorCreation } from "../migration/AccessorCreation"; diff --git a/packages/tools/src/pointClouds/PntsPointClouds.ts b/src/tools/pointClouds/PntsPointClouds.ts similarity index 96% rename from packages/tools/src/pointClouds/PntsPointClouds.ts rename to src/tools/pointClouds/PntsPointClouds.ts index 461b2665..051f25b1 100644 --- a/packages/tools/src/pointClouds/PntsPointClouds.ts +++ b/src/tools/pointClouds/PntsPointClouds.ts @@ -1,12 +1,12 @@ -import { Iterables } from "@3d-tiles-tools/base"; +import { Iterables } from "../../base"; -import { PntsFeatureTable } from "@3d-tiles-tools/structure"; -import { BatchTable } from "@3d-tiles-tools/structure"; +import { PntsFeatureTable } from "../../structure"; +import { BatchTable } from "../../structure"; -import { TileTableData } from "@3d-tiles-tools/tilesets"; -import { BatchTables } from "@3d-tiles-tools/tilesets"; -import { Colors } from "@3d-tiles-tools/tilesets"; -import { TileTableDataPnts } from "@3d-tiles-tools/tilesets"; +import { TileTableData } from "../../tilesets"; +import { BatchTables } from "../../tilesets"; +import { Colors } from "../../tilesets"; +import { TileTableDataPnts } from "../../tilesets"; import { DefaultPointCloud } from "./DefaultPointCloud"; import { ReadablePointCloud } from "./ReadablePointCloud"; diff --git a/packages/tools/src/pointClouds/ReadablePointCloud.ts b/src/tools/pointClouds/ReadablePointCloud.ts similarity index 100% rename from packages/tools/src/pointClouds/ReadablePointCloud.ts rename to src/tools/pointClouds/ReadablePointCloud.ts diff --git a/packages/tools/src/tilesetProcessing/BasicTilesetProcessor.ts b/src/tools/tilesetProcessing/BasicTilesetProcessor.ts similarity index 96% rename from packages/tools/src/tilesetProcessing/BasicTilesetProcessor.ts rename to src/tools/tilesetProcessing/BasicTilesetProcessor.ts index 75ff28a1..5808c549 100644 --- a/packages/tools/src/tilesetProcessing/BasicTilesetProcessor.ts +++ b/src/tools/tilesetProcessing/BasicTilesetProcessor.ts @@ -1,24 +1,24 @@ import path from "path"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; -import { Paths } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "../../base"; +import { Paths } from "../../base"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Tileset } from "../../structure"; +import { Content } from "../../structure"; +import { Schema } from "../../structure"; -import { TilesetSourceResourceResolver } from "@3d-tiles-tools/tilesets"; -import { Tiles } from "@3d-tiles-tools/tilesets"; -import { TraversedTile } from "@3d-tiles-tools/tilesets"; -import { TilesetTraverser } from "@3d-tiles-tools/tilesets"; -import { TraversalCallback } from "@3d-tiles-tools/tilesets"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetSourceResourceResolver } from "../../tilesets"; +import { Tiles } from "../../tilesets"; +import { TraversedTile } from "../../tilesets"; +import { TilesetTraverser } from "../../tilesets"; +import { TraversalCallback } from "../../tilesets"; +import { TilesetEntry } from "../../tilesets"; import { TilesetProcessor } from "./TilesetProcessor"; import { TilesetEntryProcessor } from "./TilesetEntryProcessor"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetProcessing"); /** diff --git a/packages/tools/src/tilesetProcessing/BoundingVolumes.ts b/src/tools/tilesetProcessing/BoundingVolumes.ts similarity index 99% rename from packages/tools/src/tilesetProcessing/BoundingVolumes.ts rename to src/tools/tilesetProcessing/BoundingVolumes.ts index 04fc8ec1..6b189e0e 100644 --- a/packages/tools/src/tilesetProcessing/BoundingVolumes.ts +++ b/src/tools/tilesetProcessing/BoundingVolumes.ts @@ -5,7 +5,7 @@ import { Rectangle } from "cesium"; import { Matrix3 } from "cesium"; import { OrientedBoundingBox } from "cesium"; -import { BoundingVolume } from "@3d-tiles-tools/structure"; +import { BoundingVolume } from "../../structure"; import { OrientedBoundingBoxes } from "./OrientedBoundingBoxes"; diff --git a/packages/tools/src/tilesetProcessing/ContentBoundingVolumes.ts b/src/tools/tilesetProcessing/ContentBoundingVolumes.ts similarity index 95% rename from packages/tools/src/tilesetProcessing/ContentBoundingVolumes.ts rename to src/tools/tilesetProcessing/ContentBoundingVolumes.ts index 640a5d1e..8131fa58 100644 --- a/packages/tools/src/tilesetProcessing/ContentBoundingVolumes.ts +++ b/src/tools/tilesetProcessing/ContentBoundingVolumes.ts @@ -1,24 +1,24 @@ import { Node, PropertyType, Scene } from "@gltf-transform/core"; -import { ContentDataTypeRegistry } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypeRegistry } from "../../base"; +import { ContentDataTypes } from "../../base"; -import { B3dmFeatureTable } from "@3d-tiles-tools/structure"; -import { BatchTable } from "@3d-tiles-tools/structure"; -import { I3dmFeatureTable } from "@3d-tiles-tools/structure"; -import { PntsFeatureTable } from "@3d-tiles-tools/structure"; +import { B3dmFeatureTable } from "../../structure"; +import { BatchTable } from "../../structure"; +import { I3dmFeatureTable } from "../../structure"; +import { PntsFeatureTable } from "../../structure"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; -import { TileFormatError } from "@3d-tiles-tools/tilesets"; -import { TileTableData } from "@3d-tiles-tools/tilesets"; -import { TileTableDataI3dm } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "../../tilesets"; +import { TileFormatError } from "../../tilesets"; +import { TileTableData } from "../../tilesets"; +import { TileTableDataI3dm } from "../../tilesets"; import { GltfTransform } from "../contentProcessing/GltfTransform"; import { PntsPointClouds } from "../pointClouds/PntsPointClouds"; import { BoundingVolumes } from "./BoundingVolumes"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetProcessing"); /** diff --git a/packages/tools/src/tilesetProcessing/OrientedBoundingBoxes.ts b/src/tools/tilesetProcessing/OrientedBoundingBoxes.ts similarity index 100% rename from packages/tools/src/tilesetProcessing/OrientedBoundingBoxes.ts rename to src/tools/tilesetProcessing/OrientedBoundingBoxes.ts diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessing.ts b/src/tools/tilesetProcessing/TileContentProcessing.ts similarity index 97% rename from packages/tools/src/tilesetProcessing/TileContentProcessing.ts rename to src/tools/tilesetProcessing/TileContentProcessing.ts index fc1fffae..822c0f06 100644 --- a/packages/tools/src/tilesetProcessing/TileContentProcessing.ts +++ b/src/tools/tilesetProcessing/TileContentProcessing.ts @@ -1,4 +1,4 @@ -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "../../tilesets"; import { BasicTilesetProcessor } from "./BasicTilesetProcessor"; import { TileContentProcessor } from "./TileContentProcessor"; diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessor.ts b/src/tools/tilesetProcessing/TileContentProcessor.ts similarity index 100% rename from packages/tools/src/tilesetProcessing/TileContentProcessor.ts rename to src/tools/tilesetProcessing/TileContentProcessor.ts diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessors.ts b/src/tools/tilesetProcessing/TileContentProcessors.ts similarity index 100% rename from packages/tools/src/tilesetProcessing/TileContentProcessors.ts rename to src/tools/tilesetProcessing/TileContentProcessors.ts diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessorsGltfPipeline.ts b/src/tools/tilesetProcessing/TileContentProcessorsGltfPipeline.ts similarity index 95% rename from packages/tools/src/tilesetProcessing/TileContentProcessorsGltfPipeline.ts rename to src/tools/tilesetProcessing/TileContentProcessorsGltfPipeline.ts index 0ee79490..3f38960f 100644 --- a/packages/tools/src/tilesetProcessing/TileContentProcessorsGltfPipeline.ts +++ b/src/tools/tilesetProcessing/TileContentProcessorsGltfPipeline.ts @@ -1,6 +1,6 @@ import GltfPipeline from "gltf-pipeline"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "../../base"; import { TileContentProcessor } from "./TileContentProcessor"; diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessorsGltfTransform.ts b/src/tools/tilesetProcessing/TileContentProcessorsGltfTransform.ts similarity index 95% rename from packages/tools/src/tilesetProcessing/TileContentProcessorsGltfTransform.ts rename to src/tools/tilesetProcessing/TileContentProcessorsGltfTransform.ts index 4fb80280..a86cff8c 100644 --- a/packages/tools/src/tilesetProcessing/TileContentProcessorsGltfTransform.ts +++ b/src/tools/tilesetProcessing/TileContentProcessorsGltfTransform.ts @@ -1,6 +1,6 @@ import { Transform } from "@gltf-transform/core"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "../../base"; import { TileContentProcessor } from "./TileContentProcessor"; import { GltfTransform } from "../contentProcessing/GltfTransform"; diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessorsGltfpack.ts b/src/tools/tilesetProcessing/TileContentProcessorsGltfpack.ts similarity index 95% rename from packages/tools/src/tilesetProcessing/TileContentProcessorsGltfpack.ts rename to src/tools/tilesetProcessing/TileContentProcessorsGltfpack.ts index 378531bb..c50076f7 100644 --- a/packages/tools/src/tilesetProcessing/TileContentProcessorsGltfpack.ts +++ b/src/tools/tilesetProcessing/TileContentProcessorsGltfpack.ts @@ -1,4 +1,4 @@ -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "../../base"; import { TileContentProcessor } from "./TileContentProcessor"; diff --git a/packages/tools/src/tilesetProcessing/TileContentProcessorsTextures.ts b/src/tools/tilesetProcessing/TileContentProcessorsTextures.ts similarity index 92% rename from packages/tools/src/tilesetProcessing/TileContentProcessorsTextures.ts rename to src/tools/tilesetProcessing/TileContentProcessorsTextures.ts index ed0dc611..01d65340 100644 --- a/packages/tools/src/tilesetProcessing/TileContentProcessorsTextures.ts +++ b/src/tools/tilesetProcessing/TileContentProcessorsTextures.ts @@ -1,5 +1,5 @@ -import { KtxEtc1sOptions } from "@3d-tiles-tools/ktx"; -import { KtxUastcOptions } from "@3d-tiles-tools/ktx"; +import { KtxEtc1sOptions } from "../../ktx"; +import { KtxUastcOptions } from "../../ktx"; import { TileContentProcessor } from "./TileContentProcessor"; import { TileContentProcessorsGltfTransform } from "./TileContentProcessorsGltfTransform"; diff --git a/packages/tools/src/tilesetProcessing/TilesetCombiner.ts b/src/tools/tilesetProcessing/TilesetCombiner.ts similarity index 92% rename from packages/tools/src/tilesetProcessing/TilesetCombiner.ts rename to src/tools/tilesetProcessing/TilesetCombiner.ts index 74945690..f27fb8ef 100644 --- a/packages/tools/src/tilesetProcessing/TilesetCombiner.ts +++ b/src/tools/tilesetProcessing/TilesetCombiner.ts @@ -1,21 +1,21 @@ import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; -import { ContentData } from "@3d-tiles-tools/base"; -import { BufferedContentData } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; +import { DeveloperError } from "../../base"; +import { ContentData } from "../../base"; +import { BufferedContentData } from "../../base"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; +import { Tile } from "../../structure"; +import { Content } from "../../structure"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; -import { TilesetTarget } from "@3d-tiles-tools/tilesets"; -import { TilesetError } from "@3d-tiles-tools/tilesets"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; -import { TilesetTargets } from "@3d-tiles-tools/tilesets"; -import { Tiles } from "@3d-tiles-tools/tilesets"; -import { Tilesets } from "@3d-tiles-tools/tilesets"; +import { TilesetSource } from "../../tilesets"; +import { TilesetTarget } from "../../tilesets"; +import { TilesetError } from "../../tilesets"; +import { TilesetSources } from "../../tilesets"; +import { TilesetTargets } from "../../tilesets"; +import { Tiles } from "../../tilesets"; +import { Tilesets } from "../../tilesets"; /** * A class for combining external tileset of a given tileset, to diff --git a/packages/tools/src/tilesetProcessing/TilesetConverter.ts b/src/tools/tilesetProcessing/TilesetConverter.ts similarity index 91% rename from packages/tools/src/tilesetProcessing/TilesetConverter.ts rename to src/tools/tilesetProcessing/TilesetConverter.ts index 28a36866..f2ac8255 100644 --- a/packages/tools/src/tilesetProcessing/TilesetConverter.ts +++ b/src/tools/tilesetProcessing/TilesetConverter.ts @@ -1,12 +1,12 @@ import path from "path"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; -import { TilesetTargets } from "@3d-tiles-tools/tilesets"; -import { TilesetError } from "@3d-tiles-tools/tilesets"; -import { Tilesets } from "@3d-tiles-tools/tilesets"; -import { ZipToPackage } from "@3d-tiles-tools/tilesets"; +import { TilesetSources } from "../../tilesets"; +import { TilesetTargets } from "../../tilesets"; +import { TilesetError } from "../../tilesets"; +import { Tilesets } from "../../tilesets"; +import { ZipToPackage } from "../../tilesets"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetProcessing"); /** diff --git a/packages/tools/src/tilesetProcessing/TilesetDataProcessor.ts b/src/tools/tilesetProcessing/TilesetDataProcessor.ts similarity index 100% rename from packages/tools/src/tilesetProcessing/TilesetDataProcessor.ts rename to src/tools/tilesetProcessing/TilesetDataProcessor.ts diff --git a/packages/tools/src/tilesetProcessing/TilesetEntryProcessor.ts b/src/tools/tilesetProcessing/TilesetEntryProcessor.ts similarity index 95% rename from packages/tools/src/tilesetProcessing/TilesetEntryProcessor.ts rename to src/tools/tilesetProcessing/TilesetEntryProcessor.ts index e6a1cf55..fa528a8b 100644 --- a/packages/tools/src/tilesetProcessing/TilesetEntryProcessor.ts +++ b/src/tools/tilesetProcessing/TilesetEntryProcessor.ts @@ -1,4 +1,4 @@ -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "../../tilesets"; /** * A function that can process one `TilesetEntry` that is part diff --git a/packages/tools/src/tilesetProcessing/TilesetJsonCreator.ts b/src/tools/tilesetProcessing/TilesetJsonCreator.ts similarity index 97% rename from packages/tools/src/tilesetProcessing/TilesetJsonCreator.ts rename to src/tools/tilesetProcessing/TilesetJsonCreator.ts index c1a86759..d4455df0 100644 --- a/packages/tools/src/tilesetProcessing/TilesetJsonCreator.ts +++ b/src/tools/tilesetProcessing/TilesetJsonCreator.ts @@ -1,14 +1,14 @@ import fs from "fs"; import path from "path"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { BoundingVolume } from "@3d-tiles-tools/structure"; +import { Tile } from "../../structure"; +import { Tileset } from "../../structure"; +import { BoundingVolume } from "../../structure"; import { BoundingVolumes } from "./BoundingVolumes"; import { ContentBoundingVolumes } from "./ContentBoundingVolumes"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetProcessing"); const DEFAULT_LEAF_GEOMETRIC_ERROR = 512; diff --git a/packages/tools/src/tilesetProcessing/TilesetMerger.ts b/src/tools/tilesetProcessing/TilesetMerger.ts similarity index 94% rename from packages/tools/src/tilesetProcessing/TilesetMerger.ts rename to src/tools/tilesetProcessing/TilesetMerger.ts index 87c95bea..7f640205 100644 --- a/packages/tools/src/tilesetProcessing/TilesetMerger.ts +++ b/src/tools/tilesetProcessing/TilesetMerger.ts @@ -1,17 +1,17 @@ import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; +import { DeveloperError } from "../../base"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Tile } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; +import { Tile } from "../../structure"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; -import { TilesetTarget } from "@3d-tiles-tools/tilesets"; -import { TilesetError } from "@3d-tiles-tools/tilesets"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; -import { TilesetTargets } from "@3d-tiles-tools/tilesets"; -import { Tilesets } from "@3d-tiles-tools/tilesets"; +import { TilesetSource } from "../../tilesets"; +import { TilesetTarget } from "../../tilesets"; +import { TilesetError } from "../../tilesets"; +import { TilesetSources } from "../../tilesets"; +import { TilesetTargets } from "../../tilesets"; +import { Tilesets } from "../../tilesets"; import { BoundingVolumes } from "./BoundingVolumes"; diff --git a/packages/tools/src/tilesetProcessing/TilesetOperations.ts b/src/tools/tilesetProcessing/TilesetOperations.ts similarity index 95% rename from packages/tools/src/tilesetProcessing/TilesetOperations.ts rename to src/tools/tilesetProcessing/TilesetOperations.ts index de1b76cb..f05e4687 100644 --- a/packages/tools/src/tilesetProcessing/TilesetOperations.ts +++ b/src/tools/tilesetProcessing/TilesetOperations.ts @@ -1,7 +1,7 @@ -import { ContentDataTypeChecks } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypeChecks } from "../../base"; +import { ContentDataTypes } from "../../base"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; import { TilesetCombiner } from "./TilesetCombiner"; import { TilesetMerger } from "./TilesetMerger"; diff --git a/packages/tools/src/tilesetProcessing/TilesetProcessing.ts b/src/tools/tilesetProcessing/TilesetProcessing.ts similarity index 91% rename from packages/tools/src/tilesetProcessing/TilesetProcessing.ts rename to src/tools/tilesetProcessing/TilesetProcessing.ts index e650d8fb..e066de69 100644 --- a/packages/tools/src/tilesetProcessing/TilesetProcessing.ts +++ b/src/tools/tilesetProcessing/TilesetProcessing.ts @@ -1,10 +1,10 @@ -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "../../base"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; +import { Schema } from "../../structure"; -import { TilesetError } from "@3d-tiles-tools/tilesets"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; +import { TilesetError } from "../../tilesets"; +import { TilesetSource } from "../../tilesets"; /** * Internal utility methods for the tileset processing diff --git a/packages/tools/src/tilesetProcessing/TilesetProcessor.ts b/src/tools/tilesetProcessing/TilesetProcessor.ts similarity index 97% rename from packages/tools/src/tilesetProcessing/TilesetProcessor.ts rename to src/tools/tilesetProcessing/TilesetProcessor.ts index f856e24c..a10c647f 100644 --- a/packages/tools/src/tilesetProcessing/TilesetProcessor.ts +++ b/src/tools/tilesetProcessing/TilesetProcessor.ts @@ -1,14 +1,14 @@ -import { DeveloperError } from "@3d-tiles-tools/base"; -import { ContentDataTypeRegistry } from "@3d-tiles-tools/base"; +import { DeveloperError } from "../../base"; +import { ContentDataTypeRegistry } from "../../base"; -import { TilesetError } from "@3d-tiles-tools/tilesets"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetError } from "../../tilesets"; +import { TilesetEntry } from "../../tilesets"; import { TilesetEntryProcessor } from "./TilesetEntryProcessor"; import { TilesetProcessorContext } from "./TilesetProcessorContext"; import { TilesetProcessorContexts } from "./TilesetProcessorContexts"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("tilesetProcessing"); /** diff --git a/packages/tools/src/tilesetProcessing/TilesetProcessorContext.ts b/src/tools/tilesetProcessing/TilesetProcessorContext.ts similarity index 88% rename from packages/tools/src/tilesetProcessing/TilesetProcessorContext.ts rename to src/tools/tilesetProcessing/TilesetProcessorContext.ts index abe2e7a6..f085e179 100644 --- a/packages/tools/src/tilesetProcessing/TilesetProcessorContext.ts +++ b/src/tools/tilesetProcessing/TilesetProcessorContext.ts @@ -1,8 +1,8 @@ -import { Schema } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Schema } from "../../structure"; +import { Tileset } from "../../structure"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; -import { TilesetTarget } from "@3d-tiles-tools/tilesets"; +import { TilesetSource } from "../../tilesets"; +import { TilesetTarget } from "../../tilesets"; /** * A class summarizing the data that a `TilesetProcessor` is operating on. diff --git a/packages/tools/src/tilesetProcessing/TilesetProcessorContexts.ts b/src/tools/tilesetProcessing/TilesetProcessorContexts.ts similarity index 96% rename from packages/tools/src/tilesetProcessing/TilesetProcessorContexts.ts rename to src/tools/tilesetProcessing/TilesetProcessorContexts.ts index 8fa33219..8dfd346c 100644 --- a/packages/tools/src/tilesetProcessing/TilesetProcessorContexts.ts +++ b/src/tools/tilesetProcessing/TilesetProcessorContexts.ts @@ -1,9 +1,9 @@ import path from "path"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; -import { TilesetTargets } from "@3d-tiles-tools/tilesets"; +import { TilesetSources } from "../../tilesets"; +import { TilesetTargets } from "../../tilesets"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; import { TilesetProcessing } from "./TilesetProcessing"; import { TilesetProcessorContext } from "./TilesetProcessorContext"; diff --git a/packages/tools/src/tilesetProcessing/TilesetUpgrader.ts b/src/tools/tilesetProcessing/TilesetUpgrader.ts similarity index 97% rename from packages/tools/src/tilesetProcessing/TilesetUpgrader.ts rename to src/tools/tilesetProcessing/TilesetUpgrader.ts index 4d253122..2d435aa3 100644 --- a/packages/tools/src/tilesetProcessing/TilesetUpgrader.ts +++ b/src/tools/tilesetProcessing/TilesetUpgrader.ts @@ -1,12 +1,12 @@ -import { Paths } from "@3d-tiles-tools/base"; -import { DeveloperError } from "@3d-tiles-tools/base"; +import { Paths } from "../../base"; +import { DeveloperError } from "../../base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "../../base"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; +import { Tileset } from "../../structure"; +import { Schema } from "../../structure"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "../../tilesets"; import { TilesetUpgradeOptions } from "./upgrade/TilesetUpgradeOptions"; import { TilesetObjectUpgrader } from "./upgrade/TilesetObjectUpgrader"; @@ -17,7 +17,7 @@ import { BasicTilesetProcessor } from "./BasicTilesetProcessor"; import { TileFormatsMigration } from "../migration/TileFormatsMigration"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../base"; const logger = Loggers.get("upgrade"); /** diff --git a/packages/tools/src/tilesetProcessing/external/README.md b/src/tools/tilesetProcessing/external/README.md similarity index 100% rename from packages/tools/src/tilesetProcessing/external/README.md rename to src/tools/tilesetProcessing/external/README.md diff --git a/packages/tools/src/tilesetProcessing/external/dito.ts b/src/tools/tilesetProcessing/external/dito.ts similarity index 100% rename from packages/tools/src/tilesetProcessing/external/dito.ts rename to src/tools/tilesetProcessing/external/dito.ts diff --git a/packages/tools/src/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts b/src/tools/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts similarity index 94% rename from packages/tools/src/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts rename to src/tools/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts index eeba2597..36c1aa25 100644 --- a/packages/tools/src/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts +++ b/src/tools/tilesetProcessing/upgrade/TilesetObjectUpgrader.ts @@ -1,13 +1,13 @@ -import { Tile } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Content } from "@3d-tiles-tools/structure"; +import { Tile } from "../../../structure"; +import { Tileset } from "../../../structure"; +import { Content } from "../../../structure"; -import { Tiles } from "@3d-tiles-tools/tilesets"; -import { Extensions } from "@3d-tiles-tools/tilesets"; +import { Tiles } from "../../../tilesets"; +import { Extensions } from "../../../tilesets"; import { TilesetUpgradeOptions } from "./TilesetUpgradeOptions"; -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "../../../base"; const logger = Loggers.get("upgrade"); /** diff --git a/packages/tools/src/tilesetProcessing/upgrade/TilesetUpgradeOptions.ts b/src/tools/tilesetProcessing/upgrade/TilesetUpgradeOptions.ts similarity index 100% rename from packages/tools/src/tilesetProcessing/upgrade/TilesetUpgradeOptions.ts rename to src/tools/tilesetProcessing/upgrade/TilesetUpgradeOptions.ts diff --git a/tsconfig.json b/tsconfig.json index 2121eef1..71a29023 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,10 +2,12 @@ "compilerOptions": { "module": "CommonJS", "target": "ES2021", - "baseUrl": "./packages", + "baseUrl": "./src", "strict": true, "lib": ["es2021"], + "outDir": "./build", + "esModuleInterop": true, "skipLibCheck": true, "resolveJsonModule": true, @@ -15,67 +17,7 @@ "declarationMap": true, "noImplicitAny": false, "sourceMap": true, - - "paths": { - "@3d-tiles-tools/structure": ["./packages/structure/"], - "@3d-tiles-tools/base": ["./packages/base/"], - "@3d-tiles-tools/gltf-extensions": ["./packages/gltf-extensions/"], - "@3d-tiles-tools/metadata": ["./packages/metadata/"], - "@3d-tiles-tools/tilesets": ["./packages/tilesets/"], - "@3d-tiles-tools/tools": ["./packages/tools/"], - "@3d-tiles-tools/cli": ["./packages/cli/"], - } }, "include": ["specs"], - "exclude": ["node_modules", "specs/data"], - "references": [ - { - "path": "./packages/structure/src/tsconfig.json" - }, - { - "path": "./packages/gltf-extensions/src/tsconfig.json" - }, - { - "path": "./packages/base/src/tsconfig.json" - }, - { - "path": "./packages/ktx/src/tsconfig.json" - }, - { - "path": "./packages/metadata/src/tsconfig.json" - }, - { - "path": "./packages/tilesets/src/tsconfig.json" - }, - { - "path": "./packages/tools/src/tsconfig.json" - }, - { - "path": "./packages/cli/src/tsconfig.json" - }, - - { - "path": "./packages/spec-helpers/src/tsconfig.json" - }, - - { - "path": "./packages/base/specs/tsconfig.json" - }, - { - "path": "./packages/ktx/specs/tsconfig.json" - }, - { - "path": "./packages/metadata/specs/tsconfig.json" - }, - { - "path": "./packages/tilesets/specs/tsconfig.json" - }, - { - "path": "./packages/tools/specs/tsconfig.json" - }, - { - "path": "./packages/cli/specs/tsconfig.json" - }, - - ] + "exclude": ["node_modules", "specs/data"] } From 646971398a4cb42903ff6a95d62688ceb9a68b18 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 16:43:33 +0100 Subject: [PATCH 02/13] Update build- and config files --- .c8rc.json | 4 ++-- .eslintignore | 3 +-- .npmignore | 1 - generateThirdParty.js | 21 ++++++++++++++------- package.json | 4 ++-- tsconfig.json | 4 ++-- 6 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.c8rc.json b/.c8rc.json index 400bd947..d627e647 100644 --- a/.c8rc.json +++ b/.c8rc.json @@ -1,9 +1,9 @@ { "exclude": [ - "**specs/**/*Spec.ts" + "specs/**/*Spec.ts" ], "include": [ - "packages/**/src/**/*.ts" + "src/**/*.ts" ], "reporter": [ "html", diff --git a/.eslintignore b/.eslintignore index 91061c1c..f51614ce 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,5 +4,4 @@ node_modules dist etc generateThirdParty.js -packages/ktx/src/ktx/external/basis_encoder.cjs -packages/cli/bin/cli.mjs \ No newline at end of file +src/ktx/ktx/external/basis_encoder.cjs diff --git a/.npmignore b/.npmignore index 406287e7..4236fe86 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,4 @@ /.github -/.nyc_output /bin /coverage /demos diff --git a/generateThirdParty.js b/generateThirdParty.js index 1cdeeb3f..b7f3e51f 100644 --- a/generateThirdParty.js +++ b/generateThirdParty.js @@ -98,12 +98,14 @@ async function collectThirdParty(baseDirectory, licenseDatas) { async function generateThirdParty() { // The pattern for dependency names that will be - // excluded because they are actually internal ones - const exclusionRegex = ""; + // excluded because they are actually internal ones. + // In the future, this might, for example, be + // something like "@3d-tiles-tools/.*". + const exclusionRegex = undefined; console.log("Generating ThirdParty.json..."); - const rootDirectory = "."; + const rootDirectory = "./"; const rootPackageJsonPath = path.resolve(rootDirectory, "package.json"); const rootPackageJson = JSON.parse(fs.readFileSync(rootPackageJsonPath)); @@ -133,10 +135,15 @@ async function generateThirdParty() { return 0; }); - const thirdPartyJson = licenseDatas.filter((entry) => { - const match = entry.name.match(exclusionRegex); - return match === null; - }); + let thirdPartyJson; + if (exclusionRegex !== undefined) { + thirdPartyJson = licenseDatas.filter((entry) => { + const match = entry.name.match(exclusionRegex); + return match === null; + }) + } else { + thirdPartyJson = licenseDatas; + } fs.writeFileSync("ThirdParty.json", JSON.stringify(thirdPartyJson, null, 2)); console.log("Generating ThirdParty.json DONE"); diff --git a/package.json b/package.json index 22f6eb16..5e9d7d62 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "eslint": "eslint \"./**/*.ts\" --cache", "build": "tsc --build --verbose --force && npm run build-post", "build-post": "npm run build-post-ktx && npm run build-post-cli", - "build-post-ktx": "npx copyfiles --flat ./src/ktx/ktx/external/basis_encoder.wasm ./build/src/ktx/external", + "build-post-ktx": "npx copyfiles --flat ./src/ktx/ktx/external/basis_encoder.* ./build/src/ktx/ktx/external", "build-post-cli": "npx copyfiles --flat ./bin/cli.mjs ./build/src", "test": "npx ts-node node_modules/jasmine/bin/jasmine.js --config=specs/jasmine.json", "coverage": "npx c8 --clean npm run test", @@ -102,7 +102,7 @@ "docs-generate": "npm run docs-prepare-directory && npm run docs-extract-api && npm run docs-generate-markdown", "docs": "npm run build && npm run docs-generate", "package-clean": "del-cli ./build/**", - "package-prepare": "npm run eslint && npm run prettier-check && npm run build && npm run test && npm run generate-third-party", + "package-prepare": "npm run eslint && npm run prettier-check && npm run build && npm run test && npm run coverage && npm run generate-third-party", "package": "npm run package-clean && npm run package-prepare && npm pack" } } diff --git a/tsconfig.json b/tsconfig.json index 71a29023..7abb1757 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "CommonJS", "target": "ES2021", - "baseUrl": "./src", + "baseUrl": "./", "strict": true, "lib": ["es2021"], @@ -18,6 +18,6 @@ "noImplicitAny": false, "sourceMap": true, }, - "include": ["specs"], + "include": ["src/**/*", "specs/**/*"], "exclude": ["node_modules", "specs/data"] } From 220c4e77e38526ca01fcbd9ca30c415fadb40d68 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 16:44:22 +0100 Subject: [PATCH 03/13] Update demos description and config --- demos/README.md | 18 ++++++++++++++---- demos/package.json | 8 +------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/demos/README.md b/demos/README.md index e18a875e..eb40616d 100644 --- a/demos/README.md +++ b/demos/README.md @@ -1,10 +1,20 @@ ## 3D Tiles Tools Demos -This project declares all 3D Tiles tools packages as (local) dependencies. The demos show how to use various parts of the API. This is intended as an internal preview for developers. The functionality is not yet exposed as a public API. +This project declares the 3D Tiles tools build output as (local) dependency. The demos show how to use various parts of the API. This is intended as an internal preview for developers. The functionality is not yet exposed as a public API. -After installing the dependencies by running -`npm install` -in the `./demos` subdirectory, each of these demos can be started (from the root directory of the 3D Tiles Tools!) with +In the root directory of the 3D Tiles tools: + +- Install the 3D Tiles Tools dependencies: + `npm install` +- Create the build output of the 3D Tiles tools: + `npm run build` + +In the `/demos/` subdirectory: + +- Install the 3D Tiles Tools build output as a dependency: + `npm install` + +Then, each of these demos can be started (from the root directory of the 3D Tiles Tools!) with `npx ts-node ./demos/`_``_`/`_``_`.ts` diff --git a/demos/package.json b/demos/package.json index 3fd2094a..f4cfc203 100644 --- a/demos/package.json +++ b/demos/package.json @@ -6,13 +6,7 @@ "description": "3D Tiles tools demos", "type": "commonjs", "dependencies": { - "@3d-tiles-tools/base": "file:../packages/base", - "@3d-tiles-tools/gltf-extensions": "file:../packages/gltf-extensions", - "@3d-tiles-tools/ktx": "file:../packages/ktx", - "@3d-tiles-tools/metadata": "file:../packages/metadata", - "@3d-tiles-tools/structure": "file:../packages/structure", - "@3d-tiles-tools/tilesets": "file:../packages/tilesets", - "@3d-tiles-tools/tools": "file:../packages/tools", + "3d-tiles-tools": "file:../build/src", "minimist": "^1.2.7", "seedrandom": "^3.0.5" }, From 3f4475cdff6b8e6dcc01190c88e19f3750508f0d Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 16:44:38 +0100 Subject: [PATCH 04/13] Update imports in demos --- demos/base/ContentDataTypeChecksDemo.ts | 6 +++--- demos/base/ContentDataTypeRegistryDemo.ts | 4 ++-- demos/base/LoggingDemo.ts | 2 +- demos/base/SpatialDemos.ts | 4 ++-- demos/gltf-extensions/ExtInstanceFeaturesDemo.ts | 4 ++-- demos/gltf-extensions/ExtMeshFeaturesDemo.ts | 4 ++-- .../gltf-extensions/ExtMeshFeaturesGeometryDemo.ts | 6 +++--- .../ExtStructuralMetadataPropertyTableDemo.ts | 12 ++++++------ demos/ktx/KtxDemo.ts | 4 ++-- demos/metadata/BinaryMetadataDemos.ts | 6 +++--- demos/metadata/BinaryPropertyTableBuilderDemo.ts | 12 ++++++------ demos/metadata/MetadataDemos.ts | 6 +++--- demos/tilesets/PackageConversion.ts | 6 +++--- demos/tilesets/PackageServer.ts | 6 +++--- demos/tilesets/PackagesDemo.ts | 4 ++-- demos/tilesets/TemplateUrisDemo.ts | 6 +++--- demos/tilesets/TileFormatsDemo.ts | 6 +++--- demos/tilesets/TileFormatsDemoBasic.ts | 2 +- demos/tilesets/TraversalDemo.ts | 8 ++++---- demos/tilesets/TraversalStatsDemo.ts | 14 +++++++------- demos/tilesets/benchmarks/BenchmarkUtils.ts | 2 +- .../benchmarks/PackageCreationBenchmark.ts | 8 ++++---- .../tilesets/benchmarks/PackageReadingBenchmark.ts | 6 +++--- demos/tools/BasicTilesetProcessorExamples.ts | 12 ++++++------ demos/tools/ImplicitToExplicitDemo.ts | 14 +++++++------- demos/tools/PipelineExperimentsContentStages.ts | 10 +++++----- demos/tools/PipelineExperimentsTilesetStages.ts | 10 +++++----- demos/tools/SubtreeInfoDemos.ts | 8 ++++---- demos/tools/TileContentProcessingDemo.ts | 12 ++++++------ demos/tools/TilesetDataProcessorExamples.ts | 4 ++-- demos/tools/TilesetProcessingDemos.ts | 6 +++--- demos/tools/TilesetUpgraderDemos.ts | 6 +++--- 32 files changed, 110 insertions(+), 110 deletions(-) diff --git a/demos/base/ContentDataTypeChecksDemo.ts b/demos/base/ContentDataTypeChecksDemo.ts index bd365d1c..b5b6efef 100644 --- a/demos/base/ContentDataTypeChecksDemo.ts +++ b/demos/base/ContentDataTypeChecksDemo.ts @@ -1,6 +1,6 @@ -import { BufferedContentData } from "@3d-tiles-tools/base"; -import { ContentDataTypeChecks } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { BufferedContentData } from "3d-tiles-tools"; +import { ContentDataTypeChecks } from "3d-tiles-tools"; +import { ContentDataTypes } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/base/ContentDataTypeRegistryDemo.ts b/demos/base/ContentDataTypeRegistryDemo.ts index 32acbefd..09d88491 100644 --- a/demos/base/ContentDataTypeRegistryDemo.ts +++ b/demos/base/ContentDataTypeRegistryDemo.ts @@ -1,5 +1,5 @@ -import { BufferedContentData } from "@3d-tiles-tools/base"; -import { ContentDataTypeRegistry } from "@3d-tiles-tools/base"; +import { BufferedContentData } from "3d-tiles-tools"; +import { ContentDataTypeRegistry } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/base/LoggingDemo.ts b/demos/base/LoggingDemo.ts index 243e0c6c..c446764e 100644 --- a/demos/base/LoggingDemo.ts +++ b/demos/base/LoggingDemo.ts @@ -1,4 +1,4 @@ -import { Loggers } from "@3d-tiles-tools/base"; +import { Loggers } from "3d-tiles-tools"; // Create a default logger to use in this file. const logger = Loggers.get(); diff --git a/demos/base/SpatialDemos.ts b/demos/base/SpatialDemos.ts index 002a0e36..99a64f41 100644 --- a/demos/base/SpatialDemos.ts +++ b/demos/base/SpatialDemos.ts @@ -1,5 +1,5 @@ -import { Quadtrees } from "@3d-tiles-tools/base"; -import { QuadtreeCoordinates } from "@3d-tiles-tools/base"; +import { Quadtrees } from "3d-tiles-tools"; +import { QuadtreeCoordinates } from "3d-tiles-tools"; /** * A basic demo of the `QuadtreeCoordinates.children` method diff --git a/demos/gltf-extensions/ExtInstanceFeaturesDemo.ts b/demos/gltf-extensions/ExtInstanceFeaturesDemo.ts index 5d3db60d..fd384297 100644 --- a/demos/gltf-extensions/ExtInstanceFeaturesDemo.ts +++ b/demos/gltf-extensions/ExtInstanceFeaturesDemo.ts @@ -4,8 +4,8 @@ import { NodeIO } from "@gltf-transform/core"; import { EXTMeshGPUInstancing } from "@gltf-transform/extensions"; -import { EXTInstanceFeatures } from "@3d-tiles-tools/gltf-extensions"; -import { InstanceFeaturesUtils } from "@3d-tiles-tools/tools"; +import { EXTInstanceFeatures } from "3d-tiles-tools"; +import { InstanceFeaturesUtils } from "3d-tiles-tools"; function createMesh(document: Document) { const root = document.getRoot(); diff --git a/demos/gltf-extensions/ExtMeshFeaturesDemo.ts b/demos/gltf-extensions/ExtMeshFeaturesDemo.ts index 0b46d8c1..bce5d144 100644 --- a/demos/gltf-extensions/ExtMeshFeaturesDemo.ts +++ b/demos/gltf-extensions/ExtMeshFeaturesDemo.ts @@ -5,9 +5,9 @@ import { NodeIO } from "@gltf-transform/core"; import { savePixels } from "ndarray-pixels"; import NdArray from "ndarray"; -import { EXTMeshFeatures } from "@3d-tiles-tools/gltf-extensions"; +import { EXTMeshFeatures } from "3d-tiles-tools"; -import { MeshFeaturesUtils } from "@3d-tiles-tools/tools"; +import { MeshFeaturesUtils } from "3d-tiles-tools"; async function createExampleDocument(): Promise { const document = new Document(); diff --git a/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts b/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts index 847bba94..03e83e34 100644 --- a/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts +++ b/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts @@ -8,10 +8,10 @@ import { NodeIO } from "@gltf-transform/core"; import { savePixels } from "ndarray-pixels"; import NdArray from "ndarray"; -import { EXTMeshFeatures } from "@3d-tiles-tools/gltf-extensions"; -import { MeshFeaturesFeatureId as FeatureId } from "@3d-tiles-tools/gltf-extensions"; +import { EXTMeshFeatures } from "3d-tiles-tools"; +import { MeshFeaturesFeatureId as FeatureId } from "3d-tiles-tools"; -import { MeshFeaturesUtils } from "@3d-tiles-tools/tools"; +import { MeshFeaturesUtils } from "3d-tiles-tools"; /** * Create a primitive that represents a unit square diff --git a/demos/gltf-extensions/ExtStructuralMetadataPropertyTableDemo.ts b/demos/gltf-extensions/ExtStructuralMetadataPropertyTableDemo.ts index fef7da35..2d1e9e4a 100644 --- a/demos/gltf-extensions/ExtStructuralMetadataPropertyTableDemo.ts +++ b/demos/gltf-extensions/ExtStructuralMetadataPropertyTableDemo.ts @@ -1,14 +1,14 @@ import { Document } from "@gltf-transform/core"; import { NodeIO } from "@gltf-transform/core"; -import { EXTStructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; -import { StructuralMetadata } from "@3d-tiles-tools/gltf-extensions"; +import { EXTStructuralMetadata } from "3d-tiles-tools"; +import { StructuralMetadata } from "3d-tiles-tools"; -import { BinaryPropertyTableBuilder } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTableModel } from "@3d-tiles-tools/metadata"; -import { PropertyTableModels } from "@3d-tiles-tools/metadata"; +import { BinaryPropertyTableBuilder } from "3d-tiles-tools"; +import { BinaryPropertyTableModel } from "3d-tiles-tools"; +import { PropertyTableModels } from "3d-tiles-tools"; -import { StructuralMetadataPropertyTables } from "@3d-tiles-tools/tools"; +import { StructuralMetadataPropertyTables } from "3d-tiles-tools"; // An example metadata schema const exampleSchema = { diff --git a/demos/ktx/KtxDemo.ts b/demos/ktx/KtxDemo.ts index 7744e203..8f10b24f 100644 --- a/demos/ktx/KtxDemo.ts +++ b/demos/ktx/KtxDemo.ts @@ -3,8 +3,8 @@ import path from "path"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; -import { KtxUtility } from "@3d-tiles-tools/ktx"; -import { KtxOptions } from "@3d-tiles-tools/ktx"; +import { KtxUtility } from "3d-tiles-tools"; +import { KtxOptions } from "3d-tiles-tools"; async function convertImageFileEtc1s() { const inputFileName = SPECS_DATA_BASE_DIRECTORY + "/images/CesiumLogo.png"; diff --git a/demos/metadata/BinaryMetadataDemos.ts b/demos/metadata/BinaryMetadataDemos.ts index 31305bb1..94ce5fe7 100644 --- a/demos/metadata/BinaryMetadataDemos.ts +++ b/demos/metadata/BinaryMetadataDemos.ts @@ -1,6 +1,6 @@ -import { ClassProperty } from "@3d-tiles-tools/structure"; -import { BinaryPropertyTables } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTableModel } from "@3d-tiles-tools/metadata"; +import { ClassProperty } from "3d-tiles-tools"; +import { BinaryPropertyTables } from "3d-tiles-tools"; +import { BinaryPropertyTableModel } from "3d-tiles-tools"; /** * A test for the `BinaryPropertyTableModel` class. diff --git a/demos/metadata/BinaryPropertyTableBuilderDemo.ts b/demos/metadata/BinaryPropertyTableBuilderDemo.ts index 4f38b3bb..2bf07c2d 100644 --- a/demos/metadata/BinaryPropertyTableBuilderDemo.ts +++ b/demos/metadata/BinaryPropertyTableBuilderDemo.ts @@ -1,10 +1,10 @@ -import { BinaryPropertyTableBuilder } from "@3d-tiles-tools/metadata"; -import { PropertyTableModels } from "@3d-tiles-tools/metadata"; -import { BinaryPropertyTableModel } from "@3d-tiles-tools/metadata"; +import { BinaryPropertyTableBuilder } from "3d-tiles-tools"; +import { PropertyTableModels } from "3d-tiles-tools"; +import { BinaryPropertyTableModel } from "3d-tiles-tools"; -import { Schema } from "@3d-tiles-tools/structure"; -import { MetadataClass } from "@3d-tiles-tools/structure"; -import { MetadataEnum } from "@3d-tiles-tools/structure"; +import { Schema } from "3d-tiles-tools"; +import { MetadataClass } from "3d-tiles-tools"; +import { MetadataEnum } from "3d-tiles-tools"; const exampleMetadataClass: MetadataClass = { name: "Example metadata class", diff --git a/demos/metadata/MetadataDemos.ts b/demos/metadata/MetadataDemos.ts index 2d7f6309..ad295bed 100644 --- a/demos/metadata/MetadataDemos.ts +++ b/demos/metadata/MetadataDemos.ts @@ -1,9 +1,9 @@ import { readJsonUnchecked } from "../readJsonUnchecked"; -import { MetadataClass } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { MetadataClass } from "3d-tiles-tools"; +import { Tileset } from "3d-tiles-tools"; -import { MetadataEntityModels } from "@3d-tiles-tools/metadata"; +import { MetadataEntityModels } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tilesets/PackageConversion.ts b/demos/tilesets/PackageConversion.ts index cc10ca22..040b40a2 100644 --- a/demos/tilesets/PackageConversion.ts +++ b/demos/tilesets/PackageConversion.ts @@ -1,10 +1,10 @@ import path from "path"; import minimist from "minimist"; -import { TilesetTargets } from "@3d-tiles-tools/tilesets"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; +import { TilesetTargets } from "3d-tiles-tools"; +import { TilesetSources } from "3d-tiles-tools"; -import { ZipToPackage } from "@3d-tiles-tools/tilesets"; +import { ZipToPackage } from "3d-tiles-tools"; /** * Print the help message showing the command line options diff --git a/demos/tilesets/PackageServer.ts b/demos/tilesets/PackageServer.ts index c92c68e9..1c172320 100644 --- a/demos/tilesets/PackageServer.ts +++ b/demos/tilesets/PackageServer.ts @@ -2,10 +2,10 @@ import path from "path"; import http from "http"; import minimist from "minimist"; -import { Buffers } from "@3d-tiles-tools/base"; +import { Buffers } from "3d-tiles-tools"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; +import { TilesetSource } from "3d-tiles-tools"; +import { TilesetSources } from "3d-tiles-tools"; /** * Print the help message showing the command line options diff --git a/demos/tilesets/PackagesDemo.ts b/demos/tilesets/PackagesDemo.ts index 8ec69370..f846c68e 100644 --- a/demos/tilesets/PackagesDemo.ts +++ b/demos/tilesets/PackagesDemo.ts @@ -1,7 +1,7 @@ import fs from "fs"; -import { TilesetSources } from "@3d-tiles-tools/tilesets"; -import { TilesetTargets } from "@3d-tiles-tools/tilesets"; +import { TilesetSources } from "3d-tiles-tools"; +import { TilesetTargets } from "3d-tiles-tools"; /** * Basic example showing how to create a package diff --git a/demos/tilesets/TemplateUrisDemo.ts b/demos/tilesets/TemplateUrisDemo.ts index 7521843b..f145c3d4 100644 --- a/demos/tilesets/TemplateUrisDemo.ts +++ b/demos/tilesets/TemplateUrisDemo.ts @@ -1,7 +1,7 @@ -import { QuadtreeCoordinates } from "@3d-tiles-tools/base"; -import { OctreeCoordinates } from "@3d-tiles-tools/base"; +import { QuadtreeCoordinates } from "3d-tiles-tools"; +import { OctreeCoordinates } from "3d-tiles-tools"; -import { TemplateUris } from "@3d-tiles-tools/tilesets"; +import { TemplateUris } from "3d-tiles-tools"; /** * A basic demo for the `TemplateUris.substituteQuadtree` method diff --git a/demos/tilesets/TileFormatsDemo.ts b/demos/tilesets/TileFormatsDemo.ts index 7937cdad..1d087e66 100644 --- a/demos/tilesets/TileFormatsDemo.ts +++ b/demos/tilesets/TileFormatsDemo.ts @@ -1,9 +1,9 @@ import fs from "fs"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "3d-tiles-tools"; -import { GltfUtilities } from "@3d-tiles-tools/tools"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; +import { GltfUtilities } from "3d-tiles-tools"; +import { TileFormats } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tilesets/TileFormatsDemoBasic.ts b/demos/tilesets/TileFormatsDemoBasic.ts index 94adf708..f7c9f4c5 100644 --- a/demos/tilesets/TileFormatsDemoBasic.ts +++ b/demos/tilesets/TileFormatsDemoBasic.ts @@ -1,6 +1,6 @@ import fs from "fs"; -import { TileFormats } from "@3d-tiles-tools/tilesets"; +import { TileFormats } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tilesets/TraversalDemo.ts b/demos/tilesets/TraversalDemo.ts index 0730384c..cbfaaf7f 100644 --- a/demos/tilesets/TraversalDemo.ts +++ b/demos/tilesets/TraversalDemo.ts @@ -2,10 +2,10 @@ import path from "path"; import { readJsonUnchecked } from "../readJsonUnchecked"; -import { ResourceResolvers } from "@3d-tiles-tools/base"; -import { TilesetTraverser } from "@3d-tiles-tools/tilesets"; -import { TraversedTile } from "@3d-tiles-tools/tilesets"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { ResourceResolvers } from "3d-tiles-tools"; +import { TilesetTraverser } from "3d-tiles-tools"; +import { TraversedTile } from "3d-tiles-tools"; +import { Tileset } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tilesets/TraversalStatsDemo.ts b/demos/tilesets/TraversalStatsDemo.ts index dc729e1f..ad737d74 100644 --- a/demos/tilesets/TraversalStatsDemo.ts +++ b/demos/tilesets/TraversalStatsDemo.ts @@ -2,15 +2,15 @@ import path from "path"; import { readJsonUnchecked } from "../readJsonUnchecked"; -import { TilesetTraverser } from "@3d-tiles-tools/tilesets"; -import { TraversedTile } from "@3d-tiles-tools/tilesets"; +import { TilesetTraverser } from "3d-tiles-tools"; +import { TraversedTile } from "3d-tiles-tools"; -import { ResourceResolvers } from "@3d-tiles-tools/base"; -import { BufferedContentData } from "@3d-tiles-tools/base"; -import { ContentDataTypeChecks } from "@3d-tiles-tools/base"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ResourceResolvers } from "3d-tiles-tools"; +import { BufferedContentData } from "3d-tiles-tools"; +import { ContentDataTypeChecks } from "3d-tiles-tools"; +import { ContentDataTypes } from "3d-tiles-tools"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tileset } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tilesets/benchmarks/BenchmarkUtils.ts b/demos/tilesets/benchmarks/BenchmarkUtils.ts index a7d6131e..8459dca0 100644 --- a/demos/tilesets/benchmarks/BenchmarkUtils.ts +++ b/demos/tilesets/benchmarks/BenchmarkUtils.ts @@ -3,7 +3,7 @@ import seedrandom from "seedrandom"; import { BenchmarkConfig } from "./BenchmarkConfig"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "3d-tiles-tools"; /** * Methods related to the 3D Tiles Package benchmarks. diff --git a/demos/tilesets/benchmarks/PackageCreationBenchmark.ts b/demos/tilesets/benchmarks/PackageCreationBenchmark.ts index fe71f215..e16ae6c3 100644 --- a/demos/tilesets/benchmarks/PackageCreationBenchmark.ts +++ b/demos/tilesets/benchmarks/PackageCreationBenchmark.ts @@ -2,10 +2,10 @@ import fs from "fs"; import util from "util"; import { performance } from "perf_hooks"; -import { TilesetTarget } from "@3d-tiles-tools/tilesets"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; -import { TilesetTarget3dtiles } from "@3d-tiles-tools/tilesets"; -import { TilesetTarget3tz } from "@3d-tiles-tools/tilesets"; +import { TilesetTarget } from "3d-tiles-tools"; +import { TilesetEntry } from "3d-tiles-tools"; +import { TilesetTarget3dtiles } from "3d-tiles-tools"; +import { TilesetTarget3tz } from "3d-tiles-tools"; import { BenchmarkUtils } from "./BenchmarkUtils"; diff --git a/demos/tilesets/benchmarks/PackageReadingBenchmark.ts b/demos/tilesets/benchmarks/PackageReadingBenchmark.ts index bdbe7518..c7f87f49 100644 --- a/demos/tilesets/benchmarks/PackageReadingBenchmark.ts +++ b/demos/tilesets/benchmarks/PackageReadingBenchmark.ts @@ -2,9 +2,9 @@ import fs from "fs"; import util from "util"; import { performance } from "perf_hooks"; -import { TilesetSource } from "@3d-tiles-tools/tilesets"; -import { TilesetSource3tz } from "@3d-tiles-tools/tilesets"; -import { TilesetSource3dtiles } from "@3d-tiles-tools/tilesets"; +import { TilesetSource } from "3d-tiles-tools"; +import { TilesetSource3tz } from "3d-tiles-tools"; +import { TilesetSource3dtiles } from "3d-tiles-tools"; import { BenchmarkUtils } from "./BenchmarkUtils"; import { Arrays } from "./Arrays"; diff --git a/demos/tools/BasicTilesetProcessorExamples.ts b/demos/tools/BasicTilesetProcessorExamples.ts index dc4e8b03..87fee8f8 100644 --- a/demos/tools/BasicTilesetProcessorExamples.ts +++ b/demos/tools/BasicTilesetProcessorExamples.ts @@ -1,12 +1,12 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { Schema } from "@3d-tiles-tools/structure"; -import { Tile } from "@3d-tiles-tools/structure"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Schema } from "3d-tiles-tools"; +import { Tile } from "3d-tiles-tools"; +import { Tileset } from "3d-tiles-tools"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; -import { TraversedTile } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "3d-tiles-tools"; +import { TraversedTile } from "3d-tiles-tools"; -import { BasicTilesetProcessor } from "@3d-tiles-tools/tools"; +import { BasicTilesetProcessor } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/ImplicitToExplicitDemo.ts b/demos/tools/ImplicitToExplicitDemo.ts index f7c5cd45..0cf77f87 100644 --- a/demos/tools/ImplicitToExplicitDemo.ts +++ b/demos/tools/ImplicitToExplicitDemo.ts @@ -1,13 +1,13 @@ -import { TraversedTile } from "@3d-tiles-tools/tilesets"; -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TraversedTile } from "3d-tiles-tools"; +import { TilesetEntry } from "3d-tiles-tools"; -import { BasicTilesetProcessor } from "@3d-tiles-tools/tools"; +import { BasicTilesetProcessor } from "3d-tiles-tools"; -import { Tileset } from "@3d-tiles-tools/structure"; -import { Schema } from "@3d-tiles-tools/structure"; -import { Tile } from "@3d-tiles-tools/structure"; +import { Tileset } from "3d-tiles-tools"; +import { Schema } from "3d-tiles-tools"; +import { Tile } from "3d-tiles-tools"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/PipelineExperimentsContentStages.ts b/demos/tools/PipelineExperimentsContentStages.ts index 275fafb6..0927dcc5 100644 --- a/demos/tools/PipelineExperimentsContentStages.ts +++ b/demos/tools/PipelineExperimentsContentStages.ts @@ -1,8 +1,8 @@ -import { Pipeline } from "@3d-tiles-tools/tools"; -import { TilesetStages } from "@3d-tiles-tools/tools"; -import { ContentStages } from "@3d-tiles-tools/tools"; -import { PipelineExecutor } from "@3d-tiles-tools/tools"; -import { TilesetStage } from "@3d-tiles-tools/tools"; +import { Pipeline } from "3d-tiles-tools"; +import { TilesetStages } from "3d-tiles-tools"; +import { ContentStages } from "3d-tiles-tools"; +import { PipelineExecutor } from "3d-tiles-tools"; +import { TilesetStage } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/PipelineExperimentsTilesetStages.ts b/demos/tools/PipelineExperimentsTilesetStages.ts index 178baf35..c87b5d83 100644 --- a/demos/tools/PipelineExperimentsTilesetStages.ts +++ b/demos/tools/PipelineExperimentsTilesetStages.ts @@ -1,9 +1,9 @@ -import { Pipeline } from "@3d-tiles-tools/tools"; -import { TilesetStages } from "@3d-tiles-tools/tools"; -import { ContentStages } from "@3d-tiles-tools/tools"; -import { PipelineExecutor } from "@3d-tiles-tools/tools"; +import { Pipeline } from "3d-tiles-tools"; +import { TilesetStages } from "3d-tiles-tools"; +import { ContentStages } from "3d-tiles-tools"; +import { PipelineExecutor } from "3d-tiles-tools"; -import { ContentDataTypes } from "@3d-tiles-tools/base"; +import { ContentDataTypes } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/SubtreeInfoDemos.ts b/demos/tools/SubtreeInfoDemos.ts index 0b1a7180..bda31a4a 100644 --- a/demos/tools/SubtreeInfoDemos.ts +++ b/demos/tools/SubtreeInfoDemos.ts @@ -2,12 +2,12 @@ import path from "path"; import { readJsonUnchecked } from "../readJsonUnchecked"; -import { ResourceResolvers } from "@3d-tiles-tools/base"; -import { QuadtreeCoordinates } from "@3d-tiles-tools/base"; +import { ResourceResolvers } from "3d-tiles-tools"; +import { QuadtreeCoordinates } from "3d-tiles-tools"; -import { SubtreeInfos } from "@3d-tiles-tools/tilesets"; +import { SubtreeInfos } from "3d-tiles-tools"; -import { Subtree, TileImplicitTiling } from "@3d-tiles-tools/structure"; +import { Subtree, TileImplicitTiling } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/TileContentProcessingDemo.ts b/demos/tools/TileContentProcessingDemo.ts index 6101157b..8c03ddbd 100644 --- a/demos/tools/TileContentProcessingDemo.ts +++ b/demos/tools/TileContentProcessingDemo.ts @@ -3,12 +3,12 @@ import { prune } from "@gltf-transform/functions"; import { textureCompress } from "@gltf-transform/functions"; import sharp from "sharp"; -import { TileContentProcessing } from "@3d-tiles-tools/tools"; -import { TileContentProcessors } from "@3d-tiles-tools/tools"; -import { TileContentProcessorsGltfTransform } from "@3d-tiles-tools/tools"; -import { TileContentProcessorsGltfPipeline } from "@3d-tiles-tools/tools"; -import { TileContentProcessorsGltfpack } from "@3d-tiles-tools/tools"; -import { GltfPackOptions } from "@3d-tiles-tools/tools"; +import { TileContentProcessing } from "3d-tiles-tools"; +import { TileContentProcessors } from "3d-tiles-tools"; +import { TileContentProcessorsGltfTransform } from "3d-tiles-tools"; +import { TileContentProcessorsGltfPipeline } from "3d-tiles-tools"; +import { TileContentProcessorsGltfpack } from "3d-tiles-tools"; +import { GltfPackOptions } from "3d-tiles-tools"; // The intention of this demo is to show the effects of compression that // may be applied with glTF-Transform, gltf-pipeline, or gltfpack. To diff --git a/demos/tools/TilesetDataProcessorExamples.ts b/demos/tools/TilesetDataProcessorExamples.ts index 79e5e8fb..e7c1cef9 100644 --- a/demos/tools/TilesetDataProcessorExamples.ts +++ b/demos/tools/TilesetDataProcessorExamples.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { TilesetEntry } from "@3d-tiles-tools/tilesets"; +import { TilesetEntry } from "3d-tiles-tools"; -import { TilesetDataProcessor } from "@3d-tiles-tools/tools"; +import { TilesetDataProcessor } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/TilesetProcessingDemos.ts b/demos/tools/TilesetProcessingDemos.ts index 64c3bd84..18a90d66 100644 --- a/demos/tools/TilesetProcessingDemos.ts +++ b/demos/tools/TilesetProcessingDemos.ts @@ -1,11 +1,11 @@ import fs from "fs"; import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "3d-tiles-tools"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tileset } from "3d-tiles-tools"; -import { TilesetOperations } from "@3d-tiles-tools/tools"; +import { TilesetOperations } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; diff --git a/demos/tools/TilesetUpgraderDemos.ts b/demos/tools/TilesetUpgraderDemos.ts index b4b7743a..15fb04ff 100644 --- a/demos/tools/TilesetUpgraderDemos.ts +++ b/demos/tools/TilesetUpgraderDemos.ts @@ -1,11 +1,11 @@ import fs from "fs"; import path from "path"; -import { Paths } from "@3d-tiles-tools/base"; +import { Paths } from "3d-tiles-tools"; -import { Tileset } from "@3d-tiles-tools/structure"; +import { Tileset } from "3d-tiles-tools"; -import { TilesetOperations } from "@3d-tiles-tools/tools"; +import { TilesetOperations } from "3d-tiles-tools"; const SPECS_DATA_BASE_DIRECTORY = "./specs/data"; From d26669ec6f104573501e06747ef2433a9f0e6f88 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 16:45:20 +0100 Subject: [PATCH 05/13] Update changes, implementation notes, and ThirdParty.json --- CHANGES.md | 8 +++- IMPLEMENTATION.md | 116 ++++++---------------------------------------- ThirdParty.json | 40 ++++++++++++++-- 3 files changed, 58 insertions(+), 106 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1e6071b6..14fd3a7a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,13 @@ Change Log ========== -### 0.4.0 - 2024-02-06 +### 0.4.1 - 2024-mm-dd + +- The packages that have been introduced in version `0.4.0` have been merged back into a single package. + Details about the structure can be found in the [implementation notes](./IMPLEMENTATION.md). + + +### 0.4.0 - 2024-02-06 (not released) - The 3D Tiles Tools have been split into multiple packages. For users of the command-line interface, this should not make a noticable difference: The installed package declares all other packages as its dependencies, and installs them transparently. diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index 2979e1e6..19f05308 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -4,74 +4,20 @@ Parts of the current implementation may still change. This page is only a short ## Internal notes -The original 3D Tiles Tools have been converted into a monorepo with different packages. - -The packages are - -- [`base`](./packages/base/) - Basic utility classes shared by nearly all other packages -- [`structure`](./packages/structure/) - Typescript types for the elements of a 3D Tiles tileset JSON -- [`ktx`](./packages/structure/) - A convenience wrapper around the BinomialLLC basis (KTX) encoder WASM module -- [`gltf-extensions`](./packages/gltf-extensions/) - Implementations of the Cesium glTF extensions based on glTF-Transform -- [`metadata`](./packages/metadata/) - Basic classes for the implementation of the 3D Metadata Specification -- [`tilesets`](./packages/tilesets/) - Classes for handling 3D Tiles tileset data (including tile content and tileset packages) -- [`tools`](./packages/tools/) - The main classes implementing the 3D Tiles Tools functionalities -- [`cli`](./packages/cli/) - The main command line application for the 3D Tiles tools -- [`spec-helpers`](./packages/spec-helpers/) - Internal utility classes for running the specs (unit tests) - -### Structure of `package.json` - -From the perspective of the top-level `package.json`, each package is a _workspace_. This means that each package has its own `package.json` that declares its dependencies and basic build- and test commands. The top-level `package.json` only declares -``` - "workspaces": [ - "packages/*" - ], -``` -which allows certain operations (like packaging) to be run in a "bulk" fashion on all the packages at once. - -It is important to run `npm install` at the root directory after cloning the repo (preferably even before opening VSCode). When workspaces are present, then this will establish one symbolic link for each package in the `node_modules` repository, making sure that "the packages know each other". - -### Structure of `tsconfig.json` - -The goal of splitting the 3D Tiles Tools into modules originally was to create ESM modules. However, due to limited interoperability of ESM modules and CommonJS projects, it was decided to offer the tools as CommonJS modules instead. - -- The `package.json` of each package declares `"type": "commonjs"` -- The `compilerOptions` of the `tsconfig.json` declares `"module": "CommonJS"` - -The root-level `tsconfig.json` defines the common settings. Each package contains further `tsconfig.json` files that _inherit_ from the root-level one (See [TSConfig `extends`](https://www.typescriptlang.org/tsconfig#extends)). - -The structure of the project and its packages is reflected in the `tsconfig.json` files via _Project References_ (See [TypeScript: 'Project References](https://www.typescriptlang.org/docs/handbook/project-references.html)). Each `tsconfig.json` in the packages has to declare -``` - "compilerOptions": { - "declaration": true, - "composite": true, - }, -``` -so that the respective `tsconfig.json` may be used via a Project Reference. - -Each package contains three `tsconfig.json` files: -- `/tsconfig.json`: The main config file for the package - - This may add package-specific settings in the `compilerOptions` - - Beyond that, it only refers to the other ones: -- `/src/tsconfig.json`: The configuration for the actual source code of the package -- `/specs/tsconfig.json`: The configuration for the specs (unit tests) of the package - - This refers to the `src` configuration file as a "dependency" - -The reason for separating the `tsconfig.json` file for the `src` and the `specs` is to have different build output directories for them, to make sure that `src` cannot not import anything from `specs`, and the final, distributed package can contain only the build output of `src`. (NOTE: Right now, it contains both. This is not critical, but the `specs` build output might be omitted from the packages in the future). - -The root-level `tsconfig` file refers to the `tsconfig.json` file of the `src`- and `specs` folders: -``` - "references": [ - { "path": "./packages/base/src/tsconfig.json" }, - { "path": "./packages/base/specs/tsconfig.json" }, - ... - ] -``` - -They are listed there in the order in which they are built: - -- Build all `src` part for each package -- Build the `spec-helpers` (which depends on some of the `src` outputs) -- Build the `specs` part for each package (which often depends on the `spec-helpers`) +The source code folder contains the sources in a form that is organized so that each subdirectory can easily become a "workspace"/"package" in a monorepo. This is the result of https://github.com/CesiumGS/3d-tiles-tools/pull/64 , even though the current state does not use workspaces yet. + +The subdirectories are + +- `base` - Basic utility classes shared by nearly all other packages +- `structure` - Typescript types for the elements of a 3D Tiles tileset JSON +- `ktx` - A convenience wrapper around the BinomialLLC basis (KTX) encoder WASM module +- `gltf-extensions` - Implementations of the Cesium glTF extensions based on glTF-Transform +- `metadata` - Basic classes for the implementation of the 3D Metadata Specification +- `tilesets` - Classes for handling 3D Tiles tileset data (including tile content and tileset packages) +- `tools` - The main classes implementing the 3D Tiles Tools functionalities +- `cli` - The main command line application for the 3D Tiles tools +- `spec-helpers` - Internal utility classes for running the specs (unit tests) + ### Tests @@ -79,44 +25,12 @@ Running the tests with Jasmine eventually looks simple: Jasmine has to be starte `npx ts-node node_modules/jasmine/bin/jasmine.js ...` -> Anecdotal note: With the initial ESM approach, the call would have been -> -> `ts-node --esm node_modules/jasmine/bin/jasmine.js ...` -> -> but this breaks with certain Node.js versions - see https://github.com/TypeStrong/ts-node/issues/2094 . -> -> To work around this, the call had to be -> -> `node --loader ts-node/esm node_modules/jasmine/bin/jasmine.js ...` -> -> This emitted `ExperimentalWarning` messages, but worked. -> -> With CommonJS, all this does not matter. - -One caveat is: - -- The test data is stored in `./specs/data` (because parts of it is shared by multiple packages) -- It should be possible to run _all_ tests from the _root_ directory -- It should be possible to run the tests of a _single_ package from the directory of that package - -So in order to resolve the test data in both cases: -- The `jasmine.json` config files in the packages refer to a `helper` that sets `process.env.SPECS_DATA_BASE_DIRECTORY = "../../specs/data";` (whereas the default in the top-level case is just `"./specs/data"`) -- This environment variable is picked up by the `/spec-helpers/SpecHelpers` class and returned as the "base" directory for resolving data +The test data is stored in `./specs/data`. ### Coverage The coverage is now computed with `c8` from https://github.com/bcoe/c8 -> Anecdotal note: -> -> The coverage originally had been checked with `nyc`, but apparently, ESM modules are not supported by `nyc` (see https://github.com/istanbuljs/nyc/issues/1287 ). -> So `c8` was chosen as a solution that also worked with ESM. It is a "drop-in-replacement" of `nyc`, so there is no reason to go back to `nyc` for now (even though the tools are now packaged as CommonJS modules). - -### Even More Internal Notes: - -- There are places where the `/// ` syntax is used, in order to point TypeScript to the right type information (see [TypeScript: Triple-Slash Directives](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html)). This appears to be necessary for `gltf-pipeline` and `gltfpack` dependencies, which do not have associated type information. This is strongly discouraged, and should instead be solved by specifying proper `typeRoots` in the `compilerOptions` of the respective `tsconfig.json`. Maybe there is a way to tweak this so that it actually _works_ ... -- There seem to be a few differences btween _compiling_ code (with `tsc`) and _executing_ code (with `npx ts-node`) when it comes to ~"module and type resolution". Sometimes types are not found here and there. There are rumours in hundreds of issues related to that. Sometimes the [`ts-node` `--files` argument](https://typestrong.org/ts-node/docs/options/#files) (which is completely unrelated to the `files` in `tsconfig.json`, although it also refers to this property) seemed to help. Sometimes the `tsconfig-paths` package from https://www.npmjs.com/package/tsconfig-paths seemed to help. Maybe some of these approaches will have to be investigated when a specific problem comes up. - ## API Definition diff --git a/ThirdParty.json b/ThirdParty.json index 17c9e882..24e55ee1 100644 --- a/ThirdParty.json +++ b/ThirdParty.json @@ -4,7 +4,7 @@ "license": [ "MIT" ], - "version": "3.9.0", + "version": "3.10.0", "url": "https://www.npmjs.com/package/@gltf-transform/core" }, { @@ -12,7 +12,7 @@ "license": [ "MIT" ], - "version": "3.9.0", + "version": "3.10.0", "url": "https://www.npmjs.com/package/@gltf-transform/extensions" }, { @@ -20,7 +20,7 @@ "license": [ "MIT" ], - "version": "3.9.0", + "version": "3.10.0", "url": "https://www.npmjs.com/package/@gltf-transform/functions" }, { @@ -55,6 +55,14 @@ "version": "1.5.7", "url": "https://www.npmjs.com/package/draco3d" }, + { + "name": "draco3dgltf", + "license": [ + "Apache-2.0" + ], + "version": "1.5.7", + "url": "https://www.npmjs.com/package/draco3dgltf" + }, { "name": "gltf-pipeline", "license": [ @@ -71,6 +79,22 @@ "version": "0.19.1", "url": "https://www.npmjs.com/package/gltfpack" }, + { + "name": "meshoptimizer", + "license": [ + "MIT" + ], + "version": "0.19.0", + "url": "https://www.npmjs.com/package/meshoptimizer" + }, + { + "name": "minimist", + "license": [ + "MIT" + ], + "version": "1.2.8", + "url": "https://www.npmjs.com/package/minimist" + }, { "name": "node-stream-zip", "license": [ @@ -84,7 +108,7 @@ "license": [ "MIT" ], - "version": "8.18.0", + "version": "8.19.0", "url": "https://www.npmjs.com/package/pino" }, { @@ -95,6 +119,14 @@ "version": "10.3.1", "url": "https://www.npmjs.com/package/pino-pretty" }, + { + "name": "seedrandom", + "license": [ + "MIT" + ], + "version": "3.0.5", + "url": "https://www.npmjs.com/package/seedrandom" + }, { "name": "sharp", "license": [ From b6291825b40ac971b0e9874434f25ca366b77bb6 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 16:50:56 +0100 Subject: [PATCH 06/13] Formatting --- generateThirdParty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generateThirdParty.js b/generateThirdParty.js index b7f3e51f..d1fb781a 100644 --- a/generateThirdParty.js +++ b/generateThirdParty.js @@ -140,7 +140,7 @@ async function generateThirdParty() { thirdPartyJson = licenseDatas.filter((entry) => { const match = entry.name.match(exclusionRegex); return match === null; - }) + }); } else { thirdPartyJson = licenseDatas; } From bdc1edd807f07144227a53f1d7f7289e80c91b01 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 22:59:13 +0100 Subject: [PATCH 07/13] Fix pixel data in feature ID texture demo --- demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts b/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts index 03e83e34..8f431113 100644 --- a/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts +++ b/demos/gltf-extensions/ExtMeshFeaturesGeometryDemo.ts @@ -75,10 +75,10 @@ async function createFeatureIdFromTexture( // RGBA pixels. const sizeX = 3; const sizeY = 3; - const pixels = NdArray(new Uint8Array(sizeX * sizeY), [sizeX, sizeY]); + const pixels = NdArray(new Uint8Array(sizeX * sizeY), [sizeX, sizeY, 4]); for (let x = 0; x < pixels.shape[0]; x++) { for (let y = 0; y < pixels.shape[1]; y++) { - pixels.set(x, y, x * sizeY + y); + pixels.set(x, y, 3, x * sizeY + y); } } const image = await savePixels(pixels, "image/png"); From cfff2aee6b7657bb35de9266d5c442724b569b7f Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 22:59:29 +0100 Subject: [PATCH 08/13] Update entry point file --- bin/cli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.mjs b/bin/cli.mjs index 2609aab8..f01f7318 100644 --- a/bin/cli.mjs +++ b/bin/cli.mjs @@ -1,2 +1,2 @@ #!/usr/bin/env node -import * as cli from "./src/main.js"; +import * as cli from "./cli/main.js"; From 8f9139121d0d1492bc8cd38cdba9ed849b418162 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 22:59:48 +0100 Subject: [PATCH 09/13] Update API extractor config --- api-extractor.jsonc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api-extractor.jsonc b/api-extractor.jsonc index d77f5faf..ef31bea7 100644 --- a/api-extractor.jsonc +++ b/api-extractor.jsonc @@ -15,7 +15,7 @@ * * SUPPORTED TOKENS: , , */ - "mainEntryPointFilePath": "packages//build/src/index.d.ts", + "mainEntryPointFilePath": "build/src/index.d.ts", /** * Configures how the API report file (*.api.md) will be generated. @@ -39,7 +39,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/temp/" */ - "reportTempFolder": "/../../build/api-extractor", + "reportTempFolder": "/temp/api-extractor", /** * Specifies the folder where the API report file is written. The file name portion is determined by @@ -54,7 +54,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/etc/" */ - "reportFolder": "/../../etc/" + "reportFolder": "/etc/" }, /** @@ -75,7 +75,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/temp/.api.json" */ - "apiJsonFilePath": "/../../build/api-extractor/.api.json" + "apiJsonFilePath": "/build/api-extractor/.api.json" }, /** @@ -113,7 +113,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "" */ - "publicTrimmedFilePath": "/../../dist/.d.ts" + "publicTrimmedFilePath": "" }, "messages": { From aab25fafd59552eef287f0762f66c69ee5372fd3 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 23:00:03 +0100 Subject: [PATCH 10/13] Update npmignore for packaging --- .npmignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 4236fe86..69f6832f 100644 --- a/.npmignore +++ b/.npmignore @@ -13,11 +13,12 @@ .eslintrc.json .gitignore .npmignore -.nycrc +.c8rc.json .prettierignore .prettierrc.json api-extractor.jsonc generateThirdParty.js ThirdParty.json +ThirdParty.extra.json tsconfig.json *.tgz From 0221e6c159cafb9907dbbb12cedc1aed62b0cd8b Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 23:00:20 +0100 Subject: [PATCH 11/13] Update auto-generated API definition files --- etc/3d-tiles-tools.api.md | 3111 ++++++++++++++++++++++++++++++++++++ etc/base.api.md | 306 ---- etc/gltf-extensions.api.md | 901 ----------- etc/ktx.api.md | 91 -- etc/metadata.api.md | 335 ---- etc/structure.api.md | 344 ---- etc/tilesets.api.md | 650 -------- etc/tools.api.md | 614 ------- 8 files changed, 3111 insertions(+), 3241 deletions(-) create mode 100644 etc/3d-tiles-tools.api.md delete mode 100644 etc/base.api.md delete mode 100644 etc/gltf-extensions.api.md delete mode 100644 etc/ktx.api.md delete mode 100644 etc/metadata.api.md delete mode 100644 etc/structure.api.md delete mode 100644 etc/tilesets.api.md delete mode 100644 etc/tools.api.md diff --git a/etc/3d-tiles-tools.api.md b/etc/3d-tiles-tools.api.md new file mode 100644 index 00000000..ad5a9e53 --- /dev/null +++ b/etc/3d-tiles-tools.api.md @@ -0,0 +1,3111 @@ +## API Report File for "3d-tiles-tools" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +/// + +import { Accessor } from '@gltf-transform/core'; +import { Database } from 'better-sqlite3'; +import { Document } from '@gltf-transform/core'; +import { Extension } from '@gltf-transform/core'; +import { ExtensionProperty } from '@gltf-transform/core'; +import { IProperty } from '@gltf-transform/core'; +import { Logger } from 'pino'; +import { NodeIO } from '@gltf-transform/core'; +import { Nullable } from '@gltf-transform/core'; +import { PathLike } from 'fs'; +import { Primitive } from '@gltf-transform/core'; +import { PropertyType } from '@gltf-transform/core'; +import { ReaderContext } from '@gltf-transform/core'; +import { Texture } from '@gltf-transform/core'; +import { TextureInfo } from '@gltf-transform/core'; +import { Transform } from '@gltf-transform/core'; +import { TypedArray } from '@gltf-transform/core'; +import { WriterContext } from '@gltf-transform/core'; + +// @internal +export class AccessorCreation { + static createAccessorArray(componentType: string, accessorValues: Iterable): TypedArray; + static createAccessorFromProperty(document: Document, classProperty: ClassProperty, propertyModel: PropertyModel, numRows: number): Accessor; + static createAccessorFromValues(document: Document, classProperty: ClassProperty, accessorValues: Iterable): Accessor; + static createAccessorValues(classProperty: ClassProperty, propertyModel: PropertyModel, numRows: number): Iterable; +} + +// @internal (undocumented) +export class ArchiveFunctions3tz { + // (undocumented) + static md5LessThan(md5hashA: Buffer, md5hashB: Buffer): boolean; + // (undocumented) + static readEntry(fd: number, zipIndex: IndexEntry[], path: string): { + compression_method: number; + data: Buffer; + } | undefined; + // (undocumented) + static readFileName(fd: number, offset: number | bigint): string; + // (undocumented) + static readZipIndex(fd: number): IndexEntry[]; + // (undocumented) + static readZipLocalFileHeader(fd: number, offset: number | bigint, path: string): ZipLocalFileHeader; + // (undocumented) + static zipIndexFind(zipIndex: IndexEntry[], searchHash: Buffer): number; +} + +// @internal +export class ArrayBuffers { + static fromBuffer(buffer: Buffer): ArrayBuffer; +} + +// @internal +export class ArrayValues { + static anyDeepGreaterThan(a: any, b: any): boolean; + static anyDeepLessThan(a: any, b: any): boolean; + static deepAdd(value: any, addend: any): any; + static deepClone(value: any): any; + static deepEquals(a: any, b: any): boolean; + static deepMax(a: any, b: any): any; + static deepMin(a: any, b: any): any; + static deepMultiply(value: any, factor: any): any; +} + +// @internal +export interface Asset extends RootProperty { + tilesetVersion?: string; + version: string; +} + +// @internal +export class AttributeCompression { + static octDecode16(input: number[]): number[]; + static octDecode8(input: number[]): number[]; +} + +// @internal +export type AttributeInfo = { + componentsPerAttribute: number; + componentDatatype: string; + byteOffset: number; + byteStride: number; + normalized: boolean; + quantization?: QuantizationInfo; +}; + +// @internal +export interface Availability extends RootProperty { + availableCount?: number; + bitstream?: number; + constant?: number; +} + +// @internal +export interface AvailabilityInfo { + isAvailable(index: number): boolean; + get length(): number; +} + +// @internal +export class AvailabilityInfos { + static createChildSubtree(availability: Availability, bufferViewDatas: Buffer[], implicitTiling: TileImplicitTiling): AvailabilityInfo; + static createTileOrContent(availability: Availability, bufferViewDatas: Buffer[], implicitTiling: TileImplicitTiling): AvailabilityInfo; +} + +// @internal +export interface B3dmFeatureTable extends FeatureTable { + BATCH_LENGTH: number; + RTC_CENTER?: BinaryBodyOffset | number[]; +} + +// @internal +export class BasicTilesetProcessor extends TilesetProcessor { + constructor(processExternalTilesets?: boolean); + end(): Promise; + forEachExplicitTile(callback: (tile: Tile) => Promise): Promise; + forEachTile(callback: TraversalCallback): Promise; + forTileset(callback: (tileset: Tileset, schema: Schema | undefined) => Promise): Promise; + processAllEntries(entryProcessor: TilesetEntryProcessor): Promise; + processTileContentEntries(uriProcessor: (uri: string) => string, entryProcessor: TilesetEntryProcessor): Promise; + static updateTileContent(tile: Tile, contentUris: string[]): void; +} + +// @internal +export class BasisEncoder { + static create(): Promise; + delete(): void; + encode(dst_basis_file_js_val: Uint8Array): any; + setCheckForAlpha(check_for_alpha_flag: boolean): any; + setCompressionLevel(comp_level: number): any; + setComputeStats(compute_stats_flag: boolean): any; + setCreateKTX2File(create_ktx2_file: boolean): any; + setDebug(debug_flag: boolean): any; + setEndpointRDOThresh(endpoint_rdo_thresh: number): any; + setForceAlpha(force_alpha_flag: boolean): any; + setKTX2SRGBTransferFunc(srgb_transfer_func: boolean): any; + setKTX2UASTCSupercompression(use_zstandard: boolean): any; + setMaxEndpointClusters(max_endpoint_clusters: number): any; + setMaxSelectorClusters(max_selector_clusters: number): any; + setMipFilter(mip_filter: number): any; + setMipGen(mip_gen_flag: boolean): any; + setMipRenormalize(mip_renormalize_flag: boolean): any; + setMipScale(mip_scale: number): any; + setMipSmallestDimension(mip_smallest_dimension: number): any; + setMipSRGB(mip_srgb_flag: boolean): any; + setMipWrapping(mip_wrapping_flag: boolean): any; + setNoEndpointRDO(no_endpoint_rdo_flag: boolean): any; + setNormalMap(): any; + setNoSelectorRDO(no_selector_rdo_flag: boolean): any; + setPackUASTCFlags(pack_uastc_flags: number): any; + setPerceptual(perceptual_flag: boolean): any; + setQualityLevel(quality_level: number): any; + setRDOUASTC(rdo_uastc: boolean): any; + setRDOUASTCDictSize(dict_size: number): any; + setRDOUASTCMaxAllowedRMSIncreaseRatio(rdo_uastc_max_allowed_rms_increase_ratio: number): any; + setRDOUASTCQualityScalar(rdo_quality: number): any; + setRDOUASTCSkipBlockRMSThresh(rdo_uastc_skip_block_rms_thresh: number): any; + setRenormalize(renormalize_flag: boolean): any; + setSelectorRDOThresh(selector_rdo_thresh: number): any; + setSliceSourceImage(slice_index: number, src_image_js_val: Uint8Array, width: number, height: number, src_image_is_png: boolean): any; + setSwizzle(r: number, g: number, b: number, a: number): any; + setTexType(tex_type: number): any; + setUASTC(uastc_flag: boolean): any; + setYFlip(y_flip_flag: boolean): any; +} + +// @internal +export interface BatchTable extends RootProperty { + // (undocumented) + [key: string]: BatchTableBinaryBodyReference | any[] | { + [key: string]: any; + } | undefined; +} + +// @internal +export interface BatchTableBinaryBodyReference extends RootProperty { + byteOffset: number; + componentType: string; + type: string; +} + +// @internal +export class BatchTableClassProperties { + static createClassProperty(batchTablePropertyName: string, batchTablePropertyValue: any): ClassProperty; +} + +// @internal +export class BatchTablePropertyTableModels { + static create(table: { + [key: string]: any; + }, binary: Buffer, externalProperties: { + [key: string]: PropertyModel; + }, numRows: number): PropertyTableModel; +} + +// @internal +export class BatchTables { + static obtainDracoProperties(batchTable: BatchTable): { + [key: string]: number; + }; + static obtainDracoPropertyNames(batchTable: BatchTable): string[]; +} + +// @internal +export class BatchTableSchemas { + static createSchema(identifier: string, batchTable: BatchTable): Schema | undefined; +} + +// @internal +export interface BinaryBodyOffset extends RootProperty { + byteOffset: number; +} + +// @internal +export interface BinaryBufferData { + buffersData: Buffer[]; + bufferViewsData: Buffer[]; +} + +// @internal +export class BinaryBufferDataResolver { + static resolve(binaryBufferStructure: BinaryBufferStructure, binaryBuffer: Buffer | undefined, resourceResolver: ResourceResolver): Promise; +} + +// @internal +export class BinaryBuffers { + static createBinaryBufferStructure(binaryBufferData: BinaryBufferData, newBufferViewsData: Buffer[]): BinaryBufferStructure; +} + +// @internal +export interface BinaryBufferStructure { + // (undocumented) + buffers: BufferObject[]; + // (undocumented) + bufferViews: BufferView[]; +} + +// @internal +export class BinaryDataError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export interface BinaryEnumInfo { + enumValueNameValues: { + [key: string]: { + [key: string]: number; + }; + }; + enumValueTypes: { + [key: string]: string; + }; + enumValueValueNames: { + [key: string]: { + [key: number]: string; + }; + }; +} + +// @internal +export interface BinaryMetadata { + binaryBufferData: BinaryBufferData; + binaryBufferStructure: BinaryBufferStructure; + binaryEnumInfo: BinaryEnumInfo; + metadataClass: MetadataClass; +} + +// @internal +export class BinaryPropertyModels { + static computeSlice(index: number, offsetsBuffer: Buffer | undefined, offsetType: string, count: number | undefined): { + offset: number; + length: number; + }; + static createPropertyModel(binaryPropertyTable: BinaryPropertyTable, propertyId: string): PropertyModel; + static createPropertyModelInternal(propertyId: string, type: string, componentType: string | undefined, isArray: boolean, count: number | undefined, valuesBufferViewData: Buffer, arrayOffsetsBufferViewData: Buffer | undefined, arrayOffsetType: string, stringOffsetsBufferViewData: Buffer | undefined, stringOffsetType: string, enumValueType: string | undefined): PropertyModel; +} + +// @internal +export interface BinaryPropertyTable { + binaryMetadata: BinaryMetadata; + propertyTable: PropertyTable; +} + +// @internal +export class BinaryPropertyTableBuilder { + addProperties(properties: { + [key: string]: any[]; + }): this; + addProperty(propertyName: string, propertyValues: any[]): this; + build(): BinaryPropertyTable; + static create(schema: Schema, propertyTableClass: string, propertyTableName: string): BinaryPropertyTableBuilder; +} + +// @internal +export class BinaryPropertyTableModel implements PropertyTableModel { + constructor(binaryPropertyTable: BinaryPropertyTable); + getClassProperty(propertyId: string): ClassProperty | undefined; + // (undocumented) + getCount(): number; + getMetadataEntityModel(index: number): MetadataEntityModel; + getPropertyModel(propertyId: string): PropertyModel | undefined; + // (undocumented) + getPropertyNames(): string[]; + getPropertyTableProperty(propertyId: string): PropertyTableProperty | undefined; +} + +// @internal +export class BinaryPropertyTables { + static createBinaryPropertyTable(schema: Schema, className: string, propertyName: string, values: any, arrayOffsetType: string | undefined, stringOffsetType: string | undefined): BinaryPropertyTable; + static createBinaryPropertyTableFromProperty(propertyName: string, classProperty: ClassProperty, values: any, arrayOffsetType: string | undefined, stringOffsetType: string | undefined, metadataEnum: MetadataEnum | undefined): BinaryPropertyTable; + static createPropertyTableProperty(classProperty: ClassProperty, schema: Schema, values: any, arrayOffsetType: string | undefined, stringOffsetType: string | undefined, bufferViewsData: Buffer[]): PropertyTableProperty; + static createSchemaFromClassProperty(propertyName: string, classProperty: ClassProperty, metadataEnum: MetadataEnum | undefined): Schema; +} + +// @internal +export interface BinarySubtreeData { + binaryBufferData: BinaryBufferData; + binaryBufferStructure: BinaryBufferStructure; + subtree: Subtree; +} + +// @internal +export class BinarySubtreeDataResolver { + static resolveFromBuffer(input: Buffer, resourceResolver: ResourceResolver): Promise; + static resolveFromJson(subtree: Subtree, resourceResolver: ResourceResolver): Promise; + static resolveInternal(subtree: Subtree, binaryBuffer: Buffer | undefined, resourceResolver: ResourceResolver): Promise; +} + +// @internal +export class BooleanArrayPropertyModel implements PropertyModel { + constructor(valuesBuffer: Buffer, arrayOffsetsBuffer: Buffer | undefined, arrayOffsetType: string, count: number | undefined); + getPropertyValue(index: number): boolean[]; +} + +// @internal +export class BooleanPropertyModel implements PropertyModel { + constructor(valuesBuffer: Buffer); + getPropertyValue(index: number): boolean; +} + +// @internal +export interface BoundingVolume extends RootProperty { + box?: number[]; + region?: number[]; + sphere?: number[]; +} + +// @internal +export class BoundingVolumes { + static computeBoundingVolumeBoxCorners(boundingVolumeBox: number[]): number[][]; + static computeBoundingVolumeBoxFromBoundingVolume(boundingVolume: BoundingVolume): number[] | undefined; + static computeUnionBoundingVolumeBox(boundingVolumeBoxes: Iterable): number[]; + static createBoundingVolumeBoxFromMinMax(min: number[], max: number[]): number[]; + static createBoundingVolumeBoxFromPoints(points: number[][]): number[]; + static createUnitCubeBoundingVolumeBox(): number[]; + static transformBoundingVolumeBox(boundingVolumeBox: number[], transform: number[]): number[]; + static translateBoundingVolumeBox(boundingVolumeBox: number[], translation: number[]): number[]; +} + +// @internal +export interface BoundingVolumeS2 extends RootProperty { + // (undocumented) + maximumHeight: number; + // (undocumented) + minimumHeight: number; + // (undocumented) + token: string; +} + +// @internal +export class BufferAvailabilityInfo implements AvailabilityInfo { + constructor(buffer: Buffer, length: number); + isAvailable(index: number): boolean; + get length(): number; +} + +// @internal +export class BufferedContentData implements ContentData { + constructor(uri: string, data: Buffer | null); + static create(uri: string): ContentData; + exists(): Promise; + get extension(): string; + // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: No member was found with name "data" + // + // (undocumented) + getData(): Promise; + // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: No member was found with name "magic" + // + // (undocumented) + getMagic(): Promise; + getParsedObject(): Promise; + get uri(): string; +} + +// @internal +export interface BufferObject extends RootProperty { + byteLength: number; + name?: string; + uri?: string; +} + +// @internal +export class Buffers { + static createBinaryString(buffer: Buffer): string; + static fromTypedArray(array: Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array): Buffer; + static getBufferPadded(buffer: Buffer, byteOffset?: number): Buffer; + static getJson(buffer: Buffer): any; + static getJsonBufferPadded(json: any, byteOffset?: number): Buffer; + static getMagicBytes(buffer: Buffer, byteOffset: number, byteLength: number): Buffer; + static getMagicString(buffer: Buffer, byteOffset?: number): string; + static getUnicodeBOMDescription(buffer: Buffer): string | undefined; + static gunzip(inputBuffer: Buffer): Buffer; + static gzip(inputBuffer: Buffer): Buffer; + static isGzipped(buffer: Buffer): boolean; + static isProbablyJson(buffer: Buffer): boolean; +} + +// @internal +export interface BufferView extends RootProperty { + buffer: number; + byteLength: number; + byteOffset: number; + name?: string; +} + +// @internal +export class ClassProperties { + static hasEffectivelyFloatingPointType(property: ClassProperty): boolean; + static hasNumericType(property: ClassProperty): boolean; +} + +// @internal +export interface ClassProperty extends RootProperty { + array?: boolean; + componentType?: string; + count?: number; + default?: any; + description?: string; + enumType?: string; + max?: any; + min?: any; + name?: string; + noData?: any; + normalized?: boolean; + offset?: any; + required?: boolean; + scale?: any; + semantic?: string; + type: string; +} + +// @internal +export class Colors { + static standardRGB565ToNormalizedLinearRGBA(input: number): number[]; + static standardRGBAToNormalizedLinearRGBA(input: number[]): number[]; + static standardRGBToNormalizedLinearRGBA(input: number[]): number[]; +} + +// @internal +export class ComponentDatatype { + static readonly BYTE = 5120; + static readonly DOUBLE = 5130; + static readonly FLOAT = 5126; + static fromTypedArray(array: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array): number; + static getSizeInBytes(componentDatatype: number): number; + static readonly INT = 5124; + static readonly SHORT = 5122; + static toString(componentDatatype: number): "FLOAT" | "UNSIGNED_SHORT" | "BYTE" | "UNSIGNED_BYTE" | "SHORT" | "INT" | "UNSIGNED_INT" | "DOUBLE"; + static readonly UNSIGNED_BYTE = 5121; + static readonly UNSIGNED_INT = 5125; + static readonly UNSIGNED_SHORT = 5123; +} + +// @internal +export interface CompositeTileData { + header: Header; + innerTileBuffers: Buffer[]; +} + +// @internal +export class ConstantAvailabilityInfo implements AvailabilityInfo { + constructor(available: boolean, length: number); + isAvailable(index: number): boolean; + get length(): number; +} + +// @internal +export interface Content extends RootProperty { + boundingVolume?: BoundingVolume; + group?: number; + metadata?: MetadataEntity; + uri: string; +} + +// @internal +export interface ContentData { + exists(): Promise; + get extension(): string; + getData(): Promise; + getMagic(): Promise; + getParsedObject(): Promise; + get uri(): string; +} + +// @internal +export class ContentDataTypeChecks { + static createCheck(includedContentDataTypes: (string | undefined)[] | undefined, excludedContentDataTypes: (string | undefined)[] | undefined): (contentData: ContentData) => Promise; + static createIncludedCheck(...contentDataTypes: string[]): (contentData: ContentData) => Promise; + static createTypeCheck(includedContentDataTypes: (string | undefined)[] | undefined, excludedContentDataTypes: (string | undefined)[] | undefined): (contentDataType: string | undefined) => boolean; +} + +// @internal +export type ContentDataTypeEntry = { + predicate: (contentData: ContentData) => Promise; + type: string; +}; + +// @internal +export class ContentDataTypeRegistry { + static findContentDataType(contentData: ContentData): Promise; + static findType(uri: string, data: Buffer): Promise; +} + +// @internal +export class ContentDataTypes { + // (undocumented) + static readonly CONTENT_TYPE_3TZ = "CONTENT_TYPE_3TZ"; + // (undocumented) + static readonly CONTENT_TYPE_B3DM = "CONTENT_TYPE_B3DM"; + // (undocumented) + static readonly CONTENT_TYPE_CMPT = "CONTENT_TYPE_CMPT"; + // (undocumented) + static readonly CONTENT_TYPE_GEOJSON = "CONTENT_TYPE_GEOJSON"; + // (undocumented) + static readonly CONTENT_TYPE_GEOM = "CONTENT_TYPE_GEOM"; + // (undocumented) + static readonly CONTENT_TYPE_GIF = "CONTENT_TYPE_GIF"; + // (undocumented) + static readonly CONTENT_TYPE_GLB = "CONTENT_TYPE_GLB"; + // (undocumented) + static readonly CONTENT_TYPE_GLTF = "CONTENT_TYPE_GLTF"; + // (undocumented) + static readonly CONTENT_TYPE_I3DM = "CONTENT_TYPE_I3DM"; + // (undocumented) + static readonly CONTENT_TYPE_JPEG = "CONTENT_TYPE_JPEG"; + // (undocumented) + static readonly CONTENT_TYPE_PNG = "CONTENT_TYPE_PNG"; + // (undocumented) + static readonly CONTENT_TYPE_PNTS = "CONTENT_TYPE_PNTS"; + // (undocumented) + static readonly CONTENT_TYPE_SUBT = "CONTENT_TYPE_SUBT"; + // (undocumented) + static readonly CONTENT_TYPE_TILESET = "CONTENT_TYPE_TILESET"; + // (undocumented) + static readonly CONTENT_TYPE_VCTR = "CONTENT_TYPE_VCTR"; +} + +// @internal +export class ContentError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class ContentOps { + static b3dmToGlbBuffer(inputBuffer: Buffer): Buffer; + static cmptToGlbBuffers(inputBuffer: Buffer, externalGlbResolver: (glbUri: string) => Promise): Promise; + static glbToB3dmBuffer(inputBuffer: Buffer): Buffer; + static glbToI3dmBuffer(inputBuffer: Buffer): Buffer; + static i3dmToGlbBuffer(inputBuffer: Buffer): Buffer; + static optimizeB3dmBuffer(inputBuffer: Buffer, options: any): Promise; + static optimizeI3dmBuffer(inputBuffer: Buffer, options: any): Promise; +} + +// @internal +export class Contents { + static getUri(content: Content): string | undefined; +} + +// @internal +export interface ContentStage extends Stage { + options?: any; +} + +// @internal +export class ContentStageExecutor { + static executeContentStage(contentStage: ContentStage, tilesetProcessor: BasicTilesetProcessor): Promise; +} + +// @internal +export class ContentStages { + static readonly CONTENT_STAGE_B3DM_TO_GLB = "b3dmToGlb"; + static readonly CONTENT_STAGE_CONVERT_B3DM_TO_GLB = "convertB3dmToGlb"; + static readonly CONTENT_STAGE_CONVERT_PNTS_TO_GLB = "convertPntsToGlb"; + static readonly CONTENT_STAGE_GLB_TO_B3DM = "glbToB3dm"; + static readonly CONTENT_STAGE_GLB_TO_I3DM = "glbToI3dm"; + static readonly CONTENT_STAGE_I3DM_TO_GLB = "i3dmToGlb"; + static readonly CONTENT_STAGE_OPTIMIZE_B3DM = "optimizeB3dm"; + static readonly CONTENT_STAGE_OPTIMIZE_GLB = "optimizeGlb"; + static readonly CONTENT_STAGE_OPTIMIZE_I3DM = "optimizeI3dm"; + static readonly CONTENT_STAGE_SEPARATE_GLTF = "separateGltf"; + static createB3dmToGlb(): ContentStage; + static createContentStage(contentStageJson: any): ContentStage; + static createConvertB3dmToGlb(): ContentStage; + static createConvertPntsToGlb(): ContentStage; + static createGlbToB3dm(): ContentStage; + static createGlbToI3dm(): ContentStage; + static createI3dmToGlb(): ContentStage; + static createOptimizeB3dm(options: any): ContentStage; + static createOptimizeGlb(options: any): ContentStage; + static createOptimizeI3dm(options: any): ContentStage; + static createSeparateGltf(): ContentStage; +} + +// @internal +export class ContentUpgrades { + static upgradeB3dmGltf1ToGltf2(inputBuffer: Buffer, options: any): Promise; + static upgradeI3dmGltf1ToGltf2(inputBuffer: Buffer, options: any): Promise; +} + +// @internal +export class DataError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class DefaultMetadataEntityModel implements MetadataEntityModel { + constructor(metadataClass: MetadataClass, semanticToPropertyId: { + [key: string]: string; + }, json: any); + getPropertyValue(propertyId: string): any; + getPropertyValueBySemantic(semantic: string): any; +} + +// @internal +export class DefaultPointCloud implements ReadablePointCloud { + addAttribute(name: string, type: string, componentType: string, attribute: Iterable): void; + getAttributeComponentType(name: string): string | undefined; + getAttributes(): string[]; + getAttributeType(name: string): string | undefined; + getAttributeValues(name: string): Iterable | undefined; + getGlobalPosition(): [number, number, number] | undefined; + getNormalizedLinearColors(): Iterable | undefined; + getNormalizedLinearGlobalColor(): [number, number, number, number] | undefined; + getNormals(): Iterable | undefined; + getPositions(): Iterable; + // (undocumented) + setGlobalPosition(globalPosition: [number, number, number] | undefined): void; + setNormalizedLinearColors(colors: Iterable): void; + // (undocumented) + setNormalizedLinearGlobalColor(globalColor: [number, number, number, number] | undefined): void; + setNormals(normals: Iterable): void; + setPositions(positions: Iterable): void; +} + +// @internal +export class DefaultPropertyModel implements PropertyModel { + constructor(data: any[]); + getPropertyValue(index: number): any; +} + +// @internal +export class DefaultPropertyTableModel implements PropertyTableModel { + constructor(numRows: number); + addClassProperty(propertyId: string, classProperty: ClassProperty): void; + addPropertyModel(propertyId: string, propertyModel: PropertyModel): void; + getClassProperty(propertyId: string): ClassProperty | undefined; + getCount(): number; + getMetadataEntityModel(index: number): MetadataEntityModel; + getPropertyModel(propertyId: string): PropertyModel | undefined; + getPropertyNames(): string[]; + getPropertyTableProperty(propertyId: string): PropertyTableProperty | undefined; +} + +// @internal +export function defaultValue(a: T | undefined, b: T): T; + +// @internal +export function defined(value: T): value is NonNullable; + +// @internal +export class DeveloperError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class DracoDecoder { + static create(): Promise; + decodePointCloud(properties: { + [key: string]: number; + }, binary: Buffer): DracoDecoderResult; +} + +// @internal +export type DracoDecoderResult = { + [key: string]: { + attributeData: Buffer; + attributeInfo: AttributeInfo; + }; +}; + +// @internal +export class DracoError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// Warning: (ae-forgotten-export) The symbol "IElementStructuralMetadata" needs to be exported by the entry point index.d.ts +// +// @internal +export class ElementStructuralMetadata extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // Warning: (ae-forgotten-export) The symbol "NAME" needs to be exported by the entry point index.d.ts + // + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + protected getDefaults(): Nullable; + // (undocumented) + getIndex(): number; + // (undocumented) + getPropertyTable(): StructuralMetadataPropertyTable | null; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: [PropertyType.NODE]; + // (undocumented) + propertyType: "ElementStructuralMetadata"; + // (undocumented) + setIndex(index: number): this; + // (undocumented) + setPropertyTable(propertyTable: StructuralMetadataPropertyTable | null): this; +} + +// @internal +export interface EnumValue extends RootProperty { + description?: string; + name: string; + value: number; +} + +// @internal +export class ExplicitTraversedTile implements TraversedTile { + constructor(tile: Tile, path: string, level: number, parent: TraversedTile | undefined, schema: Schema | undefined, resourceResolver: ResourceResolver); + asFinalTile(): Tile; + asRawTile(): Tile; + static createRoot(root: Tile, schema: Schema | undefined, resourceResolver: ResourceResolver): TraversedTile; + getChildren(): Promise; + getFinalContents(): Content[]; + getImplicitTiling(): TileImplicitTiling | undefined; + getMetadata(): MetadataEntity | undefined; + getParent(): TraversedTile | undefined; + getRawContents(): Content[]; + getResourceResolver(): ResourceResolver; + getSubtreeUri(): string | undefined; + isImplicitTilesetRoot(): boolean; + get level(): number; + get path(): string; + toString: () => string; +} + +// @internal +export class ExplicitTraversedTiles { + static createTraversedChildren(implicitTiling: TileImplicitTiling, schema: Schema | undefined, parent: ExplicitTraversedTile, resourceResolver: ResourceResolver): Promise; +} + +// @internal +export class Extensions { + static addExtensionRequired(extensible: Extensible, extension: string): void; + // Warning: (ae-forgotten-export) The symbol "Extensible" needs to be exported by the entry point index.d.ts + static addExtensionUsed(extensible: Extensible, extension: string): void; + // Warning: (ae-forgotten-export) The symbol "Extended" needs to be exported by the entry point index.d.ts + static containsExtension(extended: Extended, extension: string): boolean; + static removeExtension(extended: Extended, extension: string): void; + static removeExtensionRequired(extensible: Extensible, extension: string): void; + static removeExtensionUsed(extensible: Extensible, extension: string): void; +} + +// @internal +export class EXTInstanceFeatures extends Extension { + // (undocumented) + createFeatureId(): InstanceFeaturesFeatureId; + // (undocumented) + createInstanceFeatures(): InstanceFeatures; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + readonly extensionName = "EXT_instance_features"; + // (undocumented) + read(context: ReaderContext): this; + // (undocumented) + write(context: WriterContext): this; +} + +// @internal +export class EXTMeshFeatures extends Extension { + // (undocumented) + createFeatureId(): MeshFeaturesFeatureId; + // (undocumented) + createFeatureIdTexture(): FeatureIdTexture; + // (undocumented) + createMeshFeatures(): MeshFeatures; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + readonly extensionName = "EXT_mesh_features"; + // (undocumented) + read(context: ReaderContext): this; + // (undocumented) + write(context: WriterContext): this; +} + +// @internal +export class EXTStructuralMetadata extends Extension { + // (undocumented) + createClass(): StructuralMetadataClass; + // Warning: (ae-forgotten-export) The symbol "ClassDef" needs to be exported by the entry point index.d.ts + // + // (undocumented) + createClassFrom(classDef: ClassDef): StructuralMetadataClass; + // (undocumented) + createClassProperty(): StructuralMetadataClassProperty; + // Warning: (ae-forgotten-export) The symbol "ClassPropertyDef" needs to be exported by the entry point index.d.ts + // + // (undocumented) + createClassPropertyFrom(classPropertyDef: ClassPropertyDef): StructuralMetadataClassProperty; + // (undocumented) + createElementStructuralMetadata(): ElementStructuralMetadata; + // (undocumented) + createEnum(): StructuralMetadataEnum; + // Warning: (ae-forgotten-export) The symbol "EnumDef" needs to be exported by the entry point index.d.ts + // + // (undocumented) + createEnumFrom(enumDef: EnumDef): StructuralMetadataEnum; + // (undocumented) + createEnumValue(): StructuralMetadataEnumValue; + // Warning: (ae-forgotten-export) The symbol "EnumValueDef" needs to be exported by the entry point index.d.ts + // + // (undocumented) + createEnumValueFrom(enumValueDef: EnumValueDef): StructuralMetadataEnumValue; + // (undocumented) + createMeshPrimitiveStructuralMetadata(): MeshPrimitiveStructuralMetadata; + // (undocumented) + createPropertyAttribute(): StructuralMetadataPropertyAttribute; + // (undocumented) + createPropertyAttributeProperty(): StructuralMetadataPropertyAttributeProperty; + // (undocumented) + createPropertyTable(): StructuralMetadataPropertyTable; + // (undocumented) + createPropertyTableProperty(): StructuralMetadataPropertyTableProperty; + // (undocumented) + createPropertyTexture(): StructuralMetadataPropertyTexture; + // (undocumented) + createPropertyTextureProperty(): StructuralMetadataPropertyTextureProperty; + // (undocumented) + createSchema(): StructuralMetadataSchema; + // Warning: (ae-forgotten-export) The symbol "SchemaDef" needs to be exported by the entry point index.d.ts + // + // (undocumented) + createSchemaFrom(schemaDef: SchemaDef): StructuralMetadataSchema; + // (undocumented) + createStructuralMetadata(): StructuralMetadata; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + readonly extensionName = "EXT_structural_metadata"; + prewrite(context: WriterContext, propertyType: PropertyType): this; + // (undocumented) + readonly prewriteTypes: PropertyType[]; + // (undocumented) + read(context: ReaderContext): this; + // (undocumented) + write(context: WriterContext): this; +} + +// Warning: (ae-forgotten-export) The symbol "IFeatureIdTexture" needs to be exported by the entry point index.d.ts +// +// @internal +export class FeatureIdTexture extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // Warning: (ae-forgotten-export) The symbol "NAME_3" needs to be exported by the entry point index.d.ts + // + // (undocumented) + extensionName: typeof NAME_3; + // (undocumented) + getChannels(): number[]; + // (undocumented) + protected getDefaults(): Nullable & { + channels: number[]; + texture: null; + textureInfo: TextureInfo; + }; + // (undocumented) + getTexture(): Texture | null; + // (undocumented) + getTextureInfo(): TextureInfo | null; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["FeatureId"]; + // (undocumented) + propertyType: "FeatureIdTexture"; + // (undocumented) + setChannels(channels: number[]): this; + // (undocumented) + setTexture(texture: Texture | null): this; +} + +// @internal +export interface FeatureTable extends RootProperty { +} + +// @internal +export interface FeatureTableBinaryBodyReference extends BinaryBodyOffset { + componentType?: string; +} + +// @internal +export class FileResourceResolver implements ResourceResolver { + constructor(basePath: string); + derive(uri: string): ResourceResolver; + resolveData(uri: string): Promise; + resolveDataPartial(uri: string, maxBytes: number): Promise; +} + +// @internal +export class GltfPack { + static process(inputGlb: Buffer, options: GltfPackOptions): Promise; +} + +// @internal +export type GltfPackOptions = Partial<{ + c: boolean; + cc: boolean; + si: number; + sa: boolean; + slb: boolean; + vp: number; + vt: number; + vn: number; + vc: number; + vpi: boolean; + vpn: boolean; + vpf: boolean; + at: number; + ar: number; + as: number; + af: number; + ac: boolean; + kn: boolean; + km: boolean; + ke: boolean; + mm: boolean; + mi: boolean; + cf: boolean; + noq: boolean; +}>; + +// @internal +export class GltfPipelineLegacy { + // (undocumented) + static process(gltf: any): Promise; +} + +// @internal +export class GltfTransform { + static getIO(): Promise; + static process(inputGlb: Buffer, ...transforms: Transform[]): Promise; +} + +// @internal +export interface GltfTransformPointCloud { + document: Document; + primitive: Primitive; +} + +// @internal +export class GltfTransformPointClouds { + static applyQuantization(document: Document, quantizePositions: boolean, quantizeNormals: boolean): Promise; + static build(readablePointCloud: ReadablePointCloud, mayRequireAlpha: boolean): GltfTransformPointCloud; +} + +// @internal +export class GltfTransformTextures { + static createTransformTexturesToKtx(etc1sOptions: KtxEtc1sOptions, uastcOptions: KtxUastcOptions): Transform; +} + +// @internal +export class GltfUtilities { + static extractDataFromGlb(glbBuffer: Buffer): { + jsonData: Buffer; + binData: Buffer; + }; + static extractJsonFromGlb(glbBuffer: Buffer): Buffer; + static getGltfVersion(glbBuffer: Buffer): number; + static optimizeGlb(glbBuffer: Buffer, options: any): Promise; + static replaceCesiumRtcExtension(glbBuffer: Buffer): Promise; + static upgradeGlb(glbBuffer: Buffer, options: any): Promise; +} + +// @internal +export interface Group extends MetadataEntity { +} + +// @internal +export interface Header { + gltfFormat?: number; + magic: string; + version: number; +} + +// @internal +export interface I3dmFeatureTable extends FeatureTable { + BATCH_ID?: FeatureTableBinaryBodyReference; + EAST_NORTH_UP?: boolean; + INSTANCES_LENGTH: number; + NORMAL_RIGHT?: FeatureTableBinaryBodyReference; + NORMAL_RIGHT_OCT32P?: FeatureTableBinaryBodyReference; + NORMAL_UP?: FeatureTableBinaryBodyReference; + NORMAL_UP_OCT32P?: FeatureTableBinaryBodyReference; + POSITION?: FeatureTableBinaryBodyReference; + POSITION_QUANTIZED?: FeatureTableBinaryBodyReference; + QUANTIZED_VOLUME_OFFSET?: BinaryBodyOffset | number[]; + QUANTIZED_VOLUME_SCALE?: BinaryBodyOffset | number[]; + RTC_CENTER?: BinaryBodyOffset | number[]; + SCALE?: FeatureTableBinaryBodyReference; + SCALE_NON_UNIFORM?: FeatureTableBinaryBodyReference; +} + +// @internal +export class Ids { + static sanitize(identifier: string): string; +} + +// @internal +export class ImplicitTilingError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class ImplicitTilings { + static computeNumberOfNodesInLevel(implicitTiling: TileImplicitTiling, level: number): number; + static computeNumberOfNodesPerSubtree(implicitTiling: TileImplicitTiling): number; + static createRootCoordinates(implicitTiling: TileImplicitTiling): TreeCoordinates; + static createString(coordinates: TreeCoordinates): string; + static createSubtreeCoordinatesIterator(implicitTiling: TileImplicitTiling): Iterable; + static globalizeCoordinates(implicitTiling: TileImplicitTiling, rootCoordinates: TreeCoordinates, coordinates: TreeCoordinates): TreeCoordinates; + static substituteTemplateUri(subdivisionScheme: string, templateUri: string, coordinates: TreeCoordinates): string; +} + +// @internal +export class ImplicitTraversedTile implements TraversedTile { + constructor(implicitTiling: TileImplicitTiling, resourceResolver: ResourceResolver, root: TraversedTile, path: string, subtreeModel: SubtreeModel, globalLevel: number, globalCoordinate: TreeCoordinates, rootCoordinate: TreeCoordinates, localCoordinate: TreeCoordinates, parent: TraversedTile); + asFinalTile(): Tile; + asRawTile(): Tile; + getChildren(): Promise; + getFinalContents(): Content[]; + getGlobalCoordinate(): TreeCoordinates; + getLocalCoordinate(): TreeCoordinates; + getParent(): TraversedTile | undefined; + getRawContents(): Content[]; + getResourceResolver(): ResourceResolver; + getSubtreeUri(): string | undefined; + isImplicitTilesetRoot(): boolean; + get level(): number; + get path(): string; + toString: () => string; +} + +// @internal +export class IndexBuilder { + constructor(); + addEntry(key: string, size: number): void; + createBuffer(): Buffer; +} + +// @internal +export interface IndexBuilderEntry { + key: string; + offset: bigint; +} + +// @internal +export interface IndexEntry { + hash: Buffer; + offset: bigint; +} + +// Warning: (ae-forgotten-export) The symbol "IInstanceFeatures" needs to be exported by the entry point index.d.ts +// +// @internal +export class InstanceFeatures extends ExtensionProperty { + // (undocumented) + addFeatureId(featureId: InstanceFeaturesFeatureId): this; + // (undocumented) + static EXTENSION_NAME: string; + // Warning: (ae-forgotten-export) The symbol "NAME_2" needs to be exported by the entry point index.d.ts + // + // (undocumented) + extensionName: typeof NAME_2; + // (undocumented) + protected getDefaults(): Nullable & { + featureIds: never[]; + }; + // (undocumented) + protected init(): void; + // (undocumented) + listFeatureIds(): InstanceFeaturesFeatureId[]; + // (undocumented) + parentTypes: [PropertyType.NODE]; + // (undocumented) + propertyType: "InstanceFeatures"; + // (undocumented) + removeFeatureId(featureId: InstanceFeaturesFeatureId): this; +} + +// Warning: (ae-forgotten-export) The symbol "IFeatureId" needs to be exported by the entry point index.d.ts +// +// @internal +export class InstanceFeaturesFeatureId extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME_2; + // Warning: (ae-forgotten-export) The symbol "FeatureIdAttribute" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getAttribute(): FeatureIdAttribute; + // (undocumented) + protected getDefaults(): Nullable; + // (undocumented) + getFeatureCount(): number; + // (undocumented) + getLabel(): string; + // (undocumented) + getNullFeatureId(): number; + // (undocumented) + getPropertyTable(): StructuralMetadataPropertyTable | null; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["InstanceFeatures"]; + // (undocumented) + propertyType: "FeatureId"; + // (undocumented) + setAttribute(attribute: FeatureIdAttribute): this; + // (undocumented) + setFeatureCount(featureCount: number): this; + // (undocumented) + setLabel(label: string): this; + // (undocumented) + setNullFeatureId(nullFeatureId: number): this; + // (undocumented) + setPropertyTable(propertyTable: StructuralMetadataPropertyTable | null): this; +} + +// @internal +export class InstanceFeaturesUtils { + static createInstanceFeaturesInfoString(document: Document): string; +} + +// @internal +export class Iterables { + static filter(iterable: Iterable, include: (element: T) => boolean): Iterable; + static filterWithIndex(iterable: Iterable, include: (element: T, index: number) => boolean): Iterable; + static flatten(iterable: Iterable): Iterable; + static map(iterable: Iterable, mapper: (element: S) => T): Iterable; + static overFiles(directory: string | PathLike, recurse: boolean): Iterable; + static segmentize(iterable: Iterable, segmentSize: number): Iterable; +} + +// @internal +export class KtxError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export type KtxEtc1sOptions = Partial<{ + compressionLevel: number; + qualityLevel: number; + transferFunction: "SRGB" | "LINEAR"; +}>; + +// @internal +export type KtxOptions = KtxEtc1sOptions & KtxUastcOptions & { + uastc: boolean; + computeStats?: boolean; + debug?: boolean; +}; + +// @internal +export type KtxUastcOptions = Partial<{ + level: number; + rdo_l: number; + rdo_d: number; + zstd: number; + transferFunction: "SRGB" | "LINEAR"; +}>; + +// @internal +export class KtxUtility { + static convertImageData(inputImageData: Buffer, options: KtxOptions | undefined): Promise; + static convertImageFile(inputFileName: string, outputFileName: string, options: KtxOptions | undefined): Promise; + static setLogCallback(logCallback: ((value: any) => void) | undefined): void; +} + +// @internal +export class LazyContentData implements ContentData { + constructor(uri: string, resourceResolver: ResourceResolver); + exists(): Promise; + get extension(): string; + getData(): Promise; + getMagic(): Promise; + getParsedObject(): Promise; + get uri(): string; +} + +// @internal +export class Loggers { + static get(loggerName?: string): Logger; + static initDefaultLogger(prettyPrint?: boolean): void; + static setLevel(level: string): void; +} + +// Warning: (ae-forgotten-export) The symbol "IMeshFeatures" needs to be exported by the entry point index.d.ts +// +// @internal +export class MeshFeatures extends ExtensionProperty { + // (undocumented) + addFeatureId(featureId: MeshFeaturesFeatureId): this; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME_3; + // (undocumented) + protected getDefaults(): Nullable & { + featureIds: never[]; + }; + // (undocumented) + protected init(): void; + // (undocumented) + listFeatureIds(): MeshFeaturesFeatureId[]; + // (undocumented) + parentTypes: [PropertyType.PRIMITIVE]; + // (undocumented) + propertyType: "MeshFeatures"; + // (undocumented) + removeFeatureId(featureId: MeshFeaturesFeatureId): this; +} + +// Warning: (ae-forgotten-export) The symbol "IFeatureId_2" needs to be exported by the entry point index.d.ts +// +// @internal +export class MeshFeaturesFeatureId extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME_3; + // Warning: (ae-forgotten-export) The symbol "FeatureIdAttribute_2" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getAttribute(): FeatureIdAttribute_2; + // (undocumented) + protected getDefaults(): Nullable; + // (undocumented) + getFeatureCount(): number; + // (undocumented) + getLabel(): string; + // (undocumented) + getNullFeatureId(): number; + // (undocumented) + getPropertyTable(): StructuralMetadataPropertyTable | null; + // (undocumented) + getTexture(): FeatureIdTexture | null; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["MeshFeatures"]; + // (undocumented) + propertyType: "FeatureId"; + // (undocumented) + setAttribute(attribute: FeatureIdAttribute_2): this; + // (undocumented) + setFeatureCount(featureCount: number): this; + // (undocumented) + setLabel(label: string): this; + // (undocumented) + setNullFeatureId(nullFeatureId: number): this; + // (undocumented) + setPropertyTable(propertyTable: StructuralMetadataPropertyTable | null): this; + // (undocumented) + setTexture(texture: FeatureIdTexture | null): this; +} + +// @internal +export class MeshFeaturesUtils { + static createMeshFeaturesInfoString(document: Document): string; +} + +// Warning: (ae-forgotten-export) The symbol "IMeshPrimitiveStructuralMetadata" needs to be exported by the entry point index.d.ts +// +// @internal +export class MeshPrimitiveStructuralMetadata extends ExtensionProperty { + // (undocumented) + addPropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; + // (undocumented) + addPropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + protected getDefaults(): Nullable & { + propertyTextures: never[]; + propertyAttributes: never[]; + }; + // (undocumented) + protected init(): void; + // (undocumented) + listPropertyAttributes(): StructuralMetadataPropertyAttribute[]; + // (undocumented) + listPropertyTextures(): StructuralMetadataPropertyTexture[]; + // (undocumented) + parentTypes: [PropertyType.PRIMITIVE]; + // (undocumented) + propertyType: "MeshPrimitiveStructuralMetadata"; + // (undocumented) + removePropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; + // (undocumented) + removePropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; +} + +// @internal +export interface MetadataClass extends RootProperty { + description?: string; + name?: string; + properties?: { + [key: string]: ClassProperty; + }; +} + +// @internal +export class MetadataComponentTypes { + static allComponentTypes: string[]; + static byteSizeForComponentType(componentType: string): number; + // (undocumented) + static readonly FLOAT32 = "FLOAT32"; + // (undocumented) + static readonly FLOAT64 = "FLOAT64"; + // (undocumented) + static readonly INT16 = "INT16"; + // (undocumented) + static readonly INT32 = "INT32"; + // (undocumented) + static readonly INT64 = "INT64"; + // (undocumented) + static readonly INT8 = "INT8"; + static integerComponentTypes: string[]; + static isIntegerComponentType(componentType: string | undefined): boolean; + static isUnsignedComponentType(componentType: string | undefined): boolean; + // (undocumented) + static normalize(value: number, componentType: string | undefined): number; + // (undocumented) + static readonly UINT16 = "UINT16"; + // (undocumented) + static readonly UINT32 = "UINT32"; + // (undocumented) + static readonly UINT64 = "UINT64"; + // (undocumented) + static readonly UINT8 = "UINT8"; + static unsignedComponentTypes: string[]; +} + +// @internal +export interface MetadataEntity extends RootProperty { + class: string; + properties?: { + [key: string]: any; + }; +} + +// @internal +export interface MetadataEntityModel { + getPropertyValue(propertyId: string): any; + getPropertyValueBySemantic(semantic: string): any; +} + +// @internal +export class MetadataEntityModels { + static computeSemanticToPropertyIdMapping(metadataClass: MetadataClass): { + [key: string]: string; + }; + static create(schema: Schema, entity: MetadataEntity): MetadataEntityModel; + static createFromClass(metadataClass: MetadataClass, metadataEnums: { + [key: string]: MetadataEnum; + }, entityProperties: { + [key: string]: any; + }): DefaultMetadataEntityModel; +} + +// @internal +export interface MetadataEnum extends RootProperty { + description?: string; + name?: string; + values: EnumValue[]; + valueType?: string; +} + +// @internal +export class MetadataError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class MetadataSemanticOverrides { + static applyExplicitContentMetadataSemanticOverrides(content: Content, schema: Schema): void; + static applyExplicitTileMetadataSemanticOverrides(tile: Tile, schema: Schema): void; + static applyImplicitContentMetadataSemanticOverrides(content: Content, contentSetIndex: number, tileIndex: number, subtreeMetadataModel: SubtreeMetadataModel): void; + static applyImplicitTileMetadataSemanticOverrides(tile: Tile, tileIndex: number, subtreeMetadataModel: SubtreeMetadataModel): void; +} + +// @internal +export class MetadataTypes { + static allTypes: string[]; + // (undocumented) + static readonly BOOLEAN = "BOOLEAN"; + static componentCountForType(type: string): number; + // (undocumented) + static readonly ENUM = "ENUM"; + static isNumericType(type: string): boolean; + // (undocumented) + static readonly MAT2 = "MAT2"; + // (undocumented) + static readonly MAT3 = "MAT3"; + // (undocumented) + static readonly MAT4 = "MAT4"; + static numericTypes: string[]; + // (undocumented) + static readonly SCALAR = "SCALAR"; + // (undocumented) + static readonly STRING = "STRING"; + // (undocumented) + static readonly VEC2 = "VEC2"; + // (undocumented) + static readonly VEC3 = "VEC3"; + // (undocumented) + static readonly VEC4 = "VEC4"; +} + +// @internal +export class MetadataUtilities { + static computeBinaryEnumInfo(schema: Schema): BinaryEnumInfo; + static computeEnumValueType(schema: Schema, classProperty: ClassProperty): string | undefined; + static computeMetadataEnumValueNameValues(metadataEnum: MetadataEnum): { + [key: string]: number; + }; + static computeMetadataEnumValueValueNames(metadataEnum: MetadataEnum): { + [key: number]: string; + }; + static obtainEnumValueNames(classProperty: ClassProperty, schema: Schema): string[]; +} + +// @internal +export class MetadataValues { + static processNumericEnumValue(classProperty: ClassProperty, valueValueNames: { + [key: number]: string; + }, value: number | number[]): any; + static processValue(classProperty: ClassProperty, offsetOverride: any, scaleOverride: any, value: any): any; +} + +// @internal +export class MortonOrder { + static encode2D(x: number, y: number): number; + static encode3D(x: number, y: number, z: number): number; +} + +// @internal +export class NumberTypeDescriptions { + static computeComponentType(value: number | bigint | number[] | bigint[] | number[][] | bigint[][]): string; +} + +// @internal +export class NumericArrayPropertyModel implements PropertyModel { + constructor(type: string, valuesBuffer: Buffer, componentType: string, arrayOffsetsBuffer: Buffer | undefined, arrayOffsetType: string, count: number | undefined); + getPropertyValue(index: number): (number | bigint | (number | bigint)[])[]; +} + +// @internal +export class NumericBuffers { + static getBooleanFromBuffer(buffer: Buffer, index: number): boolean; + static getNumericArrayFromBuffer(buffer: Buffer, index: number, arrayLength: number, componentType: string): (number | bigint)[]; + static getNumericBufferAsArray(buffer: Buffer, componentType: string): any; + static getNumericFromBuffer(buffer: Buffer, index: number, componentType: string): number | bigint; +} + +// @internal +export class NumericPropertyModel implements PropertyModel { + constructor(type: string, valuesBuffer: Buffer, componentType: string); + getPropertyValue(index: number): number | bigint | (number | bigint)[]; +} + +// @internal +export class OctreeCoordinates implements TreeCoordinates { + constructor(level: number, x: number, y: number, z: number); + children(): Iterable; + descendants(maxLevelInclusive: number, depthFirst: boolean): Iterable; + get level(): number; + parent(): OctreeCoordinates | null; + toArray(): number[]; + toIndex(): number; + toIndexInLevel(): number; + // (undocumented) + toString: () => string; + // (undocumented) + get x(): number; + // (undocumented) + get y(): number; + // (undocumented) + get z(): number; +} + +// @internal +export class Octrees { + static computeNumberOfNodesForLevels(levels: number): number; + static coordinatesForLevel(level: number): Generator; + static isValid(c: OctreeCoordinates): boolean; +} + +// @internal +export class Paths { + static ensureDirectoryExists(directory: string): void; + static hasExtension(fileName: string, ...extensions: string[]): boolean; + static isDirectory(p: string): boolean; + static join(...paths: string[]): string; + static relativize(directory: string, fileName: string): string; + static replaceExtension(fileName: string, newExtension: string): string; + static resolve(...paths: string[]): string; +} + +// @internal +export interface Pipeline { + input: string; + output: string; + tilesetStages: TilesetStage[]; +} + +// @internal +export class PipelineError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class PipelineExecutor { + static executePipeline(pipeline: Pipeline, overwrite: boolean): Promise; + static setTempBaseDirectory(directory: string | undefined): void; +} + +// @internal +export class Pipelines { + static createPipeline(pipelineJson: any): Pipeline; +} + +// @internal +export interface PntsFeatureTable extends FeatureTable { + BATCH_ID?: FeatureTableBinaryBodyReference; + BATCH_LENGTH?: number; + CONSTANT_RGBA?: BinaryBodyOffset | number[]; + NORMAL?: FeatureTableBinaryBodyReference; + NORMAL_OCT16P?: FeatureTableBinaryBodyReference; + POINTS_LENGTH: number; + POSITION?: FeatureTableBinaryBodyReference; + POSITION_QUANTIZED?: FeatureTableBinaryBodyReference; + QUANTIZED_VOLUME_OFFSET?: BinaryBodyOffset | number[]; + QUANTIZED_VOLUME_SCALE?: BinaryBodyOffset | number[]; + RGB?: FeatureTableBinaryBodyReference; + RGB565?: FeatureTableBinaryBodyReference; + RGBA?: FeatureTableBinaryBodyReference; + RTC_CENTER?: BinaryBodyOffset | number[]; +} + +// @internal +export class PntsPointClouds { + static create(featureTable: PntsFeatureTable, featureTableBinary: Buffer, batchTable: BatchTable): Promise; + static hasOctEncodedNormals(featureTable: PntsFeatureTable): boolean; + static hasQuantizedPositions(featureTable: PntsFeatureTable): boolean; + static mayRequireAlpha(featureTable: PntsFeatureTable): boolean; +} + +// @internal +export interface Properties extends RootProperty { + maximum: number; + minimum: number; +} + +// @internal +export interface PropertyModel { + getPropertyValue(index: number): any; +} + +// @internal +export class PropertyModels { + static createIterable(propertyModel: PropertyModel, numElements: number): Iterable; + static createNumericArrayIterable(propertyModel: PropertyModel, numElements: number): Iterable; + static createNumericScalarIterable(propertyModel: PropertyModel, numElements: number): Iterable; +} + +// @internal +export interface PropertyTable extends RootProperty { + class: string; + count: number; + name?: string; + properties?: { + [key: string]: PropertyTableProperty; + }; +} + +// @internal +export interface PropertyTableModel { + getClassProperty(propertyId: string): ClassProperty | undefined; + getCount(): number; + getMetadataEntityModel(index: number): MetadataEntityModel; + getPropertyModel(propertyId: string): PropertyModel | undefined; + getPropertyNames(): string[]; + getPropertyTableProperty(propertyId: string): PropertyTableProperty | undefined; +} + +// @internal +export class PropertyTableModels { + static createString(propertyTableModel: PropertyTableModel, maxRows?: number): string; +} + +// @internal +export interface PropertyTableProperty extends RootProperty { + arrayOffsets?: number; + arrayOffsetType?: string; + max?: any; + min?: any; + offset?: any; + scale?: any; + stringOffsets?: number; + stringOffsetType?: string; + values: number; +} + +// @internal +export type PropertyTablePropertyOffsetType = "UINT8" | "UINT16" | "UINT32" | "UINT64"; + +// @internal +export class QuadtreeCoordinates implements TreeCoordinates { + constructor(level: number, x: number, y: number); + children(): Iterable; + descendants(maxLevelInclusive: number, depthFirst: boolean): Iterable; + get level(): number; + parent(): QuadtreeCoordinates | null; + toArray(): number[]; + toIndex(): number; + toIndexInLevel(): number; + // (undocumented) + toString: () => string; + // (undocumented) + get x(): number; + // (undocumented) + get y(): number; +} + +// @internal +export class Quadtrees { + static computeNumberOfNodesForLevels(levels: number): number; + static coordinatesForLevel(level: number): Generator; + static isValid(c: QuadtreeCoordinates): boolean; +} + +// @internal +export type QuantizationInfo = { + quantizationBits: number; + minValues?: number[]; + range?: number; + octEncoded: boolean; +}; + +// @internal +export interface ReadablePointCloud { + getAttributeComponentType(name: string): string | undefined; + getAttributes(): string[]; + getAttributeType(name: string): string | undefined; + getAttributeValues(name: string): Iterable | undefined; + getGlobalPosition(): [number, number, number] | undefined; + getNormalizedLinearColors(): Iterable | undefined; + getNormalizedLinearGlobalColor(): [number, number, number, number] | undefined; + getNormals(): Iterable | undefined; + getPositions(): Iterable; +} + +// @internal +export interface ResourceResolver { + derive(uri: string): ResourceResolver; + resolveData(uri: string): Promise; + resolveDataPartial(uri: string, maxBytes: number): Promise; +} + +// @internal +export class ResourceResolvers { + static createFileResourceResolver(directory: string): UnzippingResourceResolver; +} + +// @internal +export interface RootProperty { + // (undocumented) + extensions?: { + [key: string]: { + [key: string]: any; + }; + }; + // (undocumented) + extras?: { + [key: string]: any; + }; +} + +// @internal +export interface Schema extends RootProperty { + classes?: { + [key: string]: MetadataClass; + }; + description?: string; + enums?: { + [key: string]: MetadataEnum; + }; + id: string; + name?: string; + version?: string; +} + +// @internal +export interface Stage { + description?: string; + name: string; +} + +// @internal +export interface Statistics extends RootProperty { + classes?: { + [key: string]: StatisticsClass; + }; +} + +// @internal +export interface StatisticsClass extends RootProperty { + count?: number; + properties?: { + [key: string]: StatisticsClassProperty; + }; +} + +// @internal +export interface StatisticsClassProperty extends RootProperty { + max?: any; + mean?: any; + median?: any; + min?: any; + occurrences?: { + [key: string]: any; + }; + standardDeviation?: any; + sum?: any; + variance?: any; +} + +// @internal +export class StringArrayPropertyModel implements PropertyModel { + constructor(valuesBuffer: Buffer, arrayOffsetsBuffer: Buffer | undefined, arrayOffsetType: string, stringOffsetsBuffer: Buffer, stringOffsetType: string, count: number | undefined); + getPropertyValue(index: number): string[]; +} + +// @internal +export class StringBuilder { + constructor(); + // (undocumented) + addLine(...args: any[]): void; + // (undocumented) + decreaseIndent(): void; + // (undocumented) + increaseIndent(): void; + // (undocumented) + toString(): string; +} + +// @internal +export class StringPropertyModel implements PropertyModel { + constructor(valuesBuffer: Buffer, stringOffsetsBuffer: Buffer, stringOffsetType: string); + getPropertyValue(index: number): string; +} + +// Warning: (ae-forgotten-export) The symbol "IStructuralMetadata" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadata extends ExtensionProperty { + // (undocumented) + addPropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; + // (undocumented) + addPropertyTable(propertyTable: StructuralMetadataPropertyTable): this; + // (undocumented) + addPropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + protected getDefaults(): Nullable & { + propertyTables: never[]; + propertyTextures: never[]; + propertyAttributes: never[]; + }; + // (undocumented) + getSchema(): StructuralMetadataSchema | null; + // (undocumented) + getSchemaUri(): string; + // (undocumented) + protected init(): void; + // (undocumented) + listPropertyAttributes(): StructuralMetadataPropertyAttribute[]; + // (undocumented) + listPropertyTables(): StructuralMetadataPropertyTable[]; + // (undocumented) + listPropertyTextures(): StructuralMetadataPropertyTexture[]; + // (undocumented) + parentTypes: [PropertyType.ROOT]; + // (undocumented) + propertyType: "StructuralMetadata"; + // (undocumented) + removePropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; + // (undocumented) + removePropertyTable(propertyTable: StructuralMetadataPropertyTable): this; + // (undocumented) + removePropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; + // (undocumented) + setSchema(schema: StructuralMetadataSchema | null): this; + // (undocumented) + setSchemaUri(name: string): this; +} + +// Warning: (ae-forgotten-export) The symbol "IClass" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataClass extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + protected getDefaults(): Nullable & { + properties: {}; + }; + // (undocumented) + getDescription(): string; + // (undocumented) + getObjectName(): string; + // (undocumented) + getProperty(key: string): StructuralMetadataClassProperty | null; + // (undocumented) + protected init(): void; + // (undocumented) + listPropertyKeys(): string[]; + // (undocumented) + listPropertyValues(): StructuralMetadataClassProperty[]; + // (undocumented) + parentTypes: ["Schema"]; + // (undocumented) + propertyType: "Class"; + // (undocumented) + setDescription(description: string): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setProperty(key: string, value: StructuralMetadataClassProperty | null): this; +} + +// Warning: (ae-forgotten-export) The symbol "IClassProperty" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataClassProperty extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getArray(): boolean; + // Warning: (ae-forgotten-export) The symbol "ClassPropertyComponentType" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getComponentType(): ClassPropertyComponentType; + // (undocumented) + getCount(): number; + // (undocumented) + getDefault(): any; + // (undocumented) + protected getDefaults(): Nullable & { + array: boolean; + normalized: boolean; + required: boolean; + }; + // (undocumented) + getDescription(): string; + // (undocumented) + getEnumType(): string; + // (undocumented) + getMax(): any; + // (undocumented) + getMin(): any; + // (undocumented) + getNoData(): any; + // (undocumented) + getNormalized(): boolean; + // (undocumented) + getObjectName(): string; + // (undocumented) + getOffset(): any; + // (undocumented) + getRequired(): boolean; + // (undocumented) + getScale(): any; + // Warning: (ae-forgotten-export) The symbol "ClassPropertyType" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getType(): ClassPropertyType; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["Class"]; + // (undocumented) + propertyType: "ClassProperty"; + // (undocumented) + setArray(array: boolean): this; + // (undocumented) + setComponentType(componentType: ClassPropertyComponentType): this; + // (undocumented) + setCount(count: number): this; + // (undocumented) + setDefault(defaultValue: any): this; + // (undocumented) + setDescription(description: string): this; + // (undocumented) + setEnumType(enumType: string): this; + // (undocumented) + setMax(max: any): this; + // (undocumented) + setMin(min: any): this; + // (undocumented) + setNoData(noData: any): this; + // (undocumented) + setNormalized(normalized: boolean): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setOffset(offset: any): this; + // (undocumented) + setRequired(required: boolean): this; + // (undocumented) + setScale(scale: any): this; + // (undocumented) + setType(type: ClassPropertyType): this; +} + +// Warning: (ae-forgotten-export) The symbol "IEnum" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataEnum extends ExtensionProperty { + // (undocumented) + addEnumValue(enumValue: StructuralMetadataEnumValue): this; + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + protected getDefaults(): Nullable & { + valueType: string; + values: never[]; + }; + // (undocumented) + getDescription(): string; + // (undocumented) + getObjectName(): string; + // Warning: (ae-forgotten-export) The symbol "EnumValueType" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getValueType(): EnumValueType; + // (undocumented) + protected init(): void; + // (undocumented) + listValues(): StructuralMetadataEnumValue[]; + // (undocumented) + parentTypes: ["Schema"]; + // (undocumented) + propertyType: "Enum"; + // (undocumented) + removeEnumValue(enumValue: StructuralMetadataEnumValue): this; + // (undocumented) + setDescription(description: string): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setValueType(valueType: EnumValueType): this; +} + +// Warning: (ae-forgotten-export) The symbol "IEnumValue" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataEnumValue extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + protected getDefaults(): Nullable; + // (undocumented) + getDescription(): string; + // (undocumented) + getObjectName(): string; + // (undocumented) + getValue(): number; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["Enum"]; + // (undocumented) + propertyType: "EnumValue"; + // (undocumented) + setDescription(description: string): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setValue(value: number): this; +} + +// Warning: (ae-forgotten-export) The symbol "IPropertyAttribute" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataPropertyAttribute extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getClass(): string; + // (undocumented) + protected getDefaults(): Nullable & { + properties: {}; + }; + // (undocumented) + getObjectName(): string; + // (undocumented) + getProperty(key: string): StructuralMetadataPropertyAttributeProperty | null; + // (undocumented) + protected init(): void; + // (undocumented) + listPropertyKeys(): string[]; + // (undocumented) + listPropertyValues(): StructuralMetadataPropertyAttributeProperty[]; + // (undocumented) + parentTypes: ["StructuralMetadata"]; + // (undocumented) + propertyType: "PropertyAttribute"; + // (undocumented) + setClass(_class: string): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setProperty(key: string, value: StructuralMetadataPropertyAttributeProperty | null): this; +} + +// Warning: (ae-forgotten-export) The symbol "IPropertyAttributeProperty" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataPropertyAttributeProperty extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getAttribute(): string; + // (undocumented) + protected getDefaults(): Nullable; + // (undocumented) + getMax(): any; + // (undocumented) + getMin(): any; + // (undocumented) + getOffset(): any; + // (undocumented) + getScale(): any; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["PropertyAttribute"]; + // (undocumented) + propertyType: "PropertyAttributeProperty"; + // (undocumented) + setAttribute(attribute: string): this; + // (undocumented) + setMax(max: any): this; + // (undocumented) + setMin(min: any): this; + // (undocumented) + setOffset(offset: any): this; + // (undocumented) + setScale(scale: any): this; +} + +// Warning: (ae-forgotten-export) The symbol "IPropertyTable" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataPropertyTable extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getClass(): string; + // (undocumented) + getCount(): number; + // (undocumented) + protected getDefaults(): Nullable & { + properties: {}; + }; + // (undocumented) + getObjectName(): string; + // (undocumented) + getProperty(key: string): StructuralMetadataPropertyTableProperty | null; + // (undocumented) + protected init(): void; + // (undocumented) + listPropertyKeys(): string[]; + // (undocumented) + listPropertyValues(): StructuralMetadataPropertyTableProperty[]; + // (undocumented) + parentTypes: ["StructuralMetadata"]; + // (undocumented) + propertyType: "PropertyTable"; + // (undocumented) + setClass(className: string): this; + // (undocumented) + setCount(count: number): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setProperty(key: string, value: StructuralMetadataPropertyTableProperty | null): this; +} + +// Warning: (ae-forgotten-export) The symbol "IPropertyTableProperty" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataPropertyTableProperty extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getArrayOffsets(): Uint8Array | null; + // (undocumented) + getArrayOffsetType(): PropertyTablePropertyOffsetType; + // (undocumented) + protected getDefaults(): Nullable & { + arrayOffsetType: string; + stringOffsetType: string; + }; + // (undocumented) + getMax(): any; + // (undocumented) + getMin(): any; + // (undocumented) + getOffset(): any; + // (undocumented) + getScale(): any; + // (undocumented) + getStringOffsets(): Uint8Array | null; + // (undocumented) + getStringOffsetType(): PropertyTablePropertyOffsetType; + // (undocumented) + getValues(): Uint8Array; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["PropertyTable"]; + // (undocumented) + propertyType: "PropertyTableProperty"; + // (undocumented) + setArrayOffsets(arrayOffsets: Uint8Array): this; + // (undocumented) + setArrayOffsetType(arrayOffsetType: PropertyTablePropertyOffsetType): this; + // (undocumented) + setMax(max: any): this; + // (undocumented) + setMin(min: any): this; + // (undocumented) + setOffset(offset: any): this; + // (undocumented) + setScale(scale: any): this; + // (undocumented) + setStringOffsets(stringOffsets: Uint8Array): this; + // (undocumented) + setStringOffsetType(stringOffsetType: PropertyTablePropertyOffsetType): this; + // (undocumented) + setValues(values: Uint8Array): this; +} + +// @internal +export class StructuralMetadataPropertyTables { + static create(extStructuralMetadata: EXTStructuralMetadata, binaryPropertyTable: BinaryPropertyTable): StructuralMetadataPropertyTable; +} + +// Warning: (ae-forgotten-export) The symbol "IPropertyTexture" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataPropertyTexture extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getClass(): string; + // (undocumented) + protected getDefaults(): Nullable & { + properties: {}; + }; + // (undocumented) + getObjectName(): string; + // (undocumented) + getProperty(key: string): StructuralMetadataPropertyTextureProperty | null; + // (undocumented) + protected init(): void; + // (undocumented) + listPropertyKeys(): string[]; + // (undocumented) + listPropertyValues(): StructuralMetadataPropertyTextureProperty[]; + // (undocumented) + parentTypes: ["StructuralMetadata"]; + // (undocumented) + propertyType: "PropertyTexture"; + // (undocumented) + setClass(_class: string): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setProperty(key: string, value: StructuralMetadataPropertyTextureProperty | null): this; +} + +// Warning: (ae-forgotten-export) The symbol "IPropertyTextureProperty" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataPropertyTextureProperty extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getChannels(): number[]; + // (undocumented) + protected getDefaults(): Nullable & { + channels: number[]; + texture: null; + textureInfo: TextureInfo; + }; + // (undocumented) + getMax(): any; + // (undocumented) + getMin(): any; + // (undocumented) + getOffset(): any; + // (undocumented) + getScale(): any; + // (undocumented) + getTexture(): Texture | null; + // (undocumented) + getTextureInfo(): TextureInfo | null; + // (undocumented) + protected init(): void; + // (undocumented) + parentTypes: ["PropertyTexture"]; + // (undocumented) + propertyType: "PropertyTextureProperty"; + // (undocumented) + setChannels(channels: number[]): this; + // (undocumented) + setMax(max: any): this; + // (undocumented) + setMin(min: any): this; + // (undocumented) + setOffset(offset: any): this; + // (undocumented) + setScale(scale: any): this; + // (undocumented) + setTexture(texture: Texture | null): this; +} + +// Warning: (ae-forgotten-export) The symbol "ISchema" needs to be exported by the entry point index.d.ts +// +// @internal +export class StructuralMetadataSchema extends ExtensionProperty { + // (undocumented) + static EXTENSION_NAME: string; + // (undocumented) + extensionName: typeof NAME; + // (undocumented) + getClass(key: string): StructuralMetadataClass | null; + // (undocumented) + protected getDefaults(): Nullable & { + classes: {}; + enums: {}; + }; + // (undocumented) + getDescription(): string; + // (undocumented) + getEnum(key: string): StructuralMetadataEnum | null; + // (undocumented) + getId(): string; + // (undocumented) + getObjectName(): string; + // (undocumented) + getVersion(): string; + // (undocumented) + protected init(): void; + // (undocumented) + listClassKeys(): string[]; + // (undocumented) + listClassValues(): StructuralMetadataClass[]; + // (undocumented) + listEnumKeys(): string[]; + // (undocumented) + listEnumValues(): StructuralMetadataEnum[]; + // (undocumented) + parentTypes: ["StructuralMetadata"]; + // (undocumented) + propertyType: "Schema"; + // (undocumented) + setClass(key: string, value: StructuralMetadataClass | null): this; + // (undocumented) + setDescription(description: string): this; + // (undocumented) + setEnum(key: string, value: StructuralMetadataEnum | null): this; + // (undocumented) + setId(name: string): this; + // (undocumented) + setObjectName(name: string): this; + // (undocumented) + setVersion(version: string): this; +} + +// @internal +export class StructuralMetadataUtils { + static createStructuralMetadataInfoString(document: Document): string; +} + +// @internal +export interface Style extends RootProperty { + color?: string | string[]; + defines?: { + [key: string]: string; + }; + meta?: { + [key: string]: string; + }; + show?: string | string[]; +} + +// @internal +export interface Subtree extends RootProperty { + buffers?: BufferObject[]; + bufferViews?: BufferView[]; + childSubtreeAvailability: Availability; + contentAvailability?: Availability[]; + contentMetadata?: number[]; + propertyTables?: PropertyTable[]; + subtreeMetadata?: MetadataEntity; + tileAvailability: Availability; + tileMetadata?: number; +} + +// @internal +export interface SubtreeInfo { + childSubtreeAvailabilityInfo: AvailabilityInfo; + contentAvailabilityInfos: AvailabilityInfo[]; + tileAvailabilityInfo: AvailabilityInfo; +} + +// @internal +export class SubtreeInfos { + static create(binarySubtreeData: BinarySubtreeData, implicitTiling: TileImplicitTiling): SubtreeInfo; + static createFromBuffer(input: Buffer, implicitTiling: TileImplicitTiling, resourceResolver: ResourceResolver): Promise; + static createFromJson(subtree: Subtree, implicitTiling: TileImplicitTiling, resourceResolver: ResourceResolver): Promise; +} + +// @internal +export interface SubtreeMetadataModel { + contentIndexMappings: number[][]; + contentMetadataModels: PropertyTableModel[]; + schema: Schema; + tileIndexMapping: number[] | undefined; + tileMetadataModel: PropertyTableModel | undefined; +} + +// @internal +export class SubtreeMetadataModels { + static create(binarySubtreeData: BinarySubtreeData, subtreeInfo: SubtreeInfo, schema: Schema): SubtreeMetadataModel; +} + +// @internal +export interface SubtreeModel { + subtreeInfo: SubtreeInfo; + subtreeMetadataModel: SubtreeMetadataModel | undefined; +} + +// @internal +export class SubtreeModels { + static resolve(implicitTiling: TileImplicitTiling, schema: Schema | undefined, resourceResolver: ResourceResolver, coordinates: TreeCoordinates): Promise; +} + +// @internal +export interface Subtrees extends RootProperty { + uri: string; +} + +// @internal +export interface Table { + binary: Buffer; + json: any; +} + +// @internal +export class TableMetadataEntityModel implements MetadataEntityModel { + constructor(propertyTableModel: PropertyTableModel, entityIndex: number, semanticToPropertyId: { + [key: string]: string; + }, enumValueValueNames: { + [key: string]: { + [key: number]: string; + }; + }); + getPropertyValue(propertyId: string): any; + getPropertyValueBySemantic(semantic: string): any; +} + +// @internal +export type TableStructure = { + name: string; + columns: { + name: string; + type: string; + }[]; +}; + +// @internal +export class TableStructureValidator { + static validate(db: Database, tableStructure: TableStructure): string | undefined; +} + +// @internal +export class TemplateUris { + static substituteOctree(templateUri: string, coordinates: OctreeCoordinates): string; + static substituteOctreeInternal(templateUri: string, level: number, x: number, y: number, z: number): string; + static substituteQuadtree(templateUri: string, coordinates: QuadtreeCoordinates): string; + static substituteQuadtreeInternal(templateUri: string, level: number, x: number, y: number): string; +} + +// @internal +export interface Tile extends RootProperty { + boundingVolume: BoundingVolume; + children?: Tile[]; + content?: Content; + contents?: Content[]; + geometricError: number; + implicitTiling?: TileImplicitTiling; + metadata?: MetadataEntity; + refine?: string; + transform?: number[]; + viewerRequestVolume?: BoundingVolume; +} + +// @internal +export class TileContentProcessing { + static process(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean, tileContentProcessor: TileContentProcessor): Promise; +} + +// @internal +export type TileContentProcessor = (content: Buffer, type: string | undefined) => Promise; + +// @internal +export class TileContentProcessors { + static concat(...tileContentProcessors: TileContentProcessor[]): TileContentProcessor; +} + +// @internal +export class TileContentProcessorsGltfpack { + static create(options: GltfPackOptions): TileContentProcessor; +} + +// @internal +export class TileContentProcessorsGltfPipeline { + static create(options: any): TileContentProcessor; +} + +// @internal +export class TileContentProcessorsGltfTransform { + static create(...transforms: Transform[]): TileContentProcessor; +} + +// @internal +export class TileContentProcessorsTextures { + static encodeToKtx(etc1sOptions: KtxEtc1sOptions, uastcOptions: KtxUastcOptions): TileContentProcessor; +} + +// @internal +export interface TileData { + batchTable: Table; + featureTable: Table; + header: Header; + payload: Buffer; +} + +// @internal +export interface TileDataBlockLayout { + // (undocumented) + end: number; + // (undocumented) + length: number; + // (undocumented) + start: number; +} + +// @internal +export interface TileDataLayout { + // (undocumented) + batchTableBinary: TileDataBlockLayout; + // (undocumented) + batchTableJson: TileDataBlockLayout; + // (undocumented) + byteLength: number; + // (undocumented) + featureTableBinary: TileDataBlockLayout; + // (undocumented) + featureTableJson: TileDataBlockLayout; + // (undocumented) + headerLength: number; + // (undocumented) + legacyBatchLength: number | undefined; + // (undocumented) + magic: string; + // (undocumented) + payload: TileDataBlockLayout; +} + +// @internal +export class TileDataLayouts { + // (undocumented) + static create(buffer: Buffer): TileDataLayout; +} + +// @internal +export class TileFormatError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class TileFormats { + static createB3dmTileDataFromGlb(glbData: Buffer, featureTableJson: B3dmFeatureTable | undefined, featureTableBinary: Buffer | undefined, batchTableJson: BatchTable | undefined, batchTableBinary: Buffer | undefined): TileData; + static createCompositeTileData(tileDatas: TileData[]): CompositeTileData; + static createCompositeTileDataBuffer(compositeTileData: CompositeTileData): Buffer; + static createDefaultB3dmTileDataFromGlb(glbData: Buffer): TileData; + static createDefaultI3dmTileDataFromGlb(glbData: Buffer): TileData; + static createI3dmTileDataFromGlb(glbData: Buffer, featureTableJson: I3dmFeatureTable | undefined, featureTableBinary: Buffer | undefined, batchTableJson: BatchTable | undefined, batchTableBinary: Buffer | undefined): TileData; + static createTileDataBuffer(tileData: TileData): Buffer; + static extractGlbBuffers(tileDataBuffer: Buffer, externalGlbResolver: (glbUri: string) => Promise): Promise; + static extractGlbPayload(tileData: TileData): Buffer; + static extractTileData(buffer: Buffer, tileDataLayout: TileDataLayout): { + header: { + magic: string; + version: number; + gltfFormat: number | undefined; + }; + featureTable: { + json: any; + binary: Buffer; + }; + batchTable: { + json: any; + binary: Buffer; + }; + payload: Buffer; + }; + static isComposite(buffer: Buffer): boolean; + static obtainGlbPayload(tileData: TileData, externalGlbResolver: (glbUri: string) => Promise): Promise; + static readCompositeTileData(buffer: Buffer): CompositeTileData; + static readTileData(buffer: Buffer): TileData; + static splitCmpt(tileDataBuffer: Buffer, recursive: boolean): Promise; +} + +// @internal +export class TileFormatsMigration { + static applyRtcCenter(document: Document, rtcCenter: number[]): void; + static convertB3dmToGlb(b3dmBuffer: Buffer): Promise; + static convertI3dmToGlb(i3dmBuffer: Buffer, externalGlbResolver: (uri: string) => Promise): Promise; + static convertPntsToGlb(pntsBuffer: Buffer): Promise; + // (undocumented) + static readonly DEBUG_LOG_FILE_CONTENT = false; + static makeSingleRoot(document: Document): void; +} + +// @internal +export class TileFormatsMigrationB3dm { + static convertB3dmToGlb(b3dmBuffer: Buffer): Promise; +} + +// @internal +export class TileFormatsMigrationI3dm { + static convertI3dmToGlb(i3dmBuffer: Buffer, externalGlbResolver: (uri: string) => Promise): Promise; +} + +// @internal +export class TileFormatsMigrationPnts { + static convertPntsToGlb(pntsBuffer: Buffer): Promise; +} + +// @internal +export interface TileImplicitTiling extends RootProperty { + availableLevels: number; + subdivisionScheme: string; + subtreeLevels: number; + subtrees: Subtrees; +} + +// @internal +export class Tiles { + static getContents(tile: Tile): Content[]; + static getContentUris(tile: Tile): string[]; + static setContents(tile: Tile, contents: Content[]): void; + static traverseExplicit(tile: Tile, callback: TileTraversalCallback): Promise; +} + +// @internal +export interface Tileset extends RootProperty { + asset: Asset; + extensionsRequired?: string[]; + extensionsUsed?: string[]; + geometricError: number; + groups?: Group[]; + metadata?: MetadataEntity; + properties?: { + [key: string]: Properties; + }; + root: Tile; + schema?: Schema; + schemaUri?: string; + statistics?: Statistics; +} + +// @internal +export class TilesetCombiner { + constructor(externalTilesetDetector: (contentData: ContentData) => Promise); + combine(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; +} + +// @internal +export class TilesetConverter { + static convert(input: string, inputTilesetJsonFileName: string | undefined, output: string, force: boolean): Promise; +} + +// @internal +export class TilesetDataProcessor extends TilesetProcessor { + processAllEntries(entryProcessor: TilesetEntryProcessor): Promise; +} + +// @internal +export interface TilesetEntry { + key: string; + value: Buffer; +} + +// @internal +export type TilesetEntryProcessor = (sourceEntry: TilesetEntry, type: string | undefined) => Promise; + +// @internal +export class TilesetError extends Error { + constructor(message: string); + // (undocumented) + toString: () => string; +} + +// @internal +export class TilesetInMemory implements TilesetSource, TilesetTarget { + constructor(); + addEntry(key: string, content: Buffer): void; + begin(fullOutputName: string, overwrite: boolean): void; + close(): void; + end(): Promise; + getKeys(): string[]; + getValue(key: string): Buffer | undefined; + open(fullInputName: string): void; +} + +// @internal +export class TilesetJsonCreator { + static createTilesetFromContents(baseDir: string, contentUris: string[]): Promise; +} + +// @internal +export class TilesetMerger { + constructor(); + merge(tilesetSourceNames: string[], tilesetTargetName: string, overwrite: boolean): Promise; +} + +// @internal +export class TilesetObjectUpgrader { + constructor(upgradeOptions: TilesetUpgradeOptions); + upgradeTilesetObject(tileset: Tileset): Promise; +} + +// @internal +export class TilesetOperations { + static combine(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; + static merge(tilesetSourceNames: string[], tilesetTargetName: string, overwrite: boolean): Promise; + static upgrade(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean, targetVersion: string, gltfUpgradeOptions: any): Promise; + static upgradeTileset(tileset: Tileset, targetVersion: string): Promise; +} + +// @internal +export class TilesetProcessing { + static getSourceValue(tilesetSource: TilesetSource, key: string): Buffer; + static parseSourceValue(tilesetSource: TilesetSource, key: string): T; + static resolveSchema(tilesetSource: TilesetSource, tileset: Tileset): Schema | undefined; +} + +// @internal +export abstract class TilesetProcessor { + begin(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; + end(): Promise; + fetchSourceEntry(key: string): Promise; + protected getContext(): TilesetProcessorContext; + protected getTargetKey(sourceKey: string): string | undefined; + isProcessed(key: string): boolean; + markAsProcessed(key: string): void; + protected processAllEntriesInternal(entryProcessor: TilesetEntryProcessor): Promise; + processEntry(sourceKey: string, entryProcessor: TilesetEntryProcessor): Promise; + protected putTargetKey(sourceKey: string, targetKey: string): void; + storeTargetEntries(...targetEntries: TilesetEntry[]): void; +} + +// @internal +export interface TilesetProcessorContext { + processedKeys: { + [key: string]: boolean; + }; + schema: Schema | undefined; + sourceTileset: Tileset; + targetKeys: { + [key: string]: string; + }; + targetTileset: Tileset; + tilesetSource: TilesetSource; + tilesetSourceJsonFileName: string; + tilesetTarget: TilesetTarget; + tilesetTargetJsonFileName: string; +} + +// @internal +export class TilesetProcessorContexts { + static close(context: TilesetProcessorContext): Promise; + static create(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; +} + +// @internal +export class Tilesets { + static areEqualPackages(tilesetPackageName0: string, tilesetPackageName1: string): boolean; + static determineTilesetJsonFileName(tilesetDataName: string): string; +} + +// @internal +export interface TilesetSource { + close(): void; + getKeys(): Iterable; + getValue(key: string): Buffer | undefined; + open(fullInputName: string): void; +} + +// @internal +export class TilesetSource3dtiles implements TilesetSource { + constructor(); + close(): void; + getKeys(): Iterable; + getValue(key: string): Buffer | undefined; + open(fullInputName: string): void; +} + +// @internal +export class TilesetSource3tz implements TilesetSource { + constructor(); + close(): void; + getKeys(): Iterable; + getValue(key: string): Buffer | undefined; + // (undocumented) + getZipIndex(): IndexEntry[] | undefined; + open(fullInputName: string): void; +} + +// @internal +export class TilesetSourceFs implements TilesetSource { + constructor(); + close(): void; + getKeys(): Iterable; + getValue(key: string): Buffer | undefined; + open(fullInputName: string): void; +} + +// @internal +export class TilesetSourceResourceResolver implements ResourceResolver { + constructor(basePath: string, tilesetSource: TilesetSource); + derive(uri: string): ResourceResolver; + resolveData(uri: string): Promise; + resolveDataPartial(uri: string, maxBytes: number): Promise; +} + +// @internal +export class TilesetSources { + static create(extension: string): TilesetSource | undefined; + static createAndOpen(name: string): TilesetSource; + static getEntries(tilesetSource: TilesetSource): Iterable; +} + +// @internal +export interface TilesetStage extends Stage { + contentStages?: ContentStage[]; + excludedContentTypes?: string[]; + includedContentTypes?: string[]; +} + +// @internal +export class TilesetStageExecutor { + static executeTilesetStage(tilesetStage: TilesetStage, currentInput: string, currentOutput: string, overwrite: boolean): Promise; +} + +// @internal +export class TilesetStages { + static create(name: string, description: string, contentStages: ContentStage[]): TilesetStage; + static createCombine(): TilesetStage; + static createGzip(includedContentTypes: string[] | undefined): TilesetStage; + static createTilesetStage(tilesetStageJson: any): TilesetStage; + static createUngzip(): ContentStage; + static createUpgrade(): TilesetStage; + static readonly TILESET_STAGE_COMBINE = "combine"; + static readonly TILESET_STAGE_GZIP = "gzip"; + static readonly TILESET_STAGE_UNGZIP = "ungzip"; + static readonly TILESET_STAGE_UPGRADE = "upgrade"; +} + +// @internal +export interface TilesetTarget { + addEntry(key: string, content: Buffer): void; + begin(fullOutputName: string, overwrite: boolean): void; + end(): Promise; +} + +// @internal +export class TilesetTarget3dtiles implements TilesetTarget { + constructor(); + addEntry(key: string, content: Buffer): void; + begin(fullOutputName: string, overwrite: boolean): void; + end(): Promise; +} + +// @internal +export class TilesetTarget3tz implements TilesetTarget { + constructor(); + addEntry(key: string, content: Buffer): void; + begin(fullOutputName: string, overwrite: boolean): void; + end(): Promise; +} + +// @internal +export class TilesetTargetFs implements TilesetTarget { + constructor(); + addEntry(key: string, content: Buffer): void; + begin(fullOutputName: string, overwrite: boolean): void; + end(): Promise; +} + +// @internal +export class TilesetTargets { + static create(extension: string): TilesetTarget | undefined; + static createAndBegin(name: string, overwrite: boolean): TilesetTarget; + static putEntries(tilesetTarget: TilesetTarget, entries: Iterable): void; +} + +// @internal +export class TilesetTraverser { + constructor(baseUri: string, resourceResolver: ResourceResolver, options?: TraversalOptions); + traverse(tileset: Tileset, traversalCallback: TraversalCallback): Promise; + traverseWithSchema(tileset: Tileset, schema: Schema | undefined, traversalCallback: TraversalCallback): Promise; + traverseWithSchemaAt(tile: Tile, schema: Schema | undefined, traversalCallback: TraversalCallback): Promise; +} + +// @internal +export class TilesetTraversers { + static createExternalTilesetRoots(baseUri: string, traversedTile: TraversedTile): Promise; + static resolveSchema(tileset: Tileset, resourceResolver: ResourceResolver): Promise; +} + +// @internal +export type TilesetUpgradeOptions = { + upgradeExternalTilesets: boolean; + upgradedAssetVersionNumber: string; + upgradeRefineCase: boolean; + upgradeContentUrlToUri: boolean; + upgradeEmptyChildrenToUndefined: true; + upgradeContentGltfExtensionDeclarations: boolean; + upgradeB3dmGltf1ToGltf2: boolean; + upgradeI3dmGltf1ToGltf2: boolean; + upgradePntsToGlb: boolean; + upgradeB3dmToGlb: boolean; + upgradeI3dmToGlb: boolean; +}; + +// @internal +export class TilesetUpgrader { + constructor(targetVersion: string, gltfUpgradeOptions: any); + upgrade(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; + upgradeTileset(tileset: Tileset): Promise; +} + +// @internal +export class TileTableData { + static convertLegacyComponentTypeToComponentType(legacyComponentType: string): "INT8" | "UINT8" | "INT16" | "UINT16" | "INT32" | "UINT32" | "FLOAT32" | "FLOAT64"; + static convertLegacyTypeToType(legacyType: string): "SCALAR" | "VEC2" | "VEC3" | "VEC4"; + static createBatchIdsFromBinary(binary: Buffer, byteOffset: number, legacyComponentType: string, numPoints: number): Iterable; + static createNumericArrayIterable(legacyType: string, legacyComponentType: string, binary: Buffer, byteOffset: number, numElements: number): Iterable; + static createNumericPropertyModel(legacyType: string, legacyComponentType: string, binary: Buffer, byteOffset: number): PropertyModel; + static createNumericScalarIterable(legacyType: string, legacyComponentType: string, binary: Buffer, byteOffset: number, numElements: number): Iterable; + static createPositions(featureTable: PntsFeatureTable | I3dmFeatureTable, binary: Buffer, numPositions: number): Iterable; + static createPositionsFromBinary(binary: Buffer, byteOffset: number, numPositions: number): Iterable; + static isBatchTableBinaryBodyReference(p: any): p is BatchTableBinaryBodyReference; + static obtainBatchIdComponentType(featureTable: PntsFeatureTable | I3dmFeatureTable): string | undefined; + static obtainGlobalPosition(featureTable: PntsFeatureTable | I3dmFeatureTable, featureTableBinary: Buffer): [number, number, number] | undefined; + static obtainNumberArray(binary: Buffer, property: number[] | BinaryBodyOffset, length: number, componentType: string): number[]; + static obtainQuantizationOffsetScale(featureTable: PntsFeatureTable | I3dmFeatureTable, featureTableBinary: Buffer): { + offset: number[]; + scale: number[]; + } | undefined; + static obtainRtcCenter(rtcCenter: BinaryBodyOffset | number[], binary: Buffer): [number, number, number]; +} + +// @internal +export class TileTableDataI3dm { + static createBatchIds(featureTable: I3dmFeatureTable, binary: Buffer): Iterable | undefined; + static createInstanceMatrices(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): number[][]; + static createMatrices(translations3D: Iterable, rotationQuaternions: Iterable | undefined, scales3D: Iterable | undefined, numInstances: number): number[][]; + static createNormalsUp(featureTable: I3dmFeatureTable, binary: Buffer, numElements: number): Iterable | undefined; + static createRotationQuaternions(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): Iterable | undefined; + static createScales3D(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): Iterable | undefined; + static createWorldPositions(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): Iterable; +} + +// @internal +export class TileTableDataPnts { + static createBatchIds(featureTable: PntsFeatureTable, binary: Buffer): Iterable | undefined; + static createColorsStandardRGBAFromBinary(binary: Buffer, byteOffset: number, numElements: number): Iterable; + static createColorsStandardRGBFromBinary(binary: Buffer, byteOffset: number, numElements: number): Iterable; + static createGlobalNormalizedLinearColor(featureTable: PntsFeatureTable, binary: Buffer): [number, number, number, number] | undefined; + static createNormalizedLinearColors(featureTable: PntsFeatureTable, binary: Buffer, numElements: number): Iterable | undefined; + static createNormals(featureTable: PntsFeatureTable, binary: Buffer, numElements: number): Iterable | undefined; + static createNormalsFromBinary(binary: Buffer, byteOffset: number, numElements: number): Iterable; +} + +// @internal +export class TileTableDataToMeshFeatures { + static convertBatchIdToMeshFeatures(document: Document, primitive: Primitive): MeshFeaturesFeatureId; +} + +// @internal +export class TileTableDataToStructuralMetadata { + static assignPerPointProperties(document: Document, primitive: Primitive, batchTable: BatchTable, batchTableBinary: Buffer, externalProperties: { + [key: string]: PropertyModel; + }, numRows: number): void; + static convertBatchTableToPropertyTable(document: Document, batchTable: BatchTable, batchTableBinary: Buffer, numRows: number): StructuralMetadataPropertyTable | undefined; +} + +// @internal +export type TileTraversalCallback = (tilePath: Tile[]) => Promise; + +// @internal +export interface TraversalCallback { + (traversedTile: TraversedTile): Promise; +} + +// @internal +export type TraversalOptions = { + depthFirst?: boolean; + traverseExternalTilesets?: boolean; +}; + +// @internal +export interface TraversedTile { + asFinalTile(): Tile; + asRawTile(): Tile; + getChildren(): Promise; + getFinalContents(): Content[]; + getParent(): TraversedTile | undefined; + getRawContents(): Content[]; + getResourceResolver(): ResourceResolver; + getSubtreeUri(): string | undefined; + isImplicitTilesetRoot(): boolean; + get level(): number; + get path(): string; +} + +// @internal +export interface TreeCoordinates { + children(): Iterable; + descendants(maxLevelInclusive: number, depthFirst: boolean): Iterable; + get level(): number; + parent(): TreeCoordinates | null; + toArray(): number[]; + toIndex(): number; + toIndexInLevel(): number; +} + +// @internal +export class TypeDetection { + static computeCommonArrayLegth(value: any[][]): number | undefined; + static computeCommonComponentType(array: number[] | bigint[] | number[][] | bigint[][]): string; + static computeCommonType(array: any[]): string | undefined; + static containsOnlyArrays(value: any[]): boolean; +} + +// @internal +export class UnzippingResourceResolver implements ResourceResolver { + constructor(delegate: ResourceResolver); + derive(uri: string): ResourceResolver; + resolveData(uri: string): Promise; + resolveDataPartial(uri: string, maxBytes: number): Promise; +} + +// @internal +export class Uris { + static isAbsoluteUri(uri: string): boolean; + static isDataUri(uri: string): boolean; +} + +// @internal +export class VecMath { + static add(a: number[], b: number[], result?: number[]): number[]; + static composeMatrixTRS(translation3D: number[], rotationQuaternion?: number[], scale3D?: number[]): number[]; + static computeEastNorthUpMatrix4(positionPacked: number[]): number[]; + static computeMean3D(points: Iterable): number[]; + static computeRotationQuaternions(upVectors: number[][], rightVectors: number[][]): number[][]; + static createYupToZupPacked4(): number[]; + static createZupToYupPacked4(): number[]; + static decomposeMatrixTRS(matrix4Packed: number[]): { + t: number[]; + r: number[]; + s: number[]; + }; + static matrix4ToQuaternion(matrix4Packed: number[]): number[]; + static multiplyAll4(matrices4Packed: number[][]): number[]; + static subtract(a: number[], b: number[], result?: number[]): number[]; +} + +// @internal (undocumented) +export interface ZipLocalFileHeader { + // (undocumented) + comp_size: number; + // (undocumented) + compression_method: number; + // (undocumented) + extra_size: number; + // (undocumented) + filename_size: number; + // (undocumented) + signature: number; +} + +// @internal +export class ZipToPackage { + static convert(inputFileName: string, inputTilesetJsonFileName: string, outputFileName: string, overwrite: boolean): Promise; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/etc/base.api.md b/etc/base.api.md deleted file mode 100644 index 762c6ab7..00000000 --- a/etc/base.api.md +++ /dev/null @@ -1,306 +0,0 @@ -## API Report File for "@3d-tiles-tools/base" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -/// - -import { BufferObject } from '@3d-tiles-tools/structure'; -import { BufferView } from '@3d-tiles-tools/structure'; -import { Logger } from 'pino'; -import { PathLike } from 'fs'; - -// @internal -export interface BinaryBufferData { - buffersData: Buffer[]; - bufferViewsData: Buffer[]; -} - -// @internal -export class BinaryBufferDataResolver { - static resolve(binaryBufferStructure: BinaryBufferStructure, binaryBuffer: Buffer | undefined, resourceResolver: ResourceResolver): Promise; -} - -// @internal -export class BinaryBuffers { - static createBinaryBufferStructure(binaryBufferData: BinaryBufferData, newBufferViewsData: Buffer[]): BinaryBufferStructure; -} - -// @internal -export interface BinaryBufferStructure { - // (undocumented) - buffers: BufferObject[]; - // (undocumented) - bufferViews: BufferView[]; -} - -// @internal -export class BinaryDataError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class BufferedContentData implements ContentData { - constructor(uri: string, data: Buffer | null); - static create(uri: string): ContentData; - exists(): Promise; - get extension(): string; - // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: No member was found with name "data" - // - // (undocumented) - getData(): Promise; - // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: No member was found with name "magic" - // - // (undocumented) - getMagic(): Promise; - getParsedObject(): Promise; - get uri(): string; -} - -// @internal -export class Buffers { - static createBinaryString(buffer: Buffer): string; - static fromTypedArray(array: Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array): Buffer; - static getBufferPadded(buffer: Buffer, byteOffset?: number): Buffer; - static getJson(buffer: Buffer): any; - static getJsonBufferPadded(json: any, byteOffset?: number): Buffer; - static getMagicBytes(buffer: Buffer, byteOffset: number, byteLength: number): Buffer; - static getMagicString(buffer: Buffer, byteOffset?: number): string; - static getUnicodeBOMDescription(buffer: Buffer): string | undefined; - static gunzip(inputBuffer: Buffer): Buffer; - static gzip(inputBuffer: Buffer): Buffer; - static isGzipped(buffer: Buffer): boolean; - static isProbablyJson(buffer: Buffer): boolean; -} - -// @internal -export interface ContentData { - exists(): Promise; - get extension(): string; - getData(): Promise; - getMagic(): Promise; - getParsedObject(): Promise; - get uri(): string; -} - -// @internal -export class ContentDataTypeChecks { - static createCheck(includedContentDataTypes: (string | undefined)[] | undefined, excludedContentDataTypes: (string | undefined)[] | undefined): (contentData: ContentData) => Promise; - static createIncludedCheck(...contentDataTypes: string[]): (contentData: ContentData) => Promise; - static createTypeCheck(includedContentDataTypes: (string | undefined)[] | undefined, excludedContentDataTypes: (string | undefined)[] | undefined): (contentDataType: string | undefined) => boolean; -} - -// @internal -export type ContentDataTypeEntry = { - predicate: (contentData: ContentData) => Promise; - type: string; -}; - -// @internal -export class ContentDataTypeRegistry { - static findContentDataType(contentData: ContentData): Promise; - static findType(uri: string, data: Buffer): Promise; -} - -// @internal -export class ContentDataTypes { - // (undocumented) - static readonly CONTENT_TYPE_3TZ = "CONTENT_TYPE_3TZ"; - // (undocumented) - static readonly CONTENT_TYPE_B3DM = "CONTENT_TYPE_B3DM"; - // (undocumented) - static readonly CONTENT_TYPE_CMPT = "CONTENT_TYPE_CMPT"; - // (undocumented) - static readonly CONTENT_TYPE_GEOJSON = "CONTENT_TYPE_GEOJSON"; - // (undocumented) - static readonly CONTENT_TYPE_GEOM = "CONTENT_TYPE_GEOM"; - // (undocumented) - static readonly CONTENT_TYPE_GIF = "CONTENT_TYPE_GIF"; - // (undocumented) - static readonly CONTENT_TYPE_GLB = "CONTENT_TYPE_GLB"; - // (undocumented) - static readonly CONTENT_TYPE_GLTF = "CONTENT_TYPE_GLTF"; - // (undocumented) - static readonly CONTENT_TYPE_I3DM = "CONTENT_TYPE_I3DM"; - // (undocumented) - static readonly CONTENT_TYPE_JPEG = "CONTENT_TYPE_JPEG"; - // (undocumented) - static readonly CONTENT_TYPE_PNG = "CONTENT_TYPE_PNG"; - // (undocumented) - static readonly CONTENT_TYPE_PNTS = "CONTENT_TYPE_PNTS"; - // (undocumented) - static readonly CONTENT_TYPE_SUBT = "CONTENT_TYPE_SUBT"; - // (undocumented) - static readonly CONTENT_TYPE_TILESET = "CONTENT_TYPE_TILESET"; - // (undocumented) - static readonly CONTENT_TYPE_VCTR = "CONTENT_TYPE_VCTR"; -} - -// @internal -export class DataError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export function defaultValue(a: T | undefined, b: T): T; - -// @internal -export function defined(value: T): value is NonNullable; - -// @internal -export class DeveloperError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class FileResourceResolver implements ResourceResolver { - constructor(basePath: string); - derive(uri: string): ResourceResolver; - resolveData(uri: string): Promise; - resolveDataPartial(uri: string, maxBytes: number): Promise; -} - -// @internal -export class Iterables { - static filter(iterable: Iterable, include: (element: T) => boolean): Iterable; - static filterWithIndex(iterable: Iterable, include: (element: T, index: number) => boolean): Iterable; - static flatten(iterable: Iterable): Iterable; - static map(iterable: Iterable, mapper: (element: S) => T): Iterable; - static overFiles(directory: string | PathLike, recurse: boolean): Iterable; - static segmentize(iterable: Iterable, segmentSize: number): Iterable; -} - -// @internal -export class LazyContentData implements ContentData { - constructor(uri: string, resourceResolver: ResourceResolver); - exists(): Promise; - get extension(): string; - getData(): Promise; - getMagic(): Promise; - getParsedObject(): Promise; - get uri(): string; -} - -// @internal -export class Loggers { - static get(loggerName?: string): Logger; - static initDefaultLogger(prettyPrint?: boolean): void; - static setLevel(level: string): void; -} - -// @internal -export class MortonOrder { - static encode2D(x: number, y: number): number; - static encode3D(x: number, y: number, z: number): number; -} - -// @internal -export class OctreeCoordinates implements TreeCoordinates { - constructor(level: number, x: number, y: number, z: number); - children(): Iterable; - descendants(maxLevelInclusive: number, depthFirst: boolean): Iterable; - get level(): number; - parent(): OctreeCoordinates | null; - toArray(): number[]; - toIndex(): number; - toIndexInLevel(): number; - // (undocumented) - toString: () => string; - // (undocumented) - get x(): number; - // (undocumented) - get y(): number; - // (undocumented) - get z(): number; -} - -// @internal -export class Octrees { - static computeNumberOfNodesForLevels(levels: number): number; - static coordinatesForLevel(level: number): Generator; - static isValid(c: OctreeCoordinates): boolean; -} - -// @internal -export class Paths { - static ensureDirectoryExists(directory: string): void; - static hasExtension(fileName: string, ...extensions: string[]): boolean; - static isDirectory(p: string): boolean; - static join(...paths: string[]): string; - static relativize(directory: string, fileName: string): string; - static replaceExtension(fileName: string, newExtension: string): string; - static resolve(...paths: string[]): string; -} - -// @internal -export class QuadtreeCoordinates implements TreeCoordinates { - constructor(level: number, x: number, y: number); - children(): Iterable; - descendants(maxLevelInclusive: number, depthFirst: boolean): Iterable; - get level(): number; - parent(): QuadtreeCoordinates | null; - toArray(): number[]; - toIndex(): number; - toIndexInLevel(): number; - // (undocumented) - toString: () => string; - // (undocumented) - get x(): number; - // (undocumented) - get y(): number; -} - -// @internal -export class Quadtrees { - static computeNumberOfNodesForLevels(levels: number): number; - static coordinatesForLevel(level: number): Generator; - static isValid(c: QuadtreeCoordinates): boolean; -} - -// @internal -export interface ResourceResolver { - derive(uri: string): ResourceResolver; - resolveData(uri: string): Promise; - resolveDataPartial(uri: string, maxBytes: number): Promise; -} - -// @internal -export class ResourceResolvers { - static createFileResourceResolver(directory: string): UnzippingResourceResolver; -} - -// @internal -export interface TreeCoordinates { - children(): Iterable; - descendants(maxLevelInclusive: number, depthFirst: boolean): Iterable; - get level(): number; - parent(): TreeCoordinates | null; - toArray(): number[]; - toIndex(): number; - toIndexInLevel(): number; -} - -// @internal -export class UnzippingResourceResolver implements ResourceResolver { - constructor(delegate: ResourceResolver); - derive(uri: string): ResourceResolver; - resolveData(uri: string): Promise; - resolveDataPartial(uri: string, maxBytes: number): Promise; -} - -// @internal -export class Uris { - static isAbsoluteUri(uri: string): boolean; - static isDataUri(uri: string): boolean; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/etc/gltf-extensions.api.md b/etc/gltf-extensions.api.md deleted file mode 100644 index 6ef876e1..00000000 --- a/etc/gltf-extensions.api.md +++ /dev/null @@ -1,901 +0,0 @@ -## API Report File for "@3d-tiles-tools/gltf-extensions" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Extension } from '@gltf-transform/core'; -import { ExtensionProperty } from '@gltf-transform/core'; -import { IProperty } from '@gltf-transform/core'; -import { Nullable } from '@gltf-transform/core'; -import { PropertyType } from '@gltf-transform/core'; -import { ReaderContext } from '@gltf-transform/core'; -import { Texture } from '@gltf-transform/core'; -import { TextureInfo } from '@gltf-transform/core'; -import { WriterContext } from '@gltf-transform/core'; - -// Warning: (ae-forgotten-export) The symbol "IElementStructuralMetadata" needs to be exported by the entry point index.d.ts -// -// @internal -export class ElementStructuralMetadata extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // Warning: (ae-forgotten-export) The symbol "NAME" needs to be exported by the entry point index.d.ts - // - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - protected getDefaults(): Nullable; - // (undocumented) - getIndex(): number; - // (undocumented) - getPropertyTable(): StructuralMetadataPropertyTable | null; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: [PropertyType.NODE]; - // (undocumented) - propertyType: "ElementStructuralMetadata"; - // (undocumented) - setIndex(index: number): this; - // (undocumented) - setPropertyTable(propertyTable: StructuralMetadataPropertyTable | null): this; -} - -// @internal -export class EXTInstanceFeatures extends Extension { - // (undocumented) - createFeatureId(): InstanceFeaturesFeatureId; - // (undocumented) - createInstanceFeatures(): InstanceFeatures; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - readonly extensionName = "EXT_instance_features"; - // (undocumented) - read(context: ReaderContext): this; - // (undocumented) - write(context: WriterContext): this; -} - -// @internal -export class EXTMeshFeatures extends Extension { - // (undocumented) - createFeatureId(): MeshFeaturesFeatureId; - // (undocumented) - createFeatureIdTexture(): FeatureIdTexture; - // (undocumented) - createMeshFeatures(): MeshFeatures; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - readonly extensionName = "EXT_mesh_features"; - // (undocumented) - read(context: ReaderContext): this; - // (undocumented) - write(context: WriterContext): this; -} - -// @internal -export class EXTStructuralMetadata extends Extension { - // (undocumented) - createClass(): StructuralMetadataClass; - // Warning: (ae-forgotten-export) The symbol "ClassDef" needs to be exported by the entry point index.d.ts - // - // (undocumented) - createClassFrom(classDef: ClassDef): StructuralMetadataClass; - // (undocumented) - createClassProperty(): StructuralMetadataClassProperty; - // Warning: (ae-forgotten-export) The symbol "ClassPropertyDef" needs to be exported by the entry point index.d.ts - // - // (undocumented) - createClassPropertyFrom(classPropertyDef: ClassPropertyDef): StructuralMetadataClassProperty; - // (undocumented) - createElementStructuralMetadata(): ElementStructuralMetadata; - // (undocumented) - createEnum(): StructuralMetadataEnum; - // Warning: (ae-forgotten-export) The symbol "EnumDef" needs to be exported by the entry point index.d.ts - // - // (undocumented) - createEnumFrom(enumDef: EnumDef): StructuralMetadataEnum; - // (undocumented) - createEnumValue(): StructuralMetadataEnumValue; - // Warning: (ae-forgotten-export) The symbol "EnumValueDef" needs to be exported by the entry point index.d.ts - // - // (undocumented) - createEnumValueFrom(enumValueDef: EnumValueDef): StructuralMetadataEnumValue; - // (undocumented) - createMeshPrimitiveStructuralMetadata(): MeshPrimitiveStructuralMetadata; - // (undocumented) - createPropertyAttribute(): StructuralMetadataPropertyAttribute; - // (undocumented) - createPropertyAttributeProperty(): StructuralMetadataPropertyAttributeProperty; - // (undocumented) - createPropertyTable(): StructuralMetadataPropertyTable; - // (undocumented) - createPropertyTableProperty(): StructuralMetadataPropertyTableProperty; - // (undocumented) - createPropertyTexture(): StructuralMetadataPropertyTexture; - // (undocumented) - createPropertyTextureProperty(): StructuralMetadataPropertyTextureProperty; - // (undocumented) - createSchema(): StructuralMetadataSchema; - // Warning: (ae-forgotten-export) The symbol "SchemaDef" needs to be exported by the entry point index.d.ts - // - // (undocumented) - createSchemaFrom(schemaDef: SchemaDef): StructuralMetadataSchema; - // (undocumented) - createStructuralMetadata(): StructuralMetadata; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - readonly extensionName = "EXT_structural_metadata"; - prewrite(context: WriterContext, propertyType: PropertyType): this; - // (undocumented) - readonly prewriteTypes: PropertyType[]; - // (undocumented) - read(context: ReaderContext): this; - // (undocumented) - write(context: WriterContext): this; -} - -// Warning: (ae-forgotten-export) The symbol "IFeatureIdTexture" needs to be exported by the entry point index.d.ts -// -// @internal -export class FeatureIdTexture extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // Warning: (ae-forgotten-export) The symbol "NAME_3" needs to be exported by the entry point index.d.ts - // - // (undocumented) - extensionName: typeof NAME_3; - // (undocumented) - getChannels(): number[]; - // (undocumented) - protected getDefaults(): Nullable & { - channels: number[]; - texture: null; - textureInfo: TextureInfo; - }; - // (undocumented) - getTexture(): Texture | null; - // (undocumented) - getTextureInfo(): TextureInfo | null; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["FeatureId"]; - // (undocumented) - propertyType: "FeatureIdTexture"; - // (undocumented) - setChannels(channels: number[]): this; - // (undocumented) - setTexture(texture: Texture | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IInstanceFeatures" needs to be exported by the entry point index.d.ts -// -// @internal -export class InstanceFeatures extends ExtensionProperty { - // (undocumented) - addFeatureId(featureId: InstanceFeaturesFeatureId): this; - // (undocumented) - static EXTENSION_NAME: string; - // Warning: (ae-forgotten-export) The symbol "NAME_2" needs to be exported by the entry point index.d.ts - // - // (undocumented) - extensionName: typeof NAME_2; - // (undocumented) - protected getDefaults(): Nullable & { - featureIds: never[]; - }; - // (undocumented) - protected init(): void; - // (undocumented) - listFeatureIds(): InstanceFeaturesFeatureId[]; - // (undocumented) - parentTypes: [PropertyType.NODE]; - // (undocumented) - propertyType: "InstanceFeatures"; - // (undocumented) - removeFeatureId(featureId: InstanceFeaturesFeatureId): this; -} - -// Warning: (ae-forgotten-export) The symbol "IFeatureId" needs to be exported by the entry point index.d.ts -// -// @internal -export class InstanceFeaturesFeatureId extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME_2; - // Warning: (ae-forgotten-export) The symbol "FeatureIdAttribute" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getAttribute(): FeatureIdAttribute; - // (undocumented) - protected getDefaults(): Nullable; - // (undocumented) - getFeatureCount(): number; - // (undocumented) - getLabel(): string; - // (undocumented) - getNullFeatureId(): number; - // (undocumented) - getPropertyTable(): StructuralMetadataPropertyTable | null; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["InstanceFeatures"]; - // (undocumented) - propertyType: "FeatureId"; - // (undocumented) - setAttribute(attribute: FeatureIdAttribute): this; - // (undocumented) - setFeatureCount(featureCount: number): this; - // (undocumented) - setLabel(label: string): this; - // (undocumented) - setNullFeatureId(nullFeatureId: number): this; - // (undocumented) - setPropertyTable(propertyTable: StructuralMetadataPropertyTable | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IMeshFeatures" needs to be exported by the entry point index.d.ts -// -// @internal -export class MeshFeatures extends ExtensionProperty { - // (undocumented) - addFeatureId(featureId: MeshFeaturesFeatureId): this; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME_3; - // (undocumented) - protected getDefaults(): Nullable & { - featureIds: never[]; - }; - // (undocumented) - protected init(): void; - // (undocumented) - listFeatureIds(): MeshFeaturesFeatureId[]; - // (undocumented) - parentTypes: [PropertyType.PRIMITIVE]; - // (undocumented) - propertyType: "MeshFeatures"; - // (undocumented) - removeFeatureId(featureId: MeshFeaturesFeatureId): this; -} - -// Warning: (ae-forgotten-export) The symbol "IFeatureId_2" needs to be exported by the entry point index.d.ts -// -// @internal -export class MeshFeaturesFeatureId extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME_3; - // Warning: (ae-forgotten-export) The symbol "FeatureIdAttribute_2" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getAttribute(): FeatureIdAttribute_2; - // (undocumented) - protected getDefaults(): Nullable; - // (undocumented) - getFeatureCount(): number; - // (undocumented) - getLabel(): string; - // (undocumented) - getNullFeatureId(): number; - // (undocumented) - getPropertyTable(): StructuralMetadataPropertyTable | null; - // (undocumented) - getTexture(): FeatureIdTexture | null; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["MeshFeatures"]; - // (undocumented) - propertyType: "FeatureId"; - // (undocumented) - setAttribute(attribute: FeatureIdAttribute_2): this; - // (undocumented) - setFeatureCount(featureCount: number): this; - // (undocumented) - setLabel(label: string): this; - // (undocumented) - setNullFeatureId(nullFeatureId: number): this; - // (undocumented) - setPropertyTable(propertyTable: StructuralMetadataPropertyTable | null): this; - // (undocumented) - setTexture(texture: FeatureIdTexture | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IMeshPrimitiveStructuralMetadata" needs to be exported by the entry point index.d.ts -// -// @internal -export class MeshPrimitiveStructuralMetadata extends ExtensionProperty { - // (undocumented) - addPropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; - // (undocumented) - addPropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - protected getDefaults(): Nullable & { - propertyTextures: never[]; - propertyAttributes: never[]; - }; - // (undocumented) - protected init(): void; - // (undocumented) - listPropertyAttributes(): StructuralMetadataPropertyAttribute[]; - // (undocumented) - listPropertyTextures(): StructuralMetadataPropertyTexture[]; - // (undocumented) - parentTypes: [PropertyType.PRIMITIVE]; - // (undocumented) - propertyType: "MeshPrimitiveStructuralMetadata"; - // (undocumented) - removePropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; - // (undocumented) - removePropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; -} - -// @internal -export type PropertyTablePropertyOffsetType = "UINT8" | "UINT16" | "UINT32" | "UINT64"; - -// Warning: (ae-forgotten-export) The symbol "IStructuralMetadata" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadata extends ExtensionProperty { - // (undocumented) - addPropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; - // (undocumented) - addPropertyTable(propertyTable: StructuralMetadataPropertyTable): this; - // (undocumented) - addPropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - protected getDefaults(): Nullable & { - propertyTables: never[]; - propertyTextures: never[]; - propertyAttributes: never[]; - }; - // (undocumented) - getSchema(): StructuralMetadataSchema | null; - // (undocumented) - getSchemaUri(): string; - // (undocumented) - protected init(): void; - // (undocumented) - listPropertyAttributes(): StructuralMetadataPropertyAttribute[]; - // (undocumented) - listPropertyTables(): StructuralMetadataPropertyTable[]; - // (undocumented) - listPropertyTextures(): StructuralMetadataPropertyTexture[]; - // (undocumented) - parentTypes: [PropertyType.ROOT]; - // (undocumented) - propertyType: "StructuralMetadata"; - // (undocumented) - removePropertyAttribute(propertyAttribute: StructuralMetadataPropertyAttribute): this; - // (undocumented) - removePropertyTable(propertyTable: StructuralMetadataPropertyTable): this; - // (undocumented) - removePropertyTexture(propertyTexture: StructuralMetadataPropertyTexture): this; - // (undocumented) - setSchema(schema: StructuralMetadataSchema | null): this; - // (undocumented) - setSchemaUri(name: string): this; -} - -// Warning: (ae-forgotten-export) The symbol "IClass" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataClass extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - protected getDefaults(): Nullable & { - properties: {}; - }; - // (undocumented) - getDescription(): string; - // (undocumented) - getObjectName(): string; - // (undocumented) - getProperty(key: string): StructuralMetadataClassProperty | null; - // (undocumented) - protected init(): void; - // (undocumented) - listPropertyKeys(): string[]; - // (undocumented) - listPropertyValues(): StructuralMetadataClassProperty[]; - // (undocumented) - parentTypes: ["Schema"]; - // (undocumented) - propertyType: "Class"; - // (undocumented) - setDescription(description: string): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setProperty(key: string, value: StructuralMetadataClassProperty | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IClassProperty" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataClassProperty extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getArray(): boolean; - // Warning: (ae-forgotten-export) The symbol "ClassPropertyComponentType" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getComponentType(): ClassPropertyComponentType; - // (undocumented) - getCount(): number; - // (undocumented) - getDefault(): any; - // (undocumented) - protected getDefaults(): Nullable & { - array: boolean; - normalized: boolean; - required: boolean; - }; - // (undocumented) - getDescription(): string; - // (undocumented) - getEnumType(): string; - // (undocumented) - getMax(): any; - // (undocumented) - getMin(): any; - // (undocumented) - getNoData(): any; - // (undocumented) - getNormalized(): boolean; - // (undocumented) - getObjectName(): string; - // (undocumented) - getOffset(): any; - // (undocumented) - getRequired(): boolean; - // (undocumented) - getScale(): any; - // Warning: (ae-forgotten-export) The symbol "ClassPropertyType" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getType(): ClassPropertyType; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["Class"]; - // (undocumented) - propertyType: "ClassProperty"; - // (undocumented) - setArray(array: boolean): this; - // (undocumented) - setComponentType(componentType: ClassPropertyComponentType): this; - // (undocumented) - setCount(count: number): this; - // (undocumented) - setDefault(defaultValue: any): this; - // (undocumented) - setDescription(description: string): this; - // (undocumented) - setEnumType(enumType: string): this; - // (undocumented) - setMax(max: any): this; - // (undocumented) - setMin(min: any): this; - // (undocumented) - setNoData(noData: any): this; - // (undocumented) - setNormalized(normalized: boolean): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setOffset(offset: any): this; - // (undocumented) - setRequired(required: boolean): this; - // (undocumented) - setScale(scale: any): this; - // (undocumented) - setType(type: ClassPropertyType): this; -} - -// Warning: (ae-forgotten-export) The symbol "IEnum" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataEnum extends ExtensionProperty { - // (undocumented) - addEnumValue(enumValue: StructuralMetadataEnumValue): this; - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - protected getDefaults(): Nullable & { - valueType: string; - values: never[]; - }; - // (undocumented) - getDescription(): string; - // (undocumented) - getObjectName(): string; - // Warning: (ae-forgotten-export) The symbol "EnumValueType" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getValueType(): EnumValueType; - // (undocumented) - protected init(): void; - // (undocumented) - listValues(): StructuralMetadataEnumValue[]; - // (undocumented) - parentTypes: ["Schema"]; - // (undocumented) - propertyType: "Enum"; - // (undocumented) - removeEnumValue(enumValue: StructuralMetadataEnumValue): this; - // (undocumented) - setDescription(description: string): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setValueType(valueType: EnumValueType): this; -} - -// Warning: (ae-forgotten-export) The symbol "IEnumValue" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataEnumValue extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - protected getDefaults(): Nullable; - // (undocumented) - getDescription(): string; - // (undocumented) - getObjectName(): string; - // (undocumented) - getValue(): number; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["Enum"]; - // (undocumented) - propertyType: "EnumValue"; - // (undocumented) - setDescription(description: string): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setValue(value: number): this; -} - -// Warning: (ae-forgotten-export) The symbol "IPropertyAttribute" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataPropertyAttribute extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getClass(): string; - // (undocumented) - protected getDefaults(): Nullable & { - properties: {}; - }; - // (undocumented) - getObjectName(): string; - // (undocumented) - getProperty(key: string): StructuralMetadataPropertyAttributeProperty | null; - // (undocumented) - protected init(): void; - // (undocumented) - listPropertyKeys(): string[]; - // (undocumented) - listPropertyValues(): StructuralMetadataPropertyAttributeProperty[]; - // (undocumented) - parentTypes: ["StructuralMetadata"]; - // (undocumented) - propertyType: "PropertyAttribute"; - // (undocumented) - setClass(_class: string): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setProperty(key: string, value: StructuralMetadataPropertyAttributeProperty | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IPropertyAttributeProperty" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataPropertyAttributeProperty extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getAttribute(): string; - // (undocumented) - protected getDefaults(): Nullable; - // (undocumented) - getMax(): any; - // (undocumented) - getMin(): any; - // (undocumented) - getOffset(): any; - // (undocumented) - getScale(): any; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["PropertyAttribute"]; - // (undocumented) - propertyType: "PropertyAttributeProperty"; - // (undocumented) - setAttribute(attribute: string): this; - // (undocumented) - setMax(max: any): this; - // (undocumented) - setMin(min: any): this; - // (undocumented) - setOffset(offset: any): this; - // (undocumented) - setScale(scale: any): this; -} - -// Warning: (ae-forgotten-export) The symbol "IPropertyTable" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataPropertyTable extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getClass(): string; - // (undocumented) - getCount(): number; - // (undocumented) - protected getDefaults(): Nullable & { - properties: {}; - }; - // (undocumented) - getObjectName(): string; - // (undocumented) - getProperty(key: string): StructuralMetadataPropertyTableProperty | null; - // (undocumented) - protected init(): void; - // (undocumented) - listPropertyKeys(): string[]; - // (undocumented) - listPropertyValues(): StructuralMetadataPropertyTableProperty[]; - // (undocumented) - parentTypes: ["StructuralMetadata"]; - // (undocumented) - propertyType: "PropertyTable"; - // (undocumented) - setClass(className: string): this; - // (undocumented) - setCount(count: number): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setProperty(key: string, value: StructuralMetadataPropertyTableProperty | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IPropertyTableProperty" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataPropertyTableProperty extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getArrayOffsets(): Uint8Array | null; - // (undocumented) - getArrayOffsetType(): PropertyTablePropertyOffsetType; - // (undocumented) - protected getDefaults(): Nullable & { - arrayOffsetType: string; - stringOffsetType: string; - }; - // (undocumented) - getMax(): any; - // (undocumented) - getMin(): any; - // (undocumented) - getOffset(): any; - // (undocumented) - getScale(): any; - // (undocumented) - getStringOffsets(): Uint8Array | null; - // (undocumented) - getStringOffsetType(): PropertyTablePropertyOffsetType; - // (undocumented) - getValues(): Uint8Array; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["PropertyTable"]; - // (undocumented) - propertyType: "PropertyTableProperty"; - // (undocumented) - setArrayOffsets(arrayOffsets: Uint8Array): this; - // (undocumented) - setArrayOffsetType(arrayOffsetType: PropertyTablePropertyOffsetType): this; - // (undocumented) - setMax(max: any): this; - // (undocumented) - setMin(min: any): this; - // (undocumented) - setOffset(offset: any): this; - // (undocumented) - setScale(scale: any): this; - // (undocumented) - setStringOffsets(stringOffsets: Uint8Array): this; - // (undocumented) - setStringOffsetType(stringOffsetType: PropertyTablePropertyOffsetType): this; - // (undocumented) - setValues(values: Uint8Array): this; -} - -// Warning: (ae-forgotten-export) The symbol "IPropertyTexture" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataPropertyTexture extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getClass(): string; - // (undocumented) - protected getDefaults(): Nullable & { - properties: {}; - }; - // (undocumented) - getObjectName(): string; - // (undocumented) - getProperty(key: string): StructuralMetadataPropertyTextureProperty | null; - // (undocumented) - protected init(): void; - // (undocumented) - listPropertyKeys(): string[]; - // (undocumented) - listPropertyValues(): StructuralMetadataPropertyTextureProperty[]; - // (undocumented) - parentTypes: ["StructuralMetadata"]; - // (undocumented) - propertyType: "PropertyTexture"; - // (undocumented) - setClass(_class: string): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setProperty(key: string, value: StructuralMetadataPropertyTextureProperty | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "IPropertyTextureProperty" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataPropertyTextureProperty extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getChannels(): number[]; - // (undocumented) - protected getDefaults(): Nullable & { - channels: number[]; - texture: null; - textureInfo: TextureInfo; - }; - // (undocumented) - getMax(): any; - // (undocumented) - getMin(): any; - // (undocumented) - getOffset(): any; - // (undocumented) - getScale(): any; - // (undocumented) - getTexture(): Texture | null; - // (undocumented) - getTextureInfo(): TextureInfo | null; - // (undocumented) - protected init(): void; - // (undocumented) - parentTypes: ["PropertyTexture"]; - // (undocumented) - propertyType: "PropertyTextureProperty"; - // (undocumented) - setChannels(channels: number[]): this; - // (undocumented) - setMax(max: any): this; - // (undocumented) - setMin(min: any): this; - // (undocumented) - setOffset(offset: any): this; - // (undocumented) - setScale(scale: any): this; - // (undocumented) - setTexture(texture: Texture | null): this; -} - -// Warning: (ae-forgotten-export) The symbol "ISchema" needs to be exported by the entry point index.d.ts -// -// @internal -export class StructuralMetadataSchema extends ExtensionProperty { - // (undocumented) - static EXTENSION_NAME: string; - // (undocumented) - extensionName: typeof NAME; - // (undocumented) - getClass(key: string): StructuralMetadataClass | null; - // (undocumented) - protected getDefaults(): Nullable & { - classes: {}; - enums: {}; - }; - // (undocumented) - getDescription(): string; - // (undocumented) - getEnum(key: string): StructuralMetadataEnum | null; - // (undocumented) - getId(): string; - // (undocumented) - getObjectName(): string; - // (undocumented) - getVersion(): string; - // (undocumented) - protected init(): void; - // (undocumented) - listClassKeys(): string[]; - // (undocumented) - listClassValues(): StructuralMetadataClass[]; - // (undocumented) - listEnumKeys(): string[]; - // (undocumented) - listEnumValues(): StructuralMetadataEnum[]; - // (undocumented) - parentTypes: ["StructuralMetadata"]; - // (undocumented) - propertyType: "Schema"; - // (undocumented) - setClass(key: string, value: StructuralMetadataClass | null): this; - // (undocumented) - setDescription(description: string): this; - // (undocumented) - setEnum(key: string, value: StructuralMetadataEnum | null): this; - // (undocumented) - setId(name: string): this; - // (undocumented) - setObjectName(name: string): this; - // (undocumented) - setVersion(version: string): this; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/etc/ktx.api.md b/etc/ktx.api.md deleted file mode 100644 index fb45cc32..00000000 --- a/etc/ktx.api.md +++ /dev/null @@ -1,91 +0,0 @@ -## API Report File for "@3d-tiles-tools/ktx" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -/// - -// @internal -export class BasisEncoder { - static create(): Promise; - delete(): void; - encode(dst_basis_file_js_val: Uint8Array): any; - setCheckForAlpha(check_for_alpha_flag: boolean): any; - setCompressionLevel(comp_level: number): any; - setComputeStats(compute_stats_flag: boolean): any; - setCreateKTX2File(create_ktx2_file: boolean): any; - setDebug(debug_flag: boolean): any; - setEndpointRDOThresh(endpoint_rdo_thresh: number): any; - setForceAlpha(force_alpha_flag: boolean): any; - setKTX2SRGBTransferFunc(srgb_transfer_func: boolean): any; - setKTX2UASTCSupercompression(use_zstandard: boolean): any; - setMaxEndpointClusters(max_endpoint_clusters: number): any; - setMaxSelectorClusters(max_selector_clusters: number): any; - setMipFilter(mip_filter: number): any; - setMipGen(mip_gen_flag: boolean): any; - setMipRenormalize(mip_renormalize_flag: boolean): any; - setMipScale(mip_scale: number): any; - setMipSmallestDimension(mip_smallest_dimension: number): any; - setMipSRGB(mip_srgb_flag: boolean): any; - setMipWrapping(mip_wrapping_flag: boolean): any; - setNoEndpointRDO(no_endpoint_rdo_flag: boolean): any; - setNormalMap(): any; - setNoSelectorRDO(no_selector_rdo_flag: boolean): any; - setPackUASTCFlags(pack_uastc_flags: number): any; - setPerceptual(perceptual_flag: boolean): any; - setQualityLevel(quality_level: number): any; - setRDOUASTC(rdo_uastc: boolean): any; - setRDOUASTCDictSize(dict_size: number): any; - setRDOUASTCMaxAllowedRMSIncreaseRatio(rdo_uastc_max_allowed_rms_increase_ratio: number): any; - setRDOUASTCQualityScalar(rdo_quality: number): any; - setRDOUASTCSkipBlockRMSThresh(rdo_uastc_skip_block_rms_thresh: number): any; - setRenormalize(renormalize_flag: boolean): any; - setSelectorRDOThresh(selector_rdo_thresh: number): any; - setSliceSourceImage(slice_index: number, src_image_js_val: Uint8Array, width: number, height: number, src_image_is_png: boolean): any; - setSwizzle(r: number, g: number, b: number, a: number): any; - setTexType(tex_type: number): any; - setUASTC(uastc_flag: boolean): any; - setYFlip(y_flip_flag: boolean): any; -} - -// @internal -export class KtxError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export type KtxEtc1sOptions = Partial<{ - compressionLevel: number; - qualityLevel: number; - transferFunction: "SRGB" | "LINEAR"; -}>; - -// @internal -export type KtxOptions = KtxEtc1sOptions & KtxUastcOptions & { - uastc: boolean; - computeStats?: boolean; - debug?: boolean; -}; - -// @internal -export type KtxUastcOptions = Partial<{ - level: number; - rdo_l: number; - rdo_d: number; - zstd: number; - transferFunction: "SRGB" | "LINEAR"; -}>; - -// @internal -export class KtxUtility { - static convertImageData(inputImageData: Buffer, options: KtxOptions | undefined): Promise; - static convertImageFile(inputFileName: string, outputFileName: string, options: KtxOptions | undefined): Promise; - static setLogCallback(logCallback: ((value: any) => void) | undefined): void; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/etc/metadata.api.md b/etc/metadata.api.md deleted file mode 100644 index f7b39386..00000000 --- a/etc/metadata.api.md +++ /dev/null @@ -1,335 +0,0 @@ -## API Report File for "@3d-tiles-tools/metadata" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -/// - -import { BinaryBufferData } from '@3d-tiles-tools/base'; -import { BinaryBufferStructure } from '@3d-tiles-tools/base'; -import { ClassProperty } from '@3d-tiles-tools/structure'; -import { MetadataClass } from '@3d-tiles-tools/structure'; -import { MetadataEntity } from '@3d-tiles-tools/structure'; -import { MetadataEnum } from '@3d-tiles-tools/structure'; -import { PropertyTable } from '@3d-tiles-tools/structure'; -import { PropertyTableProperty } from '@3d-tiles-tools/structure'; -import { Schema } from '@3d-tiles-tools/structure'; - -// @internal -export class ArrayBuffers { - static fromBuffer(buffer: Buffer): ArrayBuffer; -} - -// @internal -export class ArrayValues { - static anyDeepGreaterThan(a: any, b: any): boolean; - static anyDeepLessThan(a: any, b: any): boolean; - static deepAdd(value: any, addend: any): any; - static deepClone(value: any): any; - static deepEquals(a: any, b: any): boolean; - static deepMax(a: any, b: any): any; - static deepMin(a: any, b: any): any; - static deepMultiply(value: any, factor: any): any; -} - -// @internal -export interface BinaryEnumInfo { - enumValueNameValues: { - [key: string]: { - [key: string]: number; - }; - }; - enumValueTypes: { - [key: string]: string; - }; - enumValueValueNames: { - [key: string]: { - [key: number]: string; - }; - }; -} - -// @internal -export interface BinaryMetadata { - binaryBufferData: BinaryBufferData; - binaryBufferStructure: BinaryBufferStructure; - binaryEnumInfo: BinaryEnumInfo; - metadataClass: MetadataClass; -} - -// @internal -export class BinaryPropertyModels { - static computeSlice(index: number, offsetsBuffer: Buffer | undefined, offsetType: string, count: number | undefined): { - offset: number; - length: number; - }; - static createPropertyModel(binaryPropertyTable: BinaryPropertyTable, propertyId: string): PropertyModel; - static createPropertyModelInternal(propertyId: string, type: string, componentType: string | undefined, isArray: boolean, count: number | undefined, valuesBufferViewData: Buffer, arrayOffsetsBufferViewData: Buffer | undefined, arrayOffsetType: string, stringOffsetsBufferViewData: Buffer | undefined, stringOffsetType: string, enumValueType: string | undefined): PropertyModel; -} - -// @internal -export interface BinaryPropertyTable { - binaryMetadata: BinaryMetadata; - propertyTable: PropertyTable; -} - -// @internal -export class BinaryPropertyTableBuilder { - addProperties(properties: { - [key: string]: any[]; - }): this; - addProperty(propertyName: string, propertyValues: any[]): this; - build(): BinaryPropertyTable; - static create(schema: Schema, propertyTableClass: string, propertyTableName: string): BinaryPropertyTableBuilder; -} - -// @internal -export class BinaryPropertyTableModel implements PropertyTableModel { - constructor(binaryPropertyTable: BinaryPropertyTable); - getClassProperty(propertyId: string): ClassProperty | undefined; - // (undocumented) - getCount(): number; - getMetadataEntityModel(index: number): MetadataEntityModel; - getPropertyModel(propertyId: string): PropertyModel | undefined; - // (undocumented) - getPropertyNames(): string[]; - getPropertyTableProperty(propertyId: string): PropertyTableProperty | undefined; -} - -// @internal -export class BinaryPropertyTables { - static createBinaryPropertyTable(schema: Schema, className: string, propertyName: string, values: any, arrayOffsetType: string | undefined, stringOffsetType: string | undefined): BinaryPropertyTable; - static createBinaryPropertyTableFromProperty(propertyName: string, classProperty: ClassProperty, values: any, arrayOffsetType: string | undefined, stringOffsetType: string | undefined, metadataEnum: MetadataEnum | undefined): BinaryPropertyTable; - static createPropertyTableProperty(classProperty: ClassProperty, schema: Schema, values: any, arrayOffsetType: string | undefined, stringOffsetType: string | undefined, bufferViewsData: Buffer[]): PropertyTableProperty; - static createSchemaFromClassProperty(propertyName: string, classProperty: ClassProperty, metadataEnum: MetadataEnum | undefined): Schema; -} - -// @internal -export class BooleanArrayPropertyModel implements PropertyModel { - constructor(valuesBuffer: Buffer, arrayOffsetsBuffer: Buffer | undefined, arrayOffsetType: string, count: number | undefined); - getPropertyValue(index: number): boolean[]; -} - -// @internal -export class BooleanPropertyModel implements PropertyModel { - constructor(valuesBuffer: Buffer); - getPropertyValue(index: number): boolean; -} - -// @internal -export class ClassProperties { - static hasEffectivelyFloatingPointType(property: ClassProperty): boolean; - static hasNumericType(property: ClassProperty): boolean; -} - -// @internal -export class DefaultMetadataEntityModel implements MetadataEntityModel { - constructor(metadataClass: MetadataClass, semanticToPropertyId: { - [key: string]: string; - }, json: any); - getPropertyValue(propertyId: string): any; - getPropertyValueBySemantic(semantic: string): any; -} - -// @internal -export class DefaultPropertyModel implements PropertyModel { - constructor(data: any[]); - getPropertyValue(index: number): any; -} - -// @internal -export class DefaultPropertyTableModel implements PropertyTableModel { - constructor(numRows: number); - addClassProperty(propertyId: string, classProperty: ClassProperty): void; - addPropertyModel(propertyId: string, propertyModel: PropertyModel): void; - getClassProperty(propertyId: string): ClassProperty | undefined; - getCount(): number; - getMetadataEntityModel(index: number): MetadataEntityModel; - getPropertyModel(propertyId: string): PropertyModel | undefined; - getPropertyNames(): string[]; - getPropertyTableProperty(propertyId: string): PropertyTableProperty | undefined; -} - -// @internal -export class MetadataComponentTypes { - static allComponentTypes: string[]; - static byteSizeForComponentType(componentType: string): number; - // (undocumented) - static readonly FLOAT32 = "FLOAT32"; - // (undocumented) - static readonly FLOAT64 = "FLOAT64"; - // (undocumented) - static readonly INT16 = "INT16"; - // (undocumented) - static readonly INT32 = "INT32"; - // (undocumented) - static readonly INT64 = "INT64"; - // (undocumented) - static readonly INT8 = "INT8"; - static integerComponentTypes: string[]; - static isIntegerComponentType(componentType: string | undefined): boolean; - static isUnsignedComponentType(componentType: string | undefined): boolean; - // (undocumented) - static normalize(value: number, componentType: string | undefined): number; - // (undocumented) - static readonly UINT16 = "UINT16"; - // (undocumented) - static readonly UINT32 = "UINT32"; - // (undocumented) - static readonly UINT64 = "UINT64"; - // (undocumented) - static readonly UINT8 = "UINT8"; - static unsignedComponentTypes: string[]; -} - -// @internal -export interface MetadataEntityModel { - getPropertyValue(propertyId: string): any; - getPropertyValueBySemantic(semantic: string): any; -} - -// @internal -export class MetadataEntityModels { - static computeSemanticToPropertyIdMapping(metadataClass: MetadataClass): { - [key: string]: string; - }; - static create(schema: Schema, entity: MetadataEntity): MetadataEntityModel; - static createFromClass(metadataClass: MetadataClass, metadataEnums: { - [key: string]: MetadataEnum; - }, entityProperties: { - [key: string]: any; - }): DefaultMetadataEntityModel; -} - -// @internal -export class MetadataError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class MetadataTypes { - static allTypes: string[]; - // (undocumented) - static readonly BOOLEAN = "BOOLEAN"; - static componentCountForType(type: string): number; - // (undocumented) - static readonly ENUM = "ENUM"; - static isNumericType(type: string): boolean; - // (undocumented) - static readonly MAT2 = "MAT2"; - // (undocumented) - static readonly MAT3 = "MAT3"; - // (undocumented) - static readonly MAT4 = "MAT4"; - static numericTypes: string[]; - // (undocumented) - static readonly SCALAR = "SCALAR"; - // (undocumented) - static readonly STRING = "STRING"; - // (undocumented) - static readonly VEC2 = "VEC2"; - // (undocumented) - static readonly VEC3 = "VEC3"; - // (undocumented) - static readonly VEC4 = "VEC4"; -} - -// @internal -export class MetadataUtilities { - static computeBinaryEnumInfo(schema: Schema): BinaryEnumInfo; - static computeEnumValueType(schema: Schema, classProperty: ClassProperty): string | undefined; - static computeMetadataEnumValueNameValues(metadataEnum: MetadataEnum): { - [key: string]: number; - }; - static computeMetadataEnumValueValueNames(metadataEnum: MetadataEnum): { - [key: number]: string; - }; - static obtainEnumValueNames(classProperty: ClassProperty, schema: Schema): string[]; -} - -// @internal -export class MetadataValues { - static processNumericEnumValue(classProperty: ClassProperty, valueValueNames: { - [key: number]: string; - }, value: number | number[]): any; - static processValue(classProperty: ClassProperty, offsetOverride: any, scaleOverride: any, value: any): any; -} - -// @internal -export class NumericArrayPropertyModel implements PropertyModel { - constructor(type: string, valuesBuffer: Buffer, componentType: string, arrayOffsetsBuffer: Buffer | undefined, arrayOffsetType: string, count: number | undefined); - getPropertyValue(index: number): (number | bigint | (number | bigint)[])[]; -} - -// @internal -export class NumericBuffers { - static getBooleanFromBuffer(buffer: Buffer, index: number): boolean; - static getNumericArrayFromBuffer(buffer: Buffer, index: number, arrayLength: number, componentType: string): (number | bigint)[]; - static getNumericBufferAsArray(buffer: Buffer, componentType: string): any; - static getNumericFromBuffer(buffer: Buffer, index: number, componentType: string): number | bigint; -} - -// @internal -export class NumericPropertyModel implements PropertyModel { - constructor(type: string, valuesBuffer: Buffer, componentType: string); - getPropertyValue(index: number): number | bigint | (number | bigint)[]; -} - -// @internal -export interface PropertyModel { - getPropertyValue(index: number): any; -} - -// @internal -export class PropertyModels { - static createIterable(propertyModel: PropertyModel, numElements: number): Iterable; - static createNumericArrayIterable(propertyModel: PropertyModel, numElements: number): Iterable; - static createNumericScalarIterable(propertyModel: PropertyModel, numElements: number): Iterable; -} - -// @internal -export interface PropertyTableModel { - getClassProperty(propertyId: string): ClassProperty | undefined; - getCount(): number; - getMetadataEntityModel(index: number): MetadataEntityModel; - getPropertyModel(propertyId: string): PropertyModel | undefined; - getPropertyNames(): string[]; - getPropertyTableProperty(propertyId: string): PropertyTableProperty | undefined; -} - -// @internal -export class PropertyTableModels { - static createString(propertyTableModel: PropertyTableModel, maxRows?: number): string; -} - -// @internal -export class StringArrayPropertyModel implements PropertyModel { - constructor(valuesBuffer: Buffer, arrayOffsetsBuffer: Buffer | undefined, arrayOffsetType: string, stringOffsetsBuffer: Buffer, stringOffsetType: string, count: number | undefined); - getPropertyValue(index: number): string[]; -} - -// @internal -export class StringPropertyModel implements PropertyModel { - constructor(valuesBuffer: Buffer, stringOffsetsBuffer: Buffer, stringOffsetType: string); - getPropertyValue(index: number): string; -} - -// @internal -export class TableMetadataEntityModel implements MetadataEntityModel { - constructor(propertyTableModel: PropertyTableModel, entityIndex: number, semanticToPropertyId: { - [key: string]: string; - }, enumValueValueNames: { - [key: string]: { - [key: number]: string; - }; - }); - getPropertyValue(propertyId: string): any; - getPropertyValueBySemantic(semantic: string): any; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/etc/structure.api.md b/etc/structure.api.md deleted file mode 100644 index 49c8d76f..00000000 --- a/etc/structure.api.md +++ /dev/null @@ -1,344 +0,0 @@ -## API Report File for "@3d-tiles-tools/structure" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -// @internal -export interface Asset extends RootProperty { - tilesetVersion?: string; - version: string; -} - -// @internal -export interface Availability extends RootProperty { - availableCount?: number; - bitstream?: number; - constant?: number; -} - -// @internal -export interface B3dmFeatureTable extends FeatureTable { - BATCH_LENGTH: number; - RTC_CENTER?: BinaryBodyOffset | number[]; -} - -// @internal -export interface BatchTable extends RootProperty { - // (undocumented) - [key: string]: BatchTableBinaryBodyReference | any[] | { - [key: string]: any; - } | undefined; -} - -// @internal -export interface BatchTableBinaryBodyReference extends RootProperty { - byteOffset: number; - componentType: string; - type: string; -} - -// @internal -export interface BinaryBodyOffset extends RootProperty { - byteOffset: number; -} - -// @internal -export interface BoundingVolume extends RootProperty { - box?: number[]; - region?: number[]; - sphere?: number[]; -} - -// @internal -export interface BoundingVolumeS2 extends RootProperty { - // (undocumented) - maximumHeight: number; - // (undocumented) - minimumHeight: number; - // (undocumented) - token: string; -} - -// @internal -export interface BufferObject extends RootProperty { - byteLength: number; - name?: string; - uri?: string; -} - -// @internal -export interface BufferView extends RootProperty { - buffer: number; - byteLength: number; - byteOffset: number; - name?: string; -} - -// @internal -export interface ClassProperty extends RootProperty { - array?: boolean; - componentType?: string; - count?: number; - default?: any; - description?: string; - enumType?: string; - max?: any; - min?: any; - name?: string; - noData?: any; - normalized?: boolean; - offset?: any; - required?: boolean; - scale?: any; - semantic?: string; - type: string; -} - -// @internal -export interface Content extends RootProperty { - boundingVolume?: BoundingVolume; - group?: number; - metadata?: MetadataEntity; - uri: string; -} - -// @internal -export interface EnumValue extends RootProperty { - description?: string; - name: string; - value: number; -} - -// @internal -export interface FeatureTable extends RootProperty { -} - -// @internal -export interface FeatureTableBinaryBodyReference extends BinaryBodyOffset { - componentType?: string; -} - -// @internal -export interface Group extends MetadataEntity { -} - -// @internal -export interface I3dmFeatureTable extends FeatureTable { - BATCH_ID?: FeatureTableBinaryBodyReference; - EAST_NORTH_UP?: boolean; - INSTANCES_LENGTH: number; - NORMAL_RIGHT?: FeatureTableBinaryBodyReference; - NORMAL_RIGHT_OCT32P?: FeatureTableBinaryBodyReference; - NORMAL_UP?: FeatureTableBinaryBodyReference; - NORMAL_UP_OCT32P?: FeatureTableBinaryBodyReference; - POSITION?: FeatureTableBinaryBodyReference; - POSITION_QUANTIZED?: FeatureTableBinaryBodyReference; - QUANTIZED_VOLUME_OFFSET?: BinaryBodyOffset | number[]; - QUANTIZED_VOLUME_SCALE?: BinaryBodyOffset | number[]; - RTC_CENTER?: BinaryBodyOffset | number[]; - SCALE?: FeatureTableBinaryBodyReference; - SCALE_NON_UNIFORM?: FeatureTableBinaryBodyReference; -} - -// @internal -export interface MetadataClass extends RootProperty { - description?: string; - name?: string; - properties?: { - [key: string]: ClassProperty; - }; -} - -// @internal -export interface MetadataEntity extends RootProperty { - class: string; - properties?: { - [key: string]: any; - }; -} - -// @internal -export interface MetadataEnum extends RootProperty { - description?: string; - name?: string; - values: EnumValue[]; - valueType?: string; -} - -// @internal -export interface PntsFeatureTable extends FeatureTable { - BATCH_ID?: FeatureTableBinaryBodyReference; - BATCH_LENGTH?: number; - CONSTANT_RGBA?: BinaryBodyOffset | number[]; - NORMAL?: FeatureTableBinaryBodyReference; - NORMAL_OCT16P?: FeatureTableBinaryBodyReference; - POINTS_LENGTH: number; - POSITION?: FeatureTableBinaryBodyReference; - POSITION_QUANTIZED?: FeatureTableBinaryBodyReference; - QUANTIZED_VOLUME_OFFSET?: BinaryBodyOffset | number[]; - QUANTIZED_VOLUME_SCALE?: BinaryBodyOffset | number[]; - RGB?: FeatureTableBinaryBodyReference; - RGB565?: FeatureTableBinaryBodyReference; - RGBA?: FeatureTableBinaryBodyReference; - RTC_CENTER?: BinaryBodyOffset | number[]; -} - -// @internal -export interface Properties extends RootProperty { - maximum: number; - minimum: number; -} - -// @internal -export interface PropertyTable extends RootProperty { - class: string; - count: number; - name?: string; - properties?: { - [key: string]: PropertyTableProperty; - }; -} - -// @internal -export interface PropertyTableProperty extends RootProperty { - arrayOffsets?: number; - arrayOffsetType?: string; - max?: any; - min?: any; - offset?: any; - scale?: any; - stringOffsets?: number; - stringOffsetType?: string; - values: number; -} - -// @internal -export interface RootProperty { - // (undocumented) - extensions?: { - [key: string]: { - [key: string]: any; - }; - }; - // (undocumented) - extras?: { - [key: string]: any; - }; -} - -// @internal -export interface Schema extends RootProperty { - classes?: { - [key: string]: MetadataClass; - }; - description?: string; - enums?: { - [key: string]: MetadataEnum; - }; - id: string; - name?: string; - version?: string; -} - -// @internal -export interface Statistics extends RootProperty { - classes?: { - [key: string]: StatisticsClass; - }; -} - -// @internal -export interface StatisticsClass extends RootProperty { - count?: number; - properties?: { - [key: string]: StatisticsClassProperty; - }; -} - -// @internal -export interface StatisticsClassProperty extends RootProperty { - max?: any; - mean?: any; - median?: any; - min?: any; - occurrences?: { - [key: string]: any; - }; - standardDeviation?: any; - sum?: any; - variance?: any; -} - -// @internal -export interface Style extends RootProperty { - color?: string | string[]; - defines?: { - [key: string]: string; - }; - meta?: { - [key: string]: string; - }; - show?: string | string[]; -} - -// @internal -export interface Subtree extends RootProperty { - buffers?: BufferObject[]; - bufferViews?: BufferView[]; - childSubtreeAvailability: Availability; - contentAvailability?: Availability[]; - contentMetadata?: number[]; - propertyTables?: PropertyTable[]; - subtreeMetadata?: MetadataEntity; - tileAvailability: Availability; - tileMetadata?: number; -} - -// @internal -export interface Subtrees extends RootProperty { - uri: string; -} - -// @internal -export interface Tile extends RootProperty { - boundingVolume: BoundingVolume; - children?: Tile[]; - content?: Content; - contents?: Content[]; - geometricError: number; - implicitTiling?: TileImplicitTiling; - metadata?: MetadataEntity; - refine?: string; - transform?: number[]; - viewerRequestVolume?: BoundingVolume; -} - -// @internal -export interface TileImplicitTiling extends RootProperty { - availableLevels: number; - subdivisionScheme: string; - subtreeLevels: number; - subtrees: Subtrees; -} - -// @internal -export interface Tileset extends RootProperty { - asset: Asset; - extensionsRequired?: string[]; - extensionsUsed?: string[]; - geometricError: number; - groups?: Group[]; - metadata?: MetadataEntity; - properties?: { - [key: string]: Properties; - }; - root: Tile; - schema?: Schema; - schemaUri?: string; - statistics?: Statistics; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/etc/tilesets.api.md b/etc/tilesets.api.md deleted file mode 100644 index 19ac8ad5..00000000 --- a/etc/tilesets.api.md +++ /dev/null @@ -1,650 +0,0 @@ -## API Report File for "@3d-tiles-tools/tilesets" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -/// - -import { Availability } from '@3d-tiles-tools/structure'; -import { B3dmFeatureTable } from '@3d-tiles-tools/structure'; -import { BatchTable } from '@3d-tiles-tools/structure'; -import { BatchTableBinaryBodyReference } from '@3d-tiles-tools/structure'; -import { BinaryBodyOffset } from '@3d-tiles-tools/structure'; -import { BinaryBufferData } from '@3d-tiles-tools/base'; -import { BinaryBufferStructure } from '@3d-tiles-tools/base'; -import { Content } from '@3d-tiles-tools/structure'; -import { Database } from 'better-sqlite3'; -import { I3dmFeatureTable } from '@3d-tiles-tools/structure'; -import { MetadataEntity } from '@3d-tiles-tools/structure'; -import { OctreeCoordinates } from '@3d-tiles-tools/base'; -import { PntsFeatureTable } from '@3d-tiles-tools/structure'; -import { PropertyModel } from '@3d-tiles-tools/metadata'; -import { PropertyTableModel } from '@3d-tiles-tools/metadata'; -import { QuadtreeCoordinates } from '@3d-tiles-tools/base'; -import { ResourceResolver } from '@3d-tiles-tools/base'; -import { Schema } from '@3d-tiles-tools/structure'; -import { Subtree } from '@3d-tiles-tools/structure'; -import { Tile } from '@3d-tiles-tools/structure'; -import { TileImplicitTiling } from '@3d-tiles-tools/structure'; -import { Tileset } from '@3d-tiles-tools/structure'; -import { TreeCoordinates } from '@3d-tiles-tools/base'; - -// @internal (undocumented) -export class ArchiveFunctions3tz { - // (undocumented) - static md5LessThan(md5hashA: Buffer, md5hashB: Buffer): boolean; - // (undocumented) - static readEntry(fd: number, zipIndex: IndexEntry[], path: string): { - compression_method: number; - data: Buffer; - } | undefined; - // (undocumented) - static readFileName(fd: number, offset: number | bigint): string; - // (undocumented) - static readZipIndex(fd: number): IndexEntry[]; - // (undocumented) - static readZipLocalFileHeader(fd: number, offset: number | bigint, path: string): ZipLocalFileHeader; - // (undocumented) - static zipIndexFind(zipIndex: IndexEntry[], searchHash: Buffer): number; -} - -// @internal -export class AttributeCompression { - static octDecode16(input: number[]): number[]; - static octDecode8(input: number[]): number[]; -} - -// @internal -export interface AvailabilityInfo { - isAvailable(index: number): boolean; - get length(): number; -} - -// @internal -export class AvailabilityInfos { - static createChildSubtree(availability: Availability, bufferViewDatas: Buffer[], implicitTiling: TileImplicitTiling): AvailabilityInfo; - static createTileOrContent(availability: Availability, bufferViewDatas: Buffer[], implicitTiling: TileImplicitTiling): AvailabilityInfo; -} - -// @internal -export class BatchTables { - static obtainDracoProperties(batchTable: BatchTable): { - [key: string]: number; - }; - static obtainDracoPropertyNames(batchTable: BatchTable): string[]; -} - -// @internal -export interface BinarySubtreeData { - binaryBufferData: BinaryBufferData; - binaryBufferStructure: BinaryBufferStructure; - subtree: Subtree; -} - -// @internal -export class BinarySubtreeDataResolver { - static resolveFromBuffer(input: Buffer, resourceResolver: ResourceResolver): Promise; - static resolveFromJson(subtree: Subtree, resourceResolver: ResourceResolver): Promise; - static resolveInternal(subtree: Subtree, binaryBuffer: Buffer | undefined, resourceResolver: ResourceResolver): Promise; -} - -// @internal -export class BufferAvailabilityInfo implements AvailabilityInfo { - constructor(buffer: Buffer, length: number); - isAvailable(index: number): boolean; - get length(): number; -} - -// @internal -export class Colors { - static standardRGB565ToNormalizedLinearRGBA(input: number): number[]; - static standardRGBAToNormalizedLinearRGBA(input: number[]): number[]; - static standardRGBToNormalizedLinearRGBA(input: number[]): number[]; -} - -// @internal -export interface CompositeTileData { - header: Header; - innerTileBuffers: Buffer[]; -} - -// @internal -export class ConstantAvailabilityInfo implements AvailabilityInfo { - constructor(available: boolean, length: number); - isAvailable(index: number): boolean; - get length(): number; -} - -// @internal -export class Contents { - static getUri(content: Content): string | undefined; -} - -// @internal -export class ExplicitTraversedTile implements TraversedTile { - constructor(tile: Tile, path: string, level: number, parent: TraversedTile | undefined, schema: Schema | undefined, resourceResolver: ResourceResolver); - asFinalTile(): Tile; - asRawTile(): Tile; - static createRoot(root: Tile, schema: Schema | undefined, resourceResolver: ResourceResolver): TraversedTile; - getChildren(): Promise; - getFinalContents(): Content[]; - getImplicitTiling(): TileImplicitTiling | undefined; - getMetadata(): MetadataEntity | undefined; - getParent(): TraversedTile | undefined; - getRawContents(): Content[]; - getResourceResolver(): ResourceResolver; - getSubtreeUri(): string | undefined; - isImplicitTilesetRoot(): boolean; - get level(): number; - get path(): string; - toString: () => string; -} - -// @internal -export class ExplicitTraversedTiles { - static createTraversedChildren(implicitTiling: TileImplicitTiling, schema: Schema | undefined, parent: ExplicitTraversedTile, resourceResolver: ResourceResolver): Promise; -} - -// @internal -export class Extensions { - static addExtensionRequired(extensible: Extensible, extension: string): void; - // Warning: (ae-forgotten-export) The symbol "Extensible" needs to be exported by the entry point index.d.ts - static addExtensionUsed(extensible: Extensible, extension: string): void; - // Warning: (ae-forgotten-export) The symbol "Extended" needs to be exported by the entry point index.d.ts - static containsExtension(extended: Extended, extension: string): boolean; - static removeExtension(extended: Extended, extension: string): void; - static removeExtensionRequired(extensible: Extensible, extension: string): void; - static removeExtensionUsed(extensible: Extensible, extension: string): void; -} - -// @internal -export interface Header { - gltfFormat?: number; - magic: string; - version: number; -} - -// @internal -export class ImplicitTilingError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class ImplicitTilings { - static computeNumberOfNodesInLevel(implicitTiling: TileImplicitTiling, level: number): number; - static computeNumberOfNodesPerSubtree(implicitTiling: TileImplicitTiling): number; - static createRootCoordinates(implicitTiling: TileImplicitTiling): TreeCoordinates; - static createString(coordinates: TreeCoordinates): string; - static createSubtreeCoordinatesIterator(implicitTiling: TileImplicitTiling): Iterable; - static globalizeCoordinates(implicitTiling: TileImplicitTiling, rootCoordinates: TreeCoordinates, coordinates: TreeCoordinates): TreeCoordinates; - static substituteTemplateUri(subdivisionScheme: string, templateUri: string, coordinates: TreeCoordinates): string; -} - -// @internal -export class ImplicitTraversedTile implements TraversedTile { - constructor(implicitTiling: TileImplicitTiling, resourceResolver: ResourceResolver, root: TraversedTile, path: string, subtreeModel: SubtreeModel, globalLevel: number, globalCoordinate: TreeCoordinates, rootCoordinate: TreeCoordinates, localCoordinate: TreeCoordinates, parent: TraversedTile); - asFinalTile(): Tile; - asRawTile(): Tile; - getChildren(): Promise; - getFinalContents(): Content[]; - getGlobalCoordinate(): TreeCoordinates; - getLocalCoordinate(): TreeCoordinates; - getParent(): TraversedTile | undefined; - getRawContents(): Content[]; - getResourceResolver(): ResourceResolver; - getSubtreeUri(): string | undefined; - isImplicitTilesetRoot(): boolean; - get level(): number; - get path(): string; - toString: () => string; -} - -// @internal -export class IndexBuilder { - constructor(); - addEntry(key: string, size: number): void; - createBuffer(): Buffer; -} - -// @internal -export interface IndexBuilderEntry { - key: string; - offset: bigint; -} - -// @internal -export interface IndexEntry { - hash: Buffer; - offset: bigint; -} - -// @internal -export class MetadataSemanticOverrides { - static applyExplicitContentMetadataSemanticOverrides(content: Content, schema: Schema): void; - static applyExplicitTileMetadataSemanticOverrides(tile: Tile, schema: Schema): void; - static applyImplicitContentMetadataSemanticOverrides(content: Content, contentSetIndex: number, tileIndex: number, subtreeMetadataModel: SubtreeMetadataModel): void; - static applyImplicitTileMetadataSemanticOverrides(tile: Tile, tileIndex: number, subtreeMetadataModel: SubtreeMetadataModel): void; -} - -// @internal -export interface SubtreeInfo { - childSubtreeAvailabilityInfo: AvailabilityInfo; - contentAvailabilityInfos: AvailabilityInfo[]; - tileAvailabilityInfo: AvailabilityInfo; -} - -// @internal -export class SubtreeInfos { - static create(binarySubtreeData: BinarySubtreeData, implicitTiling: TileImplicitTiling): SubtreeInfo; - static createFromBuffer(input: Buffer, implicitTiling: TileImplicitTiling, resourceResolver: ResourceResolver): Promise; - static createFromJson(subtree: Subtree, implicitTiling: TileImplicitTiling, resourceResolver: ResourceResolver): Promise; -} - -// @internal -export interface SubtreeMetadataModel { - contentIndexMappings: number[][]; - contentMetadataModels: PropertyTableModel[]; - schema: Schema; - tileIndexMapping: number[] | undefined; - tileMetadataModel: PropertyTableModel | undefined; -} - -// @internal -export class SubtreeMetadataModels { - static create(binarySubtreeData: BinarySubtreeData, subtreeInfo: SubtreeInfo, schema: Schema): SubtreeMetadataModel; -} - -// @internal -export interface SubtreeModel { - subtreeInfo: SubtreeInfo; - subtreeMetadataModel: SubtreeMetadataModel | undefined; -} - -// @internal -export class SubtreeModels { - static resolve(implicitTiling: TileImplicitTiling, schema: Schema | undefined, resourceResolver: ResourceResolver, coordinates: TreeCoordinates): Promise; -} - -// @internal -export interface Table { - binary: Buffer; - json: any; -} - -// @internal -export type TableStructure = { - name: string; - columns: { - name: string; - type: string; - }[]; -}; - -// @internal -export class TableStructureValidator { - static validate(db: Database, tableStructure: TableStructure): string | undefined; -} - -// @internal -export class TemplateUris { - static substituteOctree(templateUri: string, coordinates: OctreeCoordinates): string; - static substituteOctreeInternal(templateUri: string, level: number, x: number, y: number, z: number): string; - static substituteQuadtree(templateUri: string, coordinates: QuadtreeCoordinates): string; - static substituteQuadtreeInternal(templateUri: string, level: number, x: number, y: number): string; -} - -// @internal -export interface TileData { - batchTable: Table; - featureTable: Table; - header: Header; - payload: Buffer; -} - -// @internal -export interface TileDataBlockLayout { - // (undocumented) - end: number; - // (undocumented) - length: number; - // (undocumented) - start: number; -} - -// @internal -export interface TileDataLayout { - // (undocumented) - batchTableBinary: TileDataBlockLayout; - // (undocumented) - batchTableJson: TileDataBlockLayout; - // (undocumented) - byteLength: number; - // (undocumented) - featureTableBinary: TileDataBlockLayout; - // (undocumented) - featureTableJson: TileDataBlockLayout; - // (undocumented) - headerLength: number; - // (undocumented) - legacyBatchLength: number | undefined; - // (undocumented) - magic: string; - // (undocumented) - payload: TileDataBlockLayout; -} - -// @internal -export class TileDataLayouts { - // (undocumented) - static create(buffer: Buffer): TileDataLayout; -} - -// @internal -export class TileFormatError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class TileFormats { - static createB3dmTileDataFromGlb(glbData: Buffer, featureTableJson: B3dmFeatureTable | undefined, featureTableBinary: Buffer | undefined, batchTableJson: BatchTable | undefined, batchTableBinary: Buffer | undefined): TileData; - static createCompositeTileData(tileDatas: TileData[]): CompositeTileData; - static createCompositeTileDataBuffer(compositeTileData: CompositeTileData): Buffer; - static createDefaultB3dmTileDataFromGlb(glbData: Buffer): TileData; - static createDefaultI3dmTileDataFromGlb(glbData: Buffer): TileData; - static createI3dmTileDataFromGlb(glbData: Buffer, featureTableJson: I3dmFeatureTable | undefined, featureTableBinary: Buffer | undefined, batchTableJson: BatchTable | undefined, batchTableBinary: Buffer | undefined): TileData; - static createTileDataBuffer(tileData: TileData): Buffer; - static extractGlbBuffers(tileDataBuffer: Buffer, externalGlbResolver: (glbUri: string) => Promise): Promise; - static extractGlbPayload(tileData: TileData): Buffer; - static extractTileData(buffer: Buffer, tileDataLayout: TileDataLayout): { - header: { - magic: string; - version: number; - gltfFormat: number | undefined; - }; - featureTable: { - json: any; - binary: Buffer; - }; - batchTable: { - json: any; - binary: Buffer; - }; - payload: Buffer; - }; - static isComposite(buffer: Buffer): boolean; - static obtainGlbPayload(tileData: TileData, externalGlbResolver: (glbUri: string) => Promise): Promise; - static readCompositeTileData(buffer: Buffer): CompositeTileData; - static readTileData(buffer: Buffer): TileData; - static splitCmpt(tileDataBuffer: Buffer, recursive: boolean): Promise; -} - -// @internal -export class Tiles { - static getContents(tile: Tile): Content[]; - static getContentUris(tile: Tile): string[]; - static setContents(tile: Tile, contents: Content[]): void; - static traverseExplicit(tile: Tile, callback: TileTraversalCallback): Promise; -} - -// @internal -export interface TilesetEntry { - key: string; - value: Buffer; -} - -// @internal -export class TilesetError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class TilesetInMemory implements TilesetSource, TilesetTarget { - constructor(); - addEntry(key: string, content: Buffer): void; - begin(fullOutputName: string, overwrite: boolean): void; - close(): void; - end(): Promise; - getKeys(): string[]; - getValue(key: string): Buffer | undefined; - open(fullInputName: string): void; -} - -// @internal -export class Tilesets { - static areEqualPackages(tilesetPackageName0: string, tilesetPackageName1: string): boolean; - static determineTilesetJsonFileName(tilesetDataName: string): string; -} - -// @internal -export interface TilesetSource { - close(): void; - getKeys(): Iterable; - getValue(key: string): Buffer | undefined; - open(fullInputName: string): void; -} - -// @internal -export class TilesetSource3dtiles implements TilesetSource { - constructor(); - close(): void; - getKeys(): Iterable; - getValue(key: string): Buffer | undefined; - open(fullInputName: string): void; -} - -// @internal -export class TilesetSource3tz implements TilesetSource { - constructor(); - close(): void; - getKeys(): Iterable; - getValue(key: string): Buffer | undefined; - // (undocumented) - getZipIndex(): IndexEntry[] | undefined; - open(fullInputName: string): void; -} - -// @internal -export class TilesetSourceFs implements TilesetSource { - constructor(); - close(): void; - getKeys(): Iterable; - getValue(key: string): Buffer | undefined; - open(fullInputName: string): void; -} - -// @internal -export class TilesetSourceResourceResolver implements ResourceResolver { - constructor(basePath: string, tilesetSource: TilesetSource); - // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The package "@3d-tiles-tools/tilesets" does not have an export "ResourceResolver" - // - // (undocumented) - derive(uri: string): ResourceResolver; - // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The package "@3d-tiles-tools/tilesets" does not have an export "ResourceResolver" - // - // (undocumented) - resolveData(uri: string): Promise; - // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The package "@3d-tiles-tools/tilesets" does not have an export "ResourceResolver" - // - // (undocumented) - resolveDataPartial(uri: string, maxBytes: number): Promise; -} - -// @internal -export class TilesetSources { - static create(extension: string): TilesetSource | undefined; - static createAndOpen(name: string): TilesetSource; - static getEntries(tilesetSource: TilesetSource): Iterable; -} - -// @internal -export interface TilesetTarget { - addEntry(key: string, content: Buffer): void; - begin(fullOutputName: string, overwrite: boolean): void; - end(): Promise; -} - -// @internal -export class TilesetTarget3dtiles implements TilesetTarget { - constructor(); - addEntry(key: string, content: Buffer): void; - begin(fullOutputName: string, overwrite: boolean): void; - end(): Promise; -} - -// @internal -export class TilesetTarget3tz implements TilesetTarget { - constructor(); - addEntry(key: string, content: Buffer): void; - begin(fullOutputName: string, overwrite: boolean): void; - end(): Promise; -} - -// @internal -export class TilesetTargetFs implements TilesetTarget { - constructor(); - addEntry(key: string, content: Buffer): void; - begin(fullOutputName: string, overwrite: boolean): void; - end(): Promise; -} - -// @internal -export class TilesetTargets { - static create(extension: string): TilesetTarget | undefined; - static createAndBegin(name: string, overwrite: boolean): TilesetTarget; - static putEntries(tilesetTarget: TilesetTarget, entries: Iterable): void; -} - -// @internal -export class TilesetTraverser { - constructor(baseUri: string, resourceResolver: ResourceResolver, options?: TraversalOptions); - traverse(tileset: Tileset, traversalCallback: TraversalCallback): Promise; - traverseWithSchema(tileset: Tileset, schema: Schema | undefined, traversalCallback: TraversalCallback): Promise; - traverseWithSchemaAt(tile: Tile, schema: Schema | undefined, traversalCallback: TraversalCallback): Promise; -} - -// @internal -export class TilesetTraversers { - static createExternalTilesetRoots(baseUri: string, traversedTile: TraversedTile): Promise; - static resolveSchema(tileset: Tileset, resourceResolver: ResourceResolver): Promise; -} - -// @internal -export class TileTableData { - static convertLegacyComponentTypeToComponentType(legacyComponentType: string): "FLOAT32" | "INT8" | "UINT8" | "INT16" | "UINT16" | "INT32" | "UINT32" | "FLOAT64"; - static convertLegacyTypeToType(legacyType: string): "VEC3" | "SCALAR" | "VEC2" | "VEC4"; - static createBatchIdsFromBinary(binary: Buffer, byteOffset: number, legacyComponentType: string, numPoints: number): Iterable; - static createNumericArrayIterable(legacyType: string, legacyComponentType: string, binary: Buffer, byteOffset: number, numElements: number): Iterable; - static createNumericPropertyModel(legacyType: string, legacyComponentType: string, binary: Buffer, byteOffset: number): PropertyModel; - static createNumericScalarIterable(legacyType: string, legacyComponentType: string, binary: Buffer, byteOffset: number, numElements: number): Iterable; - static createPositions(featureTable: PntsFeatureTable | I3dmFeatureTable, binary: Buffer, numPositions: number): Iterable; - static createPositionsFromBinary(binary: Buffer, byteOffset: number, numPositions: number): Iterable; - static isBatchTableBinaryBodyReference(p: any): p is BatchTableBinaryBodyReference; - static obtainBatchIdComponentType(featureTable: PntsFeatureTable | I3dmFeatureTable): string | undefined; - static obtainGlobalPosition(featureTable: PntsFeatureTable | I3dmFeatureTable, featureTableBinary: Buffer): [number, number, number] | undefined; - static obtainNumberArray(binary: Buffer, property: number[] | BinaryBodyOffset, length: number, componentType: string): number[]; - static obtainQuantizationOffsetScale(featureTable: PntsFeatureTable | I3dmFeatureTable, featureTableBinary: Buffer): { - offset: number[]; - scale: number[]; - } | undefined; - static obtainRtcCenter(rtcCenter: BinaryBodyOffset | number[], binary: Buffer): [number, number, number]; -} - -// @internal -export class TileTableDataI3dm { - static createBatchIds(featureTable: I3dmFeatureTable, binary: Buffer): Iterable | undefined; - static createInstanceMatrices(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): number[][]; - static createMatrices(translations3D: Iterable, rotationQuaternions: Iterable | undefined, scales3D: Iterable | undefined, numInstances: number): number[][]; - static createNormalsUp(featureTable: I3dmFeatureTable, binary: Buffer, numElements: number): Iterable | undefined; - static createRotationQuaternions(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): Iterable | undefined; - static createScales3D(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): Iterable | undefined; - static createWorldPositions(featureTable: I3dmFeatureTable, featureTableBinary: Buffer, numInstances: number): Iterable; -} - -// @internal -export class TileTableDataPnts { - static createBatchIds(featureTable: PntsFeatureTable, binary: Buffer): Iterable | undefined; - static createColorsStandardRGBAFromBinary(binary: Buffer, byteOffset: number, numElements: number): Iterable; - static createColorsStandardRGBFromBinary(binary: Buffer, byteOffset: number, numElements: number): Iterable; - static createGlobalNormalizedLinearColor(featureTable: PntsFeatureTable, binary: Buffer): [number, number, number, number] | undefined; - static createNormalizedLinearColors(featureTable: PntsFeatureTable, binary: Buffer, numElements: number): Iterable | undefined; - static createNormals(featureTable: PntsFeatureTable, binary: Buffer, numElements: number): Iterable | undefined; - static createNormalsFromBinary(binary: Buffer, byteOffset: number, numElements: number): Iterable; -} - -// @internal -export type TileTraversalCallback = (tilePath: Tile[]) => Promise; - -// @internal -export interface TraversalCallback { - (traversedTile: TraversedTile): Promise; -} - -// @internal -export type TraversalOptions = { - depthFirst?: boolean; - traverseExternalTilesets?: boolean; -}; - -// @internal -export interface TraversedTile { - asFinalTile(): Tile; - asRawTile(): Tile; - getChildren(): Promise; - getFinalContents(): Content[]; - getParent(): TraversedTile | undefined; - getRawContents(): Content[]; - getResourceResolver(): ResourceResolver; - getSubtreeUri(): string | undefined; - isImplicitTilesetRoot(): boolean; - get level(): number; - get path(): string; -} - -// @internal -export class VecMath { - static add(a: number[], b: number[], result?: number[]): number[]; - static composeMatrixTRS(translation3D: number[], rotationQuaternion?: number[], scale3D?: number[]): number[]; - static computeEastNorthUpMatrix4(positionPacked: number[]): number[]; - static computeMean3D(points: Iterable): number[]; - static computeRotationQuaternions(upVectors: number[][], rightVectors: number[][]): number[][]; - static createYupToZupPacked4(): number[]; - static createZupToYupPacked4(): number[]; - static decomposeMatrixTRS(matrix4Packed: number[]): { - t: number[]; - r: number[]; - s: number[]; - }; - static matrix4ToQuaternion(matrix4Packed: number[]): number[]; - static multiplyAll4(matrices4Packed: number[][]): number[]; - static subtract(a: number[], b: number[], result?: number[]): number[]; -} - -// @internal (undocumented) -export interface ZipLocalFileHeader { - // (undocumented) - comp_size: number; - // (undocumented) - compression_method: number; - // (undocumented) - extra_size: number; - // (undocumented) - filename_size: number; - // (undocumented) - signature: number; -} - -// @internal -export class ZipToPackage { - static convert(inputFileName: string, inputTilesetJsonFileName: string, outputFileName: string, overwrite: boolean): Promise; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/etc/tools.api.md b/etc/tools.api.md deleted file mode 100644 index 7533ba9f..00000000 --- a/etc/tools.api.md +++ /dev/null @@ -1,614 +0,0 @@ -## API Report File for "@3d-tiles-tools/tools" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -/// -/// -/// - -import { Accessor } from '@gltf-transform/core'; -import { BatchTable } from '@3d-tiles-tools/structure'; -import { BinaryPropertyTable } from '@3d-tiles-tools/metadata'; -import { BoundingVolume } from '@3d-tiles-tools/structure'; -import { ClassProperty } from '@3d-tiles-tools/structure'; -import { ContentData } from '@3d-tiles-tools/base'; -import { Document } from '@gltf-transform/core'; -import { EXTStructuralMetadata } from '@3d-tiles-tools/gltf-extensions'; -import { KtxEtc1sOptions } from '@3d-tiles-tools/ktx'; -import { KtxUastcOptions } from '@3d-tiles-tools/ktx'; -import { MeshFeaturesFeatureId } from '@3d-tiles-tools/gltf-extensions'; -import { NodeIO } from '@gltf-transform/core'; -import { PntsFeatureTable } from '@3d-tiles-tools/structure'; -import { Primitive } from '@gltf-transform/core'; -import { PropertyModel } from '@3d-tiles-tools/metadata'; -import { PropertyTableModel } from '@3d-tiles-tools/metadata'; -import { Schema } from '@3d-tiles-tools/structure'; -import { StructuralMetadataPropertyTable } from '@3d-tiles-tools/gltf-extensions'; -import { Tile } from '@3d-tiles-tools/structure'; -import { Tileset } from '@3d-tiles-tools/structure'; -import { TilesetEntry } from '@3d-tiles-tools/tilesets'; -import { TilesetSource } from '@3d-tiles-tools/tilesets'; -import { TilesetTarget } from '@3d-tiles-tools/tilesets'; -import { Transform } from '@gltf-transform/core'; -import { TraversalCallback } from '@3d-tiles-tools/tilesets'; -import { TypedArray } from '@gltf-transform/core'; - -// @internal -export class AccessorCreation { - static createAccessorArray(componentType: string, accessorValues: Iterable): TypedArray; - static createAccessorFromProperty(document: Document, classProperty: ClassProperty, propertyModel: PropertyModel, numRows: number): Accessor; - static createAccessorFromValues(document: Document, classProperty: ClassProperty, accessorValues: Iterable): Accessor; - static createAccessorValues(classProperty: ClassProperty, propertyModel: PropertyModel, numRows: number): Iterable; -} - -// @internal -export type AttributeInfo = { - componentsPerAttribute: number; - componentDatatype: string; - byteOffset: number; - byteStride: number; - normalized: boolean; - quantization?: QuantizationInfo; -}; - -// @internal -export class BasicTilesetProcessor extends TilesetProcessor { - constructor(processExternalTilesets?: boolean); - end(): Promise; - forEachExplicitTile(callback: (tile: Tile) => Promise): Promise; - forEachTile(callback: TraversalCallback): Promise; - forTileset(callback: (tileset: Tileset, schema: Schema | undefined) => Promise): Promise; - processAllEntries(entryProcessor: TilesetEntryProcessor): Promise; - processTileContentEntries(uriProcessor: (uri: string) => string, entryProcessor: TilesetEntryProcessor): Promise; - static updateTileContent(tile: Tile, contentUris: string[]): void; -} - -// @internal -export class BatchTableClassProperties { - static createClassProperty(batchTablePropertyName: string, batchTablePropertyValue: any): ClassProperty; -} - -// @internal -export class BatchTablePropertyTableModels { - static create(table: { - [key: string]: any; - }, binary: Buffer, externalProperties: { - [key: string]: PropertyModel; - }, numRows: number): PropertyTableModel; -} - -// @internal -export class BatchTableSchemas { - static createSchema(identifier: string, batchTable: BatchTable): Schema | undefined; -} - -// @internal -export class BoundingVolumes { - static computeBoundingVolumeBoxCorners(boundingVolumeBox: number[]): number[][]; - static computeBoundingVolumeBoxFromBoundingVolume(boundingVolume: BoundingVolume): number[] | undefined; - static computeUnionBoundingVolumeBox(boundingVolumeBoxes: Iterable): number[]; - static createBoundingVolumeBoxFromMinMax(min: number[], max: number[]): number[]; - static createBoundingVolumeBoxFromPoints(points: number[][]): number[]; - static createUnitCubeBoundingVolumeBox(): number[]; - static transformBoundingVolumeBox(boundingVolumeBox: number[], transform: number[]): number[]; - static translateBoundingVolumeBox(boundingVolumeBox: number[], translation: number[]): number[]; -} - -// @internal -export class ComponentDatatype { - static readonly BYTE = 5120; - static readonly DOUBLE = 5130; - static readonly FLOAT = 5126; - static fromTypedArray(array: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array): number; - static getSizeInBytes(componentDatatype: number): number; - static readonly INT = 5124; - static readonly SHORT = 5122; - static toString(componentDatatype: number): "BYTE" | "UNSIGNED_BYTE" | "SHORT" | "UNSIGNED_SHORT" | "INT" | "UNSIGNED_INT" | "FLOAT" | "DOUBLE"; - static readonly UNSIGNED_BYTE = 5121; - static readonly UNSIGNED_INT = 5125; - static readonly UNSIGNED_SHORT = 5123; -} - -// @internal -export class ContentError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class ContentOps { - static b3dmToGlbBuffer(inputBuffer: Buffer): Buffer; - static cmptToGlbBuffers(inputBuffer: Buffer, externalGlbResolver: (glbUri: string) => Promise): Promise; - static glbToB3dmBuffer(inputBuffer: Buffer): Buffer; - static glbToI3dmBuffer(inputBuffer: Buffer): Buffer; - static i3dmToGlbBuffer(inputBuffer: Buffer): Buffer; - static optimizeB3dmBuffer(inputBuffer: Buffer, options: any): Promise; - static optimizeI3dmBuffer(inputBuffer: Buffer, options: any): Promise; -} - -// @internal -export interface ContentStage extends Stage { - options?: any; -} - -// @internal -export class ContentStageExecutor { - static executeContentStage(contentStage: ContentStage, tilesetProcessor: BasicTilesetProcessor): Promise; -} - -// @internal -export class ContentStages { - static readonly CONTENT_STAGE_B3DM_TO_GLB = "b3dmToGlb"; - static readonly CONTENT_STAGE_CONVERT_B3DM_TO_GLB = "convertB3dmToGlb"; - static readonly CONTENT_STAGE_CONVERT_PNTS_TO_GLB = "convertPntsToGlb"; - static readonly CONTENT_STAGE_GLB_TO_B3DM = "glbToB3dm"; - static readonly CONTENT_STAGE_GLB_TO_I3DM = "glbToI3dm"; - static readonly CONTENT_STAGE_I3DM_TO_GLB = "i3dmToGlb"; - static readonly CONTENT_STAGE_OPTIMIZE_B3DM = "optimizeB3dm"; - static readonly CONTENT_STAGE_OPTIMIZE_GLB = "optimizeGlb"; - static readonly CONTENT_STAGE_OPTIMIZE_I3DM = "optimizeI3dm"; - static readonly CONTENT_STAGE_SEPARATE_GLTF = "separateGltf"; - static createB3dmToGlb(): ContentStage; - static createContentStage(contentStageJson: any): ContentStage; - static createConvertB3dmToGlb(): ContentStage; - static createConvertPntsToGlb(): ContentStage; - static createGlbToB3dm(): ContentStage; - static createGlbToI3dm(): ContentStage; - static createI3dmToGlb(): ContentStage; - static createOptimizeB3dm(options: any): ContentStage; - static createOptimizeGlb(options: any): ContentStage; - static createOptimizeI3dm(options: any): ContentStage; - static createSeparateGltf(): ContentStage; -} - -// @internal -export class ContentUpgrades { - static upgradeB3dmGltf1ToGltf2(inputBuffer: Buffer, options: any): Promise; - static upgradeI3dmGltf1ToGltf2(inputBuffer: Buffer, options: any): Promise; -} - -// @internal -export class DefaultPointCloud implements ReadablePointCloud { - addAttribute(name: string, type: string, componentType: string, attribute: Iterable): void; - getAttributeComponentType(name: string): string | undefined; - getAttributes(): string[]; - getAttributeType(name: string): string | undefined; - getAttributeValues(name: string): Iterable | undefined; - getGlobalPosition(): [number, number, number] | undefined; - getNormalizedLinearColors(): Iterable | undefined; - getNormalizedLinearGlobalColor(): [number, number, number, number] | undefined; - getNormals(): Iterable | undefined; - getPositions(): Iterable; - // (undocumented) - setGlobalPosition(globalPosition: [number, number, number] | undefined): void; - setNormalizedLinearColors(colors: Iterable): void; - // (undocumented) - setNormalizedLinearGlobalColor(globalColor: [number, number, number, number] | undefined): void; - setNormals(normals: Iterable): void; - setPositions(positions: Iterable): void; -} - -// @internal -export class DracoDecoder { - static create(): Promise; - decodePointCloud(properties: { - [key: string]: number; - }, binary: Buffer): DracoDecoderResult; -} - -// @internal -export type DracoDecoderResult = { - [key: string]: { - attributeData: Buffer; - attributeInfo: AttributeInfo; - }; -}; - -// @internal -export class DracoError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class GltfPack { - static process(inputGlb: Buffer, options: GltfPackOptions): Promise; -} - -// @internal -export type GltfPackOptions = Partial<{ - c: boolean; - cc: boolean; - si: number; - sa: boolean; - slb: boolean; - vp: number; - vt: number; - vn: number; - vc: number; - vpi: boolean; - vpn: boolean; - vpf: boolean; - at: number; - ar: number; - as: number; - af: number; - ac: boolean; - kn: boolean; - km: boolean; - ke: boolean; - mm: boolean; - mi: boolean; - cf: boolean; - noq: boolean; -}>; - -// @internal -export class GltfPipelineLegacy { - // (undocumented) - static process(gltf: any): Promise; -} - -// @internal -export class GltfTransform { - static getIO(): Promise; - static process(inputGlb: Buffer, ...transforms: Transform[]): Promise; -} - -// @internal -export interface GltfTransformPointCloud { - document: Document; - primitive: Primitive; -} - -// @internal -export class GltfTransformPointClouds { - static applyQuantization(document: Document, quantizePositions: boolean, quantizeNormals: boolean): Promise; - static build(readablePointCloud: ReadablePointCloud, mayRequireAlpha: boolean): GltfTransformPointCloud; -} - -// @internal -export class GltfTransformTextures { - static createTransformTexturesToKtx(etc1sOptions: KtxEtc1sOptions, uastcOptions: KtxUastcOptions): Transform; -} - -// @internal -export class GltfUtilities { - static extractDataFromGlb(glbBuffer: Buffer): { - jsonData: Buffer; - binData: Buffer; - }; - static extractJsonFromGlb(glbBuffer: Buffer): Buffer; - static getGltfVersion(glbBuffer: Buffer): number; - static optimizeGlb(glbBuffer: Buffer, options: any): Promise; - static replaceCesiumRtcExtension(glbBuffer: Buffer): Promise; - static upgradeGlb(glbBuffer: Buffer, options: any): Promise; -} - -// @internal -export class Ids { - static sanitize(identifier: string): string; -} - -// @internal -export class InstanceFeaturesUtils { - static createInstanceFeaturesInfoString(document: Document): string; -} - -// @internal -export class MeshFeaturesUtils { - static createMeshFeaturesInfoString(document: Document): string; -} - -// @internal -export class NumberTypeDescriptions { - static computeComponentType(value: number | bigint | number[] | bigint[] | number[][] | bigint[][]): string; -} - -// @internal -export interface Pipeline { - input: string; - output: string; - tilesetStages: TilesetStage[]; -} - -// @internal -export class PipelineError extends Error { - constructor(message: string); - // (undocumented) - toString: () => string; -} - -// @internal -export class PipelineExecutor { - static executePipeline(pipeline: Pipeline, overwrite: boolean): Promise; - static setTempBaseDirectory(directory: string | undefined): void; -} - -// @internal -export class Pipelines { - static createPipeline(pipelineJson: any): Pipeline; -} - -// @internal -export class PntsPointClouds { - static create(featureTable: PntsFeatureTable, featureTableBinary: Buffer, batchTable: BatchTable): Promise; - static hasOctEncodedNormals(featureTable: PntsFeatureTable): boolean; - static hasQuantizedPositions(featureTable: PntsFeatureTable): boolean; - static mayRequireAlpha(featureTable: PntsFeatureTable): boolean; -} - -// @internal -export type QuantizationInfo = { - quantizationBits: number; - minValues?: number[]; - range?: number; - octEncoded: boolean; -}; - -// @internal -export interface ReadablePointCloud { - getAttributeComponentType(name: string): string | undefined; - getAttributes(): string[]; - getAttributeType(name: string): string | undefined; - getAttributeValues(name: string): Iterable | undefined; - getGlobalPosition(): [number, number, number] | undefined; - getNormalizedLinearColors(): Iterable | undefined; - getNormalizedLinearGlobalColor(): [number, number, number, number] | undefined; - getNormals(): Iterable | undefined; - getPositions(): Iterable; -} - -// @internal -export interface Stage { - description?: string; - name: string; -} - -// @internal -export class StringBuilder { - constructor(); - // (undocumented) - addLine(...args: any[]): void; - // (undocumented) - decreaseIndent(): void; - // (undocumented) - increaseIndent(): void; - // (undocumented) - toString(): string; -} - -// @internal -export class StructuralMetadataPropertyTables { - static create(extStructuralMetadata: EXTStructuralMetadata, binaryPropertyTable: BinaryPropertyTable): StructuralMetadataPropertyTable; -} - -// @internal -export class StructuralMetadataUtils { - static createStructuralMetadataInfoString(document: Document): string; -} - -// @internal -export class TileContentProcessing { - static process(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean, tileContentProcessor: TileContentProcessor): Promise; -} - -// @internal -export type TileContentProcessor = (content: Buffer, type: string | undefined) => Promise; - -// @internal -export class TileContentProcessors { - static concat(...tileContentProcessors: TileContentProcessor[]): TileContentProcessor; -} - -// @internal -export class TileContentProcessorsGltfpack { - static create(options: GltfPackOptions): TileContentProcessor; -} - -// @internal -export class TileContentProcessorsGltfPipeline { - static create(options: any): TileContentProcessor; -} - -// @internal -export class TileContentProcessorsGltfTransform { - static create(...transforms: Transform[]): TileContentProcessor; -} - -// @internal -export class TileContentProcessorsTextures { - static encodeToKtx(etc1sOptions: KtxEtc1sOptions, uastcOptions: KtxUastcOptions): TileContentProcessor; -} - -// @internal -export class TileFormatsMigration { - static applyRtcCenter(document: Document, rtcCenter: number[]): void; - static convertB3dmToGlb(b3dmBuffer: Buffer): Promise; - static convertI3dmToGlb(i3dmBuffer: Buffer, externalGlbResolver: (uri: string) => Promise): Promise; - static convertPntsToGlb(pntsBuffer: Buffer): Promise; - // (undocumented) - static readonly DEBUG_LOG_FILE_CONTENT = false; - static makeSingleRoot(document: Document): void; -} - -// @internal -export class TileFormatsMigrationB3dm { - static convertB3dmToGlb(b3dmBuffer: Buffer): Promise; -} - -// @internal -export class TileFormatsMigrationI3dm { - static convertI3dmToGlb(i3dmBuffer: Buffer, externalGlbResolver: (uri: string) => Promise): Promise; -} - -// @internal -export class TileFormatsMigrationPnts { - static convertPntsToGlb(pntsBuffer: Buffer): Promise; -} - -// @internal -export class TilesetCombiner { - constructor(externalTilesetDetector: (contentData: ContentData) => Promise); - combine(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; -} - -// @internal -export class TilesetConverter { - static convert(input: string, inputTilesetJsonFileName: string | undefined, output: string, force: boolean): Promise; -} - -// @internal -export class TilesetDataProcessor extends TilesetProcessor { - processAllEntries(entryProcessor: TilesetEntryProcessor): Promise; -} - -// @internal -export type TilesetEntryProcessor = (sourceEntry: TilesetEntry, type: string | undefined) => Promise; - -// @internal -export class TilesetJsonCreator { - static createTilesetFromContents(baseDir: string, contentUris: string[]): Promise; -} - -// @internal -export class TilesetMerger { - constructor(); - merge(tilesetSourceNames: string[], tilesetTargetName: string, overwrite: boolean): Promise; -} - -// @internal -export class TilesetObjectUpgrader { - constructor(upgradeOptions: TilesetUpgradeOptions); - upgradeTilesetObject(tileset: Tileset): Promise; -} - -// @internal -export class TilesetOperations { - static combine(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; - static merge(tilesetSourceNames: string[], tilesetTargetName: string, overwrite: boolean): Promise; - static upgrade(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean, targetVersion: string, gltfUpgradeOptions: any): Promise; - static upgradeTileset(tileset: Tileset, targetVersion: string): Promise; -} - -// @internal -export class TilesetProcessing { - static getSourceValue(tilesetSource: TilesetSource, key: string): Buffer; - static parseSourceValue(tilesetSource: TilesetSource, key: string): T; - static resolveSchema(tilesetSource: TilesetSource, tileset: Tileset): Schema | undefined; -} - -// @internal -export abstract class TilesetProcessor { - begin(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; - end(): Promise; - fetchSourceEntry(key: string): Promise; - protected getContext(): TilesetProcessorContext; - protected getTargetKey(sourceKey: string): string | undefined; - isProcessed(key: string): boolean; - markAsProcessed(key: string): void; - protected processAllEntriesInternal(entryProcessor: TilesetEntryProcessor): Promise; - processEntry(sourceKey: string, entryProcessor: TilesetEntryProcessor): Promise; - protected putTargetKey(sourceKey: string, targetKey: string): void; - storeTargetEntries(...targetEntries: TilesetEntry[]): void; -} - -// @internal -export interface TilesetProcessorContext { - processedKeys: { - [key: string]: boolean; - }; - schema: Schema | undefined; - sourceTileset: Tileset; - targetKeys: { - [key: string]: string; - }; - targetTileset: Tileset; - tilesetSource: TilesetSource; - tilesetSourceJsonFileName: string; - tilesetTarget: TilesetTarget; - tilesetTargetJsonFileName: string; -} - -// @internal -export class TilesetProcessorContexts { - static close(context: TilesetProcessorContext): Promise; - static create(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; -} - -// @internal -export interface TilesetStage extends Stage { - contentStages?: ContentStage[]; - excludedContentTypes?: string[]; - includedContentTypes?: string[]; -} - -// @internal -export class TilesetStageExecutor { - static executeTilesetStage(tilesetStage: TilesetStage, currentInput: string, currentOutput: string, overwrite: boolean): Promise; -} - -// @internal -export class TilesetStages { - static create(name: string, description: string, contentStages: ContentStage[]): TilesetStage; - static createCombine(): TilesetStage; - static createGzip(includedContentTypes: string[] | undefined): TilesetStage; - static createTilesetStage(tilesetStageJson: any): TilesetStage; - static createUngzip(): ContentStage; - static createUpgrade(): TilesetStage; - static readonly TILESET_STAGE_COMBINE = "combine"; - static readonly TILESET_STAGE_GZIP = "gzip"; - static readonly TILESET_STAGE_UNGZIP = "ungzip"; - static readonly TILESET_STAGE_UPGRADE = "upgrade"; -} - -// @internal -export type TilesetUpgradeOptions = { - upgradeExternalTilesets: boolean; - upgradedAssetVersionNumber: string; - upgradeRefineCase: boolean; - upgradeContentUrlToUri: boolean; - upgradeEmptyChildrenToUndefined: true; - upgradeContentGltfExtensionDeclarations: boolean; - upgradeB3dmGltf1ToGltf2: boolean; - upgradeI3dmGltf1ToGltf2: boolean; - upgradePntsToGlb: boolean; - upgradeB3dmToGlb: boolean; - upgradeI3dmToGlb: boolean; -}; - -// @internal -export class TilesetUpgrader { - constructor(targetVersion: string, gltfUpgradeOptions: any); - upgrade(tilesetSourceName: string, tilesetTargetName: string, overwrite: boolean): Promise; - upgradeTileset(tileset: Tileset): Promise; -} - -// @internal -export class TileTableDataToMeshFeatures { - static convertBatchIdToMeshFeatures(document: Document, primitive: Primitive): MeshFeaturesFeatureId; -} - -// @internal -export class TileTableDataToStructuralMetadata { - static assignPerPointProperties(document: Document, primitive: Primitive, batchTable: BatchTable, batchTableBinary: Buffer, externalProperties: { - [key: string]: PropertyModel; - }, numRows: number): void; - static convertBatchTableToPropertyTable(document: Document, batchTable: BatchTable, batchTableBinary: Buffer, numRows: number): StructuralMetadataPropertyTable | undefined; -} - -// @internal -export class TypeDetection { - static computeCommonArrayLegth(value: any[][]): number | undefined; - static computeCommonComponentType(array: number[] | bigint[] | number[][] | bigint[][]): string; - static computeCommonType(array: any[]): string | undefined; - static containsOnlyArrays(value: any[]): boolean; -} - -// (No @packageDocumentation comment for this package) - -``` From 68ec3f0701a0b59a73ad70ed60dc876a077994bc Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Mon, 19 Feb 2024 23:00:38 +0100 Subject: [PATCH 12/13] Update build scripts in package.json --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5e9d7d62..cbddcbd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "3d-tiles-tools", - "version": "0.4.0", + "version": "0.4.1", "license": "Apache-2.0", "description": "3D Tiles tools", "author": { @@ -97,12 +97,12 @@ "prettier": "prettier --write \"**/*\"", "generate-third-party": "node generateThirdParty.js", "docs-prepare-directory": "mkdirp etc", - "docs-extract-api": "npm run docs-extract-api", + "docs-extract-api": "api-extractor run --config api-extractor.jsonc --local --verbose", "docs-generate-markdown": "api-documenter markdown -i build/api-extractor -o build/docs", "docs-generate": "npm run docs-prepare-directory && npm run docs-extract-api && npm run docs-generate-markdown", "docs": "npm run build && npm run docs-generate", - "package-clean": "del-cli ./build/**", - "package-prepare": "npm run eslint && npm run prettier-check && npm run build && npm run test && npm run coverage && npm run generate-third-party", + "package-clean": "del-cli ./build/** del-cli ./temp/**", + "package-prepare": "npm run eslint && npm run prettier-check && npm run build && npm run test && npm run coverage && npm run docs-generate && npm run generate-third-party", "package": "npm run package-clean && npm run package-prepare && npm pack" } } From ee7e7a0bb6b1e1187d59de670c3e3d7e8684993a Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Tue, 20 Feb 2024 16:36:36 +0100 Subject: [PATCH 13/13] Final cleanups for documentation markdown files --- .gitignore | 1 + CHANGES.md | 2 +- IMPLEMENTATION.md | 2 +- README.md | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 24d04448..7de25dff 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ package-lock.json /build /dist /data +/temp /output /specs/data/output /specs/data/migration/output_gltf diff --git a/CHANGES.md b/CHANGES.md index 14fd3a7a..6840d67c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,7 @@ Change Log ========== -### 0.4.1 - 2024-mm-dd +### 0.4.1 - 2024-02-20 - The packages that have been introduced in version `0.4.0` have been merged back into a single package. Details about the structure can be found in the [implementation notes](./IMPLEMENTATION.md). diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index 19f05308..ee7c4d28 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -42,7 +42,7 @@ Generating the documentation consists of two steps (which are subcommands of the - extracting the API definitions from the build output - generating the markdown from the API definitions. -The first step is performed by running `api-extractor` for each package individually. This happens from the top-level package JSON file, using the `--workspaces` parameter. The surface API information will be written into `./etc/.md`. These files capture the public API, and changes in the public API will cause a warning to be printed +The first step is performed by running `api-extractor`. The surface API information will be written into `./etc/3d-tiles-tools.md`. This file captures the public API, and changes in the public API will cause a warning to be printed > Warning: You have changed the public API signature for this project. diff --git a/README.md b/README.md index 0088e771..cf45e1f2 100644 --- a/README.md +++ b/README.md @@ -359,7 +359,7 @@ When the tools are not installed as a package from NPM, but supposed to be used After this, the tools can be executed using the same command line options as described above - for example: ``` -npx ts-node .\packages\cli\src\main.ts gzip -i ./specs/data/TilesetOfTilesets/ -o ./output/TilesetOfTilesets-gzipped/ +npx ts-node .\src\cli\main.ts gzip -i ./specs/data/TilesetOfTilesets/ -o ./output/TilesetOfTilesets-gzipped/ ``` See the [implementation notes](IMPLEMENTATION.md) for details about the project structure.