大约有 1,276 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...的内容导出生成指定大小的图片,并返回文件路径。 */ export function canvasToTempFilePath( this: string, object: _canvasToTempFilePathObject ): void; 这是wx.d.ts里写的 我看文档说用这个获取分享用 再问下 微信中的Canvas在laya中如何获取啊 ? A • 201...
来源: Laya_社区 发布时间: 20181122
...Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SC...
来源: Laya2.0_示例 发布时间: 20260819
...e = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = thi...
来源: Laya2.0_示例 发布时间: 20260819
...设置width,但是实际显示是以文本宽度来显示的 示例代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new L...
来源: Laya_社区 发布时间: 20210107
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/staticmesh/StaticBatchSubMesh" StaticBatchSubMesh Class StaticBatchSubMesh Hierarchy GeometryElement StaticBatchSubMesh Index Constructors constructor Properties _geometryElementOBj in...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/BoundFrustum" BoundFrustum Class BoundFrustum BoundFrustum 类用于创建锥截体。 Hierarchy BoundFrustum Implements IClone Index Constructors constructor Accessors bottom far left matr...
来源: Laya3.0_api 发布时间: 20231115
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Glow { private apePath: string = "../../res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); L...
来源: Laya_示例 发布时间: 20260819
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Color" Color Class Color Color 类用于创建颜色实例。 Hierarchy Color Implements IClone Index Constructors constructor Properties a b g r BLACK BLUE CLEAR CYAN GRAY GREEN MAGENTA RE...
来源: Laya3.0_api 发布时间: 20231102
...= Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "../../res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...
来源: Laya_示例 发布时间: 20260819
...wser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_...
来源: Laya_示例 发布时间: 20260819