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

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

351. 显示对象skew与scale同时设置时,APP与浏览器显示效果不一致 [ 68%]

...; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 300; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stage.addChild(spr); } for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*...

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

352. 鼠标交互-拖动 [ 68%]

...1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dr...

来源: Laya2.0_示例 发布时间: 20251209

353. laya.html.dom.HTMLDivElement_API3.0 [ 67%]

...ent HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeig...

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

354. laya.ui.CheckBox_API3.0 [ 67%]

...ckBox Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs center...

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

355. laya.ui.Radio_API3.0 [ 67%]

...Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs center...

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

356. laya.display.AnimationBase_API3.0 [ 67%]

...meAnimation Animation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anch...

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

357. laya.display.FrameAnimation_API3.0 [ 67%]

...ation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anch...

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

358. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 67%]

...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...

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

359. 关于intersects碰撞的疑问 [ 67%]

...如果还有不明白的我们再沟通!var sp1:Sprite=new Sprite(); sp1.graphics.drawRect(0,0,200,400,"#FF0000"); Laya.stage.addChild(sp1); var sp2:Sprite=new Sprite(); sp2.graphics.drawRect(0,0,300,400,"#0000FF"); sp2.pos(100,100); if(sp1.getBounds().intersects(sp2.getBounds())) { trace("相交...

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

360. laya.spine.SpineSkeleton_API3.0 [ 67%]

... Sprite SpineSkeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY animationName blendMode cach...

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