-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Create new schema JSON files (fixes #11)
- Loading branch information
1 parent
fd2fdd0
commit 9276505
Showing
2 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"$anchor": "graphicLottie-course", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"$patch": { | ||
"source": { | ||
"$ref": "course" | ||
}, | ||
"with": { | ||
"properties": { | ||
"_graphicLottie": { | ||
"type": "object", | ||
"title": "Graphic Lottie Animation", | ||
"default": {}, | ||
"properties": { | ||
"_isEnabled": { | ||
"type": "boolean", | ||
"title": "Is Enabled", | ||
"description": "If enabled, graphics with the file extension below will be replaced by animations.", | ||
"default": true | ||
}, | ||
"_fileExtension": { | ||
"type": "string", | ||
"title": "File extension", | ||
"description": "Replace files with this extension only.", | ||
"default": "svgz", | ||
"enum": [ | ||
"bmp", | ||
"svgz" | ||
], | ||
"_backboneForms": "Select" | ||
}, | ||
"_loops": { | ||
"type": "number", | ||
"title": "Number of animation loops", | ||
"description": "Note: -1 for infinite loops, 0 for play once, 1 for play twice...", | ||
"default": -1 | ||
}, | ||
"_autoPlay": { | ||
"type": "boolean", | ||
"title": "Autoplay animations?", | ||
"description": "Note: Percentage onscreen determines when autoplay occurs.", | ||
"default": true | ||
}, | ||
"_onScreenPercentInviewVertical": { | ||
"type": "number", | ||
"title": "Percentage on-screen", | ||
"description": "At least this much must in view before autoplaying. Less than is considered off-screen", | ||
"default": 1 | ||
}, | ||
"_playFirstViewOnly": { | ||
"type": "boolean", | ||
"title": "Only play animation when first inview?", | ||
"description": "Note: Percentage onscreen determines when inview.", | ||
"default": true | ||
}, | ||
"_offScreenPause": { | ||
"type": "boolean", | ||
"title": "Pause when off-screen?", | ||
"default": true | ||
}, | ||
"_offScreenRewind": { | ||
"type": "boolean", | ||
"title": "Rewind when off-screen?", | ||
"default": true | ||
}, | ||
"_showPauseControl": { | ||
"type": "boolean", | ||
"title": "Show play/pause button?", | ||
"default": true | ||
}, | ||
"_onPauseRewind": { | ||
"type": "boolean", | ||
"title": "Rewind when paused?", | ||
"default": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |