大约有 474 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0045 秒)
Laya_社区(251) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(16)
...ase SCALE_SHOWALL: canvasWidth = realWidth = Math.round(desginWidth * scaleX); canvasHeight = realHeight = Math.round(desginHeight * scaleY); var minScale:Number= Math.min(scaleX, scaleY); ...
来源: Laya_社区 发布时间: 20170222
...e = str.substr(len, str.length - len - 1); console.log(name); let number = Math.floor(Math.random() * 9999); let name2; let lastIndex = name.lastIndexOf("_"); if(lastIndex == -1){ name2 = name + "_" + number; }else{ name2 = name.substr(0, lastIndex) + "_" + number; } let name2s = name2 + "("; //phpC...
来源: Laya_社区 发布时间: 20190613
...&& touches.length == 2) { this.preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouse...
来源: Laya_社区 发布时间: 20171201
...{ let result = { r: -1, g: -1, b: -1 }; result.b = color % 256; result.g = Math.floor((color / 256)) % 256; result.r = Math.floor((color / 256) / 256); return result; } let result = spliceColor(color); let lastResult = spliceColor(lastColor); let colorMatrix = [ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1...
来源: Laya_社区 发布时间: 20180930
...Loading(progress) { console.log("加载进度: " + Math.floor(progress*100)+"%"); } function onError(err) { console.log("加载失败: " + err); } function readnext(){ console.log("readnext"); ...
来源: Laya_社区 发布时间: 20171024
...onMouseUp); } /**移到事件处理*/ function onMouseMove(e) { button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件处理*/ function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, onMouseUp); Laya.s...
来源: Laya_示例 发布时间: 20241117
...a.d3.core.scene.BaseScene; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.events.Event; import laya.events.KeyBoardManager; /** * ... * @author */ public class CameraMoveScript extends Script { protected var lastMouseX:Number; protected var ...
来源: Laya_社区 发布时间: 20170218
... laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import laya.utils.Tween; import laya.d3.resource.models.PrimitiveMesh; import laya.debug.DebugPanel; import laya.debug.DebugTool; import laya.debug.ui.debugui.DebugPanelUI; ...
来源: Laya_社区 发布时间: 20170921
...his.onMouseUp); } /**移到事件处理*/ onMouseMove(e) { this.button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件处理*/ onMouseUp(e) { const Event = Laya.Event, Tween = Laya.Tween; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.of...
来源: Laya2.0_示例 发布时间: 20241117
...aw(_loader, new Matrix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitmapFill(bitmap_, matrix, true); sprite_.graphics.drawRect(100, 50, 200, 90); sprite_.graphics.endFill(); addChild(sprite_); 2017-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20170414