@cesdk/node 1.9.1 → 1.10.0-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/core/{cesdk-v1.9.1.data → cesdk-v1.10.0-preview.0.data} +0 -0
- package/assets/core/{cesdk-v1.9.1.wasm → cesdk-v1.10.0-preview.0.wasm} +0 -0
- package/assets/extensions/ly.img.cesdk.images.samples/manifest.json +45 -45
- package/assets/extensions/ly.img.cesdk.vectorpaths.abstract/manifest.json +47 -46
- package/index.d.ts +130 -36
- package/index.js +1 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -15,6 +15,51 @@
|
|
|
15
15
|
"height": 1667
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"id" : "sample.10",
|
|
20
|
+
"imagePath" : "https://img.ly/static/ubq_samples/sample_10.jpg",
|
|
21
|
+
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_10.jpg",
|
|
22
|
+
"size" : {
|
|
23
|
+
"width": 5184,
|
|
24
|
+
"height": 3456
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id" : "sample.11",
|
|
29
|
+
"imagePath" : "https://img.ly/static/ubq_samples/sample_11.jpg",
|
|
30
|
+
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_11.jpg",
|
|
31
|
+
"size" : {
|
|
32
|
+
"width": 2500,
|
|
33
|
+
"height": 1667
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id" : "sample.12",
|
|
38
|
+
"imagePath" : "https://img.ly/static/ubq_samples/sample_12.jpg",
|
|
39
|
+
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_12.jpg",
|
|
40
|
+
"size" : {
|
|
41
|
+
"width": 2500,
|
|
42
|
+
"height": 1667
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id" : "sample.13",
|
|
47
|
+
"imagePath" : "https://img.ly/static/ubq_samples/sample_13.jpg",
|
|
48
|
+
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_13.jpg",
|
|
49
|
+
"size" : {
|
|
50
|
+
"width": 2500,
|
|
51
|
+
"height": 1667
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id" : "sample.14",
|
|
56
|
+
"imagePath" : "https://img.ly/static/ubq_samples/sample_14.jpg",
|
|
57
|
+
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_14.jpg",
|
|
58
|
+
"size" : {
|
|
59
|
+
"width": 2500,
|
|
60
|
+
"height": 1667
|
|
61
|
+
}
|
|
62
|
+
},
|
|
18
63
|
{
|
|
19
64
|
"id" : "sample.2",
|
|
20
65
|
"imagePath" : "https://img.ly/static/ubq_samples/sample_2.jpg",
|
|
@@ -86,51 +131,6 @@
|
|
|
86
131
|
"width": 1667,
|
|
87
132
|
"height": 2500
|
|
88
133
|
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"id" : "sample.10",
|
|
92
|
-
"imagePath" : "https://img.ly/static/ubq_samples/sample_10.jpg",
|
|
93
|
-
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_10.jpg",
|
|
94
|
-
"size" : {
|
|
95
|
-
"width": 5184,
|
|
96
|
-
"height": 3456
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"id" : "sample.11",
|
|
101
|
-
"imagePath" : "https://img.ly/static/ubq_samples/sample_11.jpg",
|
|
102
|
-
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_11.jpg",
|
|
103
|
-
"size" : {
|
|
104
|
-
"width": 2500,
|
|
105
|
-
"height": 1667
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"id" : "sample.12",
|
|
110
|
-
"imagePath" : "https://img.ly/static/ubq_samples/sample_12.jpg",
|
|
111
|
-
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_12.jpg",
|
|
112
|
-
"size" : {
|
|
113
|
-
"width": 2500,
|
|
114
|
-
"height": 1667
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"id" : "sample.13",
|
|
119
|
-
"imagePath" : "https://img.ly/static/ubq_samples/sample_13.jpg",
|
|
120
|
-
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_13.jpg",
|
|
121
|
-
"size" : {
|
|
122
|
-
"width": 2500,
|
|
123
|
-
"height": 1667
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"id" : "sample.14",
|
|
128
|
-
"imagePath" : "https://img.ly/static/ubq_samples/sample_14.jpg",
|
|
129
|
-
"thumbPath" : "https://img.ly/static/ubq_samples/thumbnails/sample_14.jpg",
|
|
130
|
-
"size" : {
|
|
131
|
-
"width": 2500,
|
|
132
|
-
"height": 1667
|
|
133
|
-
}
|
|
134
134
|
}
|
|
135
135
|
]
|
|
136
136
|
}
|
|
@@ -32,21 +32,12 @@
|
|
|
32
32
|
],
|
|
33
33
|
"assets": [
|
|
34
34
|
{
|
|
35
|
-
"id": "
|
|
36
|
-
"thumbPath": "thumbnails/
|
|
37
|
-
"vectorPath": "
|
|
38
|
-
"size": {
|
|
39
|
-
"width": 88.06,
|
|
40
|
-
"height": 86.28
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"id": "organicdot1",
|
|
45
|
-
"thumbPath": "thumbnails/organicdot1.png",
|
|
46
|
-
"vectorPath": "M84.49 27.67c-1.25-3.44-4.06-5.94-7.56-7.72a14.7 14.7 0 0 0-4.41-5C56.53 3 36.51-1.1 16.89.24 7.55.87-5.56 8.74 2.53 19.08 16.93 37.51 42 45.63 64.87 43.54c1.06-.1 2.13-.19 3.22-.35 7.28-1 20.02-5.75 16.4-15.52Z",
|
|
35
|
+
"id": "frame",
|
|
36
|
+
"thumbPath": "thumbnails/frame.png",
|
|
37
|
+
"vectorPath": "M0 0v93.35h66V0Zm62.44 62.61H16.33A12.76 12.76 0 0 1 3.56 49.85V3.74h58.88Z",
|
|
47
38
|
"size": {
|
|
48
|
-
"width":
|
|
49
|
-
"height":
|
|
39
|
+
"width": 66.01,
|
|
40
|
+
"height": 93.35
|
|
50
41
|
}
|
|
51
42
|
},
|
|
52
43
|
{
|
|
@@ -58,15 +49,6 @@
|
|
|
58
49
|
"height": 44.75
|
|
59
50
|
}
|
|
60
51
|
},
|
|
61
|
-
{
|
|
62
|
-
"id": "frame",
|
|
63
|
-
"thumbPath": "thumbnails/frame.png",
|
|
64
|
-
"vectorPath": "M0 0v93.35h66V0Zm62.44 62.61H16.33A12.76 12.76 0 0 1 3.56 49.85V3.74h58.88Z",
|
|
65
|
-
"size": {
|
|
66
|
-
"width": 66.01,
|
|
67
|
-
"height": 93.35
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
52
|
{
|
|
71
53
|
"id": "organic1",
|
|
72
54
|
"thumbPath": "thumbnails/organic1.png",
|
|
@@ -86,12 +68,12 @@
|
|
|
86
68
|
}
|
|
87
69
|
},
|
|
88
70
|
{
|
|
89
|
-
"id": "
|
|
90
|
-
"thumbPath": "thumbnails/
|
|
91
|
-
"vectorPath": "
|
|
71
|
+
"id": "organic3",
|
|
72
|
+
"thumbPath": "thumbnails/organic3.png",
|
|
73
|
+
"vectorPath": "M21.39 79.63c10.64 4.05 19.14 4.68 30.1 6.06 7.42.94 16.08 1.46 21.21-4 3.85-4.09 4.36-10.27 7.23-15.1 2.14-3.6 5.58-6.42 7.15-10.3 2.55-6.31-.58-12.15-1.21-18.4-.53-5.21 1.41-10.86.69-15.64C85.09 12.53 75.73 1.1 65.43.1 53.81-1 46.79 8 37.87 13.4c-8.66 5.23-21.18 6.82-27.3 15.6C6.55 34.74 6.83 42.45 4 48.85c-1.24 2.66-3 5.09-3.67 7.91C-.92 61.83 1.5 67.27 5.25 70.9s8.67 5.79 13.53 7.71Z",
|
|
92
74
|
"size": {
|
|
93
|
-
"width":
|
|
94
|
-
"height":
|
|
75
|
+
"width": 88.06,
|
|
76
|
+
"height": 86.28
|
|
95
77
|
}
|
|
96
78
|
},
|
|
97
79
|
{
|
|
@@ -103,6 +85,25 @@
|
|
|
103
85
|
"height": 79.36
|
|
104
86
|
}
|
|
105
87
|
},
|
|
88
|
+
{
|
|
89
|
+
"id": "organicdot1",
|
|
90
|
+
"thumbPath": "thumbnails/organicdot1.png",
|
|
91
|
+
"vectorPath": "M84.49 27.67c-1.25-3.44-4.06-5.94-7.56-7.72a14.7 14.7 0 0 0-4.41-5C56.53 3 36.51-1.1 16.89.24 7.55.87-5.56 8.74 2.53 19.08 16.93 37.51 42 45.63 64.87 43.54c1.06-.1 2.13-.19 3.22-.35 7.28-1 20.02-5.75 16.4-15.52Z",
|
|
92
|
+
"size": {
|
|
93
|
+
"width": 85.12,
|
|
94
|
+
"height": 43.86
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "organicdot2",
|
|
99
|
+
"thumbPath": "thumbnails/organicdot2.png",
|
|
100
|
+
"vectorPath": "M45.23 1.27C37.75-2.34 30.4 2.3 25 8.14c-7.28 4-12.63 12.55-15.6 19.55q-3.61 8.37-7.16 16.75C-.93 51.87-2 65.73 7.68 68.73 17.82 71.91 27.15 61 31.76 53.61l14-22.52c3.07-4.91 5.33-12 5.15-17.9-.14-3.97-1.58-9.94-5.68-11.92Z",
|
|
101
|
+
"size": {
|
|
102
|
+
"width": 50.91,
|
|
103
|
+
"height": 69.3
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
106
107
|
{
|
|
107
108
|
"id": "quartercircle",
|
|
108
109
|
"thumbPath": "thumbnails/quartercircle.png",
|
|
@@ -130,15 +131,6 @@
|
|
|
130
131
|
"height": 70.52
|
|
131
132
|
}
|
|
132
133
|
},
|
|
133
|
-
{
|
|
134
|
-
"id": "splash1",
|
|
135
|
-
"thumbPath": "thumbnails/splash1.png",
|
|
136
|
-
"vectorPath": "M76.27 53.83a7 7 0 0 1-.07.8 11.31 11.31 0 0 1-.28 1.61c-.12.52-.3 1-.47 1.58a11.52 11.52 0 0 1-.66 1.47c-.25.48-.5.91-.77 1.33a14.45 14.45 0 0 1-3.43 3.61 16.73 16.73 0 0 1-3 1.8A19.3 19.3 0 0 1 65 67a29.53 29.53 0 0 1-4.56 1c-.75.1-1.55.2-2.38.25h-2l-.3.07a4 4 0 0 1-2.43.38 1.88 1.88 0 0 0-.33 0l-.5 1-.23.48-3 6.36-.35.27c-.22.18-.45.35-.7.53-.45.33-.88.65-1.3.93-1.68 1.12-3.08 1.75-4.09 1.5a9.23 9.23 0 0 1-4-.5c-1.2-.6-2.23-1.81-3-4.41l-1.07.55a9.68 9.68 0 0 0-1.28 2c0-.4.07-.82.12-1.22-1.28 1-2.75 2.68-4.28 6.44-.08-1.58-.13-3.24-.15-4.94v-.4c-.33 0-.58-.25-.78-.8-.6-2-.35-6.37.25-11.78.08-.73.18-1.45.25-2.2-2.33 3.2-3.81 4.46-2.88.57.95-3.15-1.83.48-3.21 1.56-1.75 2.08.5-3.79-3.45 2.73a62.16 62.16 0 0 0 3.5-10.6 8.1 8.1 0 0 0 .18-1.83l-.48.88c-.32 0-.12-.71.23-1.56-.25-.17-.73 0-1.4.7.4-1 .95-1.72 1.3-2.8a16.76 16.76 0 0 1-1.68 2.5c-.1.52-.3 1.25-.13 1.4-.95 1.1-.87-.06-.77-1.06a25.72 25.72 0 0 1-1.91 2.76l1.06-2.13a5.23 5.23 0 0 1-1.53.87c-.63 1.06-1.16 1.88-1.53 1.56a8.8 8.8 0 0 0 1.08-1.43l-.45.07c-1.26.13-2.16-.42-3.79.28-1 .78-1.43.22-1.93-.15s-1.17-.58-3.25.65c-.68.68.22-2.61-.83-2.38-.38.3-.75.6-1.15.9s-.78.55-1.18.85a3.37 3.37 0 0 0-.33-.32L4 56.24a2.86 2.86 0 0 0-.4-.28l-.46-.3-.45-.3a5.74 5.74 0 0 0-.48-.36c-.15-.13-.3-.23-.45-.35s-.3-.28-.45-.43a5.1 5.1 0 0 1-.76-1 4.77 4.77 0 0 1-.27-.56 4.08 4.08 0 0 1-.2-.62 4.34 4.34 0 0 1 .5-3 10.15 10.15 0 0 0 .48-2.68 14.51 14.51 0 0 0-.15-2c-.06-.31-.08-.63-.11-.93a5.42 5.42 0 0 1 0-.9 2.84 2.84 0 0 1 .23-.91 3.36 3.36 0 0 1 .55-.9 5 5 0 0 0 1.1-2.5A9.72 9.72 0 0 0 2.83 37 6.26 6.26 0 0 1 3 35.89 2.65 2.65 0 0 1 4.46 34a4.22 4.22 0 0 1 1.71-.4 11.42 11.42 0 0 1 2.6.17c.53.1.65-.05.65-.25s-.07-.45.08-.6c1 .25 2 .55 3 .9.1-.1-.9-.7-1.9-1.35S8.65 31.16 8.8 31c.35-.15.65-.32.95-.48s.6-.32.93-.45a3.36 3.36 0 0 1 2.25-.17 9.25 9.25 0 0 1 3.43 1.9c.43.35.91.75 1.41 1.23.07-.23.2-.45.32-.73l-3-3.85A30.31 30.31 0 0 0 17.64 31a6.61 6.61 0 0 1 .73.75c.22-.4.48-.88.83-1.43.87-.12.12 1.48-.05 2.43l1.22 1.63c.12.43-.38-.15-.9-.72l-.15-.15-.48.65c.48.47 1 1 1.5 1.6l.15-.15h.05l-.08.07-.1.1c.08-.07.13-.15.2-.22l.1-.1a37 37 0 0 1 2.48-5.89 11.86 11.86 0 0 0 4.49-5c1.2-2.28 1.9-3.61 3.38-6.21.73-1.76 1.23-3.46 1.83-5.26l-.25.2.15-.4.1.12a37.66 37.66 0 0 1 3.43-7.52A13.84 13.84 0 0 1 37.59 4a19.74 19.74 0 0 1 2.25-2.43.35.35 0 0 1 0 .08c1.23-1.18 2.21-2 2-1.53a21.32 21.32 0 0 1-1.18 4.08l.23-.2c0 1.4-1.52 4.28-2.85 6.94l.35-.51.57-.15.63-.85a7.14 7.14 0 0 1-.45.8h.08c-.13.17-.26.38-.41.6l-.52.85a3.42 3.42 0 0 0-.43 1l1.31-1.4-.81 2c.5 0 .58.87.6 1.7.63-.43.88-.15 1.21.2a12.49 12.49 0 0 1-1.43 1.58c-.08.2-.15.4-.25.63.3-.41.63-.83 1-1.28a7.91 7.91 0 0 0-.3.9c.1-.28.2-.6.3-.9a3.09 3.09 0 0 1 1.6-.93 1.22 1.22 0 0 1 .91.35 2.4 2.4 0 0 0 .9.63c.2-.43.4-.85.63-1.31l-.31.81 1.93-2.41-.37.9c-.2.5-.38 1-.53 1.38 1.93-3 1.45.48 2.56 0a11.35 11.35 0 0 1-1.21 2.51 3.86 3.86 0 0 1 .18 1.35 5.92 5.92 0 0 1 .65.1c-.47-.48-1.25-.73 1.4-4.53a13.56 13.56 0 0 0-.95 2.63 10.93 10.93 0 0 0-.32 2.1c0 .33 0 .63-.05.95A18.07 18.07 0 0 0 47.76 19c-.15.37-.3.75-.45 1.15a24.75 24.75 0 0 0 4.48-5.91c-.47 1.58-1 3.26-1.6 5 .18 0 .25.26.18.78a17.35 17.35 0 0 1-.63 2.28 7.18 7.18 0 0 0 .85-.7 1.22 1.22 0 0 1 1.23-.25 2.41 2.41 0 0 1 .83.8 6.14 6.14 0 0 0 .4.53 1.77 1.77 0 0 0 .45.42 1.12 1.12 0 0 0 1.17.13 2.72 2.72 0 0 1 .66 1 12.52 12.52 0 0 1 .52 1.32c0 .18.13.35.2.53v-.15c1-.9 1.58-.73 2-.2a10.7 10.7 0 0 1 1.11 2.5l.07.15a13.32 13.32 0 0 0 2.63-4.08c.4-.85.73-1.18.88-.75a11.54 11.54 0 0 1 0 3.63A50.78 50.78 0 0 1 65.15 21c.07-.15.15-.3.22-.42V20.43c-2.3 12.1 4.96-24.83-4.11 21.27a3.6 3.6 0 0 0 1.56-.47c-.18 1.05-.83 1.78-.88 3 1.63-2.66 2.33-2.91 2.46-1.68a2.18 2.18 0 0 0 .27-.15 6 6 0 0 1 .63-.3 5.09 5.09 0 0 1 .55-.86A6.05 6.05 0 0 1 68 39.47l-.5 1.56c-.07.25-.17.5-.25.75a3 3 0 0 1 .5 0 7.24 7.24 0 0 1 2.31.75 10.27 10.27 0 0 1 2.88 2.21 10.63 10.63 0 0 1 1.43 1.93 11.8 11.8 0 0 1 1.13 2.43l.1.32.1.3.15.6c.1.38.17.86.25 1.31 0 .22.05.45.07.7a6.27 6.27 0 0 1 0 .75 2.1 2.1 0 0 1 .1.75ZM18 37.85Zm8.79 5.63.05.05ZM37.31 13l-.47.58c-.26.57-.48 1.17-.71 1.75a13.62 13.62 0 0 1 1.23-1.38 3.27 3.27 0 0 1-.05-.95Zm.18-.9-.38.78.25-.36a2.3 2.3 0 0 0 .13-.43Z",
|
|
137
|
-
"size": {
|
|
138
|
-
"width": 76.27,
|
|
139
|
-
"height": 82.75
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
134
|
{
|
|
143
135
|
"id": "roundmask",
|
|
144
136
|
"thumbPath": "thumbnails/roundmask.png",
|
|
@@ -148,6 +140,15 @@
|
|
|
148
140
|
"height": 70.45
|
|
149
141
|
}
|
|
150
142
|
},
|
|
143
|
+
{
|
|
144
|
+
"id": "splash1",
|
|
145
|
+
"thumbPath": "thumbnails/splash1.png",
|
|
146
|
+
"vectorPath": "M76.27 53.83a7 7 0 0 1-.07.8 11.31 11.31 0 0 1-.28 1.61c-.12.52-.3 1-.47 1.58a11.52 11.52 0 0 1-.66 1.47c-.25.48-.5.91-.77 1.33a14.45 14.45 0 0 1-3.43 3.61 16.73 16.73 0 0 1-3 1.8A19.3 19.3 0 0 1 65 67a29.53 29.53 0 0 1-4.56 1c-.75.1-1.55.2-2.38.25h-2l-.3.07a4 4 0 0 1-2.43.38 1.88 1.88 0 0 0-.33 0l-.5 1-.23.48-3 6.36-.35.27c-.22.18-.45.35-.7.53-.45.33-.88.65-1.3.93-1.68 1.12-3.08 1.75-4.09 1.5a9.23 9.23 0 0 1-4-.5c-1.2-.6-2.23-1.81-3-4.41l-1.07.55a9.68 9.68 0 0 0-1.28 2c0-.4.07-.82.12-1.22-1.28 1-2.75 2.68-4.28 6.44-.08-1.58-.13-3.24-.15-4.94v-.4c-.33 0-.58-.25-.78-.8-.6-2-.35-6.37.25-11.78.08-.73.18-1.45.25-2.2-2.33 3.2-3.81 4.46-2.88.57.95-3.15-1.83.48-3.21 1.56-1.75 2.08.5-3.79-3.45 2.73a62.16 62.16 0 0 0 3.5-10.6 8.1 8.1 0 0 0 .18-1.83l-.48.88c-.32 0-.12-.71.23-1.56-.25-.17-.73 0-1.4.7.4-1 .95-1.72 1.3-2.8a16.76 16.76 0 0 1-1.68 2.5c-.1.52-.3 1.25-.13 1.4-.95 1.1-.87-.06-.77-1.06a25.72 25.72 0 0 1-1.91 2.76l1.06-2.13a5.23 5.23 0 0 1-1.53.87c-.63 1.06-1.16 1.88-1.53 1.56a8.8 8.8 0 0 0 1.08-1.43l-.45.07c-1.26.13-2.16-.42-3.79.28-1 .78-1.43.22-1.93-.15s-1.17-.58-3.25.65c-.68.68.22-2.61-.83-2.38-.38.3-.75.6-1.15.9s-.78.55-1.18.85a3.37 3.37 0 0 0-.33-.32L4 56.24a2.86 2.86 0 0 0-.4-.28l-.46-.3-.45-.3a5.74 5.74 0 0 0-.48-.36c-.15-.13-.3-.23-.45-.35s-.3-.28-.45-.43a5.1 5.1 0 0 1-.76-1 4.77 4.77 0 0 1-.27-.56 4.08 4.08 0 0 1-.2-.62 4.34 4.34 0 0 1 .5-3 10.15 10.15 0 0 0 .48-2.68 14.51 14.51 0 0 0-.15-2c-.06-.31-.08-.63-.11-.93a5.42 5.42 0 0 1 0-.9 2.84 2.84 0 0 1 .23-.91 3.36 3.36 0 0 1 .55-.9 5 5 0 0 0 1.1-2.5A9.72 9.72 0 0 0 2.83 37 6.26 6.26 0 0 1 3 35.89 2.65 2.65 0 0 1 4.46 34a4.22 4.22 0 0 1 1.71-.4 11.42 11.42 0 0 1 2.6.17c.53.1.65-.05.65-.25s-.07-.45.08-.6c1 .25 2 .55 3 .9.1-.1-.9-.7-1.9-1.35S8.65 31.16 8.8 31c.35-.15.65-.32.95-.48s.6-.32.93-.45a3.36 3.36 0 0 1 2.25-.17 9.25 9.25 0 0 1 3.43 1.9c.43.35.91.75 1.41 1.23.07-.23.2-.45.32-.73l-3-3.85A30.31 30.31 0 0 0 17.64 31a6.61 6.61 0 0 1 .73.75c.22-.4.48-.88.83-1.43.87-.12.12 1.48-.05 2.43l1.22 1.63c.12.43-.38-.15-.9-.72l-.15-.15-.48.65c.48.47 1 1 1.5 1.6l.15-.15h.05l-.08.07-.1.1c.08-.07.13-.15.2-.22l.1-.1a37 37 0 0 1 2.48-5.89 11.86 11.86 0 0 0 4.49-5c1.2-2.28 1.9-3.61 3.38-6.21.73-1.76 1.23-3.46 1.83-5.26l-.25.2.15-.4.1.12a37.66 37.66 0 0 1 3.43-7.52A13.84 13.84 0 0 1 37.59 4a19.74 19.74 0 0 1 2.25-2.43.35.35 0 0 1 0 .08c1.23-1.18 2.21-2 2-1.53a21.32 21.32 0 0 1-1.18 4.08l.23-.2c0 1.4-1.52 4.28-2.85 6.94l.35-.51.57-.15.63-.85a7.14 7.14 0 0 1-.45.8h.08c-.13.17-.26.38-.41.6l-.52.85a3.42 3.42 0 0 0-.43 1l1.31-1.4-.81 2c.5 0 .58.87.6 1.7.63-.43.88-.15 1.21.2a12.49 12.49 0 0 1-1.43 1.58c-.08.2-.15.4-.25.63.3-.41.63-.83 1-1.28a7.91 7.91 0 0 0-.3.9c.1-.28.2-.6.3-.9a3.09 3.09 0 0 1 1.6-.93 1.22 1.22 0 0 1 .91.35 2.4 2.4 0 0 0 .9.63c.2-.43.4-.85.63-1.31l-.31.81 1.93-2.41-.37.9c-.2.5-.38 1-.53 1.38 1.93-3 1.45.48 2.56 0a11.35 11.35 0 0 1-1.21 2.51 3.86 3.86 0 0 1 .18 1.35 5.92 5.92 0 0 1 .65.1c-.47-.48-1.25-.73 1.4-4.53a13.56 13.56 0 0 0-.95 2.63 10.93 10.93 0 0 0-.32 2.1c0 .33 0 .63-.05.95A18.07 18.07 0 0 0 47.76 19c-.15.37-.3.75-.45 1.15a24.75 24.75 0 0 0 4.48-5.91c-.47 1.58-1 3.26-1.6 5 .18 0 .25.26.18.78a17.35 17.35 0 0 1-.63 2.28 7.18 7.18 0 0 0 .85-.7 1.22 1.22 0 0 1 1.23-.25 2.41 2.41 0 0 1 .83.8 6.14 6.14 0 0 0 .4.53 1.77 1.77 0 0 0 .45.42 1.12 1.12 0 0 0 1.17.13 2.72 2.72 0 0 1 .66 1 12.52 12.52 0 0 1 .52 1.32c0 .18.13.35.2.53v-.15c1-.9 1.58-.73 2-.2a10.7 10.7 0 0 1 1.11 2.5l.07.15a13.32 13.32 0 0 0 2.63-4.08c.4-.85.73-1.18.88-.75a11.54 11.54 0 0 1 0 3.63A50.78 50.78 0 0 1 65.15 21c.07-.15.15-.3.22-.42V20.43c-2.3 12.1 4.96-24.83-4.11 21.27a3.6 3.6 0 0 0 1.56-.47c-.18 1.05-.83 1.78-.88 3 1.63-2.66 2.33-2.91 2.46-1.68a2.18 2.18 0 0 0 .27-.15 6 6 0 0 1 .63-.3 5.09 5.09 0 0 1 .55-.86A6.05 6.05 0 0 1 68 39.47l-.5 1.56c-.07.25-.17.5-.25.75a3 3 0 0 1 .5 0 7.24 7.24 0 0 1 2.31.75 10.27 10.27 0 0 1 2.88 2.21 10.63 10.63 0 0 1 1.43 1.93 11.8 11.8 0 0 1 1.13 2.43l.1.32.1.3.15.6c.1.38.17.86.25 1.31 0 .22.05.45.07.7a6.27 6.27 0 0 1 0 .75 2.1 2.1 0 0 1 .1.75ZM18 37.85Zm8.79 5.63.05.05ZM37.31 13l-.47.58c-.26.57-.48 1.17-.71 1.75a13.62 13.62 0 0 1 1.23-1.38 3.27 3.27 0 0 1-.05-.95Zm.18-.9-.38.78.25-.36a2.3 2.3 0 0 0 .13-.43Z",
|
|
147
|
+
"size": {
|
|
148
|
+
"width": 76.27,
|
|
149
|
+
"height": 82.75
|
|
150
|
+
}
|
|
151
|
+
},
|
|
151
152
|
{
|
|
152
153
|
"id": "splash2",
|
|
153
154
|
"thumbPath": "thumbnails/splash2.png",
|
|
@@ -157,15 +158,6 @@
|
|
|
157
158
|
"height": 61.05
|
|
158
159
|
}
|
|
159
160
|
},
|
|
160
|
-
{
|
|
161
|
-
"id": "splash4",
|
|
162
|
-
"thumbPath": "thumbnails/splash4.png",
|
|
163
|
-
"vectorPath": "M.11 57.47A1.1 1.1 0 0 1 .05 57a2.28 2.28 0 0 1 0-1h.06c.06-.62.18-1.19.31-1.21A3.43 3.43 0 0 1 1.86 54a.09.09 0 0 0 0-.08A2 2 0 0 1 4 53.75l-.06-.12.25-.47-.19-.25a1.09 1.09 0 0 1 .19.1v-.06l.1.16a2.11 2.11 0 0 1 .15.15.28.28 0 0 0 .33 0v-.66h1.36a16.7 16.7 0 0 1-1.46 1.09v.21A9.57 9.57 0 0 0 8 53.59c.23 0 .29-.62.35-1.42a6.67 6.67 0 0 1-.33-.66l-1.23.82c-.27-.86.21-1.37.86-2 .19.49-.18.92.33 1.07-.06-.21-.14-.45-.2-.74A4 4 0 0 1 9 48.47a13.33 13.33 0 0 0 1-1.07 2.85 2.85 0 0 1-.37-.21l.29.05-.2-1.15a1.88 1.88 0 0 0 .78.18c-.58-1 1.25-1.64 1.72-2.65a1.05 1.05 0 0 1 .89 1c-.8-.28-.66.46-.8 1a.53.53 0 0 1 .12-.1 18.9 18.9 0 0 0 2-2.53c-.65.64-1.29 1.48-1.87-.23 1 .7 2.22-.1 3.56-.39a8.34 8.34 0 0 1 .53-.65l-.22-.35a1.73 1.73 0 0 0-.58.22 1.17 1.17 0 0 1 1.15-.36A6.11 6.11 0 0 0 18.65 38c.64-2 3.21-2.74 4.42-4.92a11.93 11.93 0 0 1 3.08-1.82s0 0-.08 0c.64-2.24 2.57-3 4.38-3.72a.4.4 0 0 0 .16-.08 7.66 7.66 0 0 0 .19-3.72c-.19-1.23.55-2.1 2.57-1.09-1.32-3.57-1.18-6-.35-7.71a8.4 8.4 0 0 1 3.68-3.39c.8-.76 3.35 1.3 5.11 2.86v-.17a22.38 22.38 0 0 1 1-6 5.88 5.88 0 0 1 3-3.63 16.48 16.48 0 0 1 5.74-2.31 23.45 23.45 0 0 1 8.12.11C60 2.3 60.48 2.18 61 2a2.15 2.15 0 0 0 .74-.8l.7.37.72-.2a19.08 19.08 0 0 0 1.76-.61A4 4 0 0 0 66.25 0l2 .76 1.83.7.31.12c.69.11 1.41.25 2.17.43a36.86 36.86 0 0 1 5.29 1.85 15.54 15.54 0 0 1 1.91 1 3.71 3.71 0 0 0-1.54 2 15 15 0 0 0-.66 3.31v.62a.59.59 0 0 1-.1.17 16.1 16.1 0 0 1-.6 3 3.52 3.52 0 0 1-2.36 2.57c-.83.08-1.3.86-1.63 1.93s-.45 2.4-.74 3.45c0 1.13-.8 1.42-1.37 1.91s-.95 1.2 0 3.37a13.84 13.84 0 0 0-6.91-1.87 7 7 0 0 0-1.91.33l.37.5a1.14 1.14 0 0 1-1.57.12 3.36 3.36 0 0 0-1.21 2.1c-.61-.35-.76-1-1.56-1.3.92 1.83.74 2.43-.19 2.26a7.53 7.53 0 0 1-.16.8 6.08 6.08 0 0 1 .7 2.37l-1.13-1.09a9.66 9.66 0 0 1-2.36 3.33c-1.81 1.75-4.1 3-5.88 5-.74 1.19-2.12 1.75-3.46 2.47a7.13 7.13 0 0 0-3.39 3.31c0 .51-2.14 0-2.65.72v1.52c-1 .49-2 1.29-3 1.87a4.33 4.33 0 0 1-3.33.6 6 6 0 0 0-3 .59 7.91 7.91 0 0 1-2.61.78c-1.48.08-2.8 1.09-4.22 1.85a5.77 5.77 0 0 1-4.62.78c-.43-.12-1 .56-1.5.85-.41-.13-.83-.23-1.24-.35-.47.31 0 1.7-.45 2-1.7.78-3.47 1.85-5.24 2.51a6.88 6.88 0 0 1-4.93.39c.12-.35.82-1.42-.09-1.81A15.38 15.38 0 0 1 3.75 57a6.89 6.89 0 0 0-1.75.41.28.28 0 0 1 0 .12h-.13l.13-.12a2.69 2.69 0 0 1-1.89.06Zm4.19-3.68a.78.78 0 0 0 .21 0v-.1a.32.32 0 0 1-.21.1Zm12.52-12.62Z",
|
|
164
|
-
"size": {
|
|
165
|
-
"width": 79.74,
|
|
166
|
-
"height": 59.86
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
161
|
{
|
|
170
162
|
"id": "splash3",
|
|
171
163
|
"thumbPath": "thumbnails/splash3.png",
|
|
@@ -175,6 +167,15 @@
|
|
|
175
167
|
"height": 307
|
|
176
168
|
}
|
|
177
169
|
},
|
|
170
|
+
{
|
|
171
|
+
"id": "splash4",
|
|
172
|
+
"thumbPath": "thumbnails/splash4.png",
|
|
173
|
+
"vectorPath": "M.11 57.47A1.1 1.1 0 0 1 .05 57a2.28 2.28 0 0 1 0-1h.06c.06-.62.18-1.19.31-1.21A3.43 3.43 0 0 1 1.86 54a.09.09 0 0 0 0-.08A2 2 0 0 1 4 53.75l-.06-.12.25-.47-.19-.25a1.09 1.09 0 0 1 .19.1v-.06l.1.16a2.11 2.11 0 0 1 .15.15.28.28 0 0 0 .33 0v-.66h1.36a16.7 16.7 0 0 1-1.46 1.09v.21A9.57 9.57 0 0 0 8 53.59c.23 0 .29-.62.35-1.42a6.67 6.67 0 0 1-.33-.66l-1.23.82c-.27-.86.21-1.37.86-2 .19.49-.18.92.33 1.07-.06-.21-.14-.45-.2-.74A4 4 0 0 1 9 48.47a13.33 13.33 0 0 0 1-1.07 2.85 2.85 0 0 1-.37-.21l.29.05-.2-1.15a1.88 1.88 0 0 0 .78.18c-.58-1 1.25-1.64 1.72-2.65a1.05 1.05 0 0 1 .89 1c-.8-.28-.66.46-.8 1a.53.53 0 0 1 .12-.1 18.9 18.9 0 0 0 2-2.53c-.65.64-1.29 1.48-1.87-.23 1 .7 2.22-.1 3.56-.39a8.34 8.34 0 0 1 .53-.65l-.22-.35a1.73 1.73 0 0 0-.58.22 1.17 1.17 0 0 1 1.15-.36A6.11 6.11 0 0 0 18.65 38c.64-2 3.21-2.74 4.42-4.92a11.93 11.93 0 0 1 3.08-1.82s0 0-.08 0c.64-2.24 2.57-3 4.38-3.72a.4.4 0 0 0 .16-.08 7.66 7.66 0 0 0 .19-3.72c-.19-1.23.55-2.1 2.57-1.09-1.32-3.57-1.18-6-.35-7.71a8.4 8.4 0 0 1 3.68-3.39c.8-.76 3.35 1.3 5.11 2.86v-.17a22.38 22.38 0 0 1 1-6 5.88 5.88 0 0 1 3-3.63 16.48 16.48 0 0 1 5.74-2.31 23.45 23.45 0 0 1 8.12.11C60 2.3 60.48 2.18 61 2a2.15 2.15 0 0 0 .74-.8l.7.37.72-.2a19.08 19.08 0 0 0 1.76-.61A4 4 0 0 0 66.25 0l2 .76 1.83.7.31.12c.69.11 1.41.25 2.17.43a36.86 36.86 0 0 1 5.29 1.85 15.54 15.54 0 0 1 1.91 1 3.71 3.71 0 0 0-1.54 2 15 15 0 0 0-.66 3.31v.62a.59.59 0 0 1-.1.17 16.1 16.1 0 0 1-.6 3 3.52 3.52 0 0 1-2.36 2.57c-.83.08-1.3.86-1.63 1.93s-.45 2.4-.74 3.45c0 1.13-.8 1.42-1.37 1.91s-.95 1.2 0 3.37a13.84 13.84 0 0 0-6.91-1.87 7 7 0 0 0-1.91.33l.37.5a1.14 1.14 0 0 1-1.57.12 3.36 3.36 0 0 0-1.21 2.1c-.61-.35-.76-1-1.56-1.3.92 1.83.74 2.43-.19 2.26a7.53 7.53 0 0 1-.16.8 6.08 6.08 0 0 1 .7 2.37l-1.13-1.09a9.66 9.66 0 0 1-2.36 3.33c-1.81 1.75-4.1 3-5.88 5-.74 1.19-2.12 1.75-3.46 2.47a7.13 7.13 0 0 0-3.39 3.31c0 .51-2.14 0-2.65.72v1.52c-1 .49-2 1.29-3 1.87a4.33 4.33 0 0 1-3.33.6 6 6 0 0 0-3 .59 7.91 7.91 0 0 1-2.61.78c-1.48.08-2.8 1.09-4.22 1.85a5.77 5.77 0 0 1-4.62.78c-.43-.12-1 .56-1.5.85-.41-.13-.83-.23-1.24-.35-.47.31 0 1.7-.45 2-1.7.78-3.47 1.85-5.24 2.51a6.88 6.88 0 0 1-4.93.39c.12-.35.82-1.42-.09-1.81A15.38 15.38 0 0 1 3.75 57a6.89 6.89 0 0 0-1.75.41.28.28 0 0 1 0 .12h-.13l.13-.12a2.69 2.69 0 0 1-1.89.06Zm4.19-3.68a.78.78 0 0 0 .21 0v-.1a.32.32 0 0 1-.21.1Zm12.52-12.62Z",
|
|
174
|
+
"size": {
|
|
175
|
+
"width": 79.74,
|
|
176
|
+
"height": 59.86
|
|
177
|
+
}
|
|
178
|
+
},
|
|
178
179
|
{
|
|
179
180
|
"id": "wiggle",
|
|
180
181
|
"thumbPath": "thumbnails/wiggle.png",
|
package/index.d.ts
CHANGED
|
@@ -4,21 +4,24 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export declare interface Asset {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* e.g. "extension://ly.img.cesdk.images.samples/ly.img.image/sample.1"
|
|
7
|
+
* The unique id of this asset.
|
|
9
8
|
*/
|
|
10
9
|
id: string;
|
|
11
|
-
/** E.g. `ly.img.image` */
|
|
12
10
|
/** Groups of the asset. */
|
|
13
11
|
groups?: Groups;
|
|
14
|
-
/** URI to a thumbnail of the asset used e.g. in the content library UI */
|
|
15
|
-
thumbUri: string;
|
|
16
|
-
|
|
17
12
|
/** Asset-specific and custom meta information */
|
|
18
13
|
meta?: {
|
|
14
|
+
/** The mime type of this asset or the data behind the asset's uri. */
|
|
15
|
+
mimeType?: string;
|
|
16
|
+
/** The type id of the design block that should be created from this asset. */
|
|
17
|
+
blockType?: string;
|
|
19
18
|
uri?: string;
|
|
19
|
+
thumbUri?: string;
|
|
20
|
+
previewUri?: string;
|
|
20
21
|
filename?: string;
|
|
21
22
|
vectorPath?: string;
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
22
25
|
duration?: string;
|
|
23
26
|
} & Record<string, unknown>;
|
|
24
27
|
}
|
|
@@ -34,6 +37,16 @@ export declare class AssetAPI {
|
|
|
34
37
|
* @param source - The asset source.
|
|
35
38
|
*/
|
|
36
39
|
addSource(source: AssetSource): void;
|
|
40
|
+
/**
|
|
41
|
+
* Adds a local asset source. Its ID has to be unique.
|
|
42
|
+
* @param source - The asset source.
|
|
43
|
+
* @param supportedMimeTypes - The mime types of assets that are allowed to be added to this local source.
|
|
44
|
+
* @param applyAsset - An optional callback that can be used to override the default behavior of applying a given
|
|
45
|
+
* asset result to the active scene.
|
|
46
|
+
* @param applyAssetToBlock - An optional callback that can be used to override the default behavior of applying
|
|
47
|
+
* an asset result to a given block.
|
|
48
|
+
*/
|
|
49
|
+
addLocalSource(id: string, supportedMimeTypes?: string[], applyAsset?: (asset: AssetResult) => Promise<DesignBlockId | undefined>, applyAssetToBlock?: (asset: AssetResult, block: DesignBlockId) => Promise<void>): void;
|
|
37
50
|
/**
|
|
38
51
|
* Removes an asset source with the given ID.
|
|
39
52
|
* @param id - The ID to refer to the asset source.
|
|
@@ -57,6 +70,7 @@ export declare class AssetAPI {
|
|
|
57
70
|
* @returns The asset groups.
|
|
58
71
|
*/
|
|
59
72
|
getGroups(id: string): Promise<string[]>;
|
|
73
|
+
getSupportedMimeTypes(sourceId: string): string[];
|
|
60
74
|
/**
|
|
61
75
|
* Queries the asset source's credits info.
|
|
62
76
|
* @param sourceId - The ID of the asset source.
|
|
@@ -76,8 +90,18 @@ export declare class AssetAPI {
|
|
|
76
90
|
url: string | undefined;
|
|
77
91
|
} | undefined;
|
|
78
92
|
canManageAssets(sourceId: string): boolean;
|
|
79
|
-
|
|
80
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Adds the given asset to a local asset source.
|
|
95
|
+
* @param sourceId - The local asset source ID that the asset should be added to.
|
|
96
|
+
* @param asset - The asset to be added to the asset source.
|
|
97
|
+
*/
|
|
98
|
+
addAssetToSource(sourceId: string, asset: AssetDefinition): void;
|
|
99
|
+
/**
|
|
100
|
+
* Removes the specified asset from its local asset source.
|
|
101
|
+
* @param sourceId - The id of the local asset source that currently contains the asset.
|
|
102
|
+
* @param assetId - The id of the asset to be removed.
|
|
103
|
+
*/
|
|
104
|
+
removeAssetFromSource(sourceId: string, assetId: string): void;
|
|
81
105
|
|
|
82
106
|
|
|
83
107
|
/**
|
|
@@ -87,7 +111,7 @@ export declare class AssetAPI {
|
|
|
87
111
|
* @param sourceId - The ID of the asset source.
|
|
88
112
|
* @param assetResult - A single assetResult of a `findAssets` query.
|
|
89
113
|
*/
|
|
90
|
-
apply(sourceId: string, assetResult: AssetResult): Promise<
|
|
114
|
+
apply(sourceId: string, assetResult: AssetResult): Promise<DesignBlockId | undefined>;
|
|
91
115
|
/**
|
|
92
116
|
* Apply an asset result to the given block.
|
|
93
117
|
* @param sourceId - The ID of the asset source.
|
|
@@ -100,7 +124,7 @@ export declare class AssetAPI {
|
|
|
100
124
|
* This implementation is used when no `applyAsset` function is provided to `addSource`.
|
|
101
125
|
* @param assetResult - A single assetResult of a `findAssets` query.
|
|
102
126
|
*/
|
|
103
|
-
defaultApplyAsset(assetResult: AssetResult): Promise<
|
|
127
|
+
defaultApplyAsset(assetResult: AssetResult): Promise<DesignBlockId | undefined>;
|
|
104
128
|
/**
|
|
105
129
|
* The default implementation for applying an asset to an existing block.
|
|
106
130
|
* @param assetResult - A single assetResult of a `findAssets` query.
|
|
@@ -111,7 +135,7 @@ export declare class AssetAPI {
|
|
|
111
135
|
}
|
|
112
136
|
|
|
113
137
|
/**
|
|
114
|
-
* Definition of an
|
|
138
|
+
* Definition of an asset used if an asset is added to an asset source.
|
|
115
139
|
* @public
|
|
116
140
|
*/
|
|
117
141
|
export declare interface AssetDefinition extends Asset {
|
|
@@ -195,13 +219,6 @@ export declare interface AssetResult extends Asset {
|
|
|
195
219
|
declare interface AssetResult_2 {
|
|
196
220
|
/** A unique id of this asset */
|
|
197
221
|
id: string;
|
|
198
|
-
/** URI to a thumbnail of the asset used e.g. in the content library UI */
|
|
199
|
-
thumbUri: string;
|
|
200
|
-
/** Original size of the asset. */
|
|
201
|
-
size: {
|
|
202
|
-
width: number;
|
|
203
|
-
height: number;
|
|
204
|
-
};
|
|
205
222
|
/** Asset-specific and custom meta information */
|
|
206
223
|
meta?: {
|
|
207
224
|
uri?: string;
|
|
@@ -269,16 +286,17 @@ export declare interface AssetSource {
|
|
|
269
286
|
*/
|
|
270
287
|
getAsset?(id: string): Promise<AssetResult | undefined>;
|
|
271
288
|
/**
|
|
272
|
-
* Can the source add
|
|
273
|
-
* methods like `addAsset`
|
|
289
|
+
* Can the source add and remove assets dynamically? If `false`
|
|
290
|
+
* methods like `addAsset` and `removeAsset` will throw an
|
|
274
291
|
* error.
|
|
275
292
|
*/
|
|
276
293
|
canManageAssets?: boolean;
|
|
277
294
|
/**
|
|
278
295
|
* Apply the given asset result to the active scene.
|
|
279
296
|
* You can override this with custom behavior.
|
|
297
|
+
* @returns the id of a new block if one was created from the asset.
|
|
280
298
|
*/
|
|
281
|
-
applyAsset?: (asset: AssetResult) => Promise<
|
|
299
|
+
applyAsset?: (asset: AssetResult) => Promise<DesignBlockId | undefined>;
|
|
282
300
|
/**
|
|
283
301
|
* Apply the given asset result to the given block.
|
|
284
302
|
* You can override this with custom behavior.
|
|
@@ -288,16 +306,8 @@ export declare interface AssetSource {
|
|
|
288
306
|
* Adds the given asset to this source. Throws an error if `canManageAssets`
|
|
289
307
|
* is `false`.
|
|
290
308
|
*
|
|
291
|
-
* @returns the id of the added asset
|
|
292
309
|
*/
|
|
293
|
-
addAsset?(asset: AssetDefinition):
|
|
294
|
-
/**
|
|
295
|
-
* Updates the asset of this source. Throws an error if `canManageAssets`
|
|
296
|
-
* is `false` or no asset with the given id could not be found.
|
|
297
|
-
*
|
|
298
|
-
* @returns the id of the added asset
|
|
299
|
-
*/
|
|
300
|
-
updateAsset?(assetId: string, asset: AssetDefinition): Promise<void>;
|
|
310
|
+
addAsset?(asset: AssetDefinition): void;
|
|
301
311
|
/**
|
|
302
312
|
* Removes the given asset from this source.
|
|
303
313
|
*
|
|
@@ -323,7 +333,7 @@ declare interface AssetSource_2 {
|
|
|
323
333
|
* Apply the given asset result to the active scene.
|
|
324
334
|
* You can override this with custom behavior.
|
|
325
335
|
*/
|
|
326
|
-
applyAsset?: (asset: AssetResult_2) => Promise<
|
|
336
|
+
applyAsset?: (asset: AssetResult_2) => Promise<DesignBlockId | undefined>;
|
|
327
337
|
/**
|
|
328
338
|
* Apply the given asset result to the given block.
|
|
329
339
|
* You can override this with custom behavior.
|
|
@@ -443,6 +453,7 @@ export declare class BlockAPI {
|
|
|
443
453
|
/**
|
|
444
454
|
* Loads existing blocks from the given string.
|
|
445
455
|
* The blocks are not attached by default and won't be visible until attached to a page or the scene.
|
|
456
|
+
* The UUID of the loaded blocks is replaced with a new one.
|
|
446
457
|
* @param content - A string representing the given blocks.
|
|
447
458
|
* @returns A promise that resolves with a list of handles representing the found blocks or an error.
|
|
448
459
|
*/
|
|
@@ -466,13 +477,17 @@ export declare class BlockAPI {
|
|
|
466
477
|
* @returns The created fill's handle.
|
|
467
478
|
*/
|
|
468
479
|
createFill(type: string): DesignBlockId;
|
|
469
|
-
|
|
470
480
|
/**
|
|
471
481
|
* Get the type of the given block, fails if the block is invalid.
|
|
472
482
|
* @param id - The block to query.
|
|
473
483
|
* @returns The blocks type.
|
|
474
484
|
*/
|
|
475
485
|
getType(id: DesignBlockId): DesignBlockType;
|
|
486
|
+
/**
|
|
487
|
+
* Selects the given block and deselects all other blocks.
|
|
488
|
+
* @param id - The block to be selected.
|
|
489
|
+
*/
|
|
490
|
+
select(id: DesignBlockId): void;
|
|
476
491
|
/**
|
|
477
492
|
* Update the selection state of a block.
|
|
478
493
|
* Fails for invalid blocks.
|
|
@@ -737,15 +752,29 @@ export declare class BlockAPI {
|
|
|
737
752
|
*/
|
|
738
753
|
setContentFillMode(id: DesignBlockId, mode: ContentFillMode): void;
|
|
739
754
|
/**
|
|
740
|
-
* Get a block's layout
|
|
741
|
-
* internal update loop
|
|
755
|
+
* Get a block's layout position on the x-axis. The position is only available after an
|
|
756
|
+
* internal update loop which only occurs if the `features/implicitUpdatesEnabled` setting is set.
|
|
757
|
+
* @param id - The block to query.
|
|
758
|
+
* @returns The layout position on the x-axis.
|
|
759
|
+
*/
|
|
760
|
+
getFrameX(id: DesignBlockId): number;
|
|
761
|
+
/**
|
|
762
|
+
* Get a block's layout position on the y-axis. The position is only available after an
|
|
763
|
+
* internal update loop which only occurs if the `features/implicitUpdatesEnabled` setting is set.
|
|
764
|
+
* @param id - The block to query.
|
|
765
|
+
* @returns The layout position on the y-axis.
|
|
766
|
+
*/
|
|
767
|
+
getFrameY(id: DesignBlockId): number;
|
|
768
|
+
/**
|
|
769
|
+
* Get a block's layout width. The width is only available after an
|
|
770
|
+
* internal update loop which only occurs if the `features/implicitUpdatesEnabled` setting is set.
|
|
742
771
|
* @param id - The block to query.
|
|
743
772
|
* @returns The layout width.
|
|
744
773
|
*/
|
|
745
774
|
getFrameWidth(id: DesignBlockId): number;
|
|
746
775
|
/**
|
|
747
|
-
* Get a block's layout height. The
|
|
748
|
-
* internal update loop
|
|
776
|
+
* Get a block's layout height. The height is only available after an
|
|
777
|
+
* internal update loop which only occurs if the `features/implicitUpdatesEnabled` setting is set.
|
|
749
778
|
* @param id - The block to query.
|
|
750
779
|
* @returns The layout height.
|
|
751
780
|
*/
|
|
@@ -1872,6 +1901,48 @@ export declare class BlockAPI {
|
|
|
1872
1901
|
* @returns Whether solo playback is enabled for this block.
|
|
1873
1902
|
*/
|
|
1874
1903
|
isSoloPlaybackEnabled(id: DesignBlockId): boolean;
|
|
1904
|
+
/**
|
|
1905
|
+
* Returns whether the block supports a playback control.
|
|
1906
|
+
* @param block - The block to query.
|
|
1907
|
+
* @returns Whether the block has playback control.
|
|
1908
|
+
*/
|
|
1909
|
+
hasPlaybackControl(id: DesignBlockId): boolean;
|
|
1910
|
+
/**
|
|
1911
|
+
* Set whether the block should start from the beginning again or stop.
|
|
1912
|
+
* @param block - The block or video fill to update.
|
|
1913
|
+
* @param looping - Whether the block should loop to the beginning or stop.
|
|
1914
|
+
*/
|
|
1915
|
+
setLooping(id: DesignBlockId, looping: boolean): void;
|
|
1916
|
+
/**
|
|
1917
|
+
* Query whether the block is looping.
|
|
1918
|
+
* @param block - The block to query.
|
|
1919
|
+
* @returns Whether the block is looping.
|
|
1920
|
+
*/
|
|
1921
|
+
isLooping(id: DesignBlockId): boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
* Set whether the audio of the block is muted.
|
|
1924
|
+
* @param block - The block or video fill to update.
|
|
1925
|
+
* @param muted - Whether the audio should be muted.
|
|
1926
|
+
*/
|
|
1927
|
+
setMuted(id: DesignBlockId, muted: boolean): void;
|
|
1928
|
+
/**
|
|
1929
|
+
* Query whether the block is muted.
|
|
1930
|
+
* @param block - The block to query.
|
|
1931
|
+
* @returns Whether the block is muted.
|
|
1932
|
+
*/
|
|
1933
|
+
isMuted(id: DesignBlockId): boolean;
|
|
1934
|
+
/**
|
|
1935
|
+
* Set the audio volume of the given block.
|
|
1936
|
+
* @param block - The block or video fill to update.
|
|
1937
|
+
* @param volume - The desired volume with a range of [0, 1].
|
|
1938
|
+
*/
|
|
1939
|
+
setVolume(id: DesignBlockId, volume: number): void;
|
|
1940
|
+
/**
|
|
1941
|
+
* Get the audio volume of the given block.
|
|
1942
|
+
* @param block - The block to query.
|
|
1943
|
+
* @returns The volume with a range of [0, 1].
|
|
1944
|
+
*/
|
|
1945
|
+
getVolume(id: DesignBlockId): number;
|
|
1875
1946
|
/**
|
|
1876
1947
|
* Begins loading the required audio and video resource for the given video fill or audio block.
|
|
1877
1948
|
* @param id - The video fill or audio block whose resource should be loaded.
|
|
@@ -2278,6 +2349,16 @@ export declare class EditorAPI {
|
|
|
2278
2349
|
* @returns The value as string.
|
|
2279
2350
|
*/
|
|
2280
2351
|
getSettingEnum(keypath: string): string;
|
|
2352
|
+
/**
|
|
2353
|
+
* Get the currently available memory in bytes.
|
|
2354
|
+
* @returns The currently available memory in bytes.
|
|
2355
|
+
*/
|
|
2356
|
+
getAvailableMemory(): number;
|
|
2357
|
+
/**
|
|
2358
|
+
* Get the current memory usage of the engine in bytes.
|
|
2359
|
+
* @returns The current memory usage in bytes.
|
|
2360
|
+
*/
|
|
2361
|
+
getUsedMemory(): number;
|
|
2281
2362
|
/**
|
|
2282
2363
|
* Sets a custom URI resolver.
|
|
2283
2364
|
* This function can be called more than once. Subsequent calls will overwrite previous calls.
|
|
@@ -2558,6 +2639,14 @@ declare type Page = {
|
|
|
2558
2639
|
dimOutOfPageAreas?: boolean;
|
|
2559
2640
|
};
|
|
2560
2641
|
|
|
2642
|
+
/** @public */
|
|
2643
|
+
export declare interface PageDuration {
|
|
2644
|
+
pageId: DesignBlockId;
|
|
2645
|
+
duration: number;
|
|
2646
|
+
start: number;
|
|
2647
|
+
end: number;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2561
2650
|
/** @public */
|
|
2562
2651
|
declare type PageFormatDefinition = Preset & {
|
|
2563
2652
|
width: number;
|
|
@@ -2759,6 +2848,11 @@ export declare class SceneAPI {
|
|
|
2759
2848
|
* @returns The current mode of the scene.
|
|
2760
2849
|
*/
|
|
2761
2850
|
getMode(): SceneMode;
|
|
2851
|
+
/**
|
|
2852
|
+
* Get the sorted list of pages in the scene.
|
|
2853
|
+
* @returns The sorted list of pages in the scene.
|
|
2854
|
+
*/
|
|
2855
|
+
getPages(): DesignBlockId[];
|
|
2762
2856
|
/**
|
|
2763
2857
|
* Sets the zoom level of the active scene.
|
|
2764
2858
|
* Only has an effect if the zoom level is not handled by the UI.
|