Search by

js-upup / exploded-view-brief

js-upup

Turn an ordered parts list, layout axis and fixed assemblies into a product illustration brief.

Package info

github.com/airobushotpot/exploded-view-brief

pkg:composer/js-upup/exploded-view-brief

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-11-23 05:28 UTC

This package is not auto-updated.

Last update: 2026-11-24 03:40:10 UTC


README

Convert an ordered product parts list to an editable illustration brief. Choose horizontal, vertical or depth separation and optionally identify parts that must stay assembled. The renderer returns plain text, validates part references and preserves the supplied order. No remote calls or credentials.

use JsUpup\ExplodedView\Brief;

$brief = Brief::render(
    ['Lid', 'Gasket', 'Cup body'],
    'vertical',
    [['Lid', 'Gasket']]
);

The example asks for a top-to-bottom diagram with three named parts, keeping the lid and gasket connected. Unknown axes, duplicates, overlapping assemblies and references to parts outside the list raise InvalidArgumentException. Use specific names for repeated items, such as "left pad" and "right pad".

For an actual concept image, the AI H3 exploded view generator accepts one product photo and an editable prompt. Choose the diagram or parts layout, then add the brief. Base the list on parts you can identify in the product; verify engineering details separately.