Skip to content

chore(release): version packages - #131

Merged
toolpath-actions-bot[bot] merged 1 commit into
mainfrom
changeset-release/main
Oct 2, 2026
Merged

toolpath-actions-bot[bot] merged 1 commit into
mainfrom
changeset-release/main

Conversation

@toolpath-actions-bot

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@toolpath/viewer@2.0.0

Major Changes

  • 6d4a91f: Consolidate stock rendering into Stock, accepting exactly one of geometry, glb, box, or cylinder. Box and cylinder inputs accept either resolved placement or part-relative preview options, with placement calculated internally. Resolved box figures support optional setup frames; resolved cylinder figures support arbitrary axes. Fetching, caching and artifact storage remain caller-owned. Stock outlines are built only when shown.

    Remove BoxStock and BoxStockProps. Replace <BoxStock partGeometry={geometry} allowance={allowance} /> with <Stock box={{ partGeometry: geometry, allowance }} />; for explicit dimensions use <Stock box={{ partGeometry: geometry, dimensions, position, positionOffset, offset }} />. Preview builders are internal, and inline options do not cause repeated part scans on ordinary renders. Existing <Stock geometry={geometry} /> usage is unchanged.

    StockProps is now a union type alias rather than an interface, so interface X extends StockProps no longer compiles; write type X = StockProps & { … } instead. Use StockAppearanceProps for the shared appearance props alone.

Minor Changes

  • a2fc359: Add optional Stock retainPrevious behavior to keep the current GLB visible until its replacement finishes decoding. Dispose replaced geometry after the swap, and discard cancelled decode results.
  • a2fc359: Add a legacy-workpiece render style to Stock, reproducing legacy white/emissive shading, 20% opacity, two surface passes and edges drawn before surfaces. Add optional emissive and flatShading appearance props. Existing overlay defaults and source geometry remain unchanged.

@toolpath-actions-bot
toolpath-actions-bot Bot enabled auto-merge (squash) October 2, 2026 15:40
@toolpath-actions-bot
toolpath-actions-bot Bot merged commit eee167e into main Oct 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant