大约有 236 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0034 秒)
...S_TIMER_TYPE_RECT:String = "PROGRESS_TIMER_TYPE_RECT" public function ProcessTimer(size:Size) { this.spSize = size; super(); } public static function create(img:Image,size:laya.maths.Size...
来源: Laya_社区 发布时间: 20180404
...noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; // Laya.stage.scaleMode = "noscale"; // Laya.stage.scaleMode = "fixedwidth"; Laya.stage.scaleMode = "fixedheight"; Laya.stage.bgColor = "#ff0000"...
来源: Laya_社区 发布时间: 20170206
...webgl.WebGL; public class Interaction_Mouse { private var txt:Text; public function Interaction_Mouse() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage....
来源: Laya2.0_示例 发布时间: 20241125
...; public class SmartScale_Scale_NOBORDER { private var rect:Sprite; public function SmartScale_Scale_NOBORDER() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); ...
来源: Laya2.0_示例 发布时间: 20241125
...e; public class SmartScale_Scale_NOSCALE { private var rect:Sprite; public function SmartScale_Scale_NOSCALE() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); re...
来源: Laya2.0_示例 发布时间: 20241125
...域都是没有关系的,我们需要设置的是hitArea,如下所示 (function () { var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.he...
来源: Laya_社区 发布时间: 20170830
...ublic class SmartScale_Scale_EXTRACT_FIT { private var rect:Sprite; public function SmartScale_Scale_EXTRACT_FIT() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(...
来源: Laya2.0_示例 发布时间: 20241125
...; public class SmartScale_Scale_SHOW_ALL { private var rect:Sprite; public function SmartScale_Scale_SHOW_ALL() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); r...
来源: Laya2.0_示例 发布时间: 20241125
...下方法 /** *设置容器的点击区域 */ __proto.setContentHitArea = function () { var content=this._content; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; ...
来源: Laya_社区 发布时间: 20170610
...ridHeight:Number [read-only] 块的高度 Implementation public function get gridHeight():NumbergridWidthproperty gridWidth:Number [read-only] 块的宽度 Implementation public function get gridWidth():Numberheightproperty height:int [read-only] 地图的高度 Implementa...
来源: laya_api 发布时间: 20170929