Skip to content

add second example #1

@rootscript

Description

@rootscript

Hello Lucien,
Can you add a second short example of how to use framer-DynamicLoader with a different external library, please?

I am particularly interested in loading http://mojs.io

This is as far as I have been:

{DynamicLoader} = require "DynamicLoader"

mojs = [
	"https://cdn.jsdelivr.net/mojs/0.265.6/mo.min.js",
]

shape = new (mojs.Shape)(
  shape: 'circle'
  radius: 25
  radiusX: 35
  fill: 'transparent'
  stroke: '#F64040'
  strokeWidth: 7
  isShowStart: true)

I'm using Framer Studio v104, but get this error TypeError: undefined is not a constructor (evaluating 'new mojs.Shape')

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