@oeave/bakery3 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/bake/index.d.ts +3 -3
- package/dist/bake/index.js +4 -4
- package/dist/{bake-DaOlenyx.d.ts → bake-DZ-CJR6f.d.ts} +8 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +3 -3
- package/dist/{chunk-V3QINEEG.js → chunk-62M6XXNX.js} +58 -3
- package/dist/chunk-62M6XXNX.js.map +1 -0
- package/dist/{chunk-ARMTTZXZ.js → chunk-6FYI6AJM.js} +8 -8
- package/dist/chunk-6FYI6AJM.js.map +1 -0
- package/dist/{chunk-W6WQ5UP7.js → chunk-APWUCEEB.js} +32 -5
- package/dist/chunk-APWUCEEB.js.map +1 -0
- package/dist/{chunk-6YVQANMW.js → chunk-HNMSWQU7.js} +262 -16
- package/dist/chunk-HNMSWQU7.js.map +1 -0
- package/dist/{chunk-HQTUFVMM.js → chunk-JFYUDERE.js} +3 -3
- package/dist/chunk-JFYUDERE.js.map +1 -0
- package/dist/{chunk-TGFNQBKC.js → chunk-KNUAOILG.js} +5 -5
- package/dist/chunk-KNUAOILG.js.map +1 -0
- package/dist/chunk-KZLVTSBI.js +191 -0
- package/dist/chunk-KZLVTSBI.js.map +1 -0
- package/dist/{chunk-MD2U6S4N.js → chunk-LAKXC4WR.js} +218 -142
- package/dist/chunk-LAKXC4WR.js.map +1 -0
- package/dist/{chunk-25ZXSVQ3.js → chunk-NXBAZGNB.js} +3 -3
- package/dist/{chunk-25ZXSVQ3.js.map → chunk-NXBAZGNB.js.map} +1 -1
- package/dist/{chunk-54WJDN5R.js → chunk-QRCT5UGZ.js} +4 -4
- package/dist/{chunk-54WJDN5R.js.map → chunk-QRCT5UGZ.js.map} +1 -1
- package/dist/{chunk-APBOWWSV.js → chunk-UWBP7B54.js} +3 -3
- package/dist/chunk-UWBP7B54.js.map +1 -0
- package/dist/{chunk-WBIAFIHV.js → chunk-XK35ANPJ.js} +3 -3
- package/dist/{chunk-WBIAFIHV.js.map → chunk-XK35ANPJ.js.map} +1 -1
- package/dist/{chunk-CX4WTVGH.js → chunk-Z7IYVH22.js} +386 -97
- package/dist/chunk-Z7IYVH22.js.map +1 -0
- package/dist/devtools/index.d.ts +3 -3
- package/dist/devtools/index.js +9 -9
- package/dist/index.d.ts +39 -8
- package/dist/index.js +10 -10
- package/dist/node/index.cjs +266 -141
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +152 -87
- package/dist/node/index.d.ts +27 -6
- package/dist/node/index.js +52 -3
- package/dist/node/index.js.map +1 -1
- package/dist/{prepare-C5qVvaw4.d.ts → prepare-BtjY4G3q.d.ts} +1 -1
- package/dist/presets/index.d.ts +37 -1
- package/dist/presets/index.js +4 -4
- package/dist/presets/index.js.map +1 -1
- package/dist/r3f/index.d.ts +4 -4
- package/dist/r3f/index.js +12 -12
- package/dist/{room-S5TLCK4F.js → room-FS26KAPQ.js} +6 -6
- package/dist/{room-S5TLCK4F.js.map → room-FS26KAPQ.js.map} +1 -1
- package/dist/{rooms.gen-vhj6sFW5.d.ts → rooms.gen-DItzBR9k.d.ts} +112 -84
- package/dist/session-VCIQEO26.js +9 -0
- package/dist/{session-YCQS4MRH.js.map → session-VCIQEO26.js.map} +1 -1
- package/dist/{testRun-BIPXaVPb.d.ts → testRun-20OARnQr.d.ts} +12 -3
- package/package.json +1 -1
- package/dist/chunk-6YVQANMW.js.map +0 -1
- package/dist/chunk-AF5BIELI.js +0 -70
- package/dist/chunk-AF5BIELI.js.map +0 -1
- package/dist/chunk-APBOWWSV.js.map +0 -1
- package/dist/chunk-ARMTTZXZ.js.map +0 -1
- package/dist/chunk-CX4WTVGH.js.map +0 -1
- package/dist/chunk-HQTUFVMM.js.map +0 -1
- package/dist/chunk-MD2U6S4N.js.map +0 -1
- package/dist/chunk-TGFNQBKC.js.map +0 -1
- package/dist/chunk-V3QINEEG.js.map +0 -1
- package/dist/chunk-W6WQ5UP7.js.map +0 -1
- package/dist/session-YCQS4MRH.js +0 -9
package/dist/devtools/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Object3D, Scene, Camera } from 'three';
|
|
2
|
-
import { a as BakeQuality, B as BakeTextureSize, e as BakeSpec, j as BakeBundle, Q as QualityPreset } from '../bake-
|
|
2
|
+
import { a as BakeQuality, B as BakeTextureSize, e as BakeSpec, j as BakeBundle, Q as QualityPreset } from '../bake-DZ-CJR6f.js';
|
|
3
3
|
import { CapturedScene, Bakery3, RenderOptions, RenderJob, CaptureOptions } from '../index.js';
|
|
4
4
|
import { T as Timeline } from '../timeline-ChwgD7bT.js';
|
|
5
5
|
import { BakeSession } from '../bake/index.js';
|
|
6
6
|
import '../animation-B1h0Ryvj.js';
|
|
7
|
-
import '../testRun-
|
|
8
|
-
import '../prepare-
|
|
7
|
+
import '../testRun-20OARnQr.js';
|
|
8
|
+
import '../prepare-BtjY4G3q.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The timeline panel: a floating strip, not an editor.
|
package/dist/devtools/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { mountBakery3Devtools, mountDevPanel, mountTimelinePanel } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { mountBakery3Devtools, mountDevPanel, mountTimelinePanel } from '../chunk-QRCT5UGZ.js';
|
|
2
|
+
import '../chunk-Z7IYVH22.js';
|
|
3
|
+
import '../chunk-62M6XXNX.js';
|
|
4
|
+
import '../chunk-UWBP7B54.js';
|
|
5
5
|
import '../chunk-S4AJTLLN.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-KZLVTSBI.js';
|
|
7
|
+
import '../chunk-KNUAOILG.js';
|
|
8
|
+
import '../chunk-JFYUDERE.js';
|
|
9
9
|
import '../chunk-4E5VV4QY.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-APWUCEEB.js';
|
|
11
11
|
import '../chunk-6NYR73Y7.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-LAKXC4WR.js';
|
|
13
13
|
import '../chunk-3G5QL4F4.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Scene, Camera, Texture, Object3D } from 'three';
|
|
2
|
-
import { E as EnvironmentSpec, S as SceneManifest, V as Vec3, d as CompatibilityReport, j as BakeBundle, M as MaterialShaderSpec, k as ShaderSlot, h as CompatibilityIssue, Q as QualityPreset, O as OutputSpec, R as RenderSpec } from './bake-
|
|
3
|
-
export { a as BakeQuality, i as BakeSettings, l as BakeSkip, e as BakeSpec, B as BakeTextureSize, m as BakeUv, n as BakedObject, F as FrameSequenceIndex, o as OutputFormat, p as ShaderGraph, q as ShaderGraphNode } from './bake-
|
|
2
|
+
import { E as EnvironmentSpec, S as SceneManifest, V as Vec3, d as CompatibilityReport, j as BakeBundle, M as MaterialShaderSpec, k as ShaderSlot, h as CompatibilityIssue, Q as QualityPreset, O as OutputSpec, R as RenderSpec } from './bake-DZ-CJR6f.js';
|
|
3
|
+
export { a as BakeQuality, i as BakeSettings, l as BakeSkip, e as BakeSpec, B as BakeTextureSize, m as BakeUv, n as BakedObject, F as FrameSequenceIndex, o as OutputFormat, p as ShaderGraph, q as ShaderGraphNode } from './bake-DZ-CJR6f.js';
|
|
4
4
|
export { a as AnimationChannel, A as AnimationSpec, b as AnimationTarget } from './animation-B1h0Ryvj.js';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
5
|
+
import { y as AssetDescriptor, z as RenderState, D as RenderError, d as Bakery3Client, e as RenderRecord, v as RenderResult, c as Bakery3Error, C as CostEstimate, B as BatchProgress, E as BakeRecord, G as BakeResult, j as RenderSet, V as VariantsQuote, T as TestRunOptions, f as BatchOpenRequest, b as Batch, H as ClientOptions } from './testRun-20OARnQr.js';
|
|
6
|
+
export { I as Bakery3ErrorCode, J as BatchAction, k as BatchAddRequest, l as BatchAddResponse, K as BatchCost, L as BatchCounts, m as BatchExportLine, n as BatchItemOutcome, o as BatchItemRecord, p as BatchItemRequest, q as BatchItemsPage, r as BatchPageRefused, a as BatchRecord, M as BatchState, N as BudgetedKind, O as ClientAuth, F as FlushOptions, P as MintedToken, R as Recorded, x as RenderBudgetExceeded, Q as RenderBudgetInit, s as RenderSetFailure, t as RenderSetImage, S as RenderSetRefusal, U as RenderSetRefused, i as RetryPolicy, w as TokenProvider, u as WaitOptions } from './testRun-20OARnQr.js';
|
|
7
7
|
import { d as TrackTarget, T as Timeline, a as TimelineOptions } from './timeline-ChwgD7bT.js';
|
|
8
8
|
export { A as AuthoredValue, E as Easing, K as Keyframe, O as OrbitOptions, P as PushSpec, S as SegmentOptions, e as TimelineEvent, f as TimelineJSON, b as Track, c as createTimeline } from './timeline-ChwgD7bT.js';
|
|
9
|
-
import { P as PrepareBakeSettings } from './prepare-
|
|
10
|
-
export { B as BakeSimplifyInput } from './prepare-
|
|
9
|
+
import { P as PrepareBakeSettings } from './prepare-BtjY4G3q.js';
|
|
10
|
+
export { B as BakeSimplifyInput } from './prepare-BtjY4G3q.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* What leaves the browser: a scene as one GLB plus a manifest.
|
|
@@ -485,7 +485,7 @@ declare class BakeJob extends PolledJob<BakeRecord, BakeOutput, BakeJobEvents> {
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
/** The published version. Must equal the version in package.json. */
|
|
488
|
-
declare const SDK_VERSION = "0.
|
|
488
|
+
declare const SDK_VERSION = "0.2.0";
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
491
|
* TSL to a renderer-neutral shader graph.
|
|
@@ -550,6 +550,37 @@ declare function isNodeMaterial(material: unknown): material is AnyNodeMaterial;
|
|
|
550
550
|
*/
|
|
551
551
|
declare function extractMaterialShader(material: AnyNodeMaterial): ExtractedShader;
|
|
552
552
|
|
|
553
|
+
/**
|
|
554
|
+
* The active camera, in full.
|
|
555
|
+
*
|
|
556
|
+
* It is written out as data rather than referenced into the GLB by name
|
|
557
|
+
* because the live camera is often not in the graph the exporter walks: R3F
|
|
558
|
+
* holds the default camera outside the scene, drei's controls swap it, and a
|
|
559
|
+
* configurator often animates a camera that was never added as a child of
|
|
560
|
+
* anything.
|
|
561
|
+
*/
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Depth of field, marked on a perspective camera as
|
|
565
|
+
* `camera.userData.bakery3 = { focus: { fStop: 2.8, target: [0, 0.4, 0] } }`.
|
|
566
|
+
*
|
|
567
|
+
* three has no aperture: its depth of field is a post-processing pass, so the
|
|
568
|
+
* render cannot read it off the camera and the developer says it here.
|
|
569
|
+
* `fStop` is a full-frame camera's f-number at the camera's own `fov`, so a
|
|
570
|
+
* smaller number blurs more. `target` is the world point that stays sharp
|
|
571
|
+
* and the render keeps it sharp through a clip as the camera moves;
|
|
572
|
+
* `distance` is a fixed focus distance in metres instead. One of the two.
|
|
573
|
+
*/
|
|
574
|
+
type CameraFocus = {
|
|
575
|
+
fStop: number;
|
|
576
|
+
target?: Vec3 | {
|
|
577
|
+
x: number;
|
|
578
|
+
y: number;
|
|
579
|
+
z: number;
|
|
580
|
+
};
|
|
581
|
+
distance?: number;
|
|
582
|
+
};
|
|
583
|
+
|
|
553
584
|
/**
|
|
554
585
|
* Walking the scene: ids, runtime state, lights, and what to skip.
|
|
555
586
|
*
|
|
@@ -941,4 +972,4 @@ type Bakery3 = {
|
|
|
941
972
|
};
|
|
942
973
|
declare function createBakery3(options?: Bakery3Options): Bakery3;
|
|
943
974
|
|
|
944
|
-
export { type AdapterOptions, BakeBundle, BakeJob, type BakeJobEvents, type BakeOptions, type BakeOutput, type Bakery3, Bakery3Error, type Bakery3Options, Batch, BatchOpenRequest, BatchProgress, type BatchesApi, type Capture, type CaptureOptions, type CapturedScene, type CatalogCamera, type CatalogFinish, ClientOptions, CompatibilityIssue, CompatibilityReport, CostEstimate, type EstimateOptions, type ExtractedShader, type JobEvents, type JobResultOptions, MaterialShaderSpec, OutputSpec, PrepareBakeSettings, QualityPreset, type RenderCamerasOptions, RenderJob, type RenderOptions, RenderRecord, RenderResult, RenderSet, RenderState, type RenderVariantsOptions, type RenderVideoOptions, SDK_VERSION, type SampledTrack, SceneManifest, ShaderSlot, type ShaderTextureRef, TestRunOptions, Timeline, TimelineOptions, TrackTarget, type UploadProgress, type VariantCleanup, type VariantProgress, VariantsQuote, type ViewCamera, analyzeScene, createBakery3, extractMaterialShader, isNodeMaterial, rememberEnvironmentSource, shouldExclude, timelineFromGsap, timelineFromTheatre };
|
|
975
|
+
export { type AdapterOptions, BakeBundle, BakeJob, type BakeJobEvents, type BakeOptions, type BakeOutput, type Bakery3, Bakery3Error, type Bakery3Options, Batch, BatchOpenRequest, BatchProgress, type BatchesApi, type CameraFocus, type Capture, type CaptureOptions, type CapturedScene, type CatalogCamera, type CatalogFinish, ClientOptions, CompatibilityIssue, CompatibilityReport, CostEstimate, type EstimateOptions, type ExtractedShader, type JobEvents, type JobResultOptions, MaterialShaderSpec, OutputSpec, PrepareBakeSettings, QualityPreset, type RenderCamerasOptions, RenderJob, type RenderOptions, RenderRecord, RenderResult, RenderSet, RenderState, type RenderVariantsOptions, type RenderVideoOptions, SDK_VERSION, type SampledTrack, SceneManifest, ShaderSlot, type ShaderTextureRef, TestRunOptions, Timeline, TimelineOptions, TrackTarget, type UploadProgress, type VariantCleanup, type VariantProgress, VariantsQuote, type ViewCamera, analyzeScene, createBakery3, extractMaterialShader, isNodeMaterial, rememberEnvironmentSource, shouldExclude, timelineFromGsap, timelineFromTheatre };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { BakeJob, RenderJob, createBakery3 } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { Batch } from './chunk-
|
|
1
|
+
export { BakeJob, RenderJob, createBakery3 } from './chunk-6FYI6AJM.js';
|
|
2
|
+
import './chunk-XK35ANPJ.js';
|
|
3
|
+
export { Batch } from './chunk-NXBAZGNB.js';
|
|
4
4
|
export { RenderSet, RenderSetRefused } from './chunk-ZEBVAIJJ.js';
|
|
5
|
-
export { Timeline, analyzeScene, createTimeline, extractMaterialShader, isNodeMaterial, timelineFromGsap, timelineFromTheatre } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
export { SDK_VERSION } from './chunk-
|
|
5
|
+
export { Timeline, analyzeScene, createTimeline, extractMaterialShader, isNodeMaterial, timelineFromGsap, timelineFromTheatre } from './chunk-Z7IYVH22.js';
|
|
6
|
+
import './chunk-62M6XXNX.js';
|
|
7
|
+
export { SDK_VERSION } from './chunk-UWBP7B54.js';
|
|
8
8
|
import './chunk-S4AJTLLN.js';
|
|
9
|
-
export { rememberEnvironmentSource } from './chunk-
|
|
10
|
-
export { shouldExclude } from './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
9
|
+
export { rememberEnvironmentSource } from './chunk-KZLVTSBI.js';
|
|
10
|
+
export { shouldExclude } from './chunk-JFYUDERE.js';
|
|
11
|
+
import './chunk-APWUCEEB.js';
|
|
12
|
+
import './chunk-LAKXC4WR.js';
|
|
13
13
|
export { Bakery3Error, BatchPageRefused, RenderBudgetExceeded } from './chunk-3G5QL4F4.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|