File tree 3 files changed +23
-2
lines changed
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -17,8 +17,12 @@ Frame-based contact events without dragging:
17
17
18
18
## Usage
19
19
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:
22
26
23
27
```` coffeescript
24
28
PairModule = require " Pair"
You can’t perform that action at this time.
0 commit comments