Преглед на файлове

Fix some exports and warnings

master
Palash Bansal преди 2 години
родител
ревизия
517db2845a
No account linked to committer's email address

+ 2
- 2
package-lock.json Целия файл

{ {
"name": "threepipe", "name": "threepipe",
"version": "0.0.29",
"version": "0.0.30",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "threepipe", "name": "threepipe",
"version": "0.0.29",
"version": "0.0.30",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.153.1002/package.tgz", "@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.153.1002/package.tgz",

+ 2
- 0
plugins/blueprintjs/rollup.config.mjs Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify('production'), 'process.env.NODE_ENV': JSON.stringify('production'),
preventAssignment: true,
}), }),
postcss({ postcss({
modules: false, modules: false,

+ 1
- 1
plugins/configurator/src/index.ts Целия файл

export {MaterialConfiguratorPlugin} from './MaterialConfiguratorPlugin' export {MaterialConfiguratorPlugin} from './MaterialConfiguratorPlugin'
export {GridItemListPlugin} from './GridItemListPlugin' export {GridItemListPlugin} from './GridItemListPlugin'
export {GridItemList} from './GridItemList'
export {GridItemList, type GridItem} from './GridItemList'
export {SwitchNodePlugin} from './SwitchNodePlugin' export {SwitchNodePlugin} from './SwitchNodePlugin'

+ 1
- 0
plugins/configurator/vite.config.js Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'),

+ 2
- 0
plugins/extra-importers/rollup.config.mjs Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify('production'), 'process.env.NODE_ENV': JSON.stringify('production'),
preventAssignment: true,
}), }),
postcss({ postcss({
modules: false, modules: false,

+ 1
- 0
plugins/gaussian-splatting/vite.config.js Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'),

+ 1
- 0
plugins/network/vite.config.js Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'),

+ 1
- 0
plugins/svg-renderer/vite.config.js Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
// replace({ // replace({
// 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), // 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'),

+ 2
- 0
plugins/tweakpane-editor/rollup.config.mjs Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify('production'), 'process.env.NODE_ENV': JSON.stringify('production'),
preventAssignment: true,
}), }),
postcss({ postcss({
modules: false, modules: false,

+ 2
- 0
plugins/tweakpane/rollup.config.mjs Целия файл

replace({ replace({
'from \'three\'': 'from \'threepipe\'', 'from \'three\'': 'from \'threepipe\'',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
}), }),
replace({ replace({
'process.env.NODE_ENV': JSON.stringify('production'), 'process.env.NODE_ENV': JSON.stringify('production'),
preventAssignment: true,
}), }),
postcss({ postcss({
modules: false, modules: false,

+ 1
- 0
src/assetmanager/index.ts Целия файл

export {AssetManager} from './AssetManager' export {AssetManager} from './AssetManager'
export {Importer} from './Importer' export {Importer} from './Importer'
export {MaterialManager} from './MaterialManager' export {MaterialManager} from './MaterialManager'
export type {IAssetImporterEvent} from './AssetImporter'
export type {AssetManagerOptions, AddRawOptions, ImportAddOptions, AddAssetOptions} from './AssetManager' export type {AssetManagerOptions, AddRawOptions, ImportAddOptions, AddAssetOptions} from './AssetManager'
export type {IAsset, IFile, IAssetID, IAssetList} from './IAsset' export type {IAsset, IFile, IAssetID, IAssetList} from './IAsset'
export type {ImportResult, IImportResultUserData, ImportResultObject, IAssetImporter, IAssetImporterEventTypes, ImportAssetOptions, ImportFilesOptions, LoadFileOptions, ProcessRawOptions, RootSceneImportResult, ImportResultExtras} from './IAssetImporter' export type {ImportResult, IImportResultUserData, ImportResultObject, IAssetImporter, IAssetImporterEventTypes, ImportAssetOptions, ImportFilesOptions, LoadFileOptions, ProcessRawOptions, RootSceneImportResult, ImportResultExtras} from './IAssetImporter'

+ 2
- 2
src/core/index.ts Целия файл

export {iGeometryCommons} from './geometry/iGeometryCommons' export {iGeometryCommons} from './geometry/iGeometryCommons'
export {iMaterialCommons} from './material/iMaterialCommons' export {iMaterialCommons} from './material/iMaterialCommons'
export {upgradeTexture} from './ITexture' export {upgradeTexture} from './ITexture'
export {upgradeWebGLRenderer} from './IRenderer'
export {upgradeWebGLRenderer, setThreeRendererMode} from './IRenderer'
export {RootScene} from './object/RootScene' export {RootScene} from './object/RootScene'
export type {ICameraControls, TControlsCtor} from './camera/ICameraControls' export type {ICameraControls, TControlsCtor} from './camera/ICameraControls'
export type {ICamera, ICameraEvent, ICameraEventTypes, ICameraUserData, TCameraControlsMode, ICameraSetDirtyOptions} from './ICamera' export type {ICamera, ICameraEvent, ICameraEventTypes, ICameraUserData, TCameraControlsMode, ICameraSetDirtyOptions} from './ICamera'
export type {IGeometry, IGeometryUserData, IGeometryEvent, IGeometryEventTypes, IGeometrySetDirtyOptions} from './IGeometry' export type {IGeometry, IGeometryUserData, IGeometryEvent, IGeometryEventTypes, IGeometrySetDirtyOptions} from './IGeometry'
export type {IMaterial, IMaterialEvent, IMaterialEventTypes, IMaterialParameters, IMaterialUserData, IMaterialSetDirtyOptions, IMaterialTemplate, IMaterialGenerator} from './IMaterial' export type {IMaterial, IMaterialEvent, IMaterialEventTypes, IMaterialParameters, IMaterialUserData, IMaterialSetDirtyOptions, IMaterialTemplate, IMaterialGenerator} from './IMaterial'
export type {IObject3D, IObject3DEvent, IObjectSetDirtyOptions, IObjectProcessor, IObject3DEventTypes, IObject3DUserData} from './IObject' export type {IObject3D, IObject3DEvent, IObjectSetDirtyOptions, IObjectProcessor, IObject3DEventTypes, IObject3DUserData} from './IObject'
export type {IRenderManager, IRenderManagerOptions, IWebGLRenderer, IRenderManagerEventTypes, IAnimationLoopEvent, TThreeRendererMode, TThreeRendererModeUserData, IRenderManagerUpdateEvent, IRenderManagerEvent} from './IRenderer'
export type {IRenderManager, IRenderManagerOptions, IWebGLRenderer, IRenderManagerEventTypes, IAnimationLoopEvent, TThreeRendererMode, TThreeRendererModeUserData, IRenderManagerUpdateEvent, IRenderManagerEvent, RendererBlitOptions} from './IRenderer'
export type {IScene, ISceneEvent, ISceneEventTypes, ISceneSetDirtyOptions, AddObjectOptions, ISceneUserData, IWidget} from './IScene' export type {IScene, ISceneEvent, ISceneEventTypes, ISceneSetDirtyOptions, AddObjectOptions, ISceneUserData, IWidget} from './IScene'
export type {ITexture, ITextureUserData, ITextureEvent, ITextureEventTypes} from './ITexture' export type {ITexture, ITextureUserData, ITextureEvent, ITextureEventTypes} from './ITexture'
export type {ILight, ILightEvent, ILightEventTypes} from './light/ILight' export type {ILight, ILightEvent, ILightEventTypes} from './light/ILight'

+ 1
- 1
src/plugins/animation/GLTFAnimationPlugin.ts Целия файл

@uiToggle() @serialize() animateOnPageScroll = false @uiToggle() @serialize() animateOnPageScroll = false


/** /**
* Damping for the scroll animation, when {@link animateOnPage Scroll} is true.
* Damping for the scroll animation, when {@link animateOnPageScroll} is true.
*/ */
@uiSlider('Page Scroll Damping', [0, 1]) @serialize() pageScrollAnimationDamping = 0.1 @uiSlider('Page Scroll Damping', [0, 1]) @serialize() pageScrollAnimationDamping = 0.1



+ 11
- 11
src/plugins/index.ts Целия файл

export {AAssetManagerProcessStatePlugin} from './base/AAssetManagerProcessStatePlugin' export {AAssetManagerProcessStatePlugin} from './base/AAssetManagerProcessStatePlugin'


// pipeline // pipeline
export {ProgressivePlugin} from './pipeline/ProgressivePlugin'
export {ProgressivePlugin, ProgressiveBlendPass} from './pipeline/ProgressivePlugin'
export {GBufferPlugin, GBufferMaterial, DepthNormalMaterial} from './pipeline/GBufferPlugin' export {GBufferPlugin, GBufferMaterial, DepthNormalMaterial} from './pipeline/GBufferPlugin'
export {DepthBufferPlugin} from './pipeline/DepthBufferPlugin' export {DepthBufferPlugin} from './pipeline/DepthBufferPlugin'
export {NormalBufferPlugin} from './pipeline/NormalBufferPlugin' export {NormalBufferPlugin} from './pipeline/NormalBufferPlugin'
export {FrameFadePlugin, type FrameFadePluginEventTypes} from './pipeline/FrameFadePlugin'
export {FrameFadePlugin, FrameFadeBlendPass, type FrameFadePluginEventTypes} from './pipeline/FrameFadePlugin'
export type {ProgressivePluginEventTypes, ProgressivePluginTarget} from './pipeline/ProgressivePlugin' export type {ProgressivePluginEventTypes, ProgressivePluginTarget} from './pipeline/ProgressivePlugin'
export type {GBufferPluginEventTypes, GBufferPluginPass, GBufferUpdater, GBufferUpdaterContext} from './pipeline/GBufferPlugin'
export type {GBufferPluginEventTypes, GBufferPluginPass, GBufferUpdater, GBufferUpdaterContext, GBufferPluginTarget} from './pipeline/GBufferPlugin'
export type {DepthBufferPluginEventTypes, DepthBufferPluginPass, DepthBufferPluginTarget} from './pipeline/DepthBufferPlugin' export type {DepthBufferPluginEventTypes, DepthBufferPluginPass, DepthBufferPluginTarget} from './pipeline/DepthBufferPlugin'
export type {NormalBufferPluginEventTypes, NormalBufferPluginPass, NormalBufferPluginTarget} from './pipeline/NormalBufferPlugin' export type {NormalBufferPluginEventTypes, NormalBufferPluginPass, NormalBufferPluginTarget} from './pipeline/NormalBufferPlugin'
export {SSAAPlugin, type SSAAPluginEventTypes} from './pipeline/SSAAPlugin' export {SSAAPlugin, type SSAAPluginEventTypes} from './pipeline/SSAAPlugin'
export {SSAOPlugin, SSAOPluginPass, type SSAOPluginEventTypes, type SSAOPluginTarget} from './pipeline/SSAOPlugin' export {SSAOPlugin, SSAOPluginPass, type SSAOPluginEventTypes, type SSAOPluginTarget} from './pipeline/SSAOPlugin'


// ui // ui
export {RenderTargetPreviewPlugin} from './ui/RenderTargetPreviewPlugin'
export {GeometryUVPreviewPlugin} from './ui/GeometryUVPreviewPlugin'
export {RenderTargetPreviewPlugin, type RenderTargetBlock} from './ui/RenderTargetPreviewPlugin'
export {GeometryUVPreviewPlugin, type TargetBlock} from './ui/GeometryUVPreviewPlugin'
export {ViewerUiConfigPlugin} from './ui/ViewerUiConfigPlugin' export {ViewerUiConfigPlugin} from './ui/ViewerUiConfigPlugin'
export {SceneUiConfigPlugin} from './ui/SceneUiConfigPlugin' export {SceneUiConfigPlugin} from './ui/SceneUiConfigPlugin'


export {PLYLoadPlugin} from './import/PLYLoadPlugin' export {PLYLoadPlugin} from './import/PLYLoadPlugin'
export {STLLoadPlugin} from './import/STLLoadPlugin' export {STLLoadPlugin} from './import/STLLoadPlugin'
export {KTXLoadPlugin} from './import/KTXLoadPlugin' export {KTXLoadPlugin} from './import/KTXLoadPlugin'
export {KTX2LoadPlugin} from './import/KTX2LoadPlugin'
export {KTX2LoadPlugin, KTX2Loader2, KHR_TEXTURE_BASISU} from './import/KTX2LoadPlugin'
export {GLTFMeshOptDecodePlugin} from './import/GLTFMeshOptDecodePlugin' export {GLTFMeshOptDecodePlugin} from './import/GLTFMeshOptDecodePlugin'


// export // export
export {AssetExporterPlugin} from './export/AssetExporterPlugin'
export {AssetExporterPlugin, type ExportAssetOptions} from './export/AssetExporterPlugin'
export {CanvasSnapshotPlugin, CanvasSnipperPlugin} from './export/CanvasSnapshotPlugin' export {CanvasSnapshotPlugin, CanvasSnipperPlugin} from './export/CanvasSnapshotPlugin'
export {FileTransferPlugin} from './export/FileTransferPlugin' export {FileTransferPlugin} from './export/FileTransferPlugin'




// animation // animation
export {GLTFAnimationPlugin} from './animation/GLTFAnimationPlugin' export {GLTFAnimationPlugin} from './animation/GLTFAnimationPlugin'
export {PopmotionPlugin} from './animation/PopmotionPlugin'
export {PopmotionPlugin, type AnimationResult} from './animation/PopmotionPlugin'
export {CameraViewPlugin, type CameraViewPluginOptions} from './animation/CameraViewPlugin' export {CameraViewPlugin, type CameraViewPluginOptions} from './animation/CameraViewPlugin'


// material // material
export {FragmentClippingExtensionPlugin, FragmentClippingMode} from './material/FragmentClippingExtensionPlugin' export {FragmentClippingExtensionPlugin, FragmentClippingMode} from './material/FragmentClippingExtensionPlugin'


// rendering // rendering
export {VirtualCamerasPlugin} from './rendering/VirtualCamerasPlugin'
export {VirtualCamerasPlugin, type VirtualCamera} from './rendering/VirtualCamerasPlugin'


// configurator // configurator
export {MaterialConfiguratorBasePlugin, type MaterialVariations} from './configurator/MaterialConfiguratorBasePlugin' export {MaterialConfiguratorBasePlugin, type MaterialVariations} from './configurator/MaterialConfiguratorBasePlugin'


// extras // extras
export {HDRiGroundPlugin} from './extras/HDRiGroundPlugin' export {HDRiGroundPlugin} from './extras/HDRiGroundPlugin'
export {Object3DWidgetsPlugin} from './extras/Object3DWidgetsPlugin'
export {Object3DWidgetsPlugin, type IObject3DHelper} from './extras/Object3DWidgetsPlugin'
export {Object3DGeneratorPlugin} from './extras/Object3DGeneratorPlugin' export {Object3DGeneratorPlugin} from './extras/Object3DGeneratorPlugin'
export {ContactShadowGroundPlugin} from './extras/ContactShadowGroundPlugin' export {ContactShadowGroundPlugin} from './extras/ContactShadowGroundPlugin'
export {SimplifyModifierPlugin} from './extras/SimplifyModifierPlugin'
export {SimplifyModifierPlugin, type SimplifyOptions} from './extras/SimplifyModifierPlugin'
export {MeshOptSimplifyModifierPlugin} from './extras/MeshOptSimplifyModifierPlugin' export {MeshOptSimplifyModifierPlugin} from './extras/MeshOptSimplifyModifierPlugin'
export {GLTFKHRMaterialVariantsPlugin} from './extras/GLTFKHRMaterialVariantsPlugin' export {GLTFKHRMaterialVariantsPlugin} from './extras/GLTFKHRMaterialVariantsPlugin'

+ 1
- 1
src/plugins/pipeline/FrameFadePlugin.ts Целия файл



} }


class FrameFadeBlendPass extends AddBlendTexturePass implements IPipelinePass {
export class FrameFadeBlendPass extends AddBlendTexturePass implements IPipelinePass {
before = ['progressive', 'taa'] before = ['progressive', 'taa']
after = ['render'] after = ['render']
required = ['render', 'progressive'] required = ['render', 'progressive']

+ 1
- 1
src/plugins/pipeline/GBufferPlugin.ts Целия файл

} from '../../core' } from '../../core'


export type GBufferPluginEventTypes = '' export type GBufferPluginEventTypes = ''
type GBufferPluginTarget = WebGLMultipleRenderTargets | WebGLRenderTarget
export type GBufferPluginTarget = WebGLMultipleRenderTargets | WebGLRenderTarget
// export type GBufferPluginTarget = WebGLRenderTarget // export type GBufferPluginTarget = WebGLRenderTarget
export type GBufferPluginPass = GBufferRenderPass<'gbuffer', GBufferPluginTarget> export type GBufferPluginPass = GBufferRenderPass<'gbuffer', GBufferPluginTarget>



+ 1
- 1
src/plugins/pipeline/ProgressivePlugin.ts Целия файл



} }


class ProgressiveBlendPass extends AddBlendTexturePass implements IPipelinePass {
export class ProgressiveBlendPass extends AddBlendTexturePass implements IPipelinePass {
before = ['screen'] before = ['screen']
after = ['render'] after = ['render']
required = ['render'] required = ['render']

+ 1
- 1
src/utils/serialization.ts Целия файл





/** /**
* Used in {@link LUTCubeTextureWrapper} and {@link KTX2LoadPlugin} and imported in {@link loadConfigResources}
* Used in {@link LUTCubeTextureWrapper} and {@link KTX2LoadPlugin} and imported in {@link ThreeViewer.loadConfigResources}
* @param texture * @param texture
* @param meta * @param meta
* @param name * @param name

Loading…
Отказ
Запис