Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

index.html sample does not work #4

@paulusm

Description

@paulusm

The sample index.html and main.js do not seem to work: the model file is read, but the sd.load() call does not seem to return.

When I try adjusting the load call, with:

sd.load('model/test.xml').then( model => { console.log("Valid = " + model[0].valid); drawing = model.drawing('#model1', true, false); });

This returns valid, but gives the error:

Uncaught (in promise) TypeError: model.drawing is not a function

..and the sim and project properties also seem to be missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions