Improved card API.
This commit is contained in:
+3
-3
@@ -71,7 +71,7 @@
|
||||
</defs>
|
||||
<image xlink:href="../examples/king.jpeg" x="0" y="0" height="188" width="268" />
|
||||
<g>
|
||||
<circle xlink:href="./popup.html" cx="145" cy="60" r="50" class="highlight" stroke="white" fill="transparent"
|
||||
<circle xlink:href="./popup.html" cx="50%" cy="30%" r="25%" class="highlight" stroke="white" fill="transparent"
|
||||
stroke-width="4" />
|
||||
</g>
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
|
||||
const wrapper2 = new CardWrapper(demoCardWithSelector)
|
||||
wrapper2.handleClicksAsTaps()
|
||||
wrapper2.onTap('circle', event => {
|
||||
Card.loadHighlightPopup(event)
|
||||
wrapper2.onTap('circle', (event, node) => {
|
||||
Card.loadHighlightPopup(event, node)
|
||||
})
|
||||
|
||||
wrapper2.onTap('a', event => {
|
||||
|
||||
Reference in New Issue
Block a user