0.0.2 • Published 2 years ago

shared-effects v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

shared-effects

Shared effects for the text and effects team

Warps file (JSON)

Json file values

ValueTypeDescriptionDetails
warpIdintegerThe id for the warpThis id should be unique across all warps (even disabled ones). Also it is saved on the Canvas api to reference and know which warp is to be used
versionintegerThe version of the warp file the warp was initially released inWhen creating a new version, increment the current version in this readme, and then add the new version to the new contours
namestringThe name of the warpThis name should not be used in the clients. Each client will need to map strings from the
enabledbooleanWhether or not the warp is enabledWhen we modify a warp, we will need to disable the current warp, and add the new warp. This is so previously saved warped objects will look the same even if the contours that were used to warp them have been changed
sortOrderintegerThe order that warps appear in the listThis number should be sorted ASC
defaultTValuenumber (0-1)The default value to be used for contours/warps if the tValue is not changedIf the default value is used, this is the basic look and feel of the warp. It is the value that should be used to when initially a warp is selected, before tValue is manipulated
minYControlContoursstring (svg path)The contours that define the warps bottom path
maxYControlContoursstring (svg path)The contours that define the warps top path

Current version: 1

When editing the warps.json 1. Make you changes 2. Go to https://www.jsonschemavalidator.net/ 3. Paste warps-schema.json and changes to warps.json 4. Validate