• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,761 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)

841. list 加载动画为什么实现的效果会错乱掉? [ 66%]

...的边界信息 var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya...

来源: Laya_社区 发布时间: 20170627

842. laya.ui.ColorPicker_API3.0 [ 66%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode borderColor bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage draw...

来源: Laya3.0_api 发布时间: 20231115

843. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 66%]

...).pos(290, 150); } function createLabel(color, strokeColor) { const STROKE_WIDTH = 4; var label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya...

来源: Laya2.0_文档 发布时间: 20210714

844. laya.utils.Browser_API3.0 [ 66%]

...Storage supportWebAudio userAgent Accessors _isMiniGame clientHeight clientWidth container document height pixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71...

来源: Laya3.0_api 发布时间: 20231115

845. laya.ui.TextArea [ 66%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite editable : Boolean 设置可编辑状态。 TextInput filters : Array滤镜集合。可以设置多个滤...

来源: Laya2.0_api 发布时间: 20190513

846. laya.utils.Browser [ 66%]

...高度),如果前者为0或为空,则选择后者。 Browser  clientWidth : Number[static] [read-only] 浏览器窗口可视宽度。 通过分析浏览器信息获得。浏览器多个属性值优先级为:window.innerWidth(包含滚动条宽度) > document.body.clientWidth(不包含滚...

来源: laya_api 发布时间: 20170929

847. 骨骼动画-Spine事件 [ 66%]

...Index = 0; var mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFacto...

来源: Laya_示例 发布时间: 20260303

848. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 66%]

..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...

来源: Laya2.0_文档 发布时间: 20210715

849. LayaBox加载TiledMap地图和注意事项 [ 66%]

... this.loadScene("Desert.scene"); //初始化舞台 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0, 0, Laya.Browser.width, Laya.Browser.height); //创...

来源: Laya_社区 发布时间: 20190321

850. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 66%]

...获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDiv...

来源: Laya_社区 发布时间: 20161027