大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0016 秒)
... "res/ui/button-4.png", "res/ui/button-5.png", "res/ui/button-6.png" ]; // 计算将Button至于舞台中心的偏移量 xOffset = (Laya.stage.width - HORIZONTAL_SPACING * (COLUMNS - 1) - BUTTON_WIDTH) / 2; yOffset = (Laya.stage.height - VERTICAL_SPACING * (skins.length / COLUMNS - 1) - BUTTON_HEIGH...
来源: Laya2.0_示例 发布时间: 20241117
...Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); } /**计算两个触摸点之间的距离*/ getDistance(points) { let distance = 0; if (points && points.length == 2) { let dx = points[0].stageX - points[1].stageX; let dy = points[0].stageY - points[1].stageY; distance = Math.sq...
来源: Laya2.0_示例 发布时间: 20241117
... if (eventName === "dragTopLimit") { //先清理bottom的状态,避免top计算出错 this.refreshLoading.bottom = NaN; this.refreshLoading.top = distance; //创建模拟数据 var _arr = this.createData(5, "顶部新增的标题"); //加到源数据前面 _arr = _arr.concat(this.refreshList.array...
来源: Laya2.0_示例 发布时间: 20241117
...distanceJoint3.otherAnchor = anchor; // 因为有旋转,localAnchor很难计算,使用绝对位置换算 distanceJoint3.frequency = frequencyHz; distanceJoint3.damping = dampingRatio; leg1.addComponentIntance(distanceJoint3); distanceJoint3.maxLength = distanceJoint3.minLength = distanceJoint3.l...
来源: Laya2.0_示例 发布时间: 20241117