From 49fecbe0e8c5b7ec3723bc722144053771885bf5 Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 6 Dec 2024 10:48:51 +0800 Subject: [PATCH] chore: add MultiSwipe sample --- sample/resource/pipeline/common.json | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 sample/resource/pipeline/common.json diff --git a/sample/resource/pipeline/common.json b/sample/resource/pipeline/common.json new file mode 100644 index 000000000..b2ddb1de4 --- /dev/null +++ b/sample/resource/pipeline/common.json @@ -0,0 +1,67 @@ +{ + "Pinch": { + "action": "MultiSwipe", + "swipes": [ + { + "begin": [ + 100, + 100, + 0, + 0 + ], + "end": [ + 500, + 300, + 0, + 0 + ] + }, + { + "begin": [ + 1000, + 600, + 0, + 0 + ], + "end": [ + 700, + 400, + 0, + 0 + ] + }] + }, + "Unpinch": { + "action": "MultiSwipe", + "swipes": [ + { + "begin": [ + 500, + 300, + 0, + 0 + ], + "end": [ + 100, + 100, + 0, + 0 + ] + }, + { + "begin": [ + 700, + 400, + 0, + 0 + ], + "end": [ + 1000, + 600, + 0, + 0 + ] + } + ] + } +} \ No newline at end of file