-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathmanifest.json
125 lines (125 loc) · 6.24 KB
/
manifest.json
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"version": "1.0.1",
"registerClass":"lark",
"modules": [
{
"name": "lark",
"description": "Lark 核心库",
"files": [
{ "path": "../Defines.debug.ts", "debug": true },
{ "path": "../Defines.release.ts", "debug": false },
{ "path": "i18n/en_US.ts", "debug": true },
{ "path": "i18n/zh_CN.ts", "debug": true },
{ "path": "web/CanvasFactory.ts", "platform": "web" },
{ "path": "web/HtmlSound.ts", "platform": "web" },
{ "path": "web/HtmlSoundChannel.ts", "platform": "web" },
{ "path": "web/LarkWeb.ts", "platform": "web" },
{ "path": "web/WebBitmapData.ts", "platform": "web" },
{ "path": "web/WebCapability.ts", "platform": "web" },
{ "path": "web/WebGeolocation.ts", "platform": "web" },
{ "path": "web/WebHttpRequest.ts", "platform": "web" },
{ "path": "web/WebImageLoader.ts", "platform": "web" },
{ "path": "web/WebMotion.ts", "platform": "web" },
{ "path": "web/WebOrientation.ts", "platform": "web" },
{ "path": "web/WebPlayer.ts", "platform": "web" },
{ "path": "web/WebTextAdapter.ts", "platform": "web" },
{ "path": "web/WebTouchHandler.ts", "platform": "web" },
{ "path": "web/WebVideo.ts", "platform": "web" },
{ "path": "web/WebXML.ts", "platform": "web" }
],
"root": "src/lark",
"dependencies": [ ]
},
{
"name": "swan",
"description": "Swan 图形界面库",
"files": [
{ "path": "i18n/en_US.ts", "debug": true },
{ "path": "i18n/zh_CN.ts", "debug": true }
],
"root": "src/extension/swan",
"dependencies": [ "lark" ]
},
{
"name": "resource",
"description": "RES 资源加载库",
"files": [
{ "path": "i18n/en_US.ts", "debug": true },
{ "path": "i18n/zh_CN.ts", "debug": true }
],
"root": "src/extension/resource",
"dependencies": [ "lark" ]
}
],
"platforms": [
{
"name": "any",
"declaration": true,
"hidden": true
},
{
"name": "web",
"description": "Web"
},
{
"name": "native",
"description": "Native"
}
],
"templates": [
{
"name": "swan",
"description": "使用 swan 扩展库创建友好的交互界面",
"modules": [ "lark","swan","resource" ]
},
{
"name": "empty",
"description": "创建一个空项目",
"modules": [ "lark","swan","resource" ]
}
],
"scaleModes": [
{
"name": "noScale",
"description": "不缩放应用程序内容。即使在更改播放器视口大小时,它仍然保持不变。如果播放器视口比内容小,则可能进行一些裁切。在此模式下,舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终跟播放器视口大小保持一致。"
},
{
"name": "showAll",
"description": "保持原始宽高比缩放应用程序内容,缩放后应用程序内容的较宽方向填满播放器视口,另一个方向的两侧可能会不够宽而留有黑边。在此模式下,舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终等于初始化时外部传入的应用程序内容尺寸。"
},
{
"name": "noBorder",
"description": "保持原始宽高比缩放应用程序内容,缩放后应用程序内容的较窄方向填满播放器视口,另一个方向的两侧可能会超出播放器视口而被裁切。在此模式下,舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终等于初始化时外部传入的应用程序内容尺寸。"
},
{
"name": "exactFit",
"description": "不保持原始宽高比缩放应用程序内容,缩放后应用程序内容正好填满播放器视口。在此模式下,舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终等于初始化时外部传入的应用程序内容尺寸。"
},
{
"name": "fixedWidth",
"description": "保持原始宽高比缩放应用程序内容,缩放后应用程序内容在水平和垂直方向都填满播放器视口,但只保持应用程序内容的原始宽度不变,高度可能会改变。在此模式下,舞台宽度(Stage.stageWidth)始终等于初始化时外部传入的应用程序内容宽度。舞台高度(Stage.stageHeight)由当前的缩放比例与播放器视口高度决定。"
},
{
"name": "fixedHeight",
"description": "保持原始宽高比缩放应用程序内容,缩放后应用程序内容在水平和垂直方向都填满播放器视口,但只保持应用程序内容的原始高度不变,宽度可能会改变。在此模式下,舞台高度(Stage.stageHeight)始终等于初始化时外部传入的应用程序内容高度。舞台宽度(Stage.stageWidth)由当前的缩放比例与播放器视口宽度决定。"
}
],
"orientationModes": [
{
"name": "auto",
"description":"不强制旋转应用程序。应用程序随设备旋转而旋转"
},
{
"name": "portrait",
"description":"强制旋转应用程序至竖屏状态。此模式下,当屏幕宽度大于屏幕高度时,会自动将应用程序逆时针旋转90°。"
},
{
"name": "landscape",
"description":"强制旋转应用程序至横屏状态。此模式下,当屏幕高度大于屏幕宽度时,会自动将应用程序顺时针旋转90°。"
},
{
"name": "landscapeFlipped",
"description":"强制旋转应用程序至横屏状态。此模式下,当屏幕高度大于屏幕宽度时,会自动将应用程序逆时针旋转90°。"
}
]
}