Repository navigation
Make authoring safer: geometry reference, effect and type checks, % unit - #3
Merged
Merged
Conversation
…nit, faster commands - skills/decoder/GEOMETRY.md lists every geometry type with its params and defaults, plus modifiers and booleans; SKILL.md links it. - validate errors on an unknown geometry type (it used to draw a placeholder cube silently) and warns when an effect radius swamps the model. - '%' is a measurement unit; outputs read "42.5%". - The standalone bundle is skipped when nothing it reads has changed, so every npm command no longer rebuilds it. build:package always rebuilds. - Import three-bvh-csg's ES source, so the dev CLI loads one copy of three and the THREE_CJS deprecation warning is gone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
skills/decoder/GEOMETRY.mdlists every geometry type (frombuildPrimitive) with params and defaults, plus modifiers and booleans.SKILL.mdlinks it and explains that effectradiusis particle size.UNKNOWN_GEOMETRY_TYPEerror (an unknown type used to render a placeholder cube silently).EFFECT_RADIUS_TOO_LARGEwarning when an effect's reach (radius × 3.5) passes a quarter of the model's largest dimension. Built-in exhibits and the DJ deck raise neither.%added; outputs format as42.5%.bundle:standaloneskips when the hashes of its inputs, the lockfile and the script are unchanged.build:packagepasses--force.npm run decoderloaded three-bvh-csg's UMD build, whichrequired a second copy of three. It now imports the ES source; the warning is gone and only one copy of three loads. The publishedlib/was already fine.Local:
npm run check,verify:exports,build:packageand the lib CLI smoke test all pass. 3 new tests.