|
2672 | 2672 | }, |
2673 | 2673 | { |
2674 | 2674 | "name": "margins", |
2675 | | - "description": "Sets the margins of a given page. If 1 value is given, all 4 sides are set equally. If 4 values are given, the current page will be adjusted. Adding a 5th value will set the margin of a given page. Calling the function without any values, will return the margins for the current page.", |
| 2675 | + "description": "Sets the margins of a given page. If 1 value is given, all 4 sides are set equally. If 4 values are given, the current page will be adjusted. Optionally a page number or name can be given to set the margins of a specific page. Calling the function without any values will return the margins for the current page.", |
2676 | 2676 | "returns": { |
2677 | 2677 | "name": null, |
2678 | 2678 | "description": "Current page margins with the properties: `top`, `right`, `bottom`, `left`.", |
|
2717 | 2717 | }, |
2718 | 2718 | { |
2719 | 2719 | "name": "pageNumber", |
2720 | | - "description": "Sets margins to selected page, currentPage() if left blank.", |
| 2720 | + "description": "Page number, page name or page object of the page with margins to set; current page if left blank.", |
2721 | 2721 | "optional": true, |
2722 | 2722 | "type": [ |
2723 | 2723 | "Number" |
|
2732 | 2732 | }, |
2733 | 2733 | { |
2734 | 2734 | "title": "description", |
2735 | | - "description": "Sets the margins of a given page. If 1 value is given, all 4 sides are set equally. If 4 values are given, the current page will be adjusted. Adding a 5th value will set the margin of a given page. Calling the function without any values, will return the margins for the current page." |
| 2735 | + "description": "Sets the margins of a given page. If 1 value is given, all 4 sides are set equally. If 4 values are given, the current page will be adjusted. Optionally a page number or name can be given to set the margins of a specific page. Calling the function without any values will return the margins for the current page." |
2736 | 2736 | } |
2737 | 2737 | ], |
2738 | 2738 | "examples": [], |
|
3307 | 3307 | }, |
3308 | 3308 | { |
3309 | 3309 | "name": "duplicate", |
3310 | | - "description": "Duplicates the given page after the current page or the given page item to the current page and layer. Use `rectMode()` to set center point.", |
| 3310 | + "description": "Duplicates the given page after the current page or the given page item to the current page and layer. If a page is duplicated, basil.js automatically jumps to the new page.", |
3311 | 3311 | "returns": { |
3312 | 3312 | "name": null, |
3313 | 3313 | "description": "The new page item or page.", |
|
3336 | 3336 | }, |
3337 | 3337 | { |
3338 | 3338 | "title": "description", |
3339 | | - "description": "Duplicates the given page after the current page or the given page item to the current page and layer. Use `rectMode()` to set center point." |
| 3339 | + "description": "Duplicates the given page after the current page or the given page item to the current page and layer. If a page is duplicated, basil.js automatically jumps to the new page." |
3340 | 3340 | } |
3341 | 3341 | ], |
3342 | 3342 | "examples": [], |
|
0 commit comments