@dcloudio/uni-app-x 0.7.111 → 0.7.112
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/package.json
CHANGED
|
@@ -147,20 +147,15 @@ declare global {
|
|
|
147
147
|
callback: (result: Array<[string, any | null]>) => void
|
|
148
148
|
}): Map<string, any | null>
|
|
149
149
|
/**
|
|
150
|
-
* 目前仅限 android
|
|
151
|
-
*
|
|
150
|
+
* 目前仅限 android 平台
|
|
151
|
+
* c层实现时,对数据暂存_textLayouts中,后批量flush同步至kotlin层
|
|
152
|
+
* kt层由编译器生成
|
|
152
153
|
* 接收三个参数:fid, eid, nodeId
|
|
153
|
-
* 需要将接收到的数据存储到 scope 的 _textLayouts
|
|
154
|
-
* [
|
|
155
|
-
* 每组数据前有一个 len,表示该组数据的元素个数(不含 len 本身)
|
|
154
|
+
* 需要将接收到的数据存储到 scope 的 _textLayouts 中,每4个一组
|
|
155
|
+
* [vueId, fid, eid, nodeId, vueId, fid, eid, nodeId, ...]
|
|
156
156
|
* @internal
|
|
157
157
|
*/
|
|
158
158
|
_createTextLayout(fid: number, eid: number, nodeId: number): void
|
|
159
|
-
/**
|
|
160
|
-
* 批量创建文本布局,kotlin 层方法
|
|
161
|
-
* @internal
|
|
162
|
-
*/
|
|
163
|
-
_createTextLayouts(data: IntArray, offset: Int, len: Int): void
|
|
164
159
|
/**
|
|
165
160
|
* 由编译器动态生成的子类中的 Element 渲染器,C层
|
|
166
161
|
* @internal
|
|
@@ -205,7 +200,7 @@ declare global {
|
|
|
205
200
|
/**
|
|
206
201
|
* 目前仅限 android 平台
|
|
207
202
|
* 文本布局缓存数组
|
|
208
|
-
* [
|
|
203
|
+
* [vueId, fid, eid, nodeId, vueId, fid, eid, nodeId, ...]
|
|
209
204
|
* @internal
|
|
210
205
|
*/
|
|
211
206
|
_textLayouts: IntArray
|
|
@@ -225,14 +220,14 @@ declare global {
|
|
|
225
220
|
*/
|
|
226
221
|
_render: () => Promise<void>
|
|
227
222
|
/**
|
|
228
|
-
* 目前仅限 android
|
|
229
|
-
* 批量同步文本布局至kotlin层,kotlin层会根据
|
|
223
|
+
* 目前仅限 android 平台,c层调用该kt方法同步批量创建textLayout
|
|
224
|
+
* 批量同步文本布局至kotlin层,kotlin层会根据data数组进行处理(编译器生成指定函数switch执行具体的创建逻辑)
|
|
230
225
|
* 需要确保调用时机(确保在排版之前同步触发):
|
|
231
226
|
* 当页面首次渲染时,在调用c层renderElement之后同步调用
|
|
232
227
|
* 当页面二次更新时,在flushJobs中所有element jobs执行完之后调用
|
|
233
228
|
* @internal
|
|
234
229
|
*/
|
|
235
|
-
_flushTextLayouts(): void
|
|
230
|
+
_flushTextLayouts(data: IntArray): void
|
|
236
231
|
}
|
|
237
232
|
|
|
238
233
|
abstract class UniSharedDataApp extends UniSharedData {
|