大约有 698 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0123 秒)
Laya_社区(336) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(44) Laya2.0_示例(19) Laya_示例(15)
...prite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.name = "maskArea"; this.guideContainer.addChild(maskArea); this.interactionArea = new Laya.Sprite(); this.interactionArea.blendMode = "destination-out"; this.guideContainer.addCh...
来源: Laya_社区 发布时间: 20171222
...居中布局无效 一个文本,设置align=center,并且设置了宽度值width 但是发现一个问题,当这个文本较长,里面文本的宽度超出了文本框的width的时候,就不会居中了,实际效果看上去是左对齐。 一定要在给设置width的时候,考虑最长...
来源: Laya_社区 发布时间: 20170307
... progressBar.value = 0.3;//设置 progressBar 的进度值。 progressBar.width = 200;//设置 progressBar 的宽度。 progressBar.height = 50;//设置 progressBar 的高度。 progressBar.sizeGrid = "5,10,5,10";//设置 progressBar 的网格信息。 progressBar.changeHandler = new Handler(this, o...
来源: Laya3.0_api 发布时间: 20231115
...显示 Utils.fitDOMElementInArea=function(dom,coordinateSpace,x,y,width,height){ if (!dom._fitLayaAirInitialized){ dom._fitLayaAirInitialized=true; dom.style.transformOrigin=dom.style.webKittransformOrigin="left top"; 修改为...
来源: Laya_社区 发布时间: 20180113
...幕宽高为`375*667`。LayaAir引擎可以通过laya.utils.Browser.clientWidth和laya.utils.Browser.clientHeight来获取屏幕的宽与高。 **6、物理宽高:** 关于设备屏幕的物理宽高,我们需要先了解像素密度的概念。在PC电脑上,通常一个像素位置上就...
来源: Laya2.0_文档 发布时间: 20200307
...中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’...
来源: Laya3.0_文档 发布时间: 20230303
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory errorTexture gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuComp...
来源: Laya3.0_api 发布时间: 20231115
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL of...
来源: Laya3.0_api 发布时间: 20231115
...Through name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation glob...
来源: Laya3.0_api 发布时间: 20231115
...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY aniMode animationName blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globa...
来源: Laya3.0_api 发布时间: 20231115