@interactjs/types
Advanced tools
Comparing version 1.9.2 to 1.9.3
@@ -1,2 +0,2 @@ | ||
import e from"../interactjs/index.min.js";e(document.body),e(document),e(window),e(".drag-and-resize").draggable({inertia:!0,modifiers:[e.modifiers.snap({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({x:20,y:0})],offset:"startCoords",relativePoints:[{x:0,y:1}],endOnly:!0}),e.modifiers.snapSize({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({width:100,height:500})],endOnly:!0}),e.modifiers.restrictRect({restriction:"parent",endOnly:!0}),e.modifiers.restrict({restriction:e=>({top:0,left:0,bottom:1,right:1})}),e.modifiers.restrict({restriction:e=>document.body}),e.modifiers.restrictSize({min:document.body,max:"parent"}),e.modifiers.restrictEdges({inner:document.body,outer:"parent"})]}).resizable({inertia:!0}),e("li",{context:document.querySelector("#my-list")}).draggable({});e("li").draggable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},lockAxis:"x",startAxis:"x"}).resizable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},margin:50,square:!0,axis:"x"}).gesturable({max:1,maxPerElement:2,manualStart:!0,modifiers:[]});e("li").draggable({autoScroll:!0}).resizable({autoScroll:{container:document.body,margin:50,distance:5,interval:10}}),e("li").draggable({startAxis:"x",lockAxis:"y"}).draggable({startAxis:"xy",lockAxis:"x"}),e("li").resizable({axis:"x"});function r(e){const{type:r,pageX:t,pageY:i}=e;alert({type:r,pageX:t,pageY:i})}e("li").resizable({edges:{top:!0,left:!1,bottom:".resize-s",right:"li"}}),e("li").resizable({edges:{bottom:!0,right:!0},invert:"reposition"}),e("li").resizable({squareResize:!0}),e("li").dropzone({accept:".drag0, .drag1"}),e("li").dropzone({overlap:.25}),e("li").dropzone({checker:(e,r,t,i,a,o,s)=>t&&!a.hasChildNodes()}),e.dynamicDrop(),e.dynamicDrop(!1),e("li").on("dragstart",r).on("dragmove dragend",r).on(["resizemove","resizeend"],r).on({gesturestart:r,gestureend:r}),e.on("resize",e=>{const{rect:r,deltaRect:t}=e;alert(JSON.stringify({rect:r,deltaRect:t}))}),e("li").resizable({listeners:[{start:r,move:r}]}),e("li").draggable({listeners:{start:r,end:r}}),e("li").draggable({onstart:r,onmove:r,onend:r}),e.on(["dragmove","resizestart"],r),e("li").devTools({ignore:{boxSizing:!0,touchAction:!0}});e("div").dropzone({ondrop(e){alert(e.relatedTarget.id+" was dropped into "+e.target.id)}}).on("dropactivate",e=>{e.target.classList.add("drop-activated")}),e("li").on("up",e=>{}),e("a[href]").on("tap",e=>{window.location.href=e.currentTarget.href,e.preventDefault()}); | ||
import e from"../interactjs/index.min.js";e(document.body),e(document),e(window),e(".drag-and-resize").draggable({inertia:!0,modifiers:[e.modifiers.snap({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({x:20,y:0})],offset:"startCoords",relativePoints:[{x:0,y:1}],endOnly:!0}),e.modifiers.snapSize({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({width:100,height:500})],endOnly:!0}),e.modifiers.restrictRect({restriction:"parent",endOnly:!0}),e.modifiers.restrict({restriction(e){return{top:0,left:0,bottom:1,right:1}}}),e.modifiers.restrict({restriction(e){return document.body}}),e.modifiers.restrictSize({min:document.body,max:"parent"}),e.modifiers.restrictEdges({inner:document.body,outer:"parent"})]}).resizable({inertia:!0}),e("li",{context:document.querySelector("#my-list")}).draggable({});e("li").draggable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},lockAxis:"x",startAxis:"x"}).resizable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},margin:50,square:!0,axis:"x"}).gesturable({max:1,maxPerElement:2,manualStart:!0,modifiers:[]});e("li").draggable({autoScroll:!0}).resizable({autoScroll:{container:document.body,margin:50,distance:5,interval:10}}),e("li").draggable({startAxis:"x",lockAxis:"y"}).draggable({startAxis:"xy",lockAxis:"x"}),e("li").resizable({axis:"x"});function r(e){const{type:r,pageX:t,pageY:i}=e;alert({type:r,pageX:t,pageY:i})}e("li").resizable({edges:{top:!0,left:!1,bottom:".resize-s",right:"li"}}),e("li").resizable({edges:{bottom:!0,right:!0},invert:"reposition"}),e("li").resizable({squareResize:!0}),e("li").dropzone({accept:".drag0, .drag1"}),e("li").dropzone({overlap:.25}),e("li").dropzone({checker:(e,r,t,i,a,o,n)=>t&&!a.hasChildNodes()}),e.dynamicDrop(),e.dynamicDrop(!1),e("li").on("dragstart",r).on("dragmove dragend",r).on(["resizemove","resizeend"],r).on({gesturestart:r,gestureend:r}),e.on("resize",e=>{const{rect:r,deltaRect:t}=e;alert(JSON.stringify({rect:r,deltaRect:t}))}),e("li").resizable({listeners:[{start:r,move:r}]}),e("li").draggable({listeners:{start:r,end:r}}),e("li").draggable({onstart:r,onmove:r,onend:r}),e.on(["dragmove","resizestart"],r),e("li").devTools({ignore:{boxSizing:!0,touchAction:!0}});e("div").dropzone({ondrop(e){alert(e.relatedTarget.id+" was dropped into "+e.target.id)}}).on("dropactivate",e=>{e.target.classList.add("drop-activated")}),e("li").on("up",e=>{}),e("a[href]").on("tap",e=>{window.location.href=e.currentTarget.href,e.preventDefault()}); | ||
//# sourceMappingURL=interactjs-test.min.js.map |
{ | ||
"name": "@interactjs/types", | ||
"version": "1.9.2", | ||
"version": "1.9.3", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@interactjs/actions": "1.9.2", | ||
"@interactjs/auto-scroll": "1.9.2", | ||
"@interactjs/auto-start": "1.9.2", | ||
"@interactjs/core": "1.9.2", | ||
"@interactjs/dev-tools": "1.9.2", | ||
"@interactjs/inertia": "1.9.2", | ||
"@interactjs/interact": "1.9.2", | ||
"@interactjs/modifiers": "1.9.2", | ||
"@interactjs/pointer-events": "1.9.2", | ||
"@interactjs/reflow": "1.9.2", | ||
"@interactjs/utils": "1.9.2" | ||
"@interactjs/actions": "1.9.3", | ||
"@interactjs/auto-scroll": "1.9.3", | ||
"@interactjs/auto-start": "1.9.3", | ||
"@interactjs/core": "1.9.3", | ||
"@interactjs/dev-tools": "1.9.3", | ||
"@interactjs/inertia": "1.9.3", | ||
"@interactjs/interact": "1.9.3", | ||
"@interactjs/modifiers": "1.9.3", | ||
"@interactjs/pointer-events": "1.9.3", | ||
"@interactjs/reflow": "1.9.3", | ||
"@interactjs/utils": "1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.9.2" | ||
"@interactjs/_dev": "1.9.3" | ||
}, | ||
@@ -24,3 +24,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "77b581be" | ||
"gitHead": "2032dde4" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41923
+ Added@interactjs/actions@1.9.3(transitive)
+ Added@interactjs/auto-scroll@1.9.3(transitive)
+ Added@interactjs/auto-start@1.9.3(transitive)
+ Added@interactjs/core@1.9.3(transitive)
+ Added@interactjs/dev-tools@1.9.3(transitive)
+ Added@interactjs/inertia@1.9.3(transitive)
+ Added@interactjs/interact@1.9.3(transitive)
+ Added@interactjs/modifiers@1.9.3(transitive)
+ Added@interactjs/offset@1.9.3(transitive)
+ Added@interactjs/pointer-events@1.9.3(transitive)
+ Added@interactjs/reflow@1.9.3(transitive)
+ Added@interactjs/utils@1.9.3(transitive)
- Removed@interactjs/actions@1.9.2(transitive)
- Removed@interactjs/auto-scroll@1.9.2(transitive)
- Removed@interactjs/auto-start@1.9.2(transitive)
- Removed@interactjs/core@1.9.2(transitive)
- Removed@interactjs/dev-tools@1.9.2(transitive)
- Removed@interactjs/inertia@1.9.2(transitive)
- Removed@interactjs/interact@1.9.2(transitive)
- Removed@interactjs/modifiers@1.9.2(transitive)
- Removed@interactjs/offset@1.9.2(transitive)
- Removed@interactjs/pointer-events@1.9.2(transitive)
- Removed@interactjs/reflow@1.9.2(transitive)
- Removed@interactjs/utils@1.9.2(transitive)
Updated@interactjs/actions@1.9.3
Updated@interactjs/auto-start@1.9.3
Updated@interactjs/core@1.9.3
Updated@interactjs/dev-tools@1.9.3
Updated@interactjs/inertia@1.9.3
Updated@interactjs/interact@1.9.3
Updated@interactjs/modifiers@1.9.3
Updated@interactjs/reflow@1.9.3
Updated@interactjs/utils@1.9.3