1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-19 20:22:56 +08:00

update Animation

This commit is contained in:
jared 2020-10-21 14:35:41 +08:00
parent b26fb1fe71
commit f9698d8fdd
20 changed files with 74 additions and 86 deletions

View File

@ -17,14 +17,14 @@ Item {
id: s1
width: 250
height: 375
dir: ASquare.Direct.FromInner
dir: directFromInner
effectSource.sourceItem: src
}
ACircle {
id: s2
width: 250
height: 375
dir: ASquare.Direct.FromOuter
dir: directFromOuter
effectSource.sourceItem: src
}
}

View File

@ -19,28 +19,28 @@ Item {
id: s1
width: 250
height: 375
dir: ACleavage.Direct.HorizonToInner
dir: directHorizonToInner
effectSource.sourceItem: src
}
ACleavage {
id: s2
width: 250
height: 375
dir: ACleavage.Direct.HorizonToOuter
dir: directHorizonToOuter
effectSource.sourceItem: src
}
ACleavage {
id: s3
width: 250
height: 375
dir: ACleavage.Direct.VerticalToInner
dir: directVerticalToInner
effectSource.sourceItem: src
}
ACleavage {
id: s4
width: 250
height: 375
dir: ACleavage.Direct.VerticalToOuter
dir: directVerticalToOuter
effectSource.sourceItem: src
}
}

View File

@ -18,14 +18,14 @@ Item {
id: s1
width: 250
height: 375
dir: ASquare.Direct.FromInner
dir: directFromInner
effectSource.sourceItem: src
}
ACross {
id: s2
width: 250
height: 375
dir: ASquare.Direct.FromOuter
dir: directFromOuter
effectSource.sourceItem: src
}
}

View File

@ -17,28 +17,28 @@ Item {
id: d1
width: 250
height: 375
dir: ADiagonal.Direct.FromLeftTop
dir: directFromLeftTop
effectSource.sourceItem: src
}
ADiagonal {
id: d2
width: 250
height: 375
dir: ADiagonal.Direct.FromRightBottom
dir: directFromRightBottom
effectSource.sourceItem: src
}
ADiagonal {
id: d3
width: 250
height: 375
dir: ADiagonal.Direct.FromRightTop
dir: directFromRightTop
effectSource.sourceItem: src
}
ADiagonal {
id: d4
width: 250
height: 375
dir: ADiagonal.Direct.FromLeftBottom
dir: directFromLeftBottom
effectSource.sourceItem: src
}
}

View File

@ -24,21 +24,21 @@ Item {
id: l2
width: 250
height: 375
dir: ALouver.Direct.HorizonReverse
dir: directHorizonReverse
effectSource.sourceItem: src
}
ALouver {
id: l3
width: 250
height: 375
dir: ALouver.Direct.Vertical
dir: directVertical
effectSource.sourceItem: src
}
ALouver {
id: l4
width: 250
height: 375
dir: ALouver.Direct.VerticalReverse
dir: directVerticalReverse
effectSource.sourceItem: src
}

View File

@ -18,14 +18,14 @@ Item {
id: l1
width: 250
height: 375
dir: ARhombus.Direct.FromInner
dir: directFromInner
effectSource.sourceItem: src
}
ARhombus {
id: l2
width: 250
height: 375
dir: ARhombus.Direct.FromOuter
dir: directFromOuter
effectSource.sourceItem: src
}

View File

@ -17,14 +17,14 @@ Item {
id: s1
width: 250
height: 375
dir: ASquare.Direct.FromInner
dir: directFromInner
effectSource.sourceItem: src
}
ASquare {
id: s2
width: 250
height: 375
dir: ASquare.Direct.FromOuter
dir: directFromOuter
effectSource.sourceItem: src
}
}

View File

@ -17,14 +17,14 @@ Item {
id: s1
width: 250
height: 375
dir: AWheel.Direct.Clockwise
dir: directClockwise
effectSource.sourceItem: src
}
AWheel {
id: s2
width: 250
height: 375
dir: AWheel.Direct.CounterClockwise
dir: directCounterClockwise
effectSource.sourceItem: src
}
ASector {

View File

@ -1,15 +1,13 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
ToRight = 0,
ToBottom = 1
}
property int dir : ABoard.Direct.ToRight
readonly property int directToRight: 0
readonly property int directToBottom: 1
property int dir :directToRight
property int rowCount: 10
property int columnCount: 10
property int duration: 1000
@ -28,7 +26,7 @@ ShaderEffect {
loops: 1
duration: r.duration
}
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === ABoard.Direct.ToRight ? "
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === directToRight ? "
varying vec2 qt_TexCoord0;
uniform float qt_Opacity;
uniform sampler2D effectSource;

View File

@ -1,15 +1,13 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
FromInner = 0,
FromOuter = 1
}
property int dir : ASquare.Direct.FromInner
readonly property int directFromInner: 0
readonly property int directFromOuter: 1
property int dir :directFromInner
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true
@ -26,7 +24,7 @@ ShaderEffect {
loops: 1
duration: r.duration
}
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === ASquare.Direct.FromInner ? "
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === directFromInner ? "
varying vec2 qt_TexCoord0;
uniform float qt_Opacity;
uniform sampler2D effectSource;

View File

@ -1,17 +1,16 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
HorizonToInner = 0,
HorizonToOuter = 1,
VerticalToInner = 2,
VerticalToOuter = 3
}
property int dir : ASquare.ACleavge.HorizonToInner
readonly property int directHorizonToInner: 0
readonly property int directHorizonToOuter: 1
readonly property int directVerticalToInner: 2
readonly property int directVerticalToOuter: 3
property int dir : directVerticalToInner
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true

View File

@ -1,15 +1,13 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
FromInner = 0,
FromOuter = 1
}
property int dir : ASquare.Direct.FromInner
readonly property int directFromInner: 0
readonly property int directFromOuter: 1
property int dir : directFromInner
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true
@ -26,7 +24,7 @@ ShaderEffect {
loops: 1
duration: r.duration
}
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === ASquare.Direct.FromInner ? "
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === directFromInner ? "
varying vec2 qt_TexCoord0;
uniform float qt_Opacity;
uniform sampler2D effectSource;

View File

@ -1,17 +1,16 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
FromLeftTop = 0,
FromRightTop = 1,
FromLeftBottom = 2,
FromRightBottom = 3
}
property int dir: ADiagonal.Direct.FromLeftTop
readonly property int directFromLeftTop: 0
readonly property int directFromRightTop: 1
readonly property int directFromLeftBottom: 2
readonly property int directFromRightBottom: 3
property int dir: directFromLeftTop
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true

View File

@ -1,6 +1,7 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {

View File

@ -1,18 +1,16 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
Horizon = 0,
Vertical = 1,
HorizonReverse = 2,
VerticalReverse = 3
}
readonly property int directHorizon: 0
readonly property int directVertical: 1
readonly property int directHorizonReverse: 2
readonly property int directVerticalReverse: 3
property int dir: ALouver.Direct.Horizon
property int dir: directHorizon
property int count: 4
property int duration: 1000

View File

@ -1,15 +1,13 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
FromInner = 0,
FromOuter = 1
}
property int dir : ASquare.Direct.FromInner
readonly property int directFromInner: 0
readonly property int directFromOuter: 1
property int dir: directFromInner
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true
@ -26,7 +24,7 @@ ShaderEffect {
loops: 1
duration: r.duration
}
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === ASquare.Direct.FromInner ? "
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === directFromInner ? "
varying vec2 qt_TexCoord0;
uniform float qt_Opacity;
uniform sampler2D effectSource;

View File

@ -1,6 +1,6 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {

View File

@ -1,5 +1,6 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
Item {
@ -13,7 +14,7 @@ Item {
readonly property int directFromTop: 2
readonly property int directFromBottom: 3
property int dir: ASlowEnter.directFromBottom
property int dir: directFromBottom
property int duration: 2000
property int extDistance: 10
property var __propList: ["x", "x", "y", "y"]

View File

@ -1,15 +1,14 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
FromInner = 0,
FromOuter = 1
}
property int dir : ASquare.Direct.FromInner
readonly property int directFromInner: 0
readonly property int directFromOuter: 1
property int dir : directFromInner
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true
@ -26,7 +25,7 @@ ShaderEffect {
loops: 1
duration: r.duration
}
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === ASquare.Direct.FromInner ? "
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === directFromInner ? "
varying vec2 qt_TexCoord0;
uniform float qt_Opacity;
uniform sampler2D effectSource;

View File

@ -1,15 +1,14 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import ".."
import "../.."
ShaderEffect {
id: r
enum Direct {
Clockwise = 0,
CounterClockwise = 1
}
property int dir : AWheel.Direct.Clockwise
readonly property int directClockwise: 0
readonly property int directCounterClockwise: 1
property int dir: directClockwise
property int duration: 1000
property ShaderEffectSource effectSource: ShaderEffectSource {
hideSource: true
@ -27,7 +26,7 @@ ShaderEffect {
duration: r.duration
}
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === AWheel.Direct.CounterClockwise ? "
fragmentShader: CusEffectCommon.fragmentShaderCommon + (dir === directCounterClockwise ? "
varying vec2 qt_TexCoord0;
uniform float qt_Opacity;
uniform sampler2D effectSource;