go-captcha-svelte
Version:
GoCaptcha for Svelte, which implements click mode, slider mode, drag-drop mode and rotation mode.
24 lines (23 loc) • 455 B
JavaScript
/**
* @Author Awen
* @Date 2024/06/01
* @Email wengaolng@gmail.com
**/
export const defaultRegionConfig = () => ({
width: 300,
height: 220,
verticalPadding: 16,
horizontalPadding: 12,
showTheme: true,
title: "请拖拽贴图完成拼图",
iconSize: 22,
scope: true,
});
export const defaultSlideRegionData = () => ({
thumbX: 0,
thumbY: 0,
thumbWidth: 0,
thumbHeight: 0,
image: '',
thumb: ''
});