• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 998 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0082 秒)

161. 屏幕适配-屏幕适配 [ 66%]

...BoyClick(e) { //点击后小人会放大缩小 var boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } function onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]...

来源: Laya_示例 发布时间: 20241117

162. 没有预加载的图片怎么获取width和height ? [ 66%]

...image.png");     Laya.stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,o...

来源: Laya_社区 发布时间: 20170118

163. 屏幕适配-屏幕适配 [ 66%]

...BoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]; this.tx...

来源: Laya2.0_示例 发布时间: 20241117

164. laya.display.Text_API3.0 [ 65%]

...splayedInStage drawCallOptimize filters font fontSize globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea html htmlParseOptions is3D italic leading lines mask maxScrollX maxScrollY maxWidth mouseEnabled mouseX mouseY numChildren objContainer overflow padding parent pivotX pivo...

来源: Laya3.0_api 发布时间: 20231115

165. laya.ui.HScrollBar_API3.0 [ 65%]

...isplayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

来源: Laya3.0_api 发布时间: 20231115

166. laya.ui.VScrollBar_API3.0 [ 65%]

...isplayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

来源: Laya3.0_api 发布时间: 20231115

167. laya.utils.Utils [ 65%]

...缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Utils  getTransformRelativeToWindow(coordinateSpace:Sprite, x:Number, y:Number):Object[static] 获取指定区域内相对于窗口左上角的transform。 Utils  measureText(txt:String, font:String...

来源: laya_api 发布时间: 20170929

168. laya.ui.RadioGroup_API3.0 [ 65%]

...isplayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labels left mask mouseEnabled mouseX mouseY numChildren parent pivotX p...

来源: Laya3.0_api 发布时间: 20231115

169. laya.ui.ComboBox_API3.0 [ 65%]

...isplayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D isOpen itemColors itemHeight itemPadding itemSize labelBold labelColors labelFont labelPadding labelSize labels left list mask mouseEnabled mouseX mouseY numChil...

来源: Laya3.0_api 发布时间: 20231115

170. laya.ui.Label_API3.0 [ 65%]

...age drawCallOptimize filters fitContent font fontSize globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea html ignoreLang is3D italic leading left mask maxWidth mouseEnabled mouseX mouseY numChildren overflow padding parent pivotX pivotY right rotation scaleX scaleY scene...

来源: Laya3.0_api 发布时间: 20231115