大约有 834 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
Laya_社区(448) Laya3.0_api(112) Laya2.0_api(90) laya_api(77) Laya2.0_文档(54) Laya3.0_文档(49) Laya2.0_示例(2) Laya_示例(2)
...不可见,节点将不被渲染。Sprite width : Number 显示对象的宽度,单位为像素,默认为0。 此宽度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。 可以通过getbounds获取...
来源: laya_api 发布时间: 20170929
...ction init(){ //如果位图字体中,没放空格,最好设置一个空格宽度 this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont); var test = new Laya.Text(); test.font=this.mFontName; test.text = "这是一个文本"; Laya.stage.addChild(test); } 20...
来源: Laya_社区 发布时间: 20170829
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...缓动文本 createTween(); function createTween(){ //"LayaBox"字符串总宽度 var w = 800; //文本创建的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX = Laya.stage.width - w >> 1; //显示的字符串 var demoString = "LayaBox"; var letterText; for(v...
来源: Laya2.0_文档 发布时间: 20210715
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...不可见,节点将不被渲染。Sprite width : Number 显示对象的宽度,单位为像素,默认为0。 此宽度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。 可以通过getbounds获取...
来源: laya_api 发布时间: 20170929
...rlineColor = "#ff0000"; //下划线颜色 this.txtarea.stroke = 5; //描边宽度 this.txtarea.strokeColor = "#000000" ; //描边颜色 this.txtarea.wordWrap = true; //自动换行 this.txtarea.overflow = "scroll"; //文本溢出 this.txtarea.skin = "atlas/comp/textarea.png"; //皮肤 this.txtarea.b...
来源: Laya3.0_文档 发布时间: 20251010
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...体 */ italic?: number; /** * 行间距 */ leading?: number; /** * 描边宽度 */ stroke?: number; /** * 描边颜色 */ strokeColor?: string; /** * 下划线 */ underline?: number; /** * 下划线颜色 */ underlineColor?:string; /** * 是否自动换行 */ wordWrap?: number; /** * 默认提示的...
来源: Laya_社区 发布时间: 20171226