🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

motionscope

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motionscope

Explode and explore dimensions in Software Animation

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

MotionScope

Explode and explore dimensions in Software Animation. It’s like a console for an engineer, or a histogram for a photographer.

Install

Save a copy of MotionScope.coffee in your projects modules sub-folder.

Usage

Specify the properties of any regular Framer layers you wish to plot.

(require "MotionScope").load((scope) ->
  # `modal` is a layer created elsewhere in the project
  scope.plot(modal, 'y')
  scope.plot(modal, 'scale')
)

Optionally, you can configure the MotionScope graph.

(require "MotionScope").load({
	parent: Scope
  reset: ResetButton
}, (scope) ->
  scope.plot(modal, 'x')
	scope.plot(modal, 'y')
)

The plot method can be configured as well.

(require "MotionScope").load({
	parent: Scope
  reset: ResetButton
}, (scope) ->
  scope.plot(oval, 'opacity', {
  	color: '#FFA29C'
  })
)

MotionScope Options

  • parent: pass a Framer layer to use as the MotionScope parent. The graph will be sized to the width and height of the parent layer.
  • width, height: set the graph size without add it to a parent layer.
  • reset: pass a Framer layer to use as a reset button. Clicking the button will clear the graph.

Plot Options

  • name: label for the chart legend. Defaults to the property name.
  • color: color for the graph line. Defaults to Utils.randomColor if not specified.
  • min, max: sets the extent of the line. If not set, continuously adjusts to the largest and smallest values seen.

Keywords

framer

FAQs

Package last updated on 21 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts