-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhmsl_api_renderer_jsdoc.ts
More file actions
67 lines (63 loc) · 1.83 KB
/
Copy pathhmsl_api_renderer_jsdoc.ts
File metadata and controls
67 lines (63 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* @description 把字符串的时间(格式:s或者ms)转换为数字
* @param {String} atime_str
* @example
* transAnimTime("0.5s");
*
* // Result: 500
*/
function transAnimTime(atime_str): Number {return null}
/**
* @description 以动画形式显示页面内容
* @param {Object} anim_target
* @param {String} targetType
* @param {Function} callback
* @example
* anim_target 参数格式:
* {
* hides: [
* {
* elm: [targetElement],
* direction: [right/left/top/bottom]
* }
* ],
* hide_container: [hide_container_div],
* shows: [
* {
* elm: [targetElement],
* direction: [right/left/top/bottom]
* }
* ],
* show_container: [hide_container_div]
* }
*/
function goPageWithAnimation(anim_target: Object, targetType: String, callback: Function=function(){}): void {}
/**
* @description 跳转页面
* @param {String} id
* @param {Object} topbar
* @example
* topbar 参数格式:
* {
* iconPath: "url('./res/img/appicon/icon.png')",
* iconClickEvent: "",
* title: `Hello Minecraft Sever Launcher v${appVersion}`
* }
*/
function goPage(id: String, topbar: Object): void {}
/**
* @description 注册页面。<br>此方法请在HTMLPreInit的时候注册否则无效
* @param {String} id
* @param {String} elementtext
* @param {String} maincontainer_display_mode
* @param {Object} contentcontainer_animation
* @example
* contentcontainer_animation 参数格式:
* [
* {
* elm: Element,
* direction: [right/left/top/bottom]
* }
* ]
*/
function registryPage(id, elementtext, maincontainer_display_mode: String="block", contentcontainer_animation: Object=null): void {}