Craftmaster

Menu






Data & 3D Embed

Integration demo

Sectional builder embed

One script tag puts the builder on your page. Your JavaScript sets the options and reads the finished configuration back. This page is a working example of both.

1 Embed it

Drop one tag where the builder should appear. Nothing else to install.

<script src=".../embed.js" data-style="f9-sect" data-api-key="YOUR-KEY" data-embed-mode="builder" defer></script>

2 Drive it

Set the customer's choices from your own controls, at any time.

await CraftmasterEmbed.setOptions({ arm: '2' }); await CraftmasterEmbed.setFabric('body', 'Nomad-10');

3 Read it back

Get the active build whenever it changes, as SKUs, quantities and fabrics.

CraftmasterEmbed.on('change', ({ build }) => { console.log(build.lines); // style numbers, qty, fabrics });
Live cross-origin embed of F9***-SECT. Build it here, or use the controls below.

Waiting for the builder to report ready…

Design options

setOptions()


Body fabric setFabric('body', title)
Wood finish setFinish(title)

Add pieces

addPiece()

Piece
End
addPiece(id, { end }) · attachOttoman(pos)

Edit the build

removePiece() · setPower()

Position positions are 1-based; ottomans are F1, F2

downloadPdf() · setMode('view' | 'build')

Order lines

getBuild().lines

Style number Piece Qty Positions
Nothing placed yet.
Product Pieces Width Depth

Live payload

getBuild()

// waiting for the first change event…

Build your tag

copy this into your page

Frame height
Open on fabric
Open on finish

      

On Instagram

Fresh from our feed

Follow Us