| @@ -1,12 +1,12 @@ | |||
| { | |||
| "name": "threepipe", | |||
| "version": "0.0.29", | |||
| "version": "0.0.30", | |||
| "lockfileVersion": 3, | |||
| "requires": true, | |||
| "packages": { | |||
| "": { | |||
| "name": "threepipe", | |||
| "version": "0.0.29", | |||
| "version": "0.0.30", | |||
| "license": "Apache-2.0", | |||
| "dependencies": { | |||
| "@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.153.1002/package.tgz", | |||
| @@ -64,9 +64,11 @@ export default { | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify('production'), | |||
| preventAssignment: true, | |||
| }), | |||
| postcss({ | |||
| modules: false, | |||
| @@ -1,4 +1,4 @@ | |||
| export {MaterialConfiguratorPlugin} from './MaterialConfiguratorPlugin' | |||
| export {GridItemListPlugin} from './GridItemListPlugin' | |||
| export {GridItemList} from './GridItemList' | |||
| export {GridItemList, type GridItem} from './GridItemList' | |||
| export {SwitchNodePlugin} from './SwitchNodePlugin' | |||
| @@ -58,6 +58,7 @@ export default defineConfig({ | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), | |||
| @@ -62,9 +62,11 @@ export default { | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify('production'), | |||
| preventAssignment: true, | |||
| }), | |||
| postcss({ | |||
| modules: false, | |||
| @@ -57,6 +57,7 @@ export default defineConfig({ | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), | |||
| @@ -57,6 +57,7 @@ export default defineConfig({ | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), | |||
| @@ -58,6 +58,7 @@ export default defineConfig({ | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| // replace({ | |||
| // 'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'), | |||
| @@ -63,9 +63,11 @@ export default { | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify('production'), | |||
| preventAssignment: true, | |||
| }), | |||
| postcss({ | |||
| modules: false, | |||
| @@ -62,9 +62,11 @@ export default { | |||
| replace({ | |||
| 'from \'three\'': 'from \'threepipe\'', | |||
| delimiters: ['', ''], | |||
| preventAssignment: true, | |||
| }), | |||
| replace({ | |||
| 'process.env.NODE_ENV': JSON.stringify('production'), | |||
| preventAssignment: true, | |||
| }), | |||
| postcss({ | |||
| modules: false, | |||
| @@ -3,6 +3,7 @@ export {AssetExporter} from './AssetExporter' | |||
| export {AssetManager} from './AssetManager' | |||
| export {Importer} from './Importer' | |||
| export {MaterialManager} from './MaterialManager' | |||
| export type {IAssetImporterEvent} from './AssetImporter' | |||
| export type {AssetManagerOptions, AddRawOptions, ImportAddOptions, AddAssetOptions} from './AssetManager' | |||
| export type {IAsset, IFile, IAssetID, IAssetList} from './IAsset' | |||
| export type {ImportResult, IImportResultUserData, ImportResultObject, IAssetImporter, IAssetImporterEventTypes, ImportAssetOptions, ImportFilesOptions, LoadFileOptions, ProcessRawOptions, RootSceneImportResult, ImportResultExtras} from './IAssetImporter' | |||
| @@ -21,14 +21,14 @@ export {iLightCommons} from './object/iLightCommons' | |||
| export {iGeometryCommons} from './geometry/iGeometryCommons' | |||
| export {iMaterialCommons} from './material/iMaterialCommons' | |||
| export {upgradeTexture} from './ITexture' | |||
| export {upgradeWebGLRenderer} from './IRenderer' | |||
| export {upgradeWebGLRenderer, setThreeRendererMode} from './IRenderer' | |||
| export {RootScene} from './object/RootScene' | |||
| export type {ICameraControls, TControlsCtor} from './camera/ICameraControls' | |||
| export type {ICamera, ICameraEvent, ICameraEventTypes, ICameraUserData, TCameraControlsMode, ICameraSetDirtyOptions} from './ICamera' | |||
| export type {IGeometry, IGeometryUserData, IGeometryEvent, IGeometryEventTypes, IGeometrySetDirtyOptions} from './IGeometry' | |||
| export type {IMaterial, IMaterialEvent, IMaterialEventTypes, IMaterialParameters, IMaterialUserData, IMaterialSetDirtyOptions, IMaterialTemplate, IMaterialGenerator} from './IMaterial' | |||
| 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 {ITexture, ITextureUserData, ITextureEvent, ITextureEventTypes} from './ITexture' | |||
| export type {ILight, ILightEvent, ILightEventTypes} from './light/ILight' | |||
| @@ -86,7 +86,7 @@ export class GLTFAnimationPlugin extends AViewerPluginSync<'checkpointEnd'|'chec | |||
| @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 | |||
| @@ -6,21 +6,21 @@ export {ACameraControlsPlugin} from './base/ACameraControlsPlugin' | |||
| export {AAssetManagerProcessStatePlugin} from './base/AAssetManagerProcessStatePlugin' | |||
| // pipeline | |||
| export {ProgressivePlugin} from './pipeline/ProgressivePlugin' | |||
| export {ProgressivePlugin, ProgressiveBlendPass} from './pipeline/ProgressivePlugin' | |||
| export {GBufferPlugin, GBufferMaterial, DepthNormalMaterial} from './pipeline/GBufferPlugin' | |||
| export {DepthBufferPlugin} from './pipeline/DepthBufferPlugin' | |||
| 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 {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 {NormalBufferPluginEventTypes, NormalBufferPluginPass, NormalBufferPluginTarget} from './pipeline/NormalBufferPlugin' | |||
| export {SSAAPlugin, type SSAAPluginEventTypes} from './pipeline/SSAAPlugin' | |||
| export {SSAOPlugin, SSAOPluginPass, type SSAOPluginEventTypes, type SSAOPluginTarget} from './pipeline/SSAOPlugin' | |||
| // 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 {SceneUiConfigPlugin} from './ui/SceneUiConfigPlugin' | |||
| @@ -42,11 +42,11 @@ export {USDZLoadPlugin} from './import/USDZLoadPlugin' | |||
| export {PLYLoadPlugin} from './import/PLYLoadPlugin' | |||
| export {STLLoadPlugin} from './import/STLLoadPlugin' | |||
| 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 | |||
| export {AssetExporterPlugin} from './export/AssetExporterPlugin' | |||
| export {AssetExporterPlugin, type ExportAssetOptions} from './export/AssetExporterPlugin' | |||
| export {CanvasSnapshotPlugin, CanvasSnipperPlugin} from './export/CanvasSnapshotPlugin' | |||
| export {FileTransferPlugin} from './export/FileTransferPlugin' | |||
| @@ -59,7 +59,7 @@ export {FilmicGrainPlugin} from './postprocessing/FilmicGrainPlugin' | |||
| // animation | |||
| export {GLTFAnimationPlugin} from './animation/GLTFAnimationPlugin' | |||
| export {PopmotionPlugin} from './animation/PopmotionPlugin' | |||
| export {PopmotionPlugin, type AnimationResult} from './animation/PopmotionPlugin' | |||
| export {CameraViewPlugin, type CameraViewPluginOptions} from './animation/CameraViewPlugin' | |||
| // material | |||
| @@ -70,7 +70,7 @@ export {ParallaxMappingPlugin} from './material/ParallaxMappingPlugin' | |||
| export {FragmentClippingExtensionPlugin, FragmentClippingMode} from './material/FragmentClippingExtensionPlugin' | |||
| // rendering | |||
| export {VirtualCamerasPlugin} from './rendering/VirtualCamerasPlugin' | |||
| export {VirtualCamerasPlugin, type VirtualCamera} from './rendering/VirtualCamerasPlugin' | |||
| // configurator | |||
| export {MaterialConfiguratorBasePlugin, type MaterialVariations} from './configurator/MaterialConfiguratorBasePlugin' | |||
| @@ -78,9 +78,9 @@ export {SwitchNodeBasePlugin, type ObjectSwitchNode} from './configurator/Switch | |||
| // extras | |||
| export {HDRiGroundPlugin} from './extras/HDRiGroundPlugin' | |||
| export {Object3DWidgetsPlugin} from './extras/Object3DWidgetsPlugin' | |||
| export {Object3DWidgetsPlugin, type IObject3DHelper} from './extras/Object3DWidgetsPlugin' | |||
| export {Object3DGeneratorPlugin} from './extras/Object3DGeneratorPlugin' | |||
| export {ContactShadowGroundPlugin} from './extras/ContactShadowGroundPlugin' | |||
| export {SimplifyModifierPlugin} from './extras/SimplifyModifierPlugin' | |||
| export {SimplifyModifierPlugin, type SimplifyOptions} from './extras/SimplifyModifierPlugin' | |||
| export {MeshOptSimplifyModifierPlugin} from './extras/MeshOptSimplifyModifierPlugin' | |||
| export {GLTFKHRMaterialVariantsPlugin} from './extras/GLTFKHRMaterialVariantsPlugin' | |||
| @@ -180,7 +180,7 @@ export class FrameFadePlugin | |||
| } | |||
| class FrameFadeBlendPass extends AddBlendTexturePass implements IPipelinePass { | |||
| export class FrameFadeBlendPass extends AddBlendTexturePass implements IPipelinePass { | |||
| before = ['progressive', 'taa'] | |||
| after = ['render'] | |||
| required = ['render', 'progressive'] | |||
| @@ -49,7 +49,7 @@ import { | |||
| } from '../../core' | |||
| export type GBufferPluginEventTypes = '' | |||
| type GBufferPluginTarget = WebGLMultipleRenderTargets | WebGLRenderTarget | |||
| export type GBufferPluginTarget = WebGLMultipleRenderTargets | WebGLRenderTarget | |||
| // export type GBufferPluginTarget = WebGLRenderTarget | |||
| export type GBufferPluginPass = GBufferRenderPass<'gbuffer', GBufferPluginTarget> | |||
| @@ -175,7 +175,7 @@ export class ProgressivePlugin | |||
| } | |||
| class ProgressiveBlendPass extends AddBlendTexturePass implements IPipelinePass { | |||
| export class ProgressiveBlendPass extends AddBlendTexturePass implements IPipelinePass { | |||
| before = ['screen'] | |||
| after = ['render'] | |||
| required = ['render'] | |||
| @@ -792,7 +792,7 @@ export function jsonToBlob(json: any): BlobExt { | |||
| /** | |||
| * 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 meta | |||
| * @param name | |||