大约有 715 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
Laya_社区(314) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...skArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionArea); // 设置叠加模式 interacti...
来源: Laya2.0_示例 发布时间: 20251130
...rarchy DrawRoundRectCmd Index Properties fillColor height lb lineColor lineWidth lt percent rb rt width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawRoundRectCmd.ts:43 填充颜色,或者填充绘图的渐变对象。 height height: numb...
来源: Laya3.0_api 发布时间: 20231115
... 绘制图片 Hierarchy DrawImageCmd Index Properties color height texture width x y ID Methods recover Properties color color: number = 4294967295 Defined in laya/display/cmd/DrawImageCmd.ts:34 (可选)绘图颜色 height height: number Defined in laya/display/cmd/DrawImageCmd.ts:31 (可选...
来源: Laya3.0_api 发布时间: 20231115
... // androidplat,创建二维码 createQrCode(url:string, width:number, height:number):string { return this._bridge.call("createQrCode", url, width, height); } // 以下android代码 // JSBridge.javapublic static String createQrCode(final String c...
来源: Laya_社区 发布时间: 20200729
...; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color,1); let secondLineY = words[slsIndex+1].y + words[slsIndex+1].height; graphic.drawLine(words[slsIndex+1].x,secondLineY,lastWords.x+lastWords.width,secondLineY,color,1); }else{ graphic.drawLine(words[0]....
来源: Laya_社区 发布时间: 20190611
...为0ColliderBase rigidBody : RigidBody[只读]刚体引用ColliderBase width : Number矩形宽度BoxCollider x : Number相对节点的x轴偏移BoxCollider y : Number相对节点的y轴偏移BoxColliderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefine...
来源: Laya2.0_api 发布时间: 20190513
...athCmd.ts:30 (可选)画笔定义,支持以下设置{strokeStyle,lineWidth,lineJoin:"bevel|round|miter",lineCap:"butt|round|square",miterLimit}。 x x: number Defined in laya/display/cmd/DrawPathCmd.ts:14 开始绘制的 X 轴位置。 y y: number Defined in laya/display/cmd/DrawPathCmd.ts:18 ...
来源: Laya3.0_api 发布时间: 20231115
...itDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils getGID():int[static] 获取一个全局唯一ID。Utils getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入...
来源: laya_api 发布时间: 20170929
... if (this.x < 0 || this.x > this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) { this.hide(); } else { this.show(); ...
来源: Laya_社区 发布时间: 20220627
...ar ape = new Sprite(); ape.loadImage("../bin/res/images/2.png",(Laya.stage.width)/2,(Laya.stage.height)/2); 效果和 ape.x=(Laya.stage.width)/2; ape.y=(Laya.stage.height)/2;不同这是为什么? 2017-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20170717