mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Adding new code-generator (Butcher) (#1069)
* Re-generate types * Re-generate methods (only attributes) * Added enums * Base init generator * Added butcher configs * Fixed tests, bump butcher * Added changelog * Added enum docs * Added templates for docs index * Re-generate bot class, remove deprecated methods
This commit is contained in:
parent
c7779abc50
commit
d034c1ba9f
387 changed files with 32036 additions and 3144 deletions
51
.butcher/types/MaskPosition/entity.json
Normal file
51
.butcher/types/MaskPosition/entity.json
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Stickers",
|
||||
"anchor": "stickers"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "maskposition",
|
||||
"name": "MaskPosition",
|
||||
"description": "This object describes the position on faces where a mask should be placed by default.",
|
||||
"html_description": "<p>This object describes the position on faces where a mask should be placed by default.</p>",
|
||||
"rst_description": "This object describes the position on faces where a mask should be placed by default.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "The part of the face relative to which the mask should be placed. One of 'forehead', 'eyes', 'mouth', or 'chin'.",
|
||||
"html_description": "<td>The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.</td>",
|
||||
"rst_description": "The part of the face relative to which the mask should be placed. One of 'forehead', 'eyes', 'mouth', or 'chin'.\n",
|
||||
"name": "point",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float number",
|
||||
"description": "Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.",
|
||||
"html_description": "<td>Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.</td>",
|
||||
"rst_description": "Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.\n",
|
||||
"name": "x_shift",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float number",
|
||||
"description": "Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.",
|
||||
"html_description": "<td>Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.</td>",
|
||||
"rst_description": "Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.\n",
|
||||
"name": "y_shift",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float number",
|
||||
"description": "Mask scaling coefficient. For example, 2.0 means double size.",
|
||||
"html_description": "<td>Mask scaling coefficient. For example, 2.0 means double size.</td>",
|
||||
"rst_description": "Mask scaling coefficient. For example, 2.0 means double size.\n",
|
||||
"name": "scale",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue