Skip to content

docs(cientos): align API docs with current component source - #1486

Open
TianHengZhuang wants to merge 1 commit into
Tresjs:mainfrom
TianHengZhuang:docs/fix-stale-cientos-props-and-links
Open

docs(cientos): align API docs with current component source#1486
TianHengZhuang wants to merge 1 commit into
Tresjs:mainfrom
TianHengZhuang:docs/fix-stale-cientos-props-and-links

Conversation

@TianHengZhuang

Copy link
Copy Markdown

Description

While going through the cientos docs I noticed a few pages that no longer match the implementation in packages/cientos. This PR fixes the props, defaults and links that drifted:

  • alignonAlign is listed as a prop, but the component only declares/emits the change event. Removed the stale row and documented the event instead.
  • accumulative-shadowsonce defaults to true (not false) and blend to 20 (not 100). The colorBlend row was describing limit and carried its default (Infinity) instead of 2.
  • environmentencoding is no longer part of EnvironmentOptions, so it is removed from the props table.
  • imagetoneMapped defaults to true (the docs said 0), and the transparent row was duplicated.
  • use-environmentencoding was removed from the options and from both examples; files is string | string[], path is a string defaulting to '' (documented as boolean / false), and syncMaterials was missing from the table.
  • gltf-model / fbx-model — the relative ./use-gltf.md and ./use-fbx.md links point to files that do not exist; switched to the API routes used elsewhere in the docs.

Evidence

Every change is backed by the component source:

Page Source
align.md packages/cientos/src/core/abstractions/Align.vuedefineEmits + emit('change', ...)
accumulative-shadows.md packages/cientos/src/core/light-shadow/AccumulativeShadows/component.vuewithDefaults (once: true, blend: 20, colorBlend: 2)
environment.md packages/cientos/src/core/staging/useEnvironment/const.ts — no encoding in EnvironmentOptions
image.md packages/cientos/src/core/objects/Image.vuewithDefaults (toneMapped: true)
use-environment.md packages/cientos/src/core/staging/useEnvironment/index.ts — option destructuring
gltf-model.md / fbx-model.md the referenced use-gltf.md / use-fbx.md files do not exist under content/2.api/3.loaders/

Docs-only change, no source or runtime behaviour touched.

Several cientos docs pages drifted from the implementation in
`packages/cientos`. Fix the props, defaults and links that no longer match:

- align: `onAlign` is not a prop (it was replaced by the `change` event),
  document the event instead and drop the stale row.
- accumulative-shadows: `once` defaults to `true` and `blend` to `20`;
  the `colorBlend` row was describing `limit` and had the wrong default (`2`).
- environment: drop `encoding`, it is no longer part of `EnvironmentOptions`.
- image: `toneMapped` defaults to `true`, and the `transparent` row was duplicated.
- use-environment: `encoding` is gone from the options and the examples,
  `files` is `string | string[]`, `path` is a `string` defaulting to `''`,
  and `syncMaterials` was missing from the table.
- gltf-model / fbx-model: the relative `./use-gltf.md` and `./use-fbx.md`
  links pointed to files that do not exist, use the API routes instead.
@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit 3c48815
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-docs/deploys/6aa3c0086475310008e439b6
😎 Deploy Preview https://deploy-preview-1486--tresjs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for postprocessing-tresjs ready!

Name Link
🔨 Latest commit 3c48815
🔍 Latest deploy log https://app.netlify.com/projects/postprocessing-tresjs/deploys/6aa3c008c37c480008de270b
😎 Deploy Preview https://deploy-preview-1486--postprocessing-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit 3c48815
🔍 Latest deploy log https://app.netlify.com/projects/cientos-tresjs/deploys/6aa3c008669a950008ecc1dc
😎 Deploy Preview https://deploy-preview-1486--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for tresjs-lab ready!

Name Link
🔨 Latest commit 3c48815
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-lab/deploys/6aa3c008db71a40008d08353
😎 Deploy Preview https://deploy-preview-1486--tresjs-lab.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for rapier-docs ready!

Name Link
🔨 Latest commit 3c48815
🔍 Latest deploy log https://app.netlify.com/projects/rapier-docs/deploys/6aa3c008c03cb700085c8dda
😎 Deploy Preview https://deploy-preview-1486--rapier-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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