MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / action

Function action

public/iframe/lib/js/mixinsComponents.js:1776–1790  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1774 this.changeImg(0)
1775 },
1776 action() {
1777 if (this.timer) {
1778 clearInterval(this.timer)
1779 }
1780 this.timer = setInterval(() => {
1781 if (this.currentIndex < this.option.data.length - 1) {
1782 this.changeImg(this.currentIndex + 1)
1783 this.currentIndex++
1784 } else {
1785 this.changeImg(0)
1786 this.currentIndex = 0
1787 }
1788 this.changeBluePrintConfig(this.config)
1789 }, this.option.Animationtime * 1000);
1790 },
1791 changeTab(index) {
1792 if (this.timer) {
1793 clearInterval(this.timer)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected