|
1315 | 1315 | }, |
1316 | 1316 | { |
1317 | 1317 | "kind": "Reference", |
1318 | | - "text": "Object", |
1319 | | - "canonicalReference": "!Object:interface" |
| 1318 | + "text": "AnyObject", |
| 1319 | + "canonicalReference": "sculp-js!AnyObject:type" |
| 1320 | + }, |
| 1321 | + { |
| 1322 | + "kind": "Content", |
| 1323 | + "text": " | " |
| 1324 | + }, |
| 1325 | + { |
| 1326 | + "kind": "Reference", |
| 1327 | + "text": "AnyArray", |
| 1328 | + "canonicalReference": "sculp-js!AnyArray:type" |
1320 | 1329 | }, |
1321 | 1330 | { |
1322 | 1331 | "kind": "Content", |
|
1326 | 1335 | "fileUrlPath": "lib/index.d.ts", |
1327 | 1336 | "returnTypeTokenRange": { |
1328 | 1337 | "startIndex": 6, |
1329 | | - "endIndex": 7 |
| 1338 | + "endIndex": 9 |
1330 | 1339 | }, |
1331 | 1340 | "releaseTag": "Public", |
1332 | 1341 | "overloadIndex": 1, |
|
2257 | 2266 | { |
2258 | 2267 | "kind": "Function", |
2259 | 2268 | "canonicalReference": "sculp-js!forEachDeep:function(1)", |
2260 | | - "docComment": "/**\n * 自定义深度优先遍历函数(支持continue和break操作)\n *\n * @param tree - 树形数据\n *\n * @param iterator - 迭代函数, 返回值为true时continue, 返回值为false时break\n *\n * @param children - 定制子元素的key\n *\n * @param isReverse - 是否反向遍历\n *\n * @returns {*}\n */\n", |
| 2269 | + "docComment": "/**\n * 自定义深度优先遍历函数(支持continue和break操作), 可用于insert tree item 和 remove tree item\n *\n * @param tree - 树形数据\n *\n * @param iterator - 迭代函数, 返回值为true时continue, 返回值为false时break\n *\n * @param children - 定制子元素的key\n *\n * @param isReverse - 是否反向遍历\n *\n * @returns {*}\n */\n", |
2261 | 2270 | "excerptTokens": [ |
2262 | 2271 | { |
2263 | 2272 | "kind": "Content", |
|
2278 | 2287 | }, |
2279 | 2288 | { |
2280 | 2289 | "kind": "Content", |
2281 | | - "text": "(val: V, i: number, arr: " |
| 2290 | + "text": "(val: V, i: number, currentArr: " |
| 2291 | + }, |
| 2292 | + { |
| 2293 | + "kind": "Reference", |
| 2294 | + "text": "ArrayLike", |
| 2295 | + "canonicalReference": "!ArrayLike:interface" |
| 2296 | + }, |
| 2297 | + { |
| 2298 | + "kind": "Content", |
| 2299 | + "text": "<V>, tree: " |
2282 | 2300 | }, |
2283 | 2301 | { |
2284 | 2302 | "kind": "Reference", |
|
2320 | 2338 | ], |
2321 | 2339 | "fileUrlPath": "lib/index.d.ts", |
2322 | 2340 | "returnTypeTokenRange": { |
2323 | | - "startIndex": 12, |
2324 | | - "endIndex": 13 |
| 2341 | + "startIndex": 14, |
| 2342 | + "endIndex": 15 |
2325 | 2343 | }, |
2326 | 2344 | "releaseTag": "Public", |
2327 | 2345 | "overloadIndex": 1, |
|
2338 | 2356 | "parameterName": "iterator", |
2339 | 2357 | "parameterTypeTokenRange": { |
2340 | 2358 | "startIndex": 4, |
2341 | | - "endIndex": 7 |
| 2359 | + "endIndex": 9 |
2342 | 2360 | }, |
2343 | 2361 | "isOptional": false |
2344 | 2362 | }, |
2345 | 2363 | { |
2346 | 2364 | "parameterName": "children", |
2347 | 2365 | "parameterTypeTokenRange": { |
2348 | | - "startIndex": 8, |
2349 | | - "endIndex": 9 |
| 2366 | + "startIndex": 10, |
| 2367 | + "endIndex": 11 |
2350 | 2368 | }, |
2351 | 2369 | "isOptional": true |
2352 | 2370 | }, |
2353 | 2371 | { |
2354 | 2372 | "parameterName": "isReverse", |
2355 | 2373 | "parameterTypeTokenRange": { |
2356 | | - "startIndex": 10, |
2357 | | - "endIndex": 11 |
| 2374 | + "startIndex": 12, |
| 2375 | + "endIndex": 13 |
2358 | 2376 | }, |
2359 | 2377 | "isOptional": true |
2360 | 2378 | } |
|
2497 | 2515 | ], |
2498 | 2516 | "name": "formatNumber" |
2499 | 2517 | }, |
| 2518 | + { |
| 2519 | + "kind": "Function", |
| 2520 | + "canonicalReference": "sculp-js!formatTree:function(1)", |
| 2521 | + "docComment": "/**\n * 扁平化数组转换成树(效率高于buildTree)\n *\n * @param list - \n *\n * @param options - \n *\n * @returns {any[]}\n */\n", |
| 2522 | + "excerptTokens": [ |
| 2523 | + { |
| 2524 | + "kind": "Content", |
| 2525 | + "text": "declare function formatTree(list: " |
| 2526 | + }, |
| 2527 | + { |
| 2528 | + "kind": "Content", |
| 2529 | + "text": "any[]" |
| 2530 | + }, |
| 2531 | + { |
| 2532 | + "kind": "Content", |
| 2533 | + "text": ", options?: " |
| 2534 | + }, |
| 2535 | + { |
| 2536 | + "kind": "Reference", |
| 2537 | + "text": "IFieldOptions", |
| 2538 | + "canonicalReference": "sculp-js!IFieldOptions:interface" |
| 2539 | + }, |
| 2540 | + { |
| 2541 | + "kind": "Content", |
| 2542 | + "text": "): " |
| 2543 | + }, |
| 2544 | + { |
| 2545 | + "kind": "Content", |
| 2546 | + "text": "any[]" |
| 2547 | + }, |
| 2548 | + { |
| 2549 | + "kind": "Content", |
| 2550 | + "text": ";" |
| 2551 | + } |
| 2552 | + ], |
| 2553 | + "fileUrlPath": "lib/index.d.ts", |
| 2554 | + "returnTypeTokenRange": { |
| 2555 | + "startIndex": 5, |
| 2556 | + "endIndex": 6 |
| 2557 | + }, |
| 2558 | + "releaseTag": "Public", |
| 2559 | + "overloadIndex": 1, |
| 2560 | + "parameters": [ |
| 2561 | + { |
| 2562 | + "parameterName": "list", |
| 2563 | + "parameterTypeTokenRange": { |
| 2564 | + "startIndex": 1, |
| 2565 | + "endIndex": 2 |
| 2566 | + }, |
| 2567 | + "isOptional": false |
| 2568 | + }, |
| 2569 | + { |
| 2570 | + "parameterName": "options", |
| 2571 | + "parameterTypeTokenRange": { |
| 2572 | + "startIndex": 3, |
| 2573 | + "endIndex": 4 |
| 2574 | + }, |
| 2575 | + "isOptional": true |
| 2576 | + } |
| 2577 | + ], |
| 2578 | + "name": "formatTree" |
| 2579 | + }, |
2500 | 2580 | { |
2501 | 2581 | "kind": "Function", |
2502 | 2582 | "canonicalReference": "sculp-js!genCanvasWM:function(1)", |
|
3220 | 3300 | "endIndex": 2 |
3221 | 3301 | } |
3222 | 3302 | }, |
| 3303 | + { |
| 3304 | + "kind": "Interface", |
| 3305 | + "canonicalReference": "sculp-js!IFieldOptions:interface", |
| 3306 | + "docComment": "", |
| 3307 | + "excerptTokens": [ |
| 3308 | + { |
| 3309 | + "kind": "Content", |
| 3310 | + "text": "interface IFieldOptions " |
| 3311 | + } |
| 3312 | + ], |
| 3313 | + "fileUrlPath": "lib/index.d.ts", |
| 3314 | + "releaseTag": "Public", |
| 3315 | + "name": "IFieldOptions", |
| 3316 | + "preserveMemberOrder": false, |
| 3317 | + "members": [ |
| 3318 | + { |
| 3319 | + "kind": "PropertySignature", |
| 3320 | + "canonicalReference": "sculp-js!IFieldOptions#childField:member", |
| 3321 | + "docComment": "", |
| 3322 | + "excerptTokens": [ |
| 3323 | + { |
| 3324 | + "kind": "Content", |
| 3325 | + "text": "childField: " |
| 3326 | + }, |
| 3327 | + { |
| 3328 | + "kind": "Content", |
| 3329 | + "text": "string" |
| 3330 | + }, |
| 3331 | + { |
| 3332 | + "kind": "Content", |
| 3333 | + "text": ";" |
| 3334 | + } |
| 3335 | + ], |
| 3336 | + "isReadonly": false, |
| 3337 | + "isOptional": false, |
| 3338 | + "releaseTag": "Public", |
| 3339 | + "name": "childField", |
| 3340 | + "propertyTypeTokenRange": { |
| 3341 | + "startIndex": 1, |
| 3342 | + "endIndex": 2 |
| 3343 | + } |
| 3344 | + }, |
| 3345 | + { |
| 3346 | + "kind": "PropertySignature", |
| 3347 | + "canonicalReference": "sculp-js!IFieldOptions#keyField:member", |
| 3348 | + "docComment": "", |
| 3349 | + "excerptTokens": [ |
| 3350 | + { |
| 3351 | + "kind": "Content", |
| 3352 | + "text": "keyField: " |
| 3353 | + }, |
| 3354 | + { |
| 3355 | + "kind": "Content", |
| 3356 | + "text": "string" |
| 3357 | + }, |
| 3358 | + { |
| 3359 | + "kind": "Content", |
| 3360 | + "text": ";" |
| 3361 | + } |
| 3362 | + ], |
| 3363 | + "isReadonly": false, |
| 3364 | + "isOptional": false, |
| 3365 | + "releaseTag": "Public", |
| 3366 | + "name": "keyField", |
| 3367 | + "propertyTypeTokenRange": { |
| 3368 | + "startIndex": 1, |
| 3369 | + "endIndex": 2 |
| 3370 | + } |
| 3371 | + }, |
| 3372 | + { |
| 3373 | + "kind": "PropertySignature", |
| 3374 | + "canonicalReference": "sculp-js!IFieldOptions#pidField:member", |
| 3375 | + "docComment": "", |
| 3376 | + "excerptTokens": [ |
| 3377 | + { |
| 3378 | + "kind": "Content", |
| 3379 | + "text": "pidField: " |
| 3380 | + }, |
| 3381 | + { |
| 3382 | + "kind": "Content", |
| 3383 | + "text": "string" |
| 3384 | + }, |
| 3385 | + { |
| 3386 | + "kind": "Content", |
| 3387 | + "text": ";" |
| 3388 | + } |
| 3389 | + ], |
| 3390 | + "isReadonly": false, |
| 3391 | + "isOptional": false, |
| 3392 | + "releaseTag": "Public", |
| 3393 | + "name": "pidField", |
| 3394 | + "propertyTypeTokenRange": { |
| 3395 | + "startIndex": 1, |
| 3396 | + "endIndex": 2 |
| 3397 | + } |
| 3398 | + } |
| 3399 | + ], |
| 3400 | + "extendsTokenRanges": [] |
| 3401 | + }, |
3223 | 3402 | { |
3224 | 3403 | "kind": "Variable", |
3225 | 3404 | "canonicalReference": "sculp-js!isArray:var", |
|
0 commit comments