| @@ -20,10 +20,9 @@ | ||
| 20 | 20 | }, |
| 21 | 21 | "textdomain": "ablocks", |
| 22 | 22 | "editorStyle": [ |
| 23 | 23 | "ablocks-animate-style", |
| 24 | - "ablocks-common-style", | |
| 25 | - "file:./style.css" | |
| 24 | + "ablocks-common-style" | |
| 26 | 25 | ], |
| 27 | 26 | "editorScript": [ |
| 28 | 27 | "ablocks-chart.js-script", |
| 29 | 28 | "ablocks-common-script", |
| @@ -33,8 +32,12 @@ | ||
| 33 | 32 | "block_id": { |
| 34 | 33 | "type": "string", |
| 35 | 34 | "default": "" |
| 36 | 35 | }, |
| 36 | + "blockVersion": { | |
| 37 | + "type": "number", | |
| 38 | + "default": "" | |
| 39 | + }, | |
| 37 | 40 | "chartType": { |
| 38 | 41 | "type": "string", |
| 39 | 42 | "default": "bar" |
| 40 | 43 | }, |
| @@ -625,9 +628,9 @@ | ||
| 625 | 628 | "xPositionUnitMobile": "px", |
| 626 | 629 | "xPosition": "", |
| 627 | 630 | "xPositionTablet": "0", |
| 628 | 631 | "xPositionMobile": "0", |
| 629 | - "yPositionUnit": "0", | |
| 632 | + "yPositionUnit": "px", | |
| 630 | 633 | "yPositionUnitTablet": "px", |
| 631 | 634 | "yPositionUnitMobile": "px", |
| 632 | 635 | "yPosition": "0", |
| 633 | 636 | "yPositionTablet": "0", |
| @@ -665,8 +668,34 @@ | ||
| 665 | 668 | "colorH": "", |
| 666 | 669 | "transitionDuration": "0" |
| 667 | 670 | } |
| 668 | 671 | }, |
| 672 | + "_gsapAnimation": { | |
| 673 | + "type": "object", | |
| 674 | + "default": { | |
| 675 | + "animationType": "none", | |
| 676 | + "duration": 1, | |
| 677 | + "delay": 0, | |
| 678 | + "triggerType": "scroll", | |
| 679 | + "ease": "none", | |
| 680 | + "x": 0, | |
| 681 | + "y": 0, | |
| 682 | + "rotation": 0, | |
| 683 | + "rotationY": 0, | |
| 684 | + "opacity": 1, | |
| 685 | + "xTo": 0, | |
| 686 | + "yTo": 0, | |
| 687 | + "rotationTo": 0, | |
| 688 | + "rotationYTo": 0, | |
| 689 | + "opacityTo": 1, | |
| 690 | + "easeTo": "none", | |
| 691 | + "loops": false, | |
| 692 | + "numberOfRepeat": 0, | |
| 693 | + "isSmooth": true, | |
| 694 | + "startPoint": 80, | |
| 695 | + "endPoint": 10 | |
| 696 | + } | |
| 697 | + }, | |
| 669 | 698 | "_hide_on_desktop": { |
| 670 | 699 | "type": "boolean", |
| 671 | 700 | "default": false |
| 672 | 701 | }, |
| @@ -680,7 +709,21 @@ | ||
| 680 | 709 | }, |
| 681 | 710 | "_custom_css": { |
| 682 | 711 | "type": "string", |
| 683 | 712 | "default": "" |
| 713 | + }, | |
| 714 | + "_animation_element_trigger": { | |
| 715 | + "type": "array", | |
| 716 | + "default": [], | |
| 717 | + "items": { | |
| 718 | + "type": "object" | |
| 719 | + } | |
| 720 | + }, | |
| 721 | + "_animation_page_trigger": { | |
| 722 | + "type": "array", | |
| 723 | + "default": [], | |
| 724 | + "items": { | |
| 725 | + "type": "object" | |
| 726 | + } | |
| 684 | 727 | } |
| 685 | 728 | } |
| 686 | 729 | } |