Removed jQuery and D3 dependencies.

This commit is contained in:
2019-03-28 09:37:30 +01:00
parent 85e7da252f
commit df0c2fea3a
14 changed files with 32 additions and 54393 deletions
+6 -6
View File
@@ -363,27 +363,27 @@ You can grab the blue circle with touches or mouse and drag it around.</p>
const to = {scale: 1.3, transformOrigin: 'center', repeat: 1, yoyo: true}
InteractionMapper.on('tap', document.getElementById('hammer-1'), event => {
TweenMax.fromTo(event.target, .2, from, to)
TweenLite.fromTo(event.target, .2, from, to)
})
InteractionMapper.on('press', document.getElementById('hammer-2'), event => {
TweenMax.fromTo(event.target, .2, from, to)
TweenLite.fromTo(event.target, .2, from, to)
}, {time: 1000})
InteractionMapper.on('panright pandown', document.getElementById('hammer-3'), event => {
TweenMax.fromTo(event.target, .2, from, to)
TweenLite.fromTo(event.target, .2, from, to)
})
InteractionMapper.on(['swipeleft', 'swipedown'], document.getElementsByTagName('ellipse'), event => {
TweenMax.fromTo(event.target, .2, from, to)
TweenLite.fromTo(event.target, .2, from, to)
})
InteractionMapper
.on('pinch', document.getElementById('hammer-5'), event => {
TweenMax.fromTo(event.target, .2, from, to)
TweenLite.fromTo(event.target, .2, from, to)
})
.on('rotate', document.querySelectorAll('svg g > path.star'), event => {
TweenMax.fromTo(event.target, .2, from, to)
TweenLite.fromTo(event.target, .2, from, to)
})
.on('click', document.getElementById('hammer-1'), event => {
console.log(event)