大约有 1,754 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...aya.Browser.createElement('canvas'); //设置大小 canvas.width = Laya.stage.width; canvas.height = Laya.stage.height; var ctx = canvas.getContext('2d'); Laya.stage.graphics.clear(false); var textture = new Laya.Texture(canvas); textture.bitma...
来源: Laya_社区 发布时间: 20180905
...vate createLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: 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 = stro...
来源: Laya_社区 发布时间: 20180529
...消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanvas.height = message.height; console.log("-----------------sharedresize----------1------------------"); console.log(message.data.matrix); console.log("-----------------sharedresize------------2-...
来源: Laya_社区 发布时间: 20180504
...现滚动条而且还漏了。 var str = "<div style='position:absolute;width:495px;height:329px;overflow-y:scroll;border-width:1px;border-color:Red;border-style:solid;font-size:16px;color:#fff;'><p style='color:#999;right:20px'>2021-01-21 10:25:10</p>bbb>>bbb 加入了聊天...
来源: Laya_社区 发布时间: 20210121
...port1:Laya.Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2:Laya.Viewport = camera2.normalizedViewport; viewport2.width = 0.8; viewport2.x = 0.2; camera2.normalizedViewport = viewport2; }); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
...模糊处理 Image 设置 scale 之后属性不对 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 2.0模型改变scale到一定值后网格碰撞器失效问题 问题状态 最新活动: 2018-03-15 18:16 浏览: 2431 关注: 2 人 zkang5 • 2018-03-15 18:44 ...
来源: Laya_社区 发布时间: 20180315
...改大小 tree.size(300, 300); //修改树的位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台 Laya.stage.addChild(tree); } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; // IDE中生成的此类对应的json对...
来源: Laya2.0_文档 发布时间: 20210715
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite font : String 文本的字体名称,以字符串形式表示。 ...
来源: laya_api 发布时间: 20170929
...ouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCa...
来源: Laya3.0_api 发布时间: 20231115
...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); var canvas = Laya.Render._mainCanvas; var canvasStyle = canvas.source.style; canvasStyle...
来源: Laya_社区 发布时间: 20210924