大约有 232 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
...map((x: number) => target[index + x]) : [] ) .filter((x: any[]) => x.length > 0); if (markString) result = result.map((x: any[]) => x.join("")) return result; } padding(str: string | any[], length: number, char: string, tail: boolean = true, isArray: boolean = Array.isArray(str)) { let a...
来源: Laya_社区 发布时间: 20190321
...) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如...
来源: Laya_社区 发布时间: 20210527
... = "#888"; // 用户什么也没输入则恢复默认状态 if (input.text.length == 0) { this._setPlaceHolder(input); // input.align = "right"; // input.type = "text"; } lable.color = "#888"; break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // ...
来源: Laya_社区 发布时间: 20200410
...ics; } onMouseDown() { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } animate() { l...
来源: Laya2.0_示例 发布时间: 20241118
...nction onMouseDown() { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } function onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } function onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color...
来源: Laya_示例 发布时间: 20241118
...is._dataObj[this._valueName]=this._value; SaveBase._cache[SaveBase._cache._length++]=this; this._newSubmit && (context._curSubmit=Submit.RENDERBASE,context._renderKey=0); } SaveBase._createArray=function(){ var value=; value._length=0; return value; } SaveBase._init=function(){ var namemap=S...
来源: Laya_社区 发布时间: 20171104
...(); for (var i = 0, n = defineNames.length; i < n; i++) //将宏定义名称转换为 Laya.DefineDatas compileDefineDatas.add(Shader3D.getDefineByName(defineNames)); ...
来源: Laya_社区 发布时间: 20200606
... } this.length--; if (index!==this.length){ var end=this.elements[this.length]; // @xd added, 添加end是存存在判断 ...
来源: Laya_社区 发布时间: 20190618
...split(''); for (var i:int = 0; i < splitArr.length; i++) { var te:Texture = _sources[splitArr[i]] as Texture; if (_align != "right") { this.graphics.drawText...
来源: Laya_社区 发布时间: 20170601
...) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如...
来源: Laya_社区 发布时间: 20210527