Skip to content

Commit 9be6b88

Browse files
committedAug 20, 2017
Update to support Framer Modules
1 parent 6aa147a commit 9be6b88

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
 

‎example.coffee

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dragLayer = new Layer
2+
targetLayer = new Layer
3+
myPair = new PairModule.Pair(dragLayer,targetLayer)
4+
myPair.enableDragAndDrop()
5+
myPair.onDrop ->
6+
print "dragLayer dropped on targetLayer"
7+
8+
# See examples for more: https://github.com/IanBellomy/Pair

‎module.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Pair",
3+
"description": "Basic drag and drop and frame-based contact events.",
4+
"author": "Ian Bellomy",
5+
6+
"require": "PairModule = require 'Pair'",
7+
"install": "Pair.coffee",
8+
"example": "example.coffee"
9+
}

‎readme.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ Frame-based contact events without dragging:
1717

1818
## Usage
1919

20-
Place the Pair.coffee file in the modules folder of your project.
21-
In your file, write:
20+
Option 1 : Framer Modules (coming soon)
21+
<a href='https://open.framermodules.com/<MODULE NAME>'><img alt='Install with Framer Modules' src='https://www.framermodules.com/assets/badge@2x.png' width='160' height='40' /></a>
22+
23+
Option 2: Manual Install
24+
Doanload the Pair.coffee file and place it in the modules folder of your project.
25+
In your framer project, write:
2226

2327
````coffeescript
2428
PairModule = require "Pair"

0 commit comments

Comments
 (0)
Please sign in to comment.