Fixed flippable doctest.
This commit is contained in:
parent
b4bc200fbd
commit
7dd7142455
2
dist/iwmlib.js
vendored
2
dist/iwmlib.js
vendored
@ -4980,7 +4980,7 @@
|
||||
scalable: this.scalable,
|
||||
rotatable: this.rotatable,
|
||||
overdoScaling: this.overdoScaling,
|
||||
tapDelegate: this.tapDelegateFactory ? this.tapDelegateFactory(this.cardWrapper) : null
|
||||
tapDelegate: this.tapDelegateFactory ? new this.tapDelegateFactory(this.cardWrapper) : null
|
||||
});
|
||||
|
||||
if (this.center) {
|
||||
|
2
dist/iwmlib.pixi.js
vendored
2
dist/iwmlib.pixi.js
vendored
@ -8278,7 +8278,7 @@
|
||||
scalable: this.scalable,
|
||||
rotatable: this.rotatable,
|
||||
overdoScaling: this.overdoScaling,
|
||||
tapDelegate: this.tapDelegateFactory ? this.tapDelegateFactory(this.cardWrapper) : null
|
||||
tapDelegate: this.tapDelegateFactory ? new this.tapDelegateFactory(this.cardWrapper) : null
|
||||
});
|
||||
|
||||
if (this.center) {
|
||||
|
@ -73,7 +73,7 @@ if (Capabilities.supportsTemplate()) {
|
||||
flipTemplate,
|
||||
new ImageLoader('./examples/king.jpeg'),
|
||||
new ImageLoader('./examples/women.jpeg'),
|
||||
{ tapDelegateFactory: CardWrapper})
|
||||
{ tapDelegateFactory: CardWrapper, preloadBack: true})
|
||||
flip.load().then((flip) => {
|
||||
flip.centerAt({ x: 150, y: 120})
|
||||
})
|
||||
|
@ -274,7 +274,7 @@ export class DOMFlip {
|
||||
scalable: this.scalable,
|
||||
rotatable: this.rotatable,
|
||||
overdoScaling: this.overdoScaling,
|
||||
tapDelegate: this.tapDelegateFactory ? this.tapDelegateFactory(this.cardWrapper) : null
|
||||
tapDelegate: this.tapDelegateFactory ? new this.tapDelegateFactory(this.cardWrapper) : null
|
||||
})
|
||||
|
||||
if (this.center) {
|
||||
|
Loading…
Reference in New Issue
Block a user