大约有 72 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0026 秒)
源代码中Handler中的setTo()方法 源代码中Handler中的setTo()方法经常在什么情况下使用?有注释说”设置此对象的指定属性值。“但是看不明白 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180131
...structor Properties x y TEMP Methods copy distance normalize recover reset setTo toString create Constructors constructor new Point(x?: number, y?: number): Point Defined in laya/maths/Point.ts:16 根据指定坐标,创建一个新的 Point 对象。 Parameters Default value x: number = 0 (可...
来源: Laya3.0_api 发布时间: 20231115
...(x,y)的距离。 Point normalize():void 标准化向量。 Point setTo(x:Number, y:Number):Point 将 Point 的成员设置为指定值。 Point toString():String返回包含 x 和 y 坐标的值的字符串。PointPublic Constants ConstantDefined By TEMP : Point[static] 临时使用...
来源: laya_api 发布时间: 20170929
...uctor Properties args caller method once Methods clear recover run runWith setTo create Constructors constructor new Handler(caller?: Object | null, method?: Function | null, args?: any[] | null, once?: boolean): Handler Defined in laya/utils/Handler.ts:23 根据指定的属性值,创建一个 Han...
来源: Laya3.0_api 发布时间: 20231115
...er runWith(data:*):* 执行处理器,携带额外数据。 Handler setTo(caller:*, method:Function, args:Array, once:Boolean):Handler 设置此对象的指定属性值。 HandlerProperty Detailargspropertypublic var args:Array 参数。callerproperty public var caller:* 执行域(this)。me...
来源: laya_api 发布时间: 20170929
... runWith(data:*):* 执行处理器,并携带额外数据。 Handler setTo(caller:*, method:Function, args:Array, once:Boolean):Handler 设置此对象的指定属性值。 HandlerProperty Detailargspropertypublic var args:Array 参数。callerproperty public var caller:* 执行域(this)。met...
来源: Laya2.0_api 发布时间: 20190513
...。具体表现在MouseManger.initEvent中的两行代码: this._point.setTo(e.pageX || e.clientX,e.pageY || e.clientY); this._stage._canvasTransform.invertTransformPoint(this._point); 问题1: 如果包含canvas的div并不是充满整个document.body,且div本身可以滚动(canvas的宽...
来源: Laya_社区 发布时间: 20170701
...one contains copyFrom equals intersection intersects isEmpty recover reset setTo toString union create Constructors constructor new Rectangle(x?: number, y?: number, width?: number, height?: number): Rectangle Defined in laya/maths/Rectangle.ts:27 创建一个 Rectangle 对象。 Parameters Default ...
来源: Laya3.0_api 发布时间: 20231115
...d 回收到对象池,方便复用 Point reset():Point 重置 Point setTo(x:Number, y:Number):Point 将 Point 的成员设置为指定值。 Point toString():String返回包含 x 和 y 坐标的值的字符串。PointPublic Constants ConstantDefined By TEMP : Point[static] 临时使用...
来源: Laya2.0_api 发布时间: 20190513
...iew var clientBox = Browser._container.getBoundingClientRect() this._point.setTo((e.pageX || e.clientX)-clientBox.x - win.pageXOffset - docElem.clientLeft,(e.pageY || e.clientY)-clientBox.y - win.pageYOffset - docElem.clientTop); // this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (...
来源: Laya_社区 发布时间: 20191227