大约有 459 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(250) Laya2.0_示例(90) Laya_示例(69) Laya2.0_文档(37) Laya3.0_文档(9) Laya3.0_api(2) laya_api(1) Laya2.0_api(1)
...t module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.A...
来源: Laya2.0_文档 发布时间: 20210714
...plet = Laya.Templet; var Sprite = Laya.Sprite; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Tween = Laya.Tween; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex ...
来源: Laya_示例 发布时间: 20241124
...效。let preRadian = 0; class Interaction_Rotate { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV...
来源: Laya2.0_示例 发布时间: 20241124
... Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var n = 2000; var d = 1; var current = 0; var objs = 17; var vx = 0; var vy = 0; var vz = 0; var points1 = []; var points2 = []; var points3 = []; var tpoi...
来源: Laya_示例 发布时间: 20241124
... Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var n = 2000; var d = 1; var current = 0; var objs = 17; var vx = 0; var vy = 0; var vz = 0; var points1 = []; var points2 = []; var points3 = []; var tpoi...
来源: Laya2.0_示例 发布时间: 20241124
... ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.font = ctxFont; var padding = this.padding; var startX = padding[3]; var textAlgin = "left"; var lineHeight = this.le...
来源: Laya_社区 发布时间: 20180417
...引擎 Laya.init(600,400); Laya.stage.bgColor = "#ffcccc"; var div = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.q...
来源: Laya2.0_文档 发布时间: 20210714
... Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var Browser = Laya.Browser; var Stat = Laya.Stat; var Render = Laya.Render; var stageWidth = 800; var stageHeight = 600; var Matter = Browser.window.Matter; var LayaRender = Browser.window.LayaRender; var mouseConstraint; var eng...
来源: Laya_示例 发布时间: 20241124
...解决方法需要改动viewport 把width去掉,这样的话使用Laya.Browser.clientWidth获取的实际宽高就不是设备的width了 想解决的是:在显示不模糊的情况下,还能获取设备的实际宽高。 2018-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180228
...= 500, mCurrIndex = 0; class Skeleton_MultiTexture { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; ...
来源: Laya2.0_示例 发布时间: 20241124