Examples for xeokit-sdk.
Running live on xeokit.io
A cold clone works immediately.
git clone https://github.com/xeokit/examples
cd examplesServe the repo root with any static HTTP server:
npx serve .
# or: python3 -m http.server 8080To make examples load the xeokit-sdk from jsDelivr CDN, for instance @latest
edit dist/xeokit-sdk.js and replace its content by:
// export * from './xeokit-sdk/index.js';
// export * from './xeokit-sdk.min.es.js';
export * from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";git clone https://github.com/xeokit/xeokit-sdk.git
cd xeokit-sdk
# apply path which allow to use source directly
git apply <path-to-examples-repo>/use-from-source.patch
npm i
npm run vendorNote: In case the patch does not apply, try changing the line endings in the patch file (
dos2unix use-from-source.patch). This depends on your local git setup.
cd examples/dist
# ln -s <your-path>/xeokit-sdk ./xeokit-sdk
# in case xeokit-sdk is side by side with examples
ln -s ../../xeokit-sdk ./xeokit-sdk
# or on Win: New-Item -ItemType SymbolicLink -Path "xeokit-sdk" -Target "..\..\xeokit-sdk"
export * from './xeokit-sdk/index.js';
// export * from './xeokit-sdk.min.es.js';
// export * from "https://cdn.jsdelivr.net/npm/@xeokit/xeokit-sdk/dist/xeokit-sdk.es.min.js";npx serve .
xeokit SDK examples are licensed under AGPLv3