大约有 712 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0049 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...信息。 DrawTextureCmd texture : Texture 纹理。 DrawTextureCmd width : Number (可选)宽度。 DrawTextureCmd x : Number (可选)X轴偏移量。 DrawTextureCmd y : Number (可选)Y轴偏移量。 DrawTextureCmdPublic Methods MethodDefined By recover():void 回收...
来源: Laya2.0_api 发布时间: 20190513
...all = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this....
来源: Laya_社区 发布时间: 20171108
...r letterText = new Laya.Text(); letterText.text ="hello world"; letterText.width = 400; letterText.height = 200; letterText.fontSize = 36; letterText.align = "center"; letterText.valign = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +...
来源: Laya_社区 发布时间: 20180620
...我自己谢了一个方法来实现 如下 AppConfig.viewRect = {};var divWidth = window.innerWidth; var divHeight = window.innerHeight; var devicePixelRatio = Laya.Browser.pixelRatio; var divH = divHeight * devicePixelRatio; var divW = divWidth * devicePixelRatio; var desH = Laya.stage.height; var...
来源: Laya_社区 发布时间: 20171205
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mou...
来源: laya_api 发布时间: 20170929
...or = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_La...
来源: Laya_示例 发布时间: 20250312
...or = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_Po...
来源: Laya_示例 发布时间: 20250312
... Constructors constructor Properties configPipeLineMode clientHeight clientWidth Accessors cameraShaderValue Methods changeScissor changeViewport drawRenderElement Constructors constructor new RenderContext3D(): RenderContext3D Defined in laya/d3/core/render/RenderContext3D.ts:171 创建一个 Rende...
来源: Laya3.0_api 发布时间: 20231115
...e/crazy_snowball.png", Handler.create(this, init)); function init(e) { var width = stage.width; var height = stage.height; var bg = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.addChild(guideContainer); guideContainer.mouse...
来源: Laya_社区 发布时间: 20171031
...-01 14:06 ```javascript var xml = '<Box y="0" x="0" width="746" name="fill_item" height="44" editorInfo="compId=11">' + '<Label width="746" name="bg" height="44" bgColor="#e5ba8a" editorInfo=...
来源: Laya_社区 发布时间: 20161201