-
Define a loader strategy function in
app/providers/<PROVIDER>/objects/<TYPE>.js
config
An instance ofK3D.Config
containing an object configuration passed to loaderA
Promise
which should eventually resolve with the value of object ready to render -
Define a interaction function in
app/providers/<PROVIDER>/interactions/<TYPE>.js
Note
This step is required for interactive objects onlyarg1, arg2, ...
An arbitrary list of argumentsAn object with
onHover(intersect, viewMode)
andonClick(intersect, viewMode)
methods.Note
This function should be explicitly called by loader strategy function and it's return value should be assigned to result object'sinteractions
property.
After reimplementing what's required in a separate folder inside app/providers/<PROVIDER>
you will be able to use new provider.
Additional changes in app/index.html
might be required to make the "build" and "serve" tasks working.