mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
@@ -1806,6 +1806,10 @@ Since v1.10, for any atlas ("%s") in the "resources" directory, it is not possib
|
||||
|
||||
Download Font [ %s ] failed, using Arial or system default font instead
|
||||
|
||||
### 4934
|
||||
|
||||
Please assure that the full path of sub asset is correct!
|
||||
|
||||
### 5000
|
||||
|
||||
object already destroyed
|
||||
|
||||
@@ -138,7 +138,8 @@ export class AudioPlayerWeb extends AudioPlayer {
|
||||
|
||||
public setCurrentTime (val: number) {
|
||||
// throws InvalidState Error on some device if we don't do the clamp here
|
||||
this._offset = clamp(val, 0, this._duration);
|
||||
// the serialized duration is not accurate, use the actual duration first
|
||||
this._offset = clamp(val, 0, this._audio && this._audio.duration || this._duration);
|
||||
if (this._state !== PlayingState.PLAYING) { return; }
|
||||
this._sourceNode.stop(); this._do_play();
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -41,9 +41,7 @@ import { Enum } from '../../value-types';
|
||||
import { CameraDefaultMask } from '../../pipeline/define';
|
||||
|
||||
/**
|
||||
* @en
|
||||
* The projection type
|
||||
* @zh
|
||||
* The projection type<br/>
|
||||
* 投影类型。
|
||||
* @static
|
||||
* @enum CameraComponent.Projection
|
||||
|
||||
@@ -36,8 +36,8 @@ import { builtinResMgr } from '../builtin';
|
||||
import { RenderableComponent } from './renderable-component';
|
||||
|
||||
/**
|
||||
* @en Shadow projection mode
|
||||
* @zh 阴影投射方式。
|
||||
* Shadow projection mode<br/>
|
||||
* 阴影投射方式。
|
||||
*/
|
||||
const ModelShadowCastingMode = Enum({
|
||||
/**
|
||||
@@ -194,7 +194,7 @@ export class ModelComponent extends RenderableComponent {
|
||||
|
||||
public onDestroy () {
|
||||
if (this._model) {
|
||||
this._getRenderScene().destroyModel(this._model);
|
||||
this._model.scene.destroyModel(this._model);
|
||||
this._model = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,25 +121,25 @@ export class AnimationClip extends Asset {
|
||||
}
|
||||
|
||||
/**
|
||||
* 动画帧率,单位为帧/秒。
|
||||
* @zh 动画帧率,单位为帧/秒。
|
||||
*/
|
||||
@property
|
||||
public sample = 60;
|
||||
|
||||
/**
|
||||
* 动画的播放速度。
|
||||
* @zh 动画的播放速度。
|
||||
*/
|
||||
@property
|
||||
public speed = 1;
|
||||
|
||||
/**
|
||||
* 动画的循环模式。
|
||||
* @zh 动画的循环模式。
|
||||
*/
|
||||
@property
|
||||
public wrapMode = AnimationWrapMode.Normal;
|
||||
|
||||
/**
|
||||
* 动画的曲线数据。
|
||||
* @zh 动画的曲线数据。
|
||||
* @deprecated 请转用 `this.curves`
|
||||
*/
|
||||
@property
|
||||
@@ -149,7 +149,7 @@ export class AnimationClip extends Asset {
|
||||
private _curves: ITargetCurveData[] = [];
|
||||
|
||||
/**
|
||||
* 动画包含的事件数据。
|
||||
* @zh 动画包含的事件数据。
|
||||
*/
|
||||
@property({visible: false})
|
||||
public events: IAnimationEventData[] = [];
|
||||
@@ -177,7 +177,7 @@ export class AnimationClip extends Asset {
|
||||
protected _hash = 0;
|
||||
|
||||
/**
|
||||
* 动画的周期。
|
||||
* @zh 动画的周期。
|
||||
*/
|
||||
get duration () {
|
||||
return this._duration;
|
||||
@@ -188,7 +188,7 @@ export class AnimationClip extends Asset {
|
||||
}
|
||||
|
||||
/**
|
||||
* 动画所有时间轴。
|
||||
* @zh 动画所有时间轴。
|
||||
*/
|
||||
get keys () {
|
||||
return this._keys;
|
||||
@@ -250,8 +250,8 @@ export class AnimationClip extends Asset {
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交曲线数据的修改。
|
||||
* 当你修改了 `this.curveDatas`、`this.keys` 或 `this.duration`时,
|
||||
* @zh 提交曲线数据的修改。<br/>
|
||||
* 当你修改了 `this.curveDatas`、`this.keys` 或 `this.duration`时,<br/>
|
||||
* 必须调用 `this.updateCurveDatas()` 使修改生效。
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -261,7 +261,7 @@ export class AnimationClip extends Asset {
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交事件数据的修改。
|
||||
* @zh 提交事件数据的修改。<br/>
|
||||
* 当你修改了 `this.events` 时,必须调用 `this.updateEventDatas()` 使修改生效。
|
||||
* @protected
|
||||
*/
|
||||
@@ -270,7 +270,8 @@ export class AnimationClip extends Asset {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the event group shall be processed at specified ratio.
|
||||
* @en Gets the event group shall be processed at specified ratio.
|
||||
* @zh 获取事件组应按指定比例处理。
|
||||
* @param ratio The ratio.
|
||||
* @protected
|
||||
*/
|
||||
@@ -283,7 +284,7 @@ export class AnimationClip extends Asset {
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回本动画是否包含事件数据。
|
||||
* @zh 返回本动画是否包含事件数据。
|
||||
* @protected
|
||||
*/
|
||||
public hasEvents () {
|
||||
|
||||
@@ -186,7 +186,6 @@ export class AnimationComponent extends Component implements IEventTarget {
|
||||
}
|
||||
|
||||
public start () {
|
||||
this._crossFade.play();
|
||||
if (!CC_EDITOR && this.playOnLoad && this._defaultClip) {
|
||||
this.crossFade(this._defaultClip.name, 0);
|
||||
}
|
||||
@@ -232,6 +231,7 @@ export class AnimationComponent extends Component implements IEventTarget {
|
||||
public crossFade (name: string, duration = 0.3) {
|
||||
const state = this._nameToState[name];
|
||||
if (state) {
|
||||
this._crossFade.play();
|
||||
this._crossFade.crossFade(state, duration);
|
||||
}
|
||||
}
|
||||
@@ -425,7 +425,8 @@ export class AnimationComponent extends Component implements IEventTarget {
|
||||
}
|
||||
|
||||
/**
|
||||
* IEventTarget implementations, they will be overwrote with the same implementation in EventTarget by applyMixins
|
||||
* @en IEventTarget implementations, they will be overwrote with the same implementation in EventTarget by applyMixins
|
||||
* @zh IEventTarget 实现,它们将被 applyMixins 在 EventTarget 中用相同的实现覆盖。
|
||||
*/
|
||||
public targetOff (keyOrTarget?: string | Object | undefined): void {}
|
||||
public once (type: string, callback: Function, target?: Object | undefined): Function | undefined {
|
||||
|
||||
@@ -304,7 +304,7 @@ export class AnimationState extends Playable {
|
||||
|
||||
/**
|
||||
* @en The iteration duration of this animation in seconds. (length)
|
||||
* @zh 单次动画的持续时间,秒。
|
||||
* @zh 单次动画的持续时间,秒。(动画长度)
|
||||
* @readOnly
|
||||
*/
|
||||
public duration = 1;
|
||||
|
||||
@@ -116,10 +116,10 @@ export class SkeletalAnimationComponent extends AnimationComponent {
|
||||
}
|
||||
|
||||
public querySockets () {
|
||||
const animPaths = this._defaultClip && Object.keys((this._defaultClip as SkeletalAnimationClip).convertedData).sort().reduce((acc, cur) =>
|
||||
cur.startsWith(acc[acc.length - 1]) ? acc : (acc.push(cur), acc), [] as string[]) || [];
|
||||
if (!animPaths.length) { return ['default animation clip missing/invalid']; }
|
||||
const out: string[] = [];
|
||||
if (!this._defaultClip) { return out; }
|
||||
const animPaths = Object.keys((this._defaultClip as SkeletalAnimationClip).convertedData).sort().reduce((acc, cur) =>
|
||||
cur.startsWith(acc[acc.length - 1]) ? acc : (acc.push(cur), acc), [] as string[]);
|
||||
for (let i = 0; i < animPaths.length; i++) {
|
||||
const path = animPaths[i];
|
||||
const node = this.node.getChildByPath(path);
|
||||
|
||||
@@ -34,7 +34,6 @@ import { builtinResMgr } from '../3d/builtin';
|
||||
import { RenderableComponent } from '../3d/framework/renderable-component';
|
||||
import { GFXBindingType } from '../gfx/define';
|
||||
import { GFXTextureView } from '../gfx/texture-view';
|
||||
import { BatchedBuffer } from '../pipeline/batched-buffer';
|
||||
import { IDefineMap, Pass, PassOverrides } from '../renderer/core/pass';
|
||||
import { samplerLib } from '../renderer/core/sampler-lib';
|
||||
import { Asset } from './asset';
|
||||
|
||||
@@ -38,6 +38,15 @@ export type PresumedGFXTextureInfo = Pick<IGFXTextureInfo, 'usage' | 'flags' | '
|
||||
|
||||
export type PresumedGFXTextureViewInfo = Pick<IGFXTextureViewInfo, 'texture' | 'format'>;
|
||||
|
||||
function getMipLevel (width: number, height: number) {
|
||||
let size = Math.max(width, height);
|
||||
let level = 0;
|
||||
while (size) { size >>= 1; level++; }
|
||||
return level;
|
||||
}
|
||||
|
||||
function isPOT (n: number) { return n && (n & (n - 1)) === 0; }
|
||||
|
||||
/**
|
||||
* 简单贴图基类。
|
||||
* 简单贴图内部创建了 GFX 贴图和该贴图上的 GFX 贴图视图。
|
||||
@@ -49,6 +58,10 @@ export class SimpleTexture extends TextureBase {
|
||||
protected _gfxTextureView: GFXTextureView | null = null;
|
||||
private _mipmapLevel = 1;
|
||||
|
||||
get mipmapLevel () {
|
||||
return this._mipmapLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取此贴图底层的 GFX 贴图对象。
|
||||
*/
|
||||
@@ -173,7 +186,8 @@ export class SimpleTexture extends TextureBase {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is overrided by derived classes to provide GFX texture info.
|
||||
* @en This method is overrided by derived classes to provide GFX texture info.
|
||||
* @zh 这个方法被派生类重写以提供GFX纹理信息。
|
||||
* @param presumed The presumed GFX texture info.
|
||||
*/
|
||||
protected _getGfxTextureCreateInfo (presumed: PresumedGFXTextureInfo): IGFXTextureInfo | null {
|
||||
@@ -198,11 +212,16 @@ export class SimpleTexture extends TextureBase {
|
||||
}
|
||||
|
||||
protected _createTexture (device: GFXDevice) {
|
||||
let flags = GFXTextureFlagBit.NONE;
|
||||
if (this._mipFilter !== Filter.NONE && isPOT(this._width) && isPOT(this._height)) {
|
||||
this._mipmapLevel = getMipLevel(this._width, this._height);
|
||||
flags = GFXTextureFlagBit.GEN_MIPMAP;
|
||||
}
|
||||
const textureCreateInfo = this._getGfxTextureCreateInfo({
|
||||
usage: GFXTextureUsageBit.SAMPLED | GFXTextureUsageBit.TRANSFER_DST,
|
||||
format: this._getGFXFormat(),
|
||||
mipLevel: this._mipmapLevel,
|
||||
flags: (this._mipFilter !== Filter.NONE ? GFXTextureFlagBit.GEN_MIPMAP : GFXTextureFlagBit.NONE),
|
||||
flags,
|
||||
});
|
||||
if (!textureCreateInfo) {
|
||||
return;
|
||||
|
||||
@@ -230,7 +230,7 @@ export class SpriteFrame extends Asset {
|
||||
* Right border of the sprite.
|
||||
*
|
||||
* @zh
|
||||
* sprite 的左边边框。
|
||||
* sprite 的右边边框。
|
||||
*/
|
||||
get insetRight () {
|
||||
return this._capInsets[INSET_RIGHT];
|
||||
|
||||
@@ -77,6 +77,7 @@ export class Texture2D extends SimpleTexture {
|
||||
|
||||
set mipmaps (value) {
|
||||
this._mipmaps = value;
|
||||
this._setMipmapLevel(this._mipmaps.length);
|
||||
if (this._mipmaps.length > 0) {
|
||||
const imageAsset: ImageAsset = this._mipmaps[0];
|
||||
this.reset({
|
||||
|
||||
@@ -454,7 +454,7 @@ class Component extends CCObject {
|
||||
* @en Schedules a callback function that runs only once, with a delay of 0 or larger.
|
||||
* @zh 调度一个只运行一次的回调函数,可以指定 0 让回调函数在下一帧立即执行或者在一定的延时之后执行。
|
||||
* @method scheduleOnce
|
||||
* @see [[cc.Node.schedule]]
|
||||
* @see [[schedule]]
|
||||
* @param {function} callback 回调函数。
|
||||
* @param {Number} delay 第一次执行前等待的时间(延时执行)。
|
||||
* @example
|
||||
@@ -472,8 +472,6 @@ class Component extends CCObject {
|
||||
/**
|
||||
* @en Unschedules a custom callback function.
|
||||
* @zh 取消调度一个自定义的回调函数。
|
||||
* @method unschedule
|
||||
* @see [[cc.Node.schedule]]
|
||||
* @param {function} callback_fn 回调函数。
|
||||
* @example
|
||||
* ```typescript
|
||||
@@ -529,10 +527,14 @@ class Component extends CCObject {
|
||||
protected lateUpdate? (dt: number): void;
|
||||
|
||||
/**
|
||||
* `__preload` is called before every onLoad.
|
||||
* It is used to initialize the builtin components internally,
|
||||
* to avoid checking whether onLoad is called before every public method calls.
|
||||
* @en `__preload` is called before every onLoad.<br/>
|
||||
* It is used to initialize the builtin components internally,<br/>
|
||||
* to avoid checking whether onLoad is called before every public method calls.<br/>
|
||||
* This method should be removed if script priority is supported.
|
||||
* @zh `__preload` 在每次onLoad之前调用。<br/>
|
||||
* 它用于在内部初始化内置组件,<br/>
|
||||
* 以避免在每次公有方法调用之前检查是否调用了onLoad。<br/>
|
||||
* 如果支持脚本优先级,则应删除此方法。
|
||||
* @private
|
||||
*/
|
||||
protected __preload? (): void;
|
||||
|
||||
@@ -213,16 +213,17 @@ export class CanvasComponent extends Component {
|
||||
flows: ['UIFlow'],
|
||||
});
|
||||
|
||||
this._camera!.fov = 45;
|
||||
this._camera!.clearFlag = this.clearFlag;
|
||||
this._camera.fov = 45;
|
||||
this._camera.clearFlag = this.clearFlag;
|
||||
this._camera.farClip = 2000;
|
||||
this.color = this._color;
|
||||
|
||||
const device = director.root!.device;
|
||||
this._camera!.resize(device.width, device.height);
|
||||
this._camera.resize(device.width, device.height);
|
||||
if (this._targetTexture) {
|
||||
const window = this._targetTexture.getGFXWindow();
|
||||
this._camera!.changeTargetWindow(window);
|
||||
this._camera!.setFixedSize(window!.width, window!.height);
|
||||
this._camera.changeTargetWindow(window);
|
||||
this._camera.setFixedSize(window!.width, window!.height);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +315,7 @@ export class CanvasComponent extends Component {
|
||||
const size = game.canvas!;
|
||||
this._camera.resize(size.width, size.height);
|
||||
this._camera.orthoHeight = game.canvas!.height / view.getScaleY() / 2;
|
||||
this._camera.node.setPosition(_worldPos.x, _worldPos.y, 999);
|
||||
this._camera.node.setPosition(_worldPos.x, _worldPos.y, 1000);
|
||||
this._camera.update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { removeProperty } from '../../utils';
|
||||
import { UIComponent } from './ui-component';
|
||||
|
||||
removeProperty(UIComponent.prototype, 'UIComponent',[
|
||||
{
|
||||
name: '_visibility',
|
||||
},
|
||||
{
|
||||
name: 'setVisibility',
|
||||
},
|
||||
]);
|
||||
@@ -30,4 +30,6 @@
|
||||
export * from './canvas-component';
|
||||
export * from './ui-component';
|
||||
export * from './ui-render-component';
|
||||
export * from './ui-transfrom-component';
|
||||
export * from './ui-transfrom-component';
|
||||
|
||||
import './deprecated';
|
||||
|
||||
@@ -72,7 +72,6 @@ export class UIComponent extends Component {
|
||||
}
|
||||
|
||||
return this._screen.visibility;
|
||||
// return this._visibility;
|
||||
}
|
||||
|
||||
get _screen (){
|
||||
@@ -82,58 +81,40 @@ export class UIComponent extends Component {
|
||||
@property
|
||||
protected _priority = 0;
|
||||
|
||||
// protected _visibility = -1;
|
||||
protected _followScreen: CanvasComponent | null = null;
|
||||
|
||||
private _lastParent: INode | null = null;
|
||||
|
||||
public __preload () {
|
||||
this.node._uiComp = this;
|
||||
}
|
||||
|
||||
public onEnable () {
|
||||
this._lastParent = this.node.parent;
|
||||
this._updateVisibility();
|
||||
|
||||
if (this._lastParent) {
|
||||
this.node.on(SystemEventType.CHILD_REMOVED, this._parentChanged, this);
|
||||
}
|
||||
this.node._uiComp = this;
|
||||
this._sortSiblings();
|
||||
}
|
||||
|
||||
public onDisable () {
|
||||
this._cancelEventFromParent();
|
||||
}
|
||||
|
||||
public onDestroy () {
|
||||
if (this.node._uiComp === this) {
|
||||
this.node._uiComp = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 渲染数据收集。每个渲染组件都由此自身决定是否渲染以及渲染状态的更新。
|
||||
*
|
||||
* @param render 数据处理中转站。
|
||||
*/
|
||||
public updateAssembler(render: UI) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 后渲染数据收集。每个渲染组件都由此接口决定是否渲染以及渲染状态的更新。
|
||||
* 一般是在自身子节点 updateAssembler 执行完调用。
|
||||
*
|
||||
* @param render 数据处理中转站。
|
||||
*/
|
||||
public postUpdateAssembler(render: UI) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 设置当前组件的可视编号。(我们不希望用户自行做处理,除非用户自己知道在做什么)
|
||||
*
|
||||
* @deprecated 会在 Cocos Creator 3D beta18 及之后的版本废除
|
||||
*/
|
||||
public setVisibility (value: number) {
|
||||
return;
|
||||
// this._visibility = value;
|
||||
}
|
||||
|
||||
public _setScreen(value: CanvasComponent){
|
||||
this._followScreen = value;
|
||||
}
|
||||
|
||||
@@ -196,6 +196,11 @@ export class UIRenderComponent extends UIComponent {
|
||||
return this._renderData;
|
||||
}
|
||||
|
||||
// Render data can be submitted even if it is not on the node tree
|
||||
set simulate (value) {
|
||||
this._simulate = value;
|
||||
}
|
||||
|
||||
public static BlendState = GFXBlendFactor;
|
||||
public static Assembler: IAssemblerManager | null = null;
|
||||
public static PostAssembler: IAssemblerManager | null = null;
|
||||
@@ -230,14 +235,14 @@ export class UIRenderComponent extends UIComponent {
|
||||
depthStencilState: {},
|
||||
rasterizerState: {},
|
||||
};
|
||||
protected _simulate = false;
|
||||
|
||||
public __preload (){
|
||||
super.__preload();
|
||||
this._instanceMaterial();
|
||||
if (this._flushAssembler){
|
||||
this._flushAssembler();
|
||||
}
|
||||
|
||||
this._updateColor();
|
||||
}
|
||||
|
||||
public onEnable () {
|
||||
@@ -255,6 +260,7 @@ export class UIRenderComponent extends UIComponent {
|
||||
}
|
||||
|
||||
public onDestroy () {
|
||||
super.onDestroy();
|
||||
this.destroyRenderData();
|
||||
if (this._material){
|
||||
this._material.destroy();
|
||||
@@ -339,7 +345,7 @@ export class UIRenderComponent extends UIComponent {
|
||||
}
|
||||
|
||||
protected _canRender () {
|
||||
return this.material !== null && this.enabled && this.enabledInHierarchy;
|
||||
return this.material !== null && this.enabled && (this._simulate? true: this.enabledInHierarchy);
|
||||
}
|
||||
|
||||
protected _postCanRender(){}
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
// tslint:disable:no-empty-interface
|
||||
|
||||
/**
|
||||
* @en Some JavaScript decorators which can be accessed with "cc._decorator".
|
||||
* @zh 一些 JavaScript 装饰器,目前可以通过 "cc._decorator" 来访问。
|
||||
* Some JavaScript decorators which can be accessed with "cc._decorator".
|
||||
* 一些 JavaScript 装饰器,目前可以通过 "cc._decorator" 来访问。
|
||||
* (这些 API 仍不完全稳定,有可能随着 JavaScript 装饰器的标准实现而调整)
|
||||
*
|
||||
* @submodule _decorator
|
||||
@@ -312,26 +312,26 @@ export type SimplePropertyType = Function | string | typeof CCString | typeof CC
|
||||
export type PropertyType = SimplePropertyType | SimplePropertyType[];
|
||||
|
||||
/**
|
||||
* cc 属性选项。
|
||||
* @zh cc 属性选项。
|
||||
*/
|
||||
export interface IPropertyOptions extends IExposedAttributes {
|
||||
}
|
||||
|
||||
/**
|
||||
* 标注属性为 cc 属性。
|
||||
* @zh 标注属性为 cc 属性。
|
||||
* @param options 选项。
|
||||
*/
|
||||
export function property (options?: IPropertyOptions): PropertyDecorator;
|
||||
|
||||
/**
|
||||
* 标注属性为 cc 属性。
|
||||
* @zh 标注属性为 cc 属性。<br/>
|
||||
* 等价于`@property({type})`。
|
||||
* @param type cc 属性的类型。
|
||||
*/
|
||||
export function property (type: PropertyType): PropertyDecorator;
|
||||
|
||||
/**
|
||||
* 标注属性为 cc 属性。
|
||||
* @zh 标注属性为 cc 属性。<br/>
|
||||
* 等价于`@property()`。
|
||||
*/
|
||||
export function property (target: Object, propertyKey: string | symbol): void;
|
||||
@@ -373,12 +373,10 @@ function createDummyDecorator (argCheckFunc) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Makes a CCClass that inherit from component execute in edit mode.<br>
|
||||
* By default, all components are only executed in play mode,
|
||||
* which means they will not have their callback functions executed while the Editor is in edit mode.
|
||||
* @zh
|
||||
* 允许继承自 Component 的 CCClass 在编辑器里执行。<br>
|
||||
* Makes a CCClass that inherit from component execute in edit mode.<br/>
|
||||
* By default, all components are only executed in play mode,<br/>
|
||||
* which means they will not have their callback functions executed while the Editor is in edit mode.<br/>
|
||||
* 允许继承自 Component 的 CCClass 在编辑器里执行。<br/>
|
||||
* 默认情况下,所有 Component 都只会在运行时才会执行,也就是说它们的生命周期回调不会在编辑器里触发。
|
||||
*
|
||||
* @method executeInEditMode
|
||||
|
||||
@@ -857,12 +857,8 @@ function declareProperties (cls, className, properties, baseClass, mixins, es6?:
|
||||
}
|
||||
|
||||
/**
|
||||
* @module cc
|
||||
*/
|
||||
|
||||
/**
|
||||
* @en Defines a CCClass using the given specification, please see [Class](/docs/editors_and_tools/creator-chapters/scripting/class.html) for details.
|
||||
* @zh 定义一个 CCClass,传入参数必须是一个包含类型参数的字面量对象,具体用法请查阅[类型定义](/docs/creator/scripting/class.html)。
|
||||
* @en Defines a CCClass using the given specification
|
||||
* @zh 定义一个 CCClass,传入参数必须是一个包含类型参数的字面量对象
|
||||
*
|
||||
* @method Class
|
||||
*
|
||||
|
||||
@@ -237,16 +237,16 @@ export class Director extends EventTarget {
|
||||
public static readonly EVENT_AFTER_DRAW = 'director_after_draw';
|
||||
|
||||
/**
|
||||
* @en The event which will be triggered before the physics process.
|
||||
* @zh 物理过程之前所触发的事件。
|
||||
* The event which will be triggered before the physics process.<br/>
|
||||
* 物理过程之前所触发的事件。
|
||||
* @event Director.EVENT_BEFORE_PHYSICS
|
||||
* @readonly
|
||||
*/
|
||||
public static readonly EVENT_BEFORE_PHYSICS = 'director_before_physics';
|
||||
|
||||
/**
|
||||
* @en The event which will be triggered after the physics process.
|
||||
* @zh 物理过程之后所触发的事件。
|
||||
* The event which will be triggered after the physics process.<br/>
|
||||
* 物理过程之后所触发的事件。
|
||||
* @event Director.EVENT_AFTER_PHYSICS
|
||||
* @readonly
|
||||
*/
|
||||
@@ -885,8 +885,8 @@ export class Director extends EventTarget {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Returns the FPS value. Please use {{#crossLink "Game.setFrameRate"}}cc.game.setFrameRate{{/crossLink}} to control animation interval.
|
||||
* @zh 获取单位帧执行时间。请使用 {{#crossLink "Game.setFrameRate"}}cc.game.setFrameRate{{/crossLink}} 来控制游戏帧率。
|
||||
* @en Returns the FPS value. Please use [[Game.setFrameRate]] to control animation interval.
|
||||
* @zh 获取单位帧执行时间。请使用 [[Game.setFrameRate]] 来控制游戏帧率。
|
||||
* @deprecated since v2.0
|
||||
* @return {Number}
|
||||
*/
|
||||
|
||||
+4
-4
@@ -31,7 +31,7 @@ import { EventTarget } from './event/event-target';
|
||||
import { WebGLGFXDevice } from './gfx/webgl/webgl-device';
|
||||
import { WebGL2GFXDevice } from './gfx/webgl2/webgl2-device';
|
||||
import * as debug from './platform/debug';
|
||||
import { SplashImage } from './splash-image';
|
||||
import { SplashScreen } from './splash-image';
|
||||
/**
|
||||
* @en
|
||||
* The current game configuration, including:<br/>
|
||||
@@ -494,7 +494,7 @@ export class Game extends EventTarget {
|
||||
this.onStart = onStart;
|
||||
|
||||
if (!CC_EDITOR && CC_WECHATGAME/* && !CC_PREVIEW*/) {
|
||||
SplashImage.instance.main(this._gfxDevice as any);
|
||||
SplashScreen.instance.main(this._gfxDevice as any);
|
||||
}
|
||||
|
||||
this.prepare(cc.game.onStart && cc.game.onStart.bind(cc.game));
|
||||
@@ -615,8 +615,8 @@ export class Game extends EventTarget {
|
||||
};
|
||||
|
||||
if (!CC_EDITOR && CC_WECHATGAME) {
|
||||
SplashImage.instance.setOnFinish(start);
|
||||
SplashImage.instance.loadFinish = true;
|
||||
SplashScreen.instance.setOnFinish(start);
|
||||
SplashScreen.instance.loadFinish = true;
|
||||
} else {
|
||||
start();
|
||||
}
|
||||
|
||||
@@ -21,9 +21,7 @@ import triangle from './triangle';
|
||||
// tslint:disable:no-shadowed-variable
|
||||
|
||||
/**
|
||||
* @en
|
||||
* ray-plane intersect
|
||||
* @zh
|
||||
* ray-plane intersect<br/>
|
||||
* 射线与平面的相交性检测。
|
||||
* @param {ray} ray 射线
|
||||
* @param {plane} plane 平面
|
||||
@@ -43,9 +41,7 @@ const ray_plane = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* line-plane intersect
|
||||
* @zh
|
||||
* line-plane intersect<br/>
|
||||
* 线段与平面的相交性检测。
|
||||
* @param {line} line 线段
|
||||
* @param {plane} plane 平面
|
||||
@@ -64,9 +60,7 @@ const line_plane = (function () {
|
||||
|
||||
// based on http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/raytri/
|
||||
/**
|
||||
* @en
|
||||
* ray-triangle intersect
|
||||
* @zh
|
||||
* ray-triangle intersect<br/>
|
||||
* 射线与三角形的相交性检测。
|
||||
* @param {ray} ray 射线
|
||||
* @param {triangle} triangle 三角形
|
||||
@@ -104,9 +98,7 @@ const ray_triangle = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* line-triangle intersect
|
||||
* @zh
|
||||
* line-triangle intersect<br/>
|
||||
* 线段与三角形的相交性检测。
|
||||
* @param {line} line 线段
|
||||
* @param {triangle} triangle 三角形
|
||||
@@ -169,9 +161,7 @@ const line_triangle = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* line-quad intersect
|
||||
* @zh
|
||||
* line-quad intersect<br/>
|
||||
* 线段与四边形的相交性检测。
|
||||
* @param {Vec3} p 线段的一点
|
||||
* @param {Vec3} q 线段的另一点
|
||||
@@ -262,9 +252,7 @@ const line_quad = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* ray-sphere intersect
|
||||
* @zh
|
||||
* ray-sphere intersect<br/>
|
||||
* 射线和球的相交性检测。
|
||||
* @param {ray} ray 射线
|
||||
* @param {sphere} sphere 球
|
||||
@@ -293,9 +281,7 @@ const ray_sphere = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* ray-aabb intersect
|
||||
* @zh
|
||||
* ray-aabb intersect<br/>
|
||||
* 射线和轴对齐包围盒的相交性检测。
|
||||
* @param {ray} ray 射线
|
||||
* @param {aabb} aabb 轴对齐包围盒
|
||||
@@ -323,9 +309,7 @@ const ray_aabb = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* ray-obb intersect
|
||||
* @zh
|
||||
* ray-obb intersect<br/>
|
||||
* 射线和方向包围盒的相交性检测。
|
||||
* @param {ray} ray 射线
|
||||
* @param {obb} obb 方向包围盒
|
||||
@@ -401,9 +385,7 @@ const ray_obb = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* aabb-aabb intersect
|
||||
* @zh
|
||||
* aabb-aabb intersect<br/>
|
||||
* 轴对齐包围盒和轴对齐包围盒的相交性检测。
|
||||
* @param {aabb} aabb1 轴对齐包围盒1
|
||||
* @param {aabb} aabb2 轴对齐包围盒2
|
||||
@@ -490,9 +472,7 @@ function getInterval (vertices: any[] | Vec3[], axis: Vec3) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* aabb-obb intersect
|
||||
* @zh
|
||||
* aabb-obb intersect<br/>
|
||||
* 轴对齐包围盒和方向包围盒的相交性检测。
|
||||
* @param {aabb} aabb 轴对齐包围盒
|
||||
* @param {obb} obb 方向包围盒
|
||||
@@ -543,9 +523,7 @@ const aabb_obb = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* aabb-plane intersect
|
||||
* @zh
|
||||
* aabb-plane intersect<br/>
|
||||
* 轴对齐包围盒和平面的相交性检测。
|
||||
* @param {aabb} aabb 轴对齐包围盒
|
||||
* @param {plane} plane 平面
|
||||
@@ -562,9 +540,7 @@ const aabb_plane = function (aabb: aabb, plane: plane): number {
|
||||
};
|
||||
|
||||
/**
|
||||
* @en
|
||||
* aabb-frustum intersect, faster but has false positive corner cases
|
||||
* @zh
|
||||
* aabb-frustum intersect, faster but has false positive corner cases<br/>
|
||||
* 轴对齐包围盒和锥台相交性检测,速度快,但有错误情况。
|
||||
* @param {aabb} aabb 轴对齐包围盒
|
||||
* @param {frustum} frustum 锥台
|
||||
@@ -582,9 +558,7 @@ const aabb_frustum = function (aabb: aabb, frustum: frustum): number {
|
||||
|
||||
// https://cesium.com/blog/2017/02/02/tighter-frustum-culling-and-why-you-may-want-to-disregard-it/
|
||||
/**
|
||||
* @en
|
||||
* aabb-frustum intersect, handles most of the false positives correctly
|
||||
* @zh
|
||||
* aabb-frustum intersect, handles most of the false positives correctly<br/>
|
||||
* 轴对齐包围盒和锥台相交性检测,正确处理大多数错误情况。
|
||||
* @param {aabb} aabb 轴对齐包围盒
|
||||
* @param {frustum} frustum 锥台
|
||||
@@ -634,9 +608,7 @@ const aabb_frustum_accurate = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* obb-point intersect
|
||||
* @zh
|
||||
* obb-point intersect<br/>
|
||||
* 方向包围盒和点的相交性检测。
|
||||
* @param {obb} obb 方向包围盒
|
||||
* @param {Vec3} point 点
|
||||
@@ -653,9 +625,7 @@ const obb_point = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* obb-plane intersect
|
||||
* @zh
|
||||
* obb-plane intersect<br/>
|
||||
* 方向包围盒和平面的相交性检测。
|
||||
* @param {obb} obb 方向包围盒
|
||||
* @param {plane} plane 平面
|
||||
@@ -679,9 +649,7 @@ const obb_plane = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* obb-frustum intersect, faster but has false positive corner cases
|
||||
* @zh
|
||||
* obb-frustum intersect, faster but has false positive corner cases<br/>
|
||||
* 方向包围盒和锥台相交性检测,速度快,但有错误情况。
|
||||
* @param {obb} obb 方向包围盒
|
||||
* @param {frustum} frustum 锥台
|
||||
@@ -699,9 +667,7 @@ const obb_frustum = function (obb: obb, frustum: frustum): number {
|
||||
|
||||
// https://cesium.com/blog/2017/02/02/tighter-frustum-culling-and-why-you-may-want-to-disregard-it/
|
||||
/**
|
||||
* @en
|
||||
* obb-frustum intersect, handles most of the false positives correctly
|
||||
* @zh
|
||||
* obb-frustum intersect, handles most of the false positives correctly<br/>
|
||||
* 方向包围盒和锥台相交性检测,正确处理大多数错误情况。
|
||||
* @param {obb} obb 方向包围盒
|
||||
* @param {frustum} frustum 锥台
|
||||
@@ -757,9 +723,7 @@ const obb_frustum_accurate = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* obb-obb intersect
|
||||
* @zh
|
||||
* obb-obb intersect<br/>
|
||||
* 方向包围盒和方向包围盒的相交性检测。
|
||||
* @param {obb} obb1 方向包围盒1
|
||||
* @param {obb} obb2 方向包围盒2
|
||||
@@ -808,11 +772,9 @@ const obb_obb = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* sphere-plane intersect, not necessarily faster than obb-plane
|
||||
* due to the length calculation of the plane normal to factor out
|
||||
* the unnomalized plane distance
|
||||
* @zh
|
||||
* sphere-plane intersect, not necessarily faster than obb-plane<br/>
|
||||
* due to the length calculation of the plane normal to factor out<br/>
|
||||
* the unnomalized plane distance<br/>
|
||||
* 球与平面的相交性检测。
|
||||
* @param {sphere} sphere 球
|
||||
* @param {plane} plane 平面
|
||||
@@ -827,9 +789,7 @@ const sphere_plane = function (sphere: sphere, plane: plane): number {
|
||||
};
|
||||
|
||||
/**
|
||||
* @en
|
||||
* sphere-frustum intersect, faster but has false positive corner cases
|
||||
* @zh
|
||||
* sphere-frustum intersect, faster but has false positive corner cases<br/>
|
||||
* 球和锥台的相交性检测,速度快,但有错误情况。
|
||||
* @param {sphere} sphere 球
|
||||
* @param {frustum} frustum 锥台
|
||||
@@ -847,9 +807,7 @@ const sphere_frustum = function (sphere: sphere, frustum: frustum): number {
|
||||
|
||||
// https://stackoverflow.com/questions/20912692/view-frustum-culling-corner-cases
|
||||
/**
|
||||
* @en
|
||||
* sphere-frustum intersect, handles the false positives correctly
|
||||
* @zh
|
||||
* sphere-frustum intersect, handles the false positives correctly<br/>
|
||||
* 球和锥台的相交性检测,正确处理大多数错误情况。
|
||||
* @param {sphere} sphere 球
|
||||
* @param {frustum} frustum 锥台
|
||||
@@ -880,9 +838,7 @@ const sphere_frustum_accurate = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* sphere-sphere intersect
|
||||
* @zh
|
||||
* sphere-sphere intersect<br/>
|
||||
* 球和球的相交性检测。
|
||||
* @param {sphere} sphere0 球0
|
||||
* @param {sphere} sphere1 球1
|
||||
@@ -894,9 +850,7 @@ const sphere_sphere = function (sphere0: sphere, sphere1: sphere): boolean {
|
||||
};
|
||||
|
||||
/**
|
||||
* @en
|
||||
* sphere-aabb intersect
|
||||
* @zh
|
||||
* sphere-aabb intersect<br/>
|
||||
* 球和轴对齐包围盒的相交性检测。
|
||||
* @param {sphere} sphere 球
|
||||
* @param {aabb} aabb 轴对齐包围盒
|
||||
@@ -911,9 +865,7 @@ const sphere_aabb = (function () {
|
||||
})();
|
||||
|
||||
/**
|
||||
* @en
|
||||
* sphere-obb intersect
|
||||
* @zh
|
||||
* sphere-obb intersect<br/>
|
||||
* 球和方向包围盒的相交性检测。
|
||||
* @param {sphere} sphere 球
|
||||
* @param {obb} obb 方向包围盒
|
||||
|
||||
@@ -103,7 +103,8 @@ class OctreeBlock {
|
||||
export default class Octree {
|
||||
|
||||
/**
|
||||
* Create sub blocks and populate them with given entries
|
||||
* @en Create sub blocks and populate them with given entries
|
||||
* @zh 创建子块,并用给定的条目填充它们
|
||||
* @param {Vec3} worldMin - min position of the parent bounding box
|
||||
* @param {Vec3} worldMax - max position of the parent bounding box
|
||||
* @param {Array<Object>} entries - the entries to be inserted
|
||||
@@ -162,8 +163,9 @@ export default class Octree {
|
||||
}
|
||||
|
||||
/**
|
||||
* Build this octree from given entries.
|
||||
* @en Build this octree from given entries.<br/>
|
||||
* Root Boundary is the bounding box of all the entries.
|
||||
* @zh 从给定的项中构建这个八叉树。根边界是所有这些条目的边界框。
|
||||
* @param {Array<Object>} entries - a collection of entries to be queried later
|
||||
* @param {function(entry: Object): Object} getBoundingShape
|
||||
* - a function takes an entry and returns its primitive info
|
||||
@@ -193,7 +195,8 @@ export default class Octree {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an entry to this tree. Should be called after `build`.
|
||||
* @en Add an entry to this tree. Should be called after `build`.
|
||||
* @zh 在这个树中添加一个条目。应该在构建之后调用。
|
||||
* @param {Object} entry - the new entry
|
||||
*/
|
||||
public addEntry (entry) {
|
||||
@@ -207,7 +210,8 @@ export default class Octree {
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove an entry from this tree. Should be called after `build`.
|
||||
* @en Remove an entry from this tree. Should be called after `build`.
|
||||
* @zh 从这个树中删除一个条目。应该在构建之后调用。
|
||||
* @param {Object} entry - the entry to be removed
|
||||
*/
|
||||
public removeEntry (entry) {
|
||||
@@ -221,7 +225,8 @@ export default class Octree {
|
||||
}
|
||||
|
||||
/**
|
||||
* Select all the entries overlapping the given primitive
|
||||
* @en Select all the entries overlapping the given primitive
|
||||
* @zh 选择与给定原始项重叠的所有项
|
||||
* @param {Object} shape - the selecting primitive
|
||||
* @return {Set<Object>} the resulting set of entries
|
||||
*/
|
||||
|
||||
@@ -75,8 +75,9 @@ export default class sphere {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the components of a sphere to the given values
|
||||
*
|
||||
* @en Set the components of a sphere to the given values
|
||||
* @zh 将球体的属性设置为给定的值。
|
||||
*
|
||||
* @param {sphere} out 接受操作的 sphere。
|
||||
* @param cx 形状的相对于原点的 X 坐标。
|
||||
* @param cy 形状的相对于原点的 Y 坐标。
|
||||
@@ -110,9 +111,9 @@ export default class sphere {
|
||||
|
||||
/**
|
||||
* 构造一个球。
|
||||
* @param cx 形状的相对于原点的 X 坐标。
|
||||
* @param cy 形状的相对于原点的 Y 坐标。
|
||||
* @param cz 形状的相对于原点的 Z 坐标。
|
||||
* @param cx 该球的世界坐标的 X 坐标。
|
||||
* @param cy 该球的世界坐标的 Y 坐标。
|
||||
* @param cz 该球的世界坐标的 Z 坐标。
|
||||
* @param {number} r 半径。
|
||||
*/
|
||||
constructor (cx: number = 0, cy: number = 0, cz: number = 0, r: number = 1) {
|
||||
|
||||
@@ -54,7 +54,7 @@ export class WebGLGFXFramebuffer extends GFXFramebuffer {
|
||||
gpuRenderPass: (info.renderPass as WebGLGFXRenderPass).gpuRenderPass,
|
||||
gpuColorViews: [],
|
||||
gpuDepthStencilView: null,
|
||||
isOffscreen: info.isOffscreen,
|
||||
isOffscreen: false,
|
||||
glFramebuffer: null,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
*/
|
||||
|
||||
import { Asset, RawAsset } from '../assets';
|
||||
import { SpriteFrame } from '../assets/sprite-frame';
|
||||
import { Texture2D } from '../assets/texture-2d';
|
||||
import { TextureCube } from '../assets/texture-cube';
|
||||
import { createMap, getClassName, isChildClassOf } from '../utils/js';
|
||||
import { callInNextTick } from '../utils/misc';
|
||||
import AssetLoader from './asset-loader';
|
||||
@@ -761,14 +764,14 @@ export class CCLoader extends Pipeline {
|
||||
* For example, if you release a texture, the texture asset and its gl texture data will be freed up.<br>
|
||||
* In complexe project, you can use this function with [[getDependsRecursively]] to free up memory in critical circumstances.<br>
|
||||
* Notice, this method may cause the texture to be unusable, if there are still other nodes use the same texture, they may turn to black and report gl errors.<br>
|
||||
* If you only want to remove the cache of an asset, please use [[pipeline.removeItem]]
|
||||
* If you only want to remove the cache of an asset, please use [[Pipeline.removeItem]]
|
||||
* @zh
|
||||
* 通过 id(通常是资源 url)来释放一个资源或者一个资源数组。<br>
|
||||
* 从 v1.3 开始,这个方法不仅会从 loader 中删除资源的缓存引用,还会清理它的资源内容。<br>
|
||||
* 比如说,当你释放一个 texture 资源,这个 texture 和它的 gl 贴图数据都会被释放。<br>
|
||||
* 在复杂项目中,我们建议你结合 [[getDependsRecursively]] 来使用,便于在设备内存告急的情况下更快地释放不再需要的资源的内存。<br>
|
||||
* 注意,这个函数可能会导致资源贴图或资源所依赖的贴图不可用,如果场景中存在节点仍然依赖同样的贴图,它们可能会变黑并报 GL 错误。<br>
|
||||
* 如果你只想删除一个资源的缓存引用,请使用 [[pipeline.removeItem]]
|
||||
* 如果你只想删除一个资源的缓存引用,请使用 [[Pipeline.removeItem]]
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
@@ -1011,31 +1014,36 @@ export class CCLoader extends Pipeline {
|
||||
*/
|
||||
public _getResUuid (url, type, mount, quiet) {
|
||||
mount = mount || 'assets';
|
||||
|
||||
let uuid = '';
|
||||
if (CC_EDITOR) {
|
||||
const info = EditorExtends.Asset.getAssetInfoFromUrl(`db://${mount}/resources/${url}`);
|
||||
return info ? info.uuid : '';
|
||||
uuid = info ? info.uuid : '';
|
||||
}
|
||||
|
||||
const assetTable = assetTables[mount];
|
||||
if (!url || !assetTable) {
|
||||
return null;
|
||||
}
|
||||
// Ignore parameter
|
||||
const index = url.indexOf('?');
|
||||
if (index !== -1) {
|
||||
url = url.substr(0, index);
|
||||
}
|
||||
let uuid = assetTable.getUuid(url, type);
|
||||
if (!uuid) {
|
||||
const extname = cc.path.extname(url);
|
||||
if (extname) {
|
||||
// strip extname
|
||||
url = url.slice(0, - extname.length);
|
||||
uuid = assetTable.getUuid(url, type);
|
||||
if (uuid && !quiet) {
|
||||
cc.warnID(4901, url, extname);
|
||||
else {
|
||||
const assetTable = assetTables[mount];
|
||||
if (url && assetTable) {
|
||||
// Ignore parameter
|
||||
const index = url.indexOf('?');
|
||||
if (index !== -1) {
|
||||
url = url.substr(0, index);
|
||||
}
|
||||
uuid = assetTable.getUuid(url, type);
|
||||
if (!uuid) {
|
||||
const extname = cc.path.extname(url);
|
||||
if (extname) {
|
||||
// strip extname
|
||||
url = url.slice(0, - extname.length);
|
||||
uuid = assetTable.getUuid(url, type);
|
||||
if (uuid && !quiet) {
|
||||
cc.warnID(4901, url, extname);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!uuid && type) {
|
||||
if (isChildClassOf(type, SpriteFrame) || isChildClassOf(type, Texture2D) || isChildClassOf(type, TextureCube)) {
|
||||
cc.warnID(4934);
|
||||
}
|
||||
}
|
||||
return uuid;
|
||||
|
||||
@@ -225,7 +225,8 @@ export default class Downloader implements IPipe {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add custom supported types handler or modify existing type handler.
|
||||
* @en Add custom supported types handler or modify existing type handler.
|
||||
* @zh 添加自定义支持的类型处理程序或修改现有的类型处理程序。
|
||||
* @method addHandlers
|
||||
* @param {Object} extMap Custom supported types with corresponded handler
|
||||
*/
|
||||
|
||||
@@ -145,7 +145,7 @@ function checkCircleReference(owner, item:IItem, recursiveCall?) {
|
||||
/**
|
||||
* @en
|
||||
* LoadingItems is the queue of items which can flow them into the loading pipeline.<br/>
|
||||
* Please don't construct it directly, use {{#crossLink "LoadingItems.create"}}cc.LoadingItems.create{{/crossLink}} instead, because we use an internal pool to recycle the queues.<br/>
|
||||
* Please don't construct it directly, use [[create]] instead, because we use an internal pool to recycle the queues.<br/>
|
||||
* It hold a map of items, each entry in the map is a url to object key value pair.<br/>
|
||||
* Each item always contains the following property:<br/>
|
||||
* - id: The identification of the item, usually it's identical to url<br/>
|
||||
@@ -161,7 +161,7 @@ function checkCircleReference(owner, item:IItem, recursiveCall?) {
|
||||
* So please don't hold its reference for later usage, you can copy properties in it though.
|
||||
* @zh
|
||||
* LoadingItems 是一个加载对象队列,可以用来输送加载对象到加载管线中。<br/>
|
||||
* 请不要直接使用 new 构造这个类的对象,你可以使用 {{#crossLink "LoadingItems.create"}}cc.LoadingItems.create{{/crossLink}} 来创建一个新的加载队列,这样可以允许我们的内部对象池回收并重利用加载队列。
|
||||
* 请不要直接使用 new 构造这个类的对象,你可以使用 [[create]] 来创建一个新的加载队列,这样可以允许我们的内部对象池回收并重利用加载队列。
|
||||
* 它有一个 map 属性用来存放加载项,在 map 对象中已 url 为 key 值。<br/>
|
||||
* 每个对象都会包含下列属性:<br/>
|
||||
* - id:该对象的标识,通常与 url 相同。<br/>
|
||||
@@ -234,7 +234,7 @@ export class LoadingItems extends CallbacksInvoker {
|
||||
* ```
|
||||
*/
|
||||
public onComplete:Function|undefined;
|
||||
|
||||
|
||||
/**
|
||||
* @en The map of all items.
|
||||
* @zh 存储所有加载项的对象。
|
||||
@@ -318,8 +318,8 @@ export class LoadingItems extends CallbacksInvoker {
|
||||
* @static
|
||||
* @param {Pipeline} pipeline The pipeline to process the queue.
|
||||
* @param {Array} urlList The items array.
|
||||
* @param {Function} [onProgress] The progression callback, refer to {{#crossLink "LoadingItems.onProgress"}}{{/crossLink}}
|
||||
* @param {Function} [onComplete] The completion callback, refer to {{#crossLink "LoadingItems.onComplete"}}{{/crossLink}}
|
||||
* @param {Function} [onProgress] The progression callback, refer to [[onProgress]]
|
||||
* @param {Function} [onComplete] The completion callback, refer to [[LoadingItems.onComplete]]
|
||||
* @return {LoadingItems} The LoadingItems queue object
|
||||
* @example
|
||||
* ```
|
||||
@@ -458,9 +458,9 @@ export class LoadingItems extends CallbacksInvoker {
|
||||
* @en Add urls to the LoadingItems queue.
|
||||
* @zh 向一个 LoadingItems 队列添加加载项。
|
||||
* @method append
|
||||
* @param {Array} urlList The url list to be appended, the url can be object or string
|
||||
* @param {Array} urlList 要追加的url列表,url可以是对象或字符串
|
||||
* @param {any} [owner]
|
||||
* @return {Array} The accepted url list, some invalid items could be refused.
|
||||
* @return {Array} 在已接受的url列表中,可以拒绝某些无效项
|
||||
*/
|
||||
append (urlList, owner?) {
|
||||
if (!this.active) {
|
||||
|
||||
@@ -32,7 +32,7 @@ import { Pipeline, IPipe } from './pipeline';
|
||||
|
||||
const ID = 'MD5Pipe';
|
||||
const ExtnameRegex = /(\.[^.\n\\/]*)$/;
|
||||
const UuidRegex = /([^/\\]*)\.[^\.]*$/;
|
||||
const UuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-@]{8,}).*/;
|
||||
|
||||
function getUuidFromURL (url) {
|
||||
let matches = url.match(UuidRegex);
|
||||
|
||||
@@ -378,10 +378,10 @@ export class Pipeline {
|
||||
* @en Removes an completed item in pipeline.
|
||||
* It will only remove the cache in the pipeline or loader, its dependencies won't be released.
|
||||
* cc.loader provided another method to completely cleanup the resource and its dependencies,
|
||||
* please refer to {{#crossLink "loader/release:method"}}cc.loader.release{{/crossLink}}
|
||||
* please refer to [[CCLoader.release]]
|
||||
* @zh 移除指定的已完成 item。
|
||||
* 这将仅仅从 pipeline 或者 loader 中删除其缓存,并不会释放它所依赖的资源。
|
||||
* cc.loader 中提供了另一种删除资源及其依赖的清理方法,请参考 {{#crossLink "loader/release:method"}}cc.loader.release{{/crossLink}}
|
||||
* cc.loader 中提供了另一种删除资源及其依赖的清理方法,请参考 [[CCLoader.release]]
|
||||
* @method removeItem
|
||||
* @param {Object} id The id of the item
|
||||
* @return {Boolean} succeed or not
|
||||
|
||||
@@ -78,7 +78,8 @@ class SAXParser {
|
||||
*/
|
||||
class PlistParser extends SAXParser {
|
||||
/**
|
||||
* parse a xml string as plist object.
|
||||
* @en parse a xml string as plist object.
|
||||
* @zh 将xml字符串解析为plist对象。
|
||||
* @param {String} xmlTxt - plist xml contents
|
||||
* @return {*} plist object
|
||||
*/
|
||||
|
||||
@@ -27,7 +27,7 @@ import decodeUuid from '../utils/decode-uuid';
|
||||
import { Pipeline, IPipe } from './pipeline';
|
||||
|
||||
const ID = 'SubPackPipe';
|
||||
const UuidRegex = /([^/\\]*)\.[^\.]*$/;
|
||||
const UuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-@]{8,}).*/;
|
||||
|
||||
function getUuidFromURL(url) {
|
||||
let matches = url.match(UuidRegex);
|
||||
|
||||
+18
-12
@@ -19,6 +19,7 @@ export const INT_MIN = -1 << (INT_BITS - 1);
|
||||
|
||||
/**
|
||||
* @en Returns -1, 0, +1 depending on sign of x.
|
||||
* @zh 根据x的符号返回 -1,0,+1。
|
||||
*/
|
||||
export function sign (v: number) {
|
||||
return ((v > 0) as unknown as number) - ((v < 0) as unknown as number);
|
||||
@@ -26,6 +27,7 @@ export function sign (v: number) {
|
||||
|
||||
/**
|
||||
* @en Computes absolute value of integer.
|
||||
* @zh 计算整数的绝对值。
|
||||
*/
|
||||
export function abs (v: number) {
|
||||
const mask = v >> (INT_BITS - 1);
|
||||
@@ -34,6 +36,7 @@ export function abs (v: number) {
|
||||
|
||||
/**
|
||||
* @en Computes minimum of integers x and y.
|
||||
* @zh 计算整数x和y中的最小值。
|
||||
*/
|
||||
export function min (x: number, y: number) {
|
||||
return y ^ ((x ^ y) & -(x < y));
|
||||
@@ -41,6 +44,7 @@ export function min (x: number, y: number) {
|
||||
|
||||
/**
|
||||
* @en Computes maximum of integers x and y.
|
||||
* @zh 计算整数x和y中的最大值。
|
||||
*/
|
||||
export function max (x: number, y: number) {
|
||||
return x ^ ((x ^ y) & -(x < y));
|
||||
@@ -48,13 +52,14 @@ export function max (x: number, y: number) {
|
||||
|
||||
/**
|
||||
* @en Checks if a number is a power of two.
|
||||
* @zh 检查一个数字是否是2的幂。
|
||||
*/
|
||||
export function isPow2 (v: number) {
|
||||
return !(v & (v - 1)) && (!!v);
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Computes log base 2 of v.
|
||||
* Computes log base 2 of v.
|
||||
*/
|
||||
export function log2 (v: number) {
|
||||
let r: number;
|
||||
@@ -67,7 +72,7 @@ export function log2 (v: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Computes log base 10 of v.
|
||||
* Computes log base 10 of v.
|
||||
*/
|
||||
export function log10 (v: number) {
|
||||
return (v >= 1000000000) ? 9 : (v >= 100000000) ? 8 : (v >= 10000000) ? 7 :
|
||||
@@ -76,7 +81,7 @@ export function log10 (v: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Counts number of bits.
|
||||
* Counts number of bits.
|
||||
*/
|
||||
export function popCount (v: number) {
|
||||
v = v - ((v >>> 1) & 0x55555555);
|
||||
@@ -86,6 +91,7 @@ export function popCount (v: number) {
|
||||
|
||||
/**
|
||||
* @en Counts number of trailing zeros.
|
||||
* @zh 计算数字后面零的数量。
|
||||
*/
|
||||
export function countTrailingZeros (v: number) {
|
||||
let c = 32;
|
||||
@@ -100,7 +106,7 @@ export function countTrailingZeros (v: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Rounds to next power of 2.
|
||||
* Rounds to next power of 2.
|
||||
*/
|
||||
export function nextPow2 (v: number) {
|
||||
v += ((v === 0) as unknown as number);
|
||||
@@ -114,7 +120,7 @@ export function nextPow2 (v: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Rounds down to previous power of 2.
|
||||
* Rounds down to previous power of 2.
|
||||
*/
|
||||
export function prevPow2 (v: number) {
|
||||
v |= v >>> 1;
|
||||
@@ -126,7 +132,7 @@ export function prevPow2 (v: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Computes parity of word.
|
||||
* Computes parity of word.
|
||||
*/
|
||||
export function parity (v: number) {
|
||||
v ^= v >>> 16;
|
||||
@@ -153,7 +159,7 @@ const REVERSE_TABLE: number[] = new Array(256);
|
||||
})(REVERSE_TABLE);
|
||||
|
||||
/**
|
||||
* @en Reverse bits in a 32 bit word.
|
||||
* Reverse bits in a 32 bit word.
|
||||
*/
|
||||
export function reverse (v: number) {
|
||||
return (REVERSE_TABLE[v & 0xff] << 24) |
|
||||
@@ -163,7 +169,7 @@ export function reverse (v: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes.
|
||||
* Interleave bits of 2 coordinates with 16 bits. Useful for fast quadtree codes.
|
||||
*/
|
||||
export function interleave2 (x: number, y: number) {
|
||||
x &= 0xFFFF;
|
||||
@@ -182,7 +188,7 @@ export function interleave2 (x: number, y: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Extracts the nth interleaved component.
|
||||
* Extracts the nth interleaved component.
|
||||
*/
|
||||
export function deinterleave2 (v: number, n: number) {
|
||||
v = (v >>> n) & 0x55555555;
|
||||
@@ -194,7 +200,7 @@ export function deinterleave2 (v: number, n: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes.
|
||||
* Interleave bits of 3 coordinates, each with 10 bits. Useful for fast octree codes.
|
||||
*/
|
||||
export function interleave3 (x: number, y: number, z: number) {
|
||||
x &= 0x3FF;
|
||||
@@ -220,7 +226,7 @@ export function interleave3 (x: number, y: number, z: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Extracts nth interleaved component of a 3-tuple.
|
||||
* Extracts nth interleaved component of a 3-tuple.
|
||||
*/
|
||||
export function deinterleave3 (v: number, n: number) {
|
||||
v = (v >>> n) & 1227133513;
|
||||
@@ -232,7 +238,7 @@ export function deinterleave3 (v: number, n: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Computes next combination in colexicographic order (this is
|
||||
* Computes next combination in colexicographic order (this is
|
||||
* mistakenly called nextPermutation on the bit twiddling hacks page).
|
||||
*/
|
||||
export function nextCombination (v: number) {
|
||||
|
||||
+24
-24
@@ -41,8 +41,8 @@ let _b: number = 0;
|
||||
let _a: number = 0;
|
||||
|
||||
/**
|
||||
* 通过 Red、Green、Blue 颜色通道表示颜色,并通过 Alpha 通道表示不透明度。
|
||||
* 每个通道都为取值范围 [0, 255] 的整数。
|
||||
* @zh 通过 Red、Green、Blue 颜色通道表示颜色,并通过 Alpha 通道表示不透明度。<br/>
|
||||
* 每个通道都为取值范围 [0, 255] 的整数。<br/>
|
||||
*/
|
||||
export class Color extends ValueType {
|
||||
|
||||
@@ -225,7 +225,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取或设置当前颜色的 Red 通道。
|
||||
* @zh 获取或设置当前颜色的 Red 通道。
|
||||
*/
|
||||
get r () {
|
||||
return this._val & 0x000000ff;
|
||||
@@ -237,7 +237,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取或设置当前颜色的 Green 通道。
|
||||
* @zh 获取或设置当前颜色的 Green 通道。
|
||||
*/
|
||||
get g () {
|
||||
return (this._val & 0x0000ff00) >> 8;
|
||||
@@ -249,7 +249,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取或设置当前颜色的 Blue 通道。
|
||||
* @zh 获取或设置当前颜色的 Blue 通道。
|
||||
*/
|
||||
get b () {
|
||||
return (this._val & 0x00ff0000) >> 16;
|
||||
@@ -261,7 +261,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取或设置当前颜色的 Alpha 通道。
|
||||
* @zh 获取或设置当前颜色的 Alpha 通道。
|
||||
*/
|
||||
get a () {
|
||||
return (this._val & 0xff000000) >>> 24;
|
||||
@@ -291,14 +291,14 @@ export class Color extends ValueType {
|
||||
constructor (other: Color);
|
||||
|
||||
/**
|
||||
* 用十六进制颜色字符串中构造颜色。
|
||||
* @zh 用十六进制颜色字符串中构造颜色。
|
||||
* @param hexString 十六进制颜色字符串。
|
||||
*/
|
||||
// tslint:disable-next-line: unified-signatures
|
||||
constructor (hexString: string);
|
||||
|
||||
/**
|
||||
* 构造具有指定通道的颜色。
|
||||
* @zh 构造具有指定通道的颜色。
|
||||
* @param [r=0] 指定的 Red 通道。
|
||||
* @param [g=0] 指定的 Green 通道。
|
||||
* @param [b=0] 指定的 Blue 通道。
|
||||
@@ -327,7 +327,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 克隆当前颜色。
|
||||
* @zh 克隆当前颜色。
|
||||
*/
|
||||
public clone () {
|
||||
const ret = new Color();
|
||||
@@ -336,7 +336,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前颜色是否与指定颜色相等。
|
||||
* @zh 判断当前颜色是否与指定颜色相等。
|
||||
* @param other 相比较的颜色。
|
||||
* @returns 两颜色的各通道都相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
@@ -345,7 +345,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据指定的插值比率,从当前颜色到目标颜色之间做插值。
|
||||
* @zh 根据指定的插值比率,从当前颜色到目标颜色之间做插值。
|
||||
* @param to 目标颜色。
|
||||
* @param ratio 插值比率,范围为 [0,1]。
|
||||
*/
|
||||
@@ -363,7 +363,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前颜色的字符串表示。
|
||||
* @zh 返回当前颜色的字符串表示。
|
||||
* @returns 当前颜色的字符串表示。
|
||||
*/
|
||||
public toString () {
|
||||
@@ -375,7 +375,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前颜色转换为 CSS 格式。
|
||||
* @zh 将当前颜色转换为 CSS 格式。
|
||||
* @param opt 格式选项。
|
||||
* @returns 当前颜色的 CSS 格式。
|
||||
*/
|
||||
@@ -399,10 +399,10 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 从十六进制颜色字符串中读入当前颜色。
|
||||
* 十六进制颜色字符串应该以可选的 "#" 开头,紧跟最多 8 个代表十六进制数字的字符;
|
||||
* 每两个连续字符代表的数值依次作为 Red、Green、Blue 和 Alpha 通道;
|
||||
* 缺省的颜色通道将视为 0;缺省的透明通道将视为 255。
|
||||
* @zh 从十六进制颜色字符串中读入当前颜色。<br/>
|
||||
* 十六进制颜色字符串应该以可选的 "#" 开头,紧跟最多 8 个代表十六进制数字的字符;<br/>
|
||||
* 每两个连续字符代表的数值依次作为 Red、Green、Blue 和 Alpha 通道;<br/>
|
||||
* 缺省的颜色通道将视为 0;缺省的透明通道将视为 255。<br/>
|
||||
* @param hexString 十六进制颜色字符串。
|
||||
* @returns `this`
|
||||
*/
|
||||
@@ -417,7 +417,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换当前颜色为十六进制颜色字符串。
|
||||
* @zh 转换当前颜色为十六进制颜色字符串。
|
||||
* @param fmt 格式选项。
|
||||
* - `'#rrggbbaa'` 获取Red、Green、Blue、Alpha通道的十六进制值(**两位**,高位补 0)并依次连接;
|
||||
* - `'#rrggbb` 与 `'#rrggbbaa'` 类似但不包括 Alpha 通道。
|
||||
@@ -454,7 +454,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前颜色转换为 RGB 整数值。
|
||||
* @zh 将当前颜色转换为 RGB 整数值。
|
||||
* @returns RGB 整数值。从最低有效位开始,每8位分别是 Red、Green、Blue 通道的值。
|
||||
* @example
|
||||
* ```
|
||||
@@ -467,7 +467,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 从 HSV 颜色中读入当前颜色。
|
||||
* @zh 从 HSV 颜色中读入当前颜色。
|
||||
* @param h H 通道。
|
||||
* @param s S 通道。
|
||||
* @param v V 通道。
|
||||
@@ -544,7 +544,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换当前颜色为 HSV 颜色。
|
||||
* @zh 转换当前颜色为 HSV 颜色。
|
||||
* @returns HSV 颜色。成员 `h`、`s`、`v` 分别代表 HSV 颜色的 H、S、V 通道。
|
||||
* @example
|
||||
* ```
|
||||
@@ -578,14 +578,14 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前颜色使其与指定颜色相等。
|
||||
* @zh 设置当前颜色使其与指定颜色相等。
|
||||
* @param other 相比较的颜色。
|
||||
* @returns 当前颜色。
|
||||
*/
|
||||
public set (other: Color);
|
||||
|
||||
/**
|
||||
* 设置当前颜色使其与指定通道值相等。
|
||||
* @zh 设置当前颜色使其与指定通道值相等。
|
||||
* @param [r=0] 指定的 Red 通道。
|
||||
* @param [g=0] 指定的 Green 通道。
|
||||
* @param [b=0] 指定的 Blue 通道。
|
||||
@@ -610,7 +610,7 @@ export class Color extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前颜色乘以与指定颜色
|
||||
* @zh 将当前颜色乘以与指定颜色
|
||||
* @param other 指定的颜色。
|
||||
*/
|
||||
public multiply (other: Color) {
|
||||
|
||||
+22
-22
@@ -204,7 +204,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 取四阶矩阵的前三阶,与三阶矩阵相乘
|
||||
* @zh 取四阶矩阵的前三阶,与三阶矩阵相乘
|
||||
*/
|
||||
public static multiplyMat4 <Out extends IMat3Like> (out: Out, a: Out, b: IMat4Like) {
|
||||
_a00 = a.m00; _a01 = a.m01; _a02 = a.m02;
|
||||
@@ -670,7 +670,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 克隆当前矩阵。
|
||||
* @zh 克隆当前矩阵。
|
||||
*/
|
||||
public clone () {
|
||||
const t = this;
|
||||
@@ -681,15 +681,15 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前矩阵使其与指定矩阵相等。
|
||||
* @zh 设置当前矩阵使其与指定矩阵相等。
|
||||
* @param other 相比较的矩阵。
|
||||
* @returns `this`
|
||||
* @return this
|
||||
*/
|
||||
public set (other: Mat3);
|
||||
|
||||
/**
|
||||
* 设置当前矩阵指定元素值。
|
||||
* @returns `this`
|
||||
* @return this
|
||||
*/
|
||||
public set (m00?: number, m01?: number, m02?: number,
|
||||
m03?: number, m04?: number, m05?: number,
|
||||
@@ -711,10 +711,10 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前矩阵是否在误差范围内与指定矩阵相等。
|
||||
* @zh 判断当前矩阵是否在误差范围内与指定矩阵相等。
|
||||
* @param other 相比较的矩阵。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
* @return 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public equals (other: Mat3, epsilon = EPSILON): boolean {
|
||||
return (
|
||||
@@ -731,9 +731,9 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前矩阵是否与指定矩阵相等。
|
||||
* @zh 判断当前矩阵是否与指定矩阵相等。
|
||||
* @param other 相比较的矩阵。
|
||||
* @returns 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
* @return 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public strictEquals (other: Mat3): boolean {
|
||||
return this.m00 === other.m00 && this.m01 === other.m01 && this.m02 === other.m02 &&
|
||||
@@ -743,7 +743,7 @@ export class Mat3 extends ValueType {
|
||||
|
||||
/**
|
||||
* 返回当前矩阵的字符串表示。
|
||||
* @returns 当前矩阵的字符串表示。
|
||||
* @return 当前矩阵的字符串表示。
|
||||
*/
|
||||
public toString () {
|
||||
const t = this;
|
||||
@@ -756,7 +756,7 @@ export class Mat3 extends ValueType {
|
||||
|
||||
/**
|
||||
* 将当前矩阵设为单位矩阵。
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public identity () {
|
||||
this.m00 = 1;
|
||||
@@ -772,7 +772,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算当前矩阵的转置矩阵。
|
||||
* @zh 计算当前矩阵的转置矩阵。
|
||||
*/
|
||||
public transpose () {
|
||||
const a01 = this.m01, a02 = this.m02, a12 = this.m05;
|
||||
@@ -786,7 +786,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算当前矩阵的逆矩阵。
|
||||
* @zh 计算当前矩阵的逆矩阵。
|
||||
*/
|
||||
public invert () {
|
||||
_a00 = this.m00; _a01 = this.m01; _a02 = this.m02;
|
||||
@@ -819,7 +819,7 @@ export class Mat3 extends ValueType {
|
||||
|
||||
/**
|
||||
* 计算当前矩阵的行列式。
|
||||
* @returns 当前矩阵的行列式。
|
||||
* @return 当前矩阵的行列式。
|
||||
*/
|
||||
public determinant (): number {
|
||||
_a00 = this.m00; _a01 = this.m01; _a02 = this.m02;
|
||||
@@ -830,7 +830,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 矩阵加法。将当前矩阵与指定矩阵的相加,结果返回给当前矩阵。
|
||||
* @zh 矩阵加法。将当前矩阵与指定矩阵的相加,结果返回给当前矩阵。
|
||||
* @param mat 相加的矩阵
|
||||
*/
|
||||
public add (mat: Mat3) {
|
||||
@@ -847,7 +847,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算矩阵减法。将当前矩阵减去指定矩阵的结果赋值给当前矩阵。
|
||||
* @zh 计算矩阵减法。将当前矩阵减去指定矩阵的结果赋值给当前矩阵。
|
||||
* @param mat 减数矩阵。
|
||||
*/
|
||||
public subtract (mat: Mat3) {
|
||||
@@ -864,7 +864,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 矩阵乘法。将当前矩阵左乘指定矩阵的结果赋值给当前矩阵。
|
||||
* @zh 矩阵乘法。将当前矩阵左乘指定矩阵的结果赋值给当前矩阵。
|
||||
* @param mat 指定的矩阵。
|
||||
*/
|
||||
public multiply (mat: Mat3) {
|
||||
@@ -891,7 +891,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 矩阵数乘。将当前矩阵与指定标量的数乘结果赋值给当前矩阵。
|
||||
* @zh 矩阵数乘。将当前矩阵与指定标量的数乘结果赋值给当前矩阵。
|
||||
* @param scalar 指定的标量。
|
||||
*/
|
||||
public multiplyScalar (scalar: number) {
|
||||
@@ -908,7 +908,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前矩阵左乘缩放矩阵的结果赋值给当前矩阵,缩放矩阵由各个轴的缩放给出。
|
||||
* @zh 将当前矩阵左乘缩放矩阵的结果赋值给当前矩阵,缩放矩阵由各个轴的缩放给出。
|
||||
* @param vec 各个轴的缩放。
|
||||
*/
|
||||
public scale (vec: Vec3) {
|
||||
@@ -929,7 +929,7 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前矩阵左乘旋转矩阵的结果赋值给当前矩阵,旋转矩阵由旋转轴和旋转角度给出。
|
||||
* @zh 将当前矩阵左乘旋转矩阵的结果赋值给当前矩阵,旋转矩阵由旋转轴和旋转角度给出。
|
||||
* @param mat 矩阵
|
||||
* @param rad 旋转角度(弧度制)
|
||||
*/
|
||||
@@ -956,9 +956,9 @@ export class Mat3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置当前矩阵的值,使其表示指定四元数表示的旋转变换。
|
||||
* @zh 重置当前矩阵的值,使其表示指定四元数表示的旋转变换。
|
||||
* @param q 四元数表示的旋转变换。
|
||||
* @returns `this`
|
||||
* @returns this
|
||||
*/
|
||||
public fromQuat (q: Quat) {
|
||||
const x = q.x, y = q.y, z = q.z, w = q.w;
|
||||
|
||||
+27
-27
@@ -1442,7 +1442,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 克隆当前矩阵。
|
||||
* @zh 克隆当前矩阵。
|
||||
*/
|
||||
public clone () {
|
||||
const t = this;
|
||||
@@ -1454,15 +1454,15 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前矩阵使其与指定矩阵相等。
|
||||
* @zh 设置当前矩阵使其与指定矩阵相等。
|
||||
* @param other 相比较的矩阵。
|
||||
* @returns `this`
|
||||
* @return this
|
||||
*/
|
||||
public set (other: Mat4);
|
||||
|
||||
/**
|
||||
* 设置当前矩阵指定元素值。
|
||||
* @returns `this`
|
||||
* @return this
|
||||
*/
|
||||
public set (
|
||||
m00?: number, m01?: number, m02?: number, m03?: number,
|
||||
@@ -1489,10 +1489,10 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前矩阵是否在误差范围内与指定矩阵相等。
|
||||
* @zh 判断当前矩阵是否在误差范围内与指定矩阵相等。
|
||||
* @param other 相比较的矩阵。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
* @return 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public equals (other: Mat4, epsilon = EPSILON): boolean {
|
||||
return (
|
||||
@@ -1516,9 +1516,9 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前矩阵是否与指定矩阵相等。
|
||||
* @zh 判断当前矩阵是否与指定矩阵相等。
|
||||
* @param other 相比较的矩阵。
|
||||
* @returns 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
* @return 两矩阵的各元素都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public strictEquals (other: Mat4): boolean {
|
||||
return this.m00 === other.m00 && this.m01 === other.m01 && this.m02 === other.m02 && this.m03 === other.m03 &&
|
||||
@@ -1529,7 +1529,7 @@ export class Mat4 extends ValueType {
|
||||
|
||||
/**
|
||||
* 返回当前矩阵的字符串表示。
|
||||
* @returns 当前矩阵的字符串表示。
|
||||
* @return 当前矩阵的字符串表示。
|
||||
*/
|
||||
public toString () {
|
||||
return '[\n' +
|
||||
@@ -1542,7 +1542,7 @@ export class Mat4 extends ValueType {
|
||||
|
||||
/**
|
||||
* 将当前矩阵设为单位矩阵。
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public identity () {
|
||||
this.m00 = 1;
|
||||
@@ -1565,7 +1565,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算当前矩阵的转置矩阵。
|
||||
* @zh 计算当前矩阵的转置矩阵。
|
||||
*/
|
||||
public transpose () {
|
||||
const a01 = this.m01, a02 = this.m02, a03 = this.m03, a12 = this.m06, a13 = this.m07, a23 = this.m11;
|
||||
@@ -1585,7 +1585,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算当前矩阵的逆矩阵。
|
||||
* @zh 计算当前矩阵的逆矩阵。
|
||||
*/
|
||||
public invert () {
|
||||
_a00 = this.m00; _a01 = this.m01; _a02 = this.m02; _a03 = this.m03;
|
||||
@@ -1634,7 +1634,7 @@ export class Mat4 extends ValueType {
|
||||
|
||||
/**
|
||||
* 计算当前矩阵的行列式。
|
||||
* @returns 当前矩阵的行列式。
|
||||
* @return 当前矩阵的行列式。
|
||||
*/
|
||||
public determinant (): number {
|
||||
_a00 = this.m00; _a01 = this.m01; _a02 = this.m02; _a03 = this.m03;
|
||||
@@ -1660,7 +1660,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 矩阵加法。将当前矩阵与指定矩阵的相加,结果返回给当前矩阵。
|
||||
* @zh 矩阵加法。将当前矩阵与指定矩阵的相加,结果返回给当前矩阵。
|
||||
* @param mat 相加的矩阵
|
||||
*/
|
||||
public add (mat: Mat4) {
|
||||
@@ -1684,7 +1684,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算矩阵减法。将当前矩阵减去指定矩阵的结果赋值给当前矩阵。
|
||||
* @zh 计算矩阵减法。将当前矩阵减去指定矩阵的结果赋值给当前矩阵。
|
||||
* @param mat 减数矩阵。
|
||||
*/
|
||||
public subtract (mat: Mat4) {
|
||||
@@ -1708,7 +1708,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 矩阵乘法。将当前矩阵左乘指定矩阵的结果赋值给当前矩阵。
|
||||
* @zh 矩阵乘法。将当前矩阵左乘指定矩阵的结果赋值给当前矩阵。
|
||||
* @param mat 指定的矩阵。
|
||||
*/
|
||||
public multiply (mat: Mat4) {
|
||||
@@ -1745,7 +1745,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 矩阵数乘。将当前矩阵与指定标量的数乘结果赋值给当前矩阵。
|
||||
* @zh 矩阵数乘。将当前矩阵与指定标量的数乘结果赋值给当前矩阵。
|
||||
* @param scalar 指定的标量。
|
||||
*/
|
||||
public multiplyScalar (scalar: number) {
|
||||
@@ -1769,7 +1769,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前矩阵左乘位移矩阵的结果赋值给当前矩阵,位移矩阵由各个轴的位移给出。
|
||||
* @zh 将当前矩阵左乘位移矩阵的结果赋值给当前矩阵,位移矩阵由各个轴的位移给出。
|
||||
* @param vec 位移向量。
|
||||
*/
|
||||
public translate (vec: Vec3) {
|
||||
@@ -1781,7 +1781,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前矩阵左乘缩放矩阵的结果赋值给当前矩阵,缩放矩阵由各个轴的缩放给出。
|
||||
* @zh 将当前矩阵左乘缩放矩阵的结果赋值给当前矩阵,缩放矩阵由各个轴的缩放给出。
|
||||
* @param vec 各个轴的缩放。
|
||||
*/
|
||||
public scale (vec: Vec3) {
|
||||
@@ -1806,7 +1806,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前矩阵左乘旋转矩阵的结果赋值给当前矩阵,旋转矩阵由旋转轴和旋转角度给出。
|
||||
* @zh 将当前矩阵左乘旋转矩阵的结果赋值给当前矩阵,旋转矩阵由旋转轴和旋转角度给出。
|
||||
* @param mat 矩阵
|
||||
* @param rad 旋转角度(弧度制)
|
||||
* @param axis 旋转轴
|
||||
@@ -1856,7 +1856,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 从当前矩阵中计算出位移变换的部分,并以各个轴上位移的形式赋值给出口向量。
|
||||
* @zh 从当前矩阵中计算出位移变换的部分,并以各个轴上位移的形式赋值给出口向量。
|
||||
* @param out 返回向量,当未指定时将创建为新的向量。
|
||||
*/
|
||||
public getTranslation (out: Vec3) {
|
||||
@@ -1868,7 +1868,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 从当前矩阵中计算出缩放变换的部分,并以各个轴上缩放的形式赋值给出口向量。
|
||||
* @zh 从当前矩阵中计算出缩放变换的部分,并以各个轴上缩放的形式赋值给出口向量。
|
||||
* @param out 返回值,当未指定时将创建为新的向量。
|
||||
*/
|
||||
public getScale (out: Vec3) {
|
||||
@@ -1890,7 +1890,7 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 从当前矩阵中计算出旋转变换的部分,并以四元数的形式赋值给出口四元数。
|
||||
* @zh 从当前矩阵中计算出旋转变换的部分,并以四元数的形式赋值给出口四元数。
|
||||
* @param out 返回值,当未指定时将创建为新的四元数。
|
||||
*/
|
||||
public getRotation (out: Quat) {
|
||||
@@ -1927,11 +1927,11 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置当前矩阵的值,使其表示指定的旋转、缩放、位移依次组合的变换。
|
||||
* @zh 重置当前矩阵的值,使其表示指定的旋转、缩放、位移依次组合的变换。
|
||||
* @param q 四元数表示的旋转变换。
|
||||
* @param v 位移变换,表示为各个轴的位移。
|
||||
* @param s 缩放变换,表示为各个轴的缩放。
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public fromRTS (q: Quat, v: Vec3, s: Vec3) {
|
||||
const x = q.x, y = q.y, z = q.z, w = q.w;
|
||||
@@ -1973,9 +1973,9 @@ export class Mat4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置当前矩阵的值,使其表示指定四元数表示的旋转变换。
|
||||
* @zh 重置当前矩阵的值,使其表示指定四元数表示的旋转变换。
|
||||
* @param q 四元数表示的旋转变换。
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public fromQuat (q: Quat) {
|
||||
const x = q.x, y = q.y, z = q.z, w = q.w;
|
||||
|
||||
@@ -538,8 +538,7 @@ export class Quat extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 根据四元数计算欧拉角,返回角度 x, y 在 [-180, 180] 区间内, z 默认在 [-90, 90] 区间内,旋转顺序为 YZX
|
||||
* @zh 根据四元数计算欧拉角,返回角度 x, y 在 [-180, 180] 区间内, z 默认在 [-90, 90] 区间内,旋转顺序为 YZX
|
||||
* @param outerZ z 取值范围区间改为 [-180, -90] U [90, 180]
|
||||
*/
|
||||
public static toEuler <Out extends IVec3Like> (out: Out, q: IQuatLike, outerZ?: boolean) {
|
||||
@@ -654,21 +653,21 @@ export class Quat extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 克隆当前四元数。
|
||||
* @zh 克隆当前四元数。
|
||||
*/
|
||||
public clone () {
|
||||
return new Quat(this.x, this.y, this.z, this.w);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前四元数使其与指定四元数相等。
|
||||
* @zh 设置当前四元数使其与指定四元数相等。
|
||||
* @param other 相比较的四元数。
|
||||
* @returns `this`
|
||||
*/
|
||||
public set (other: Quat): Quat;
|
||||
|
||||
/**
|
||||
* 设置当前四元数指定元素值。
|
||||
* @zh 设置当前四元数指定元素值。
|
||||
* @param x 四元数 x 元素值
|
||||
* @param y 四元数 y 元素值
|
||||
* @param z 四元数 z 元素值
|
||||
@@ -693,7 +692,7 @@ export class Quat extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
@@ -706,7 +705,7 @@ export class Quat extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前四元数是否与指定四元数相等。
|
||||
* @zh 判断当前四元数是否与指定四元数相等。
|
||||
* @param other 相比较的四元数。
|
||||
* @returns 两四元数的各分量都相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
@@ -715,7 +714,7 @@ export class Quat extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前四元数转化为欧拉角(x-y-z)并赋值给出口向量。
|
||||
* @zh 将当前四元数转化为欧拉角(x-y-z)并赋值给出口向量。
|
||||
* @param out 出口向量。
|
||||
*/
|
||||
public getEulerAngles (out: Vec3) {
|
||||
@@ -723,7 +722,7 @@ export class Quat extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据指定的插值比率,从当前四元数到目标四元数之间做插值。
|
||||
* @zh 根据指定的插值比率,从当前四元数到目标四元数之间做插值。
|
||||
* @param to 目标四元数。
|
||||
* @param ratio 插值比率,范围为 [0,1]。
|
||||
*/
|
||||
|
||||
+26
-25
@@ -9,10 +9,11 @@ const _r2d = 180.0 / Math.PI;
|
||||
export const EPSILON = 0.000001;
|
||||
|
||||
/**
|
||||
* Tests whether or not the arguments have approximately the same value, within an absolute
|
||||
* or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less
|
||||
* @en Tests whether or not the arguments have approximately the same value, within an absolute<br/>
|
||||
* or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less<br/>
|
||||
* than or equal to 1.0, and a relative tolerance is used for larger values)
|
||||
*
|
||||
* @zh 在glMatrix的绝对或相对容差范围内,测试参数是否具有近似相同的值。<br/>
|
||||
* EPSILON(小于等于1.0的值采用绝对公差,大于1.0的值采用相对公差)
|
||||
* @param a The first number to test.
|
||||
* @param b The second number to test.
|
||||
* @return True if the numbers are approximately equal, false otherwise.
|
||||
@@ -22,8 +23,8 @@ export function equals (a: number, b: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests whether or not the arguments have approximately the same value by given maxDiff
|
||||
*
|
||||
* @en Tests whether or not the arguments have approximately the same value by given maxDiff<br/>
|
||||
* @zh 通过给定的最大差异,测试参数是否具有近似相同的值。
|
||||
* @param a The first number to test.
|
||||
* @param b The second number to test.
|
||||
* @param maxDiff Maximum difference.
|
||||
@@ -35,8 +36,8 @@ export function approx (a: number, b: number, maxDiff: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Clamps a value between a minimum float and maximum float value.
|
||||
*
|
||||
* @en Clamps a value between a minimum float and maximum float value.<br/>
|
||||
* @zh 返回最小浮点数和最大浮点数之间的一个数值。可以使用 clamp 函数将不断变化的数值限制在范围内。
|
||||
* @param val
|
||||
* @param min
|
||||
* @param max
|
||||
@@ -52,8 +53,8 @@ export function clamp (val: number, min: number, max: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Clamps a value between 0 and 1.
|
||||
*
|
||||
* @en Clamps a value between 0 and 1.<br/>
|
||||
* @zh 将值限制在0和1之间。
|
||||
* @param val
|
||||
*/
|
||||
export function clamp01 (val: number) {
|
||||
@@ -70,8 +71,8 @@ export function lerp (from: number, to: number, ratio: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert Degree To Radian
|
||||
*
|
||||
* @en Convert Degree To Radian<br/>
|
||||
* @zh 把角度换算成弧度。
|
||||
* @param {Number} a Angle in Degrees
|
||||
*/
|
||||
export function toRadian (a: number) {
|
||||
@@ -79,8 +80,8 @@ export function toRadian (a: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert Radian To Degree
|
||||
*
|
||||
* @en Convert Radian To Degree<br/>
|
||||
* @zh 把弧度换算成角度。
|
||||
* @param {Number} a Angle in Radian
|
||||
*/
|
||||
export function toDegree (a: number) {
|
||||
@@ -93,8 +94,8 @@ export function toDegree (a: number) {
|
||||
export const random = Math.random;
|
||||
|
||||
/**
|
||||
* Returns a floating-point random number between min (inclusive) and max (exclusive).
|
||||
*
|
||||
* @en Returns a floating-point random number between min (inclusive) and max (exclusive).<br/>
|
||||
* @zh 返回最小(包含)和最大(不包含)之间的浮点随机数。
|
||||
* @method randomRange
|
||||
* @param min
|
||||
* @param max
|
||||
@@ -105,8 +106,8 @@ export function randomRange (min: number, max: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a random integer between min (inclusive) and max (exclusive).
|
||||
*
|
||||
* @en Returns a random integer between min (inclusive) and max (exclusive).<br/>
|
||||
* @zh 返回最小(包含)和最大(不包含)之间的随机整数。
|
||||
* @param min
|
||||
* @param max
|
||||
* @return The random integer.
|
||||
@@ -139,8 +140,8 @@ export function pseudoRandomRange (seed: number, min: number, max: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a pseudo-random integer between min (inclusive) and max (exclusive).
|
||||
*
|
||||
* @en Returns a pseudo-random integer between min (inclusive) and max (exclusive).<br/>
|
||||
* @zh 返回最小(包含)和最大(不包含)之间的浮点伪随机数。
|
||||
* @param seed
|
||||
* @param min
|
||||
* @param max
|
||||
@@ -151,8 +152,8 @@ export function pseudoRandomRangeInt (seed: number, min: number, max: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the next power of two for the value.
|
||||
*
|
||||
* Returns the next power of two for the value.<br/>
|
||||
*
|
||||
* @param val
|
||||
* @return The the next power of two.
|
||||
*/
|
||||
@@ -168,8 +169,8 @@ export function nextPow2 (val: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns float remainder for t / length.
|
||||
*
|
||||
* @en Returns float remainder for t / length.<br/>
|
||||
* @zh 返回t / length的浮点余数。
|
||||
* @param t Time start at 0.
|
||||
* @param length Time of one cycle.
|
||||
* @return The Time wrapped in the first cycle.
|
||||
@@ -192,8 +193,8 @@ export function pingPong (t: number, length: number) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns ratio of a value within a given range.
|
||||
*
|
||||
* @en Returns ratio of a value within a given range.<br/>
|
||||
* @zh 返回给定范围内的值的比率。
|
||||
* @param from Start value.
|
||||
* @param to End value.
|
||||
* @param value Given value.
|
||||
|
||||
+43
-43
@@ -414,24 +414,24 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 克隆当前向量。
|
||||
* @zh 克隆当前向量。
|
||||
*/
|
||||
public clone () {
|
||||
return new Vec2(this.x, this.y);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前向量使其与指定向量相等。
|
||||
* @zh 设置当前向量使其与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public set (other: Vec2);
|
||||
|
||||
/**
|
||||
* 设置当前向量的具体分量值。
|
||||
* @zh 设置当前向量的具体分量值。
|
||||
* @param x 要设置的 x 分量的值
|
||||
* @param y 要设置的 y 分量的值
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public set (x?: number, y?: number);
|
||||
|
||||
@@ -447,10 +447,10 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
* @return 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public equals (other: Vec2, epsilon = EPSILON) {
|
||||
return (
|
||||
@@ -462,11 +462,11 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定分量的向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定分量的向量相等。
|
||||
* @param x 相比较的向量的 x 分量。
|
||||
* @param y 相比较的向量的 y 分量。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
* @return 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public equals2f (x: number, y: number, epsilon = EPSILON) {
|
||||
return (
|
||||
@@ -478,26 +478,26 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否与指定向量相等。
|
||||
* @zh 判断当前向量是否与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @returns 两向量的各分量都分别相等时返回 `true`;否则返回 `false`。
|
||||
* @return 两向量的各分量都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public strictEquals (other: Vec2) {
|
||||
return other && this.x === other.x && this.y === other.y;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否与指定分量的向量相等。
|
||||
* @zh 判断当前向量是否与指定分量的向量相等。
|
||||
* @param x 指定向量的 x 分量。
|
||||
* @param y 指定向量的 y 分量。
|
||||
* @returns 两向量的各分量都分别相等时返回 `true`;否则返回 `false`。
|
||||
* @return 两向量的各分量都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
public strictEquals2f (x: number, y: number) {
|
||||
return this.x === x && this.y === y;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前向量的字符串表示。
|
||||
* @zh 返回当前向量的字符串表示。
|
||||
* @returns 当前向量的字符串表示。
|
||||
*/
|
||||
public toString () {
|
||||
@@ -505,7 +505,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据指定的插值比率,从当前向量到目标向量之间做插值。
|
||||
* @zh 根据指定的插值比率,从当前向量到目标向量之间做插值。
|
||||
* @param to 目标向量。
|
||||
* @param ratio 插值比率,范围为 [0,1]。
|
||||
*/
|
||||
@@ -518,10 +518,10 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前向量的值,使其各个分量都处于指定的范围内。
|
||||
* @zh 设置当前向量的值,使其各个分量都处于指定的范围内。
|
||||
* @param minInclusive 每个分量都代表了对应分量允许的最小值。
|
||||
* @param maxInclusive 每个分量都代表了对应分量允许的最大值。
|
||||
* @returns `this`
|
||||
* @return `this`
|
||||
*/
|
||||
public clampf (minInclusive: Vec2, maxInclusive: Vec2) {
|
||||
this.x = clamp(this.x, minInclusive.x, maxInclusive.x);
|
||||
@@ -530,7 +530,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量加法。将当前向量与指定向量的相加
|
||||
* @zh 向量加法。将当前向量与指定向量的相加
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public add (other: Vec2) {
|
||||
@@ -540,7 +540,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量加法。将当前向量与指定分量的向量相加
|
||||
* @zh 向量加法。将当前向量与指定分量的向量相加
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
*/
|
||||
@@ -551,7 +551,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量减法。将当前向量减去指定向量
|
||||
* @zh 向量减法。将当前向量减去指定向量
|
||||
* @param other 减数向量。
|
||||
*/
|
||||
public subtract (other: Vec2) {
|
||||
@@ -561,7 +561,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量减法。将当前向量减去指定分量的向量
|
||||
* @zh 向量减法。将当前向量减去指定分量的向量
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
*/
|
||||
@@ -572,7 +572,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量数乘。将当前向量数乘指定标量
|
||||
* @zh 向量数乘。将当前向量数乘指定标量
|
||||
* @param scalar 标量乘数。
|
||||
*/
|
||||
public multiplyScalar (scalar: number) {
|
||||
@@ -583,7 +583,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量乘法。将当前向量乘以与指定向量的结果赋值给当前向量。
|
||||
* @zh 向量乘法。将当前向量乘以与指定向量的结果赋值给当前向量。
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public multiply (other: Vec2) {
|
||||
@@ -594,7 +594,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量乘法。将当前向量与指定分量的向量相乘的结果赋值给当前向量。
|
||||
* @zh 向量乘法。将当前向量与指定分量的向量相乘的结果赋值给当前向量。
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
*/
|
||||
@@ -605,7 +605,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @zh 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @param other 指定的向量
|
||||
*/
|
||||
public divide (other: Vec2) {
|
||||
@@ -615,7 +615,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @zh 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
*/
|
||||
@@ -626,7 +626,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量的各个分量取反
|
||||
* @zh 将当前向量的各个分量取反
|
||||
*/
|
||||
public negative () {
|
||||
this.x = -this.x;
|
||||
@@ -635,18 +635,18 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量点乘。
|
||||
* @zh 向量点乘。
|
||||
* @param other 指定的向量。
|
||||
* @returns 当前向量与指定向量点乘的结果。
|
||||
* @return 当前向量与指定向量点乘的结果。
|
||||
*/
|
||||
public dot (other: Vec2) {
|
||||
return this.x * other.x + this.y * other.y;
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量叉乘。
|
||||
* @zh 向量叉乘。
|
||||
* @param other 指定的向量。
|
||||
* @returns `out`
|
||||
* @return `out`
|
||||
*/
|
||||
public cross (other: Vec2) {
|
||||
return this.x * other.y - this.y * other.x;
|
||||
@@ -654,7 +654,7 @@ export class Vec2 extends ValueType {
|
||||
|
||||
/**
|
||||
* 计算向量的长度(模)。
|
||||
* @returns 向量的长度(模)。
|
||||
* @return 向量的长度(模)。
|
||||
*/
|
||||
public length () {
|
||||
return Math.sqrt(this.x * this.x + this.y * this.y);
|
||||
@@ -662,14 +662,14 @@ export class Vec2 extends ValueType {
|
||||
|
||||
/**
|
||||
* 计算向量长度(模)的平方。
|
||||
* @returns 向量长度(模)的平方。
|
||||
* @return 向量长度(模)的平方。
|
||||
*/
|
||||
public lengthSqr () {
|
||||
return this.x * this.x + this.y * this.y;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量归一化。
|
||||
* @zh 将当前向量归一化。
|
||||
*/
|
||||
public normalize () {
|
||||
_x = this.x;
|
||||
@@ -684,9 +684,9 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前向量和指定向量之间的角度。
|
||||
* @zh 获取当前向量和指定向量之间的角度。
|
||||
* @param other 指定的向量。
|
||||
* @returns 当前向量和指定向量之间的角度(弧度制);若当前向量和指定向量中存在零向量,将返回 0。
|
||||
* @return 当前向量和指定向量之间的角度(弧度制);若当前向量和指定向量中存在零向量,将返回 0。
|
||||
*/
|
||||
public angle (other: Vec2) {
|
||||
const magSqr1 = this.lengthSqr();
|
||||
@@ -704,10 +704,10 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前向量和指定向量之间的有符号角度。
|
||||
* 有符号角度的取值范围为 (-180, 180],当前向量可以通过逆时针旋转有符号角度与指定向量同向。
|
||||
* @zh 获取当前向量和指定向量之间的有符号角度。<br/>
|
||||
* 有符号角度的取值范围为 (-180, 180],当前向量可以通过逆时针旋转有符号角度与指定向量同向。<br/>
|
||||
* @param other 指定的向量。
|
||||
* @returns 当前向量和指定向量之间的有符号角度(弧度制);若当前向量和指定向量中存在零向量,将返回 0。
|
||||
* @return 当前向量和指定向量之间的有符号角度(弧度制);若当前向量和指定向量中存在零向量,将返回 0。
|
||||
*/
|
||||
public signAngle (other: Vec2) {
|
||||
const angle = this.angle(other);
|
||||
@@ -715,7 +715,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量的旋转
|
||||
* @zh 将当前向量的旋转
|
||||
* @param radians 旋转角度(弧度制)。
|
||||
*/
|
||||
public rotate (radians: number) {
|
||||
@@ -730,7 +730,7 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算当前向量在指定向量上的投影向量。
|
||||
* @zh 计算当前向量在指定向量上的投影向量。
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public project (other: Vec2) {
|
||||
@@ -741,8 +741,8 @@ export class Vec2 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量视为 z 分量为 0、w 分量为 1 的四维向量,
|
||||
* 应用四维矩阵变换到当前矩阵
|
||||
* @zh 将当前向量视为 z 分量为 0、w 分量为 1 的四维向量,<br/>
|
||||
* 应用四维矩阵变换到当前矩阵<br/>
|
||||
* @param matrix 变换矩阵。
|
||||
*/
|
||||
public transformMat4 (matrix: Mat4) {
|
||||
|
||||
+26
-27
@@ -661,21 +661,21 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 克隆当前向量。
|
||||
* @zh 克隆当前向量。
|
||||
*/
|
||||
public clone () {
|
||||
return new Vec3(this.x, this.y, this.z);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前向量使其与指定向量相等。
|
||||
* @zh 设置当前向量使其与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @returns `this`
|
||||
*/
|
||||
public set (other: Vec3);
|
||||
|
||||
/**
|
||||
* 设置当前向量的具体分量值。
|
||||
* @zh 设置当前向量的具体分量值。
|
||||
* @param x 要设置的 x 分量的值
|
||||
* @param y 要设置的 y 分量的值
|
||||
* @param z 要设置的 z 分量的值
|
||||
@@ -697,7 +697,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
@@ -714,7 +714,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定分量的向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定分量的向量相等。
|
||||
* @param x 相比较的向量的 x 分量。
|
||||
* @param y 相比较的向量的 y 分量。
|
||||
* @param z 相比较的向量的 z 分量。
|
||||
@@ -733,7 +733,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否与指定向量相等。
|
||||
* @zh 判断当前向量是否与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @returns 两向量的各分量都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
@@ -742,7 +742,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否与指定分量的向量相等。
|
||||
* @zh 判断当前向量是否与指定分量的向量相等。
|
||||
* @param x 指定向量的 x 分量。
|
||||
* @param y 指定向量的 y 分量。
|
||||
* @param z 指定向量的 z 分量。
|
||||
@@ -753,7 +753,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前向量的字符串表示。
|
||||
* @zh 返回当前向量的字符串表示。
|
||||
* @returns 当前向量的字符串表示。
|
||||
*/
|
||||
public toString () {
|
||||
@@ -761,7 +761,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据指定的插值比率,从当前向量到目标向量之间做插值。
|
||||
* @zh 根据指定的插值比率,从当前向量到目标向量之间做插值。
|
||||
* @param to 目标向量。
|
||||
* @param ratio 插值比率,范围为 [0,1]。
|
||||
*/
|
||||
@@ -773,7 +773,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量加法。将当前向量与指定向量的相加
|
||||
* @zh 向量加法。将当前向量与指定向量的相加
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public add (other: Vec3) {
|
||||
@@ -784,7 +784,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量加法。将当前向量与指定分量的向量相加
|
||||
* @zh 向量加法。将当前向量与指定分量的向量相加
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -797,7 +797,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量减法。将当前向量减去指定向量的结果。
|
||||
* @zh 向量减法。将当前向量减去指定向量的结果。
|
||||
* @param other 减数向量。
|
||||
*/
|
||||
public subtract (other: Vec3) {
|
||||
@@ -808,7 +808,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量减法。将当前向量减去指定分量的向量
|
||||
* @zh 向量减法。将当前向量减去指定分量的向量
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -821,7 +821,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量数乘。将当前向量数乘指定标量
|
||||
* @zh 向量数乘。将当前向量数乘指定标量
|
||||
* @param scalar 标量乘数。
|
||||
*/
|
||||
public multiplyScalar (scalar: number) {
|
||||
@@ -833,7 +833,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量乘法。将当前向量乘以与指定向量的结果赋值给当前向量。
|
||||
* @zh 向量乘法。将当前向量乘以与指定向量的结果赋值给当前向量。
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public multiply (other: Vec3) {
|
||||
@@ -845,7 +845,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量乘法。将当前向量与指定分量的向量相乘的结果赋值给当前向量。
|
||||
* @zh 向量乘法。将当前向量与指定分量的向量相乘的结果赋值给当前向量。
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -858,7 +858,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @zh 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @param other 指定的向量
|
||||
*/
|
||||
public divide (other: Vec3) {
|
||||
@@ -869,7 +869,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @zh 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -882,7 +882,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量的各个分量取反
|
||||
* @zh 将当前向量的各个分量取反
|
||||
*/
|
||||
public negative () {
|
||||
this.x = -this.x;
|
||||
@@ -892,7 +892,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前向量的值,使其各个分量都处于指定的范围内。
|
||||
* @zh 设置当前向量的值,使其各个分量都处于指定的范围内。
|
||||
* @param minInclusive 每个分量都代表了对应分量允许的最小值。
|
||||
* @param maxInclusive 每个分量都代表了对应分量允许的最大值。
|
||||
* @returns `this`
|
||||
@@ -905,7 +905,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量点乘。
|
||||
* @zh 向量点乘。
|
||||
* @param other 指定的向量。
|
||||
* @returns 当前向量与指定向量点乘的结果。
|
||||
*/
|
||||
@@ -914,7 +914,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量叉乘。将当前向量左叉乘指定向量
|
||||
* @zh 向量叉乘。将当前向量左叉乘指定向量
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public cross (other: Vec3) {
|
||||
@@ -928,7 +928,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算向量的长度(模)。
|
||||
* @zh 计算向量的长度(模)。
|
||||
* @returns 向量的长度(模)。
|
||||
*/
|
||||
public length () {
|
||||
@@ -936,7 +936,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算向量长度(模)的平方。
|
||||
* @zh 计算向量长度(模)的平方。
|
||||
* @returns 向量长度(模)的平方。
|
||||
*/
|
||||
public lengthSqr () {
|
||||
@@ -944,7 +944,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量归一化
|
||||
* @zh 将当前向量归一化
|
||||
*/
|
||||
public normalize () {
|
||||
_x = this.x;
|
||||
@@ -962,8 +962,7 @@ export class Vec3 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量视为 w 分量为 1 的四维向量,
|
||||
* 应用四维矩阵变换到当前矩阵
|
||||
* @zh 将当前向量视为 w 分量为 1 的四维向量,应用四维矩阵变换到当前矩阵
|
||||
* @param matrix 变换矩阵。
|
||||
*/
|
||||
public transformMat4 (matrix: Mat4) {
|
||||
|
||||
+26
-26
@@ -492,21 +492,21 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 克隆当前向量。
|
||||
* @zh 克隆当前向量。
|
||||
*/
|
||||
public clone () {
|
||||
return new Vec4(this.x, this.y, this.z, this.w);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前向量使其与指定向量相等。
|
||||
* @zh 设置当前向量使其与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @returns `this`
|
||||
*/
|
||||
public set (other: Vec4);
|
||||
|
||||
/**
|
||||
* 设置当前向量的具体分量值。
|
||||
* @zh 设置当前向量的具体分量值。
|
||||
* @param x 要设置的 x 分量的值
|
||||
* @param y 要设置的 y 分量的值
|
||||
* @param z 要设置的 z 分量的值
|
||||
@@ -531,7 +531,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @param epsilon 允许的误差,应为非负数。
|
||||
* @returns 当两向量的各分量都在指定的误差范围内分别相等时,返回 `true`;否则返回 `false`。
|
||||
@@ -544,7 +544,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否在误差范围内与指定分量的向量相等。
|
||||
* @zh 判断当前向量是否在误差范围内与指定分量的向量相等。
|
||||
* @param x 相比较的向量的 x 分量。
|
||||
* @param y 相比较的向量的 y 分量。
|
||||
* @param z 相比较的向量的 z 分量。
|
||||
@@ -560,7 +560,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否与指定向量相等。
|
||||
* @zh 判断当前向量是否与指定向量相等。
|
||||
* @param other 相比较的向量。
|
||||
* @returns 两向量的各分量都分别相等时返回 `true`;否则返回 `false`。
|
||||
*/
|
||||
@@ -569,7 +569,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前向量是否与指定分量的向量相等。
|
||||
* @zh 判断当前向量是否与指定分量的向量相等。
|
||||
* @param x 指定向量的 x 分量。
|
||||
* @param y 指定向量的 y 分量。
|
||||
* @param z 指定向量的 z 分量。
|
||||
@@ -581,7 +581,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据指定的插值比率,从当前向量到目标向量之间做插值。
|
||||
* @zh 根据指定的插值比率,从当前向量到目标向量之间做插值。
|
||||
* @param to 目标向量。
|
||||
* @param ratio 插值比率,范围为 [0,1]。
|
||||
*/
|
||||
@@ -598,7 +598,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前向量的字符串表示。
|
||||
* @zh 返回当前向量的字符串表示。
|
||||
* @returns 当前向量的字符串表示。
|
||||
*/
|
||||
public toString () {
|
||||
@@ -606,7 +606,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置当前向量的值,使其各个分量都处于指定的范围内。
|
||||
* @zh 设置当前向量的值,使其各个分量都处于指定的范围内。
|
||||
* @param minInclusive 每个分量都代表了对应分量允许的最小值。
|
||||
* @param maxInclusive 每个分量都代表了对应分量允许的最大值。
|
||||
* @returns `this`
|
||||
@@ -620,7 +620,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量加法。将当前向量与指定向量的相加
|
||||
* @zh 向量加法。将当前向量与指定向量的相加
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public add (other: Vec4) {
|
||||
@@ -632,7 +632,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量加法。将当前向量与指定分量的向量相加
|
||||
* @zh 向量加法。将当前向量与指定分量的向量相加
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -647,7 +647,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量减法。将当前向量减去指定向量
|
||||
* @zh 向量减法。将当前向量减去指定向量
|
||||
* @param other 减数向量。
|
||||
*/
|
||||
public subtract (other: Vec4) {
|
||||
@@ -659,7 +659,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量减法。将当前向量减去指定分量的向量
|
||||
* @zh 向量减法。将当前向量减去指定分量的向量
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -674,7 +674,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量数乘。将当前向量数乘指定标量
|
||||
* @zh 向量数乘。将当前向量数乘指定标量
|
||||
* @param scalar 标量乘数。
|
||||
*/
|
||||
public multiplyScalar (scalar: number) {
|
||||
@@ -687,7 +687,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量乘法。将当前向量乘以指定向量
|
||||
* @zh 向量乘法。将当前向量乘以指定向量
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public multiply (other: Vec4) {
|
||||
@@ -700,7 +700,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量乘法。将当前向量与指定分量的向量相乘的结果赋值给当前向量。
|
||||
* @zh 向量乘法。将当前向量与指定分量的向量相乘的结果赋值给当前向量。
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -715,7 +715,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @zh 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @param other 指定的向量
|
||||
*/
|
||||
public divide (other: Vec4) {
|
||||
@@ -727,7 +727,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @zh 向量逐元素相除。将当前向量与指定分量的向量相除的结果赋值给当前向量。
|
||||
* @param x 指定的向量的 x 分量。
|
||||
* @param y 指定的向量的 y 分量。
|
||||
* @param z 指定的向量的 z 分量。
|
||||
@@ -742,7 +742,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量的各个分量取反
|
||||
* @zh 将当前向量的各个分量取反
|
||||
*/
|
||||
public negative () {
|
||||
this.x = -this.x;
|
||||
@@ -753,7 +753,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量点乘。
|
||||
* @zh 向量点乘。
|
||||
* @param other 指定的向量。
|
||||
* @returns 当前向量与指定向量点乘的结果。
|
||||
*/
|
||||
@@ -762,7 +762,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 向量叉乘。视当前向量和指定向量为三维向量(舍弃 w 分量),将当前向量左叉乘指定向量
|
||||
* @zh 向量叉乘。视当前向量和指定向量为三维向量(舍弃 w 分量),将当前向量左叉乘指定向量
|
||||
* @param other 指定的向量。
|
||||
*/
|
||||
public cross (vector: Vec4) {
|
||||
@@ -776,7 +776,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算向量的长度(模)。
|
||||
* @zh 计算向量的长度(模)。
|
||||
* @returns 向量的长度(模)。
|
||||
*/
|
||||
public length () {
|
||||
@@ -788,7 +788,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算向量长度(模)的平方。
|
||||
* @zh 计算向量长度(模)的平方。
|
||||
* @returns 向量长度(模)的平方。
|
||||
*/
|
||||
public lengthSqr () {
|
||||
@@ -800,7 +800,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将当前向量归一化
|
||||
* @zh 将当前向量归一化
|
||||
*/
|
||||
public normalize () {
|
||||
_x = this.x;
|
||||
@@ -819,7 +819,7 @@ export class Vec4 extends ValueType {
|
||||
}
|
||||
|
||||
/**
|
||||
* 应用四维矩阵变换到当前矩阵
|
||||
* @zh 应用四维矩阵变换到当前矩阵
|
||||
* @param matrix 变换矩阵。
|
||||
*/
|
||||
public transformMat4 (matrix: Mat4) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import { IRenderObject, IRenderPass, IRenderQueueDesc } from './define';
|
||||
* @en
|
||||
* Comparison sorting function. Opaque objects are sorted by depth priority -> depth front to back -> shader id.
|
||||
* @zh
|
||||
* 比较排序函数。不透对象按优先级 -> 深度由前向后 -> ShaderId 顺序排序。
|
||||
* 比较排序函数。不透明对象按优先级 -> 深度由前向后 -> ShaderId 顺序排序。
|
||||
*/
|
||||
export function opaqueCompareFn (a: IRenderPass, b: IRenderPass) {
|
||||
if (a.hash === b.hash) {
|
||||
@@ -28,7 +28,7 @@ export function opaqueCompareFn (a: IRenderPass, b: IRenderPass) {
|
||||
* @en
|
||||
* Comparison sorting function. Transparent objects are sorted by pass priority -> depth back to front -> shader id.
|
||||
* @zh
|
||||
* 比较排序函数。半透对象按优先级 -> 深度由后向前 -> ShaderId 顺序排序。
|
||||
* 比较排序函数。半透明对象按优先级 -> 深度由后向前 -> ShaderId 顺序排序。
|
||||
*/
|
||||
export function transparentCompareFn (a: IRenderPass, b: IRenderPass) {
|
||||
if (a.hash === b.hash) {
|
||||
|
||||
@@ -162,8 +162,7 @@ export class RenderView {
|
||||
private _flows: RenderFlow[] = [];
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 构造函数。
|
||||
* 构造函数。<br/>
|
||||
* @param root Root类实例。
|
||||
* @param camera 相机。
|
||||
*/
|
||||
|
||||
@@ -44,17 +44,14 @@ export interface ILinstenerMask {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* <p>
|
||||
* <p><br/>
|
||||
* The base class of event listener. <br/>
|
||||
* If you need custom listener which with different callback, you need to inherit this class. <br/>
|
||||
* For instance, you could refer to EventListenerAcceleration, EventListenerKeyboard, <br/>
|
||||
* EventListenerTouchOneByOne, EventListenerCustom.
|
||||
* </p>
|
||||
*
|
||||
* @zh
|
||||
* EventListenerTouchOneByOne, EventListenerCustom.<br/>
|
||||
* </p><br/>
|
||||
* 封装用户的事件处理逻辑。<br/>
|
||||
* 注意:这是一个抽象类,开发者不应该直接实例化这个类,请参考 [[cc.EventListener.create]] 。
|
||||
* 注意:这是一个抽象类,开发者不应该直接实例化这个类,请参考 [[create]] 。
|
||||
*/
|
||||
export class EventListener {
|
||||
|
||||
@@ -62,43 +59,43 @@ export class EventListener {
|
||||
return this._onEvent;
|
||||
}
|
||||
/**
|
||||
* @en The type code of unknown event listener.
|
||||
* @en The type code of unknown event listener.<br/>
|
||||
* @zh 未知的事件监听器类型
|
||||
*/
|
||||
public static UNKNOWN = 0;
|
||||
|
||||
/**
|
||||
* @en The type code of one by one touch event listener.
|
||||
* @en The type code of one by one touch event listener.<br/>
|
||||
* @zh 触摸事件监听器类型,触点会一个一个得分开被派发
|
||||
*/
|
||||
public static TOUCH_ONE_BY_ONE = 1;
|
||||
|
||||
/**
|
||||
* @en The type code of all at once touch event listener.
|
||||
* @en The type code of all at once touch event listener.<br/>
|
||||
* @zh 触摸事件监听器类型,触点会被一次性全部派发
|
||||
*/
|
||||
public static TOUCH_ALL_AT_ONCE = 2;
|
||||
|
||||
/**
|
||||
* @en The type code of keyboard event listener.
|
||||
* @en The type code of keyboard event listener.<br/>
|
||||
* @zh 键盘事件监听器类型
|
||||
*/
|
||||
public static KEYBOARD = 3;
|
||||
|
||||
/**
|
||||
* @en The type code of mouse event listener.
|
||||
* @en The type code of mouse event listener.<br/>
|
||||
* @zh 鼠标事件监听器类型
|
||||
*/
|
||||
public static MOUSE = 4;
|
||||
|
||||
/**
|
||||
* @en The type code of acceleration event listener.
|
||||
* @en The type code of acceleration event listener.<br/>
|
||||
* @zh 加速器事件监听器类型
|
||||
*/
|
||||
public static ACCELERATION = 6;
|
||||
|
||||
/**
|
||||
* @en The type code of custom event listener.
|
||||
* @en The type code of custom event listener.<br/>
|
||||
* @zh 自定义事件监听器类型
|
||||
*/
|
||||
public static CUSTOM = 8;
|
||||
@@ -112,11 +109,10 @@ export class EventListener {
|
||||
};
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Create a EventListener object with configuration including the event type, handlers and other parameters.
|
||||
* In handlers, this refer to the event listener object itself.
|
||||
* You can also pass custom parameters in the configuration object,
|
||||
* all custom parameters will be polyfilled into the event listener object and can be accessed in handlers.
|
||||
* @en Create a EventListener object with configuration including the event type, handlers and other parameters.<br/>
|
||||
* In handlers, this refer to the event listener object itself.<br/>
|
||||
* You can also pass custom parameters in the configuration object,<br/>
|
||||
* all custom parameters will be polyfilled into the event listener object and can be accessed in handlers.<br/>
|
||||
* @zh 通过指定不同的 Event 对象来设置想要创建的事件监听器。
|
||||
* @param {Object} argObj a json object
|
||||
*/
|
||||
@@ -190,23 +186,23 @@ export class EventListener {
|
||||
|
||||
/**
|
||||
* @en
|
||||
* <p>
|
||||
* Sets paused state for the listener
|
||||
* The paused state is only used for scene graph priority listeners.
|
||||
* `EventDispatcher::resumeAllEventListenersForTarget(node)` will set the paused state to `true`,
|
||||
* while `EventDispatcher::pauseAllEventListenersForTarget(node)` will set it to `false`.
|
||||
* @note 1) Fixed priority listeners will never get paused. If a fixed priority doesn't want to receive events,
|
||||
* call `setEnabled(false)` instead.
|
||||
* 2) In `Node`'s onEnter and onExit, the `paused state` of the listeners
|
||||
* which associated with that node will be automatically updated.
|
||||
* </p>
|
||||
* <p><br/>
|
||||
* Sets paused state for the listener<br/>
|
||||
* The paused state is only used for scene graph priority listeners.<br/>
|
||||
* `EventDispatcher::resumeAllEventListenersForTarget(node)` will set the paused state to `true`,<br/>
|
||||
* while `EventDispatcher::pauseAllEventListenersForTarget(node)` will set it to `false`.<br/>
|
||||
* @note 1) Fixed priority listeners will never get paused. If a fixed priority doesn't want to receive events,<br/>
|
||||
* call `setEnabled(false)` instead.<br/>
|
||||
* 2) In `Node`'s onEnter and onExit, the `paused state` of the listeners<br/>
|
||||
* which associated with that node will be automatically updated.<br/>
|
||||
* </p><br/>
|
||||
* @zh
|
||||
* *为侦听器设置暂停状态
|
||||
* 暂停状态仅用于场景图优先级侦听器。
|
||||
* `EventDispatcher :: resumeAllEventListenersForTarget(node)`将暂停状态设置为`true`,
|
||||
* 而`EventDispatcher :: pauseAllEventListenersForTarget(node)`将它设置为`false`。
|
||||
* 注意:
|
||||
* - 固定优先级侦听器永远不会被暂停。 如果固定优先级不想接收事件,改为调用`setEnabled(false)`。
|
||||
* *为侦听器设置暂停状态<br/>
|
||||
* 暂停状态仅用于场景图优先级侦听器。<br/>
|
||||
* `EventDispatcher :: resumeAllEventListenersForTarget(node)`将暂停状态设置为`true`,<br/>
|
||||
* 而`EventDispatcher :: pauseAllEventListenersForTarget(node)`将它设置为`false`。<br/>
|
||||
* 注意:<br/>
|
||||
* - 固定优先级侦听器永远不会被暂停。 如果固定优先级不想接收事件,改为调用`setEnabled(false)`。<br/>
|
||||
* - 在“Node”的onEnter和onExit中,监听器的“暂停状态”与该节点关联的*将自动更新。
|
||||
*/
|
||||
public _setPaused (paused: boolean) {
|
||||
@@ -214,30 +210,24 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Checks whether the listener is paused.
|
||||
* @zh
|
||||
* 检查侦听器是否已暂停。
|
||||
* @en Checks whether the listener is paused.<br/>
|
||||
* @zh 检查侦听器是否已暂停。
|
||||
*/
|
||||
public _isPaused () {
|
||||
return this._paused;
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Marks the listener was registered by EventDispatcher.
|
||||
* @zh
|
||||
* 标记监听器已由 EventDispatcher 注册。
|
||||
* @en Marks the listener was registered by EventDispatcher.<br/>
|
||||
* @zh 标记监听器已由 EventDispatcher 注册。
|
||||
*/
|
||||
public _setRegistered (registered: boolean) {
|
||||
this._registered = registered;
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Checks whether the listener was registered by EventDispatcher
|
||||
* @zh
|
||||
* 检查监听器是否已由 EventDispatcher 注册。
|
||||
* @en Checks whether the listener was registered by EventDispatcher<br/>
|
||||
* @zh 检查监听器是否已由 EventDispatcher 注册。
|
||||
* @private
|
||||
*/
|
||||
public _isRegistered () {
|
||||
@@ -245,13 +235,11 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Gets the type of this listener
|
||||
* note: It's different from `EventType`, e.g.
|
||||
* TouchEvent has two kinds of event listeners - EventListenerOneByOne, EventListenerAllAtOnce
|
||||
* @zh
|
||||
* 获取此侦听器的类型
|
||||
* 注意:它与`EventType`不同,例如
|
||||
* @en Gets the type of this listener<br/>
|
||||
* note: It's different from `EventType`, e.g.<br/>
|
||||
* TouchEvent has two kinds of event listeners - EventListenerOneByOne, EventListenerAllAtOnce<br/>
|
||||
* @zh 获取此侦听器的类型<br/>
|
||||
* 注意:它与`EventType`不同,例如<br/>
|
||||
* TouchEvent 有两种事件监听器 - EventListenerOneByOne,EventListenerAllAtOnce
|
||||
*/
|
||||
public _getType () {
|
||||
@@ -259,11 +247,9 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Gets the listener ID of this listener
|
||||
* When event is being dispatched, listener ID is used as key for searching listeners according to event type.
|
||||
* @zh
|
||||
* 获取此侦听器的侦听器 ID。
|
||||
* @en Gets the listener ID of this listener<br/>
|
||||
* When event is being dispatched, listener ID is used as key for searching listeners according to event type.<br/>
|
||||
* @zh 获取此侦听器的侦听器 ID。<br/>
|
||||
* 调度事件时,侦听器 ID 用作根据事件类型搜索侦听器的键。
|
||||
*/
|
||||
public _getListenerID () {
|
||||
@@ -271,13 +257,11 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Sets the fixed priority for this listener
|
||||
* note: This method is only used for `fixed priority listeners`,
|
||||
* it needs to access a non-zero value. 0 is reserved for scene graph priority listeners
|
||||
* @zh
|
||||
* 设置此侦听器的固定优先级。
|
||||
* 注意:此方法仅用于“固定优先级侦听器”,
|
||||
* @en Sets the fixed priority for this listener<br/>
|
||||
* note: This method is only used for `fixed priority listeners`,<br/>
|
||||
* it needs to access a non-zero value. 0 is reserved for scene graph priority listeners<br/>
|
||||
* @zh 设置此侦听器的固定优先级。<br/>
|
||||
* 注意:此方法仅用于“固定优先级侦听器”,<br/>
|
||||
* 它需要访问非零值。 0保留给场景图优先级侦听器。
|
||||
*/
|
||||
public _setFixedPriority (fixedPriority: number) {
|
||||
@@ -285,10 +269,8 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Gets the fixed priority of this listener
|
||||
* @zh
|
||||
* 获取此侦听器的固定优先级。
|
||||
* @en Gets the fixed priority of this listener<br/>
|
||||
* @zh 获取此侦听器的固定优先级。
|
||||
* @return 如果它是场景图优先级侦听器则返回 0 ,则对于固定优先级侦听器则不为零
|
||||
*/
|
||||
public _getFixedPriority () {
|
||||
@@ -296,10 +278,8 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Sets scene graph priority for this listener
|
||||
* @zh
|
||||
* 设置此侦听器的场景图优先级。
|
||||
* @en Sets scene graph priority for this listener<br/>
|
||||
* @zh 设置此侦听器的场景图优先级。
|
||||
* @param {Node} node
|
||||
*/
|
||||
public _setSceneGraphPriority (node: any) {
|
||||
@@ -308,10 +288,8 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Gets scene graph priority of this listener
|
||||
* @zh
|
||||
* 获取此侦听器的场景图优先级。
|
||||
* @en Gets scene graph priority of this listener<br/>
|
||||
* @zh 获取此侦听器的场景图优先级。
|
||||
* @return 如果它是固定优先级侦听器,则为场景图优先级侦听器非 null 。
|
||||
*/
|
||||
public _getSceneGraphPriority () {
|
||||
@@ -319,7 +297,7 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Checks whether the listener is available.
|
||||
* @en Checks whether the listener is available.<br/>
|
||||
* @zh 检测监听器是否有效
|
||||
*/
|
||||
public checkAvailable () {
|
||||
@@ -327,7 +305,7 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Clones the listener, its subclasses have to override this method.
|
||||
* @en Clones the listener, its subclasses have to override this method.<br/>
|
||||
* @zh 克隆监听器,它的子类必须重写此方法。
|
||||
*/
|
||||
public clone (): EventListener | null {
|
||||
@@ -335,23 +313,25 @@ export class EventListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Enables or disables the listener
|
||||
* note: Only listeners with `enabled` state will be able to receive events.
|
||||
* When an listener was initialized, it's enabled by default.
|
||||
* An event listener can receive events when it is enabled and is not paused.
|
||||
* paused state is always false when it is a fixed priority listener.
|
||||
* @zh 启用或禁用监听器。
|
||||
* 注意:只有处于“启用”状态的侦听器才能接收事件。
|
||||
* 初始化侦听器时,默认情况下启用它。
|
||||
* 事件侦听器可以在启用且未暂停时接收事件。
|
||||
* 当固定优先级侦听器时,暂停状态始终为false。
|
||||
* @en
|
||||
* Enables or disables the listener<br/>
|
||||
* note: Only listeners with `enabled` state will be able to receive events.<br/>
|
||||
* When an listener was initialized, it's enabled by default.<br/>
|
||||
* An event listener can receive events when it is enabled and is not paused.<br/>
|
||||
* paused state is always false when it is a fixed priority listener.<br/>
|
||||
* @zh
|
||||
* 启用或禁用监听器。<br/>
|
||||
* 注意:只有处于“启用”状态的侦听器才能接收事件。<br/>
|
||||
* 初始化侦听器时,默认情况下启用它。<br/>
|
||||
* 事件侦听器可以在启用且未暂停时接收事件。<br/>
|
||||
* 当固定优先级侦听器时,暂停状态始终为false。<br/>
|
||||
*/
|
||||
public setEnabled (enabled: boolean) {
|
||||
this._isEnabled = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* @en Checks whether the listener is enabled
|
||||
* @en Checks whether the listener is enabled<br/>
|
||||
* @zh 检查监听器是否可用。
|
||||
*/
|
||||
public isEnabled () {
|
||||
|
||||
@@ -36,31 +36,32 @@ import eventManager from './event-manager';
|
||||
import inputManager from './input-manager';
|
||||
import { Touch } from './touch';
|
||||
|
||||
/**
|
||||
* @en
|
||||
* The System event, it currently supports keyboard events and accelerometer events.<br>
|
||||
* You can get the SystemEvent instance with cc.systemEvent.<br>
|
||||
* example:
|
||||
* ```
|
||||
* cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* ```
|
||||
* @zh
|
||||
* 系统事件,它目前支持按键事件和重力感应事件。<br>
|
||||
* 你可以通过 cc.systemEvent 获取到 SystemEvent 的实例。<br>
|
||||
* @example
|
||||
* ```
|
||||
* cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* ```
|
||||
* @class SystemEvent
|
||||
* @extends EventTarget
|
||||
*/
|
||||
|
||||
let keyboardListener: EventListener | null = null;
|
||||
let accelerationListener: EventListener | null = null;
|
||||
let touchListener: EventListener | null = null;
|
||||
let mouseListener: EventListener | null = null;
|
||||
|
||||
/**
|
||||
* @en
|
||||
* The System event, it currently supports keyboard events and accelerometer events.<br/>
|
||||
* You can get the SystemEvent instance with cc.systemEvent.<br/>
|
||||
* @example
|
||||
* ```
|
||||
* cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* ```
|
||||
* @zh
|
||||
* 系统事件,它目前支持按键事件和重力感应事件。<br/>
|
||||
* 你可以通过 cc.systemEvent 获取到 SystemEvent 的实例。<br/>
|
||||
* @example
|
||||
* ```
|
||||
* cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
|
||||
* ```
|
||||
* @class SystemEvent
|
||||
* @extends EventTarget
|
||||
*/
|
||||
|
||||
export class SystemEvent extends EventTarget {
|
||||
public static EventType = SystemEventType;
|
||||
constructor () {
|
||||
|
||||
@@ -26,6 +26,7 @@ function applyDefaultCircleOptions (options?: RecursivePartial<ICircleOptions>):
|
||||
}
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Generate a circle with radius 1, centered at origin.
|
||||
* @zh
|
||||
* 生成一个圆,其半径是单位1,中心点在原点。
|
||||
|
||||
@@ -12,36 +12,33 @@ export class Skybox extends Model {
|
||||
|
||||
set useIBL (val) {
|
||||
this._useIBL = val;
|
||||
const pipeline = this._scene.root.pipeline;
|
||||
if (!!pipeline.macros.CC_USE_IBL === val) { return; }
|
||||
pipeline.macros.CC_USE_IBL = val;
|
||||
this._scene.onPipelineChange();
|
||||
this._updateGlobalBinding();
|
||||
this._updatePipeline();
|
||||
}
|
||||
get useIBL () {
|
||||
return this._useIBL;
|
||||
}
|
||||
|
||||
set envmap (val: TextureCube | null) {
|
||||
const newEnvmap = val || this._default;
|
||||
this._envmap = newEnvmap;
|
||||
this._updateGlobalBinding();
|
||||
}
|
||||
get envmap () {
|
||||
return this._envmap;
|
||||
}
|
||||
|
||||
set isRGBE (val: boolean) {
|
||||
if (val === this._isRGBE) { return; }
|
||||
set isRGBE (val) {
|
||||
this._isRGBE = val;
|
||||
this._material.recompileShaders({ USE_RGBE_CUBEMAP: this._isRGBE });
|
||||
this.setSubModelMaterial(0, this._material);
|
||||
this._updateGlobalBinding();
|
||||
this._updatePipeline();
|
||||
}
|
||||
get isRGBE () {
|
||||
return this._isRGBE;
|
||||
}
|
||||
|
||||
set envmap (val: TextureCube | null) {
|
||||
const newEnvmap = val || this._default;
|
||||
this._envmap = newEnvmap;
|
||||
this._scene.ambient.groundAlbedo[3] = this._envmap.mipmapLevel;
|
||||
this._updateGlobalBinding();
|
||||
}
|
||||
get envmap () {
|
||||
return this._envmap;
|
||||
}
|
||||
|
||||
protected _default = builtinResMgr.get<TextureCube>('default-cube-texture');
|
||||
protected _envmap = this._default;
|
||||
protected _isRGBE = false;
|
||||
@@ -53,10 +50,7 @@ export class Skybox extends Model {
|
||||
constructor (scene: RenderScene) {
|
||||
super(scene, null!);
|
||||
this._scene = scene;
|
||||
this._material.initialize({
|
||||
effectName: 'pipeline/skybox',
|
||||
defines: { USE_RGBE_CUBEMAP: this._isRGBE },
|
||||
});
|
||||
this._material.initialize({ effectName: 'pipeline/skybox', defines: { USE_RGBE_CUBEMAP: this._isRGBE } });
|
||||
this._globalBinding = this._scene.root.pipeline.globalBindings.get(UNIFORM_ENVIRONMENT.name)!;
|
||||
|
||||
const mesh = createMesh(box({ width: 2, height: 2, length: 2 }));
|
||||
@@ -64,6 +58,14 @@ export class Skybox extends Model {
|
||||
this.initSubModel(0, subMeshData, this._material);
|
||||
}
|
||||
|
||||
protected _updatePipeline () {
|
||||
const value = this._useIBL ? this._isRGBE ? 2 : 1 : 0;
|
||||
const pipeline = this._scene.root.pipeline;
|
||||
if (pipeline.macros.CC_USE_IBL === value) { return; }
|
||||
pipeline.macros.CC_USE_IBL = value;
|
||||
this._scene.onPipelineChange();
|
||||
}
|
||||
|
||||
protected _updateGlobalBinding () {
|
||||
const textureView = this._envmap.getGFXTextureView()!;
|
||||
const sampler = samplerLib.getSampler(this._device, this._envmap.getSamplerHash());
|
||||
|
||||
@@ -42,13 +42,13 @@ import { Camera } from '../../renderer/scene/camera';
|
||||
import { Model } from '../../renderer/scene/model';
|
||||
import { RenderScene } from '../../renderer/scene/render-scene';
|
||||
import { Root } from '../../root';
|
||||
import { Layers } from '../../scene-graph';
|
||||
import { INode } from '../../utils/interfaces';
|
||||
import { MeshBuffer } from './mesh-buffer';
|
||||
import { StencilManager } from './stencil-manager';
|
||||
import { UIBatchModel } from './ui-batch-model';
|
||||
import { UIMaterial } from './ui-material';
|
||||
import * as UIVertexFormat from './ui-vertex-format';
|
||||
import { Layers } from '../../scene-graph';
|
||||
|
||||
export class UIDrawBatch {
|
||||
public camera: Camera | null = null;
|
||||
@@ -509,7 +509,6 @@ export class UI {
|
||||
}
|
||||
|
||||
private _preprocess (c: INode) {
|
||||
// ts-ignore
|
||||
const render = c._uiComp;
|
||||
if (render && render.enabledInHierarchy) {
|
||||
render.updateAssembler(this);
|
||||
@@ -565,7 +564,7 @@ export class UI {
|
||||
}
|
||||
}
|
||||
|
||||
private _screenSort(a: CanvasComponent, b: CanvasComponent){
|
||||
private _screenSort (a: CanvasComponent, b: CanvasComponent){
|
||||
return a.priority - b.priority;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,15 +87,18 @@ function getConstructor (typeOrClassName: string | Function): Function | null {
|
||||
@ccclass('cc._BaseNode')
|
||||
export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
/**
|
||||
* Gets all components attached to this node.
|
||||
* @en Gets all components attached to this node.
|
||||
* @zh 获取附加到此节点的所有组件。
|
||||
*/
|
||||
get components (): ReadonlyArray<Component> {
|
||||
return this._components;
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, the node is an persist node which won't be destroyed during scene transition.
|
||||
* @en If true, the node is an persist node which won't be destroyed during scene transition.<br/>
|
||||
* If false, the node will be destroyed automatically when loading a new scene. Default is false.
|
||||
* @zh 如果为true,则该节点是一个常驻节点,不会在场景转换期间被销毁。<br/>
|
||||
* 如果为false,节点将在加载新场景时自动销毁。默认为false。
|
||||
* @property _persistNode
|
||||
* @type {Boolean}
|
||||
* @default false
|
||||
@@ -177,12 +180,12 @@ export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
* @en
|
||||
* The local active state of this node.<br/>
|
||||
* Note that a Node may be inactive because a parent is not active, even if this returns true.<br/>
|
||||
* Use {{#crossLink "Node/activeInHierarchy:property"}}{{/crossLink}}
|
||||
* Use [[activeInHierarchy]]
|
||||
* if you want to check if the Node is actually treated as active in the scene.
|
||||
* @zh
|
||||
* 当前节点的自身激活状态。<br/>
|
||||
* 值得注意的是,一个节点的父节点如果不被激活,那么即使它自身设为激活,它仍然无法激活。<br/>
|
||||
* 如果你想检查节点在场景中实际的激活状态可以使用 {{#crossLink "Node/activeInHierarchy:property"}}{{/crossLink}}。
|
||||
* 如果你想检查节点在场景中实际的激活状态可以使用 [[activeInHierarchy]]
|
||||
* @property active
|
||||
* @type {Boolean}
|
||||
* @default true
|
||||
@@ -216,6 +219,7 @@ export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
* @example
|
||||
* ```
|
||||
* cc.log("activeInHierarchy: " + node.activeInHierarchy);
|
||||
* ```
|
||||
*/
|
||||
@property
|
||||
get activeInHierarchy () {
|
||||
@@ -572,7 +576,9 @@ export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
* @zh
|
||||
* 插入子节点到指定位置
|
||||
* @param child - the child node to be inserted
|
||||
* 要插入的子节点
|
||||
* @param siblingIndex - the sibling index to place the child in
|
||||
* 用于放置子节点的同级索引
|
||||
* @example
|
||||
* ```
|
||||
* node.insertChild(child, 2);
|
||||
@@ -760,6 +766,7 @@ export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
* @zh
|
||||
* 移除节点中指定的子节点。
|
||||
* @param child - The child node which will be removed.
|
||||
* 将被移除的子节点
|
||||
* @example
|
||||
* ```
|
||||
* node.removeChild(newNode);
|
||||
@@ -798,6 +805,7 @@ export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
* @en Is this node a child of the given node?
|
||||
* @zh 是否是指定节点的子节点?
|
||||
* @return True if this node is a child, deep child or identical to the given node.
|
||||
* @return 如果此节点是子节点、深度子节点或与给定节点相同,则为True。
|
||||
* @example
|
||||
* ```
|
||||
* node.isChildOf(newNode);
|
||||
@@ -1045,6 +1053,7 @@ export class BaseNode extends CCObject implements IBaseNode, ISchedulable {
|
||||
* 删除节点上的指定组件,传入参数可以是一个组件构造函数或组件名,也可以是已经获得的组件引用。
|
||||
* 如果你已经获得组件引用,你也可以直接调用 component.destroy()
|
||||
* @deprecated please destroy the component to remove it.
|
||||
* 请销毁组件以移除它。
|
||||
* @example
|
||||
* ```
|
||||
* node.removeComponent(cc.SpriteComponent);
|
||||
|
||||
@@ -82,8 +82,7 @@ export class Layers {
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 添加一个新层,用户可编辑 0 - 19 位为用户自定义层
|
||||
* @zh 添加一个新层,用户可编辑 0 - 19 位为用户自定义层
|
||||
* @param name 层名字
|
||||
* @param bitNum 层序号
|
||||
*/
|
||||
|
||||
@@ -137,7 +137,8 @@ function _onLoadInEditor (comp) {
|
||||
}
|
||||
|
||||
/**
|
||||
* The class used to perform activating and deactivating operations of node and component.
|
||||
* @en The class used to perform activating and deactivating operations of node and component.
|
||||
* @zh 用于执行节点和组件的激活和停用操作的类。
|
||||
*/
|
||||
export default class NodeActivator {
|
||||
public resetComp: any;
|
||||
|
||||
@@ -386,7 +386,7 @@ export class NodeEventProcessor {
|
||||
* 鼠标或触摸事件会被系统调用 dispatchEvent 方法触发,触发的过程包含三个阶段:<br/>
|
||||
* 1. 捕获阶段:派发事件给捕获目标(通过 `getCapturingTargets` 获取),比如,节点树中注册了捕获阶段的父节点,从根节点开始派发直到目标节点。<br/>
|
||||
* 2. 目标阶段:派发给目标节点的监听器。<br/>
|
||||
* 3. 冒泡阶段:派发事件给冒泡目标(通过 `getBubblingTargets` 获取),比如,节点树中注册了冒泡阶段的父节点,从目标节点开始派发知道根节点。<br/>
|
||||
* 3. 冒泡阶段:派发事件给冒泡目标(通过 `getBubblingTargets` 获取),比如,节点树中注册了冒泡阶段的父节点,从目标节点开始派发直到根节点。<br/>
|
||||
* 同时您可以将事件派发到父节点或者通过调用 stopPropagation 拦截它。<br/>
|
||||
* 推荐使用这种方式来监听节点上的触摸或鼠标事件,请不要在节点上直接使用 cc.eventManager。<br/>
|
||||
* 你也可以注册自定义事件到节点上,并通过 emit 方法触发此类事件,对于这类事件,不会发生捕获冒泡阶段,只会直接派发给注册在该节点上的监听器。<br/>
|
||||
|
||||
@@ -38,7 +38,7 @@ const HideInHierarchy = CCObject.Flags.HideInHierarchy;
|
||||
|
||||
/**
|
||||
* @en
|
||||
* Class of private entities in Cocos Creator scenes.<br/>
|
||||
* Class of private entities in Cocos Creator 3d scenes.<br/>
|
||||
* The PrivateNode is hidden in editor, and completely transparent to users.<br/>
|
||||
* It's normally used as Node's private content created by components in parent node.<br/>
|
||||
* So in theory private nodes are not children, they are part of the parent node.<br/>
|
||||
@@ -48,7 +48,7 @@ const HideInHierarchy = CCObject.Flags.HideInHierarchy;
|
||||
* In this way, they can be easily kept inside the bounding box.<br/>
|
||||
* Currently, it's used by RichText component and TileMap component.
|
||||
* @zh
|
||||
* Cocos Creator 场景中的私有节点类。<br/>
|
||||
* Cocos Creator 3d场景中的私有节点类。<br/>
|
||||
* 私有节点在编辑器中不可见,对用户透明。<br/>
|
||||
* 通常私有节点是被一些特殊的组件创建出来作为父节点的一部分而存在的,理论上来说,它们不是子节点,而是父节点的组成部分。<br/>
|
||||
* 私有节点有两个非常重要的特性:<br/>
|
||||
|
||||
@@ -85,7 +85,8 @@ export class AmbientInfo {
|
||||
@property({ type: Color })
|
||||
set groundAlbedo (val: Color) {
|
||||
this._groundAlbedo.set(val);
|
||||
if (this._resource) { Color.toArray(this._resource.groundAlbedo, this.groundAlbedo); }
|
||||
// only RGB channels are used, alpha channel are intensionally left unchanged here
|
||||
if (this._resource) { Vec3.toArray(this._resource.groundAlbedo, this.groundAlbedo); }
|
||||
}
|
||||
get groundAlbedo () {
|
||||
return this._groundAlbedo;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -101,12 +101,12 @@ export interface IBaseNode {
|
||||
* @en
|
||||
* The local active state of this node.<br/>
|
||||
* Note that a Node may be inactive because a parent is not active, even if this returns true.<br/>
|
||||
* Use {{#crossLink "Node/activeInHierarchy:property"}}{{/crossLink}}
|
||||
* Use [[activeInHierarchy]]
|
||||
* if you want to check if the Node is actually treated as active in the scene.
|
||||
* @zh
|
||||
* 当前节点的自身激活状态。<br/>
|
||||
* 值得注意的是,一个节点的父节点如果不被激活,那么即使它自身设为激活,它仍然无法激活。<br/>
|
||||
* 如果你想检查节点在场景中实际的激活状态可以使用 {{#crossLink "Node/activeInHierarchy:property"}}{{/crossLink}}。
|
||||
* 如果你想检查节点在场景中实际的激活状态可以使用 [[activeInHierarchy]]
|
||||
* @property active
|
||||
* @type {Boolean}
|
||||
* @default true
|
||||
|
||||
@@ -342,7 +342,7 @@ export function mixin (object?: any, ...sources: any[]) {
|
||||
/**
|
||||
* Derive the class from the supplied base class.
|
||||
* Both classes are just native javascript constructors, not created by cc.Class, so
|
||||
* usually you will want to inherit using {{#crossLink "cc/Class:method"}}cc.Class {{/crossLink}} instead.
|
||||
* usually you will want to inherit using [[Class]] instead.
|
||||
* @param base The baseclass to inherit.
|
||||
* @return The result class.
|
||||
*/
|
||||
|
||||
@@ -233,17 +233,11 @@ export class Profiler {
|
||||
|
||||
const modelCom = managerNode.addComponent('cc.ModelComponent') as ModelComponent;
|
||||
modelCom.mesh = createMesh({
|
||||
// positions: [
|
||||
// -0.25, -1/7, 0, // bottom-left
|
||||
// -0.25, 1/7, 0, // top-left
|
||||
// 0.25, 1/7, 0, // top-right
|
||||
// 0.25, -1/7, 0, // bottom-right
|
||||
// ],
|
||||
positions: [
|
||||
-0.3, -0.2, 0, // bottom-left
|
||||
-0.3, 0.2, 0, // top-left
|
||||
0.3, 0.2, 0, // top-right
|
||||
0.3, -0.2, 0, // bottom-right
|
||||
-0.35, -0.2, 0, // bottom-left
|
||||
-0.35, 0.2, 0, // top-left
|
||||
0.35, 0.2, 0, // top-right
|
||||
0.35, -0.2, 0, // bottom-right
|
||||
],
|
||||
indices: [
|
||||
0, 2, 1,
|
||||
|
||||
@@ -11,7 +11,9 @@ import { calculateTransform } from '../particle-general-function';
|
||||
import CurveRange from './curve-range';
|
||||
|
||||
// tslint:disable: max-line-length
|
||||
const VELOCITY_OVERTIME_RAND_OFFSET = 197866;
|
||||
const VELOCITY_X_OVERTIME_RAND_OFFSET = 197866;
|
||||
const VELOCITY_Y_OVERTIME_RAND_OFFSET = 156497;
|
||||
const VELOCITY_Z_OVERTIME_RAND_OFFSET = 984136;
|
||||
|
||||
const _temp_v3 = new Vec3();
|
||||
|
||||
@@ -90,13 +92,13 @@ export default class VelocityOvertimeModule {
|
||||
|
||||
public animate (p: Particle) {
|
||||
const normalizedTime = 1 - p.remainingLifetime / p.startLifetime;
|
||||
const vel = Vec3.set(_temp_v3, this.x.evaluate(normalizedTime, pseudoRandom(p.randomSeed + VELOCITY_OVERTIME_RAND_OFFSET))!, this.y.evaluate(normalizedTime, pseudoRandom(p.randomSeed + VELOCITY_OVERTIME_RAND_OFFSET))!, this.z.evaluate(normalizedTime, pseudoRandom(p.randomSeed + VELOCITY_OVERTIME_RAND_OFFSET))!);
|
||||
const vel = Vec3.set(_temp_v3, this.x.evaluate(normalizedTime, pseudoRandom(p.randomSeed ^ VELOCITY_X_OVERTIME_RAND_OFFSET))!, this.y.evaluate(normalizedTime, pseudoRandom(p.randomSeed ^ VELOCITY_Y_OVERTIME_RAND_OFFSET))!, this.z.evaluate(normalizedTime, pseudoRandom(p.randomSeed ^ VELOCITY_Z_OVERTIME_RAND_OFFSET))!);
|
||||
if (this.needTransform) {
|
||||
Vec3.transformQuat(vel, vel, this.rotation);
|
||||
}
|
||||
Vec3.add(p.animatedVelocity, p.animatedVelocity, vel);
|
||||
Vec3.add(p.ultimateVelocity, p.velocity, p.animatedVelocity);
|
||||
Vec3.multiplyScalar(p.ultimateVelocity, p.ultimateVelocity, this.speedModifier.evaluate(1 - p.remainingLifetime / p.startLifetime, pseudoRandom(p.randomSeed + VELOCITY_OVERTIME_RAND_OFFSET))!);
|
||||
Vec3.multiplyScalar(p.ultimateVelocity, p.ultimateVelocity, this.speedModifier.evaluate(1 - p.remainingLifetime / p.startLifetime, pseudoRandom(p.randomSeed + VELOCITY_X_OVERTIME_RAND_OFFSET))!);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,8 +104,38 @@ export default class ShapeModule {
|
||||
@property({
|
||||
type: ShapeType,
|
||||
displayOrder: 1,
|
||||
formerlySerializedAs: 'shapeType',
|
||||
})
|
||||
public shapeType = ShapeType.Cone;
|
||||
public _shapeType = ShapeType.Cone;
|
||||
|
||||
@property({
|
||||
type: ShapeType,
|
||||
})
|
||||
public get shapeType () {
|
||||
return this._shapeType;
|
||||
}
|
||||
|
||||
public set shapeType (val) {
|
||||
this._shapeType = val;
|
||||
switch (this._shapeType) {
|
||||
case ShapeType.Box:
|
||||
if (this.emitFrom === EmitLocation.Base) {
|
||||
this.emitFrom = EmitLocation.Volume;
|
||||
}
|
||||
break;
|
||||
case ShapeType.Cone:
|
||||
if (this.emitFrom === EmitLocation.Edge) {
|
||||
this.emitFrom = EmitLocation.Base;
|
||||
}
|
||||
break;
|
||||
case ShapeType.Sphere:
|
||||
case ShapeType.Hemisphere:
|
||||
if (this.emitFrom === EmitLocation.Base || this.emitFrom === EmitLocation.Edge) {
|
||||
this.emitFrom = EmitLocation.Volume;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh 粒子从发射器哪个部位发射 [[EmitLocation]]。
|
||||
|
||||
@@ -70,6 +70,21 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
})
|
||||
public scaleSpace = Space.Local;
|
||||
|
||||
@property({
|
||||
displayOrder: 10,
|
||||
})
|
||||
public startSize3D = false;
|
||||
|
||||
/**
|
||||
* @zh 粒子初始大小。
|
||||
*/
|
||||
@property({
|
||||
type: CurveRange,
|
||||
displayOrder: 10,
|
||||
formerlySerializedAs: 'startSize',
|
||||
})
|
||||
public startSizeX = new CurveRange();
|
||||
|
||||
/**
|
||||
* @zh 粒子初始大小。
|
||||
*/
|
||||
@@ -77,7 +92,16 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
type: CurveRange,
|
||||
displayOrder: 10,
|
||||
})
|
||||
public startSize = new CurveRange();
|
||||
public startSizeY = new CurveRange();
|
||||
|
||||
/**
|
||||
* @zh 粒子初始大小。
|
||||
*/
|
||||
@property({
|
||||
type: CurveRange,
|
||||
displayOrder: 10,
|
||||
})
|
||||
public startSizeZ = new CurveRange();
|
||||
|
||||
/**
|
||||
* @zh 粒子初始速度。
|
||||
@@ -89,6 +113,11 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
})
|
||||
public startSpeed = new CurveRange();
|
||||
|
||||
@property({
|
||||
displayOrder:12,
|
||||
})
|
||||
public startRotation3D = false;
|
||||
|
||||
/**
|
||||
* @zh 粒子初始旋转角度。
|
||||
*/
|
||||
@@ -98,7 +127,30 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
radian: true,
|
||||
displayOrder: 12,
|
||||
})
|
||||
public startRotation = new CurveRange();
|
||||
public startRotationX = new CurveRange();
|
||||
|
||||
/**
|
||||
* @zh 粒子初始旋转角度。
|
||||
*/
|
||||
@property({
|
||||
type: CurveRange,
|
||||
range: [-1, 1],
|
||||
radian: true,
|
||||
displayOrder: 12,
|
||||
})
|
||||
public startRotationY = new CurveRange();
|
||||
|
||||
/**
|
||||
* @zh 粒子初始旋转角度。
|
||||
*/
|
||||
@property({
|
||||
type: CurveRange,
|
||||
range: [-1, 1],
|
||||
radian: true,
|
||||
displayOrder: 12,
|
||||
formerlySerializedAs: 'startRotation',
|
||||
})
|
||||
public startRotationZ = new CurveRange();
|
||||
|
||||
/**
|
||||
* @zh 粒子系统开始运行后,延迟粒子发射的时间。
|
||||
@@ -365,7 +417,7 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
|
||||
this.rateOverTime.constant = 10;
|
||||
this.startLifetime.constant = 5;
|
||||
this.startSize.constant = 1;
|
||||
this.startSizeX.constant = 1;
|
||||
this.startSpeed.constant = 5;
|
||||
|
||||
// internal status
|
||||
@@ -414,7 +466,7 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
if (this.isValid) {
|
||||
const r = this.renderer as any;
|
||||
if (r && r._model) {
|
||||
r._model.destroy();
|
||||
r._model.scene.destroyModel(r._model);
|
||||
r._model = null;
|
||||
r.onEnable();
|
||||
r._updateModel();
|
||||
@@ -499,7 +551,7 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh 获取当前。
|
||||
* @zh 获取当前粒子数量
|
||||
*/
|
||||
public getParticleCount () {
|
||||
return this.renderer!.getParticleCount();
|
||||
@@ -604,12 +656,24 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
break;
|
||||
}
|
||||
Vec3.copy(particle.ultimateVelocity, particle.velocity);
|
||||
// apply startRotation. now 2D only.
|
||||
Vec3.set(particle.rotation, 0, 0, this.startRotation.evaluate(this._time / this.duration, rand)!);
|
||||
// apply startRotation.
|
||||
if (this.startRotation3D) {
|
||||
Vec3.set(particle.rotation, this.startRotationX.evaluate(this._time / this.duration, rand)!,
|
||||
this.startRotationY.evaluate(this._time / this.duration, rand)!,
|
||||
this.startRotationZ.evaluate(this._time / this.duration, rand)!);
|
||||
} else {
|
||||
Vec3.set(particle.rotation, 0, 0, this.startRotationZ.evaluate(this._time / this.duration, rand)!);
|
||||
}
|
||||
|
||||
// apply startSize. now 2D only.
|
||||
Vec3.set(particle.startSize, this.startSize.evaluate(this._time / this.duration, rand)!, 1, 1);
|
||||
particle.startSize.y = particle.startSize.x;
|
||||
// apply startSize.
|
||||
if (this.startSize3D) {
|
||||
Vec3.set(particle.startSize, this.startSizeX.evaluate(this._time / this.duration, rand)!,
|
||||
this.startSizeY.evaluate(this._time / this.duration, rand)!,
|
||||
this.startSizeZ.evaluate(this._time / this.duration, rand)!);
|
||||
} else {
|
||||
Vec3.set(particle.startSize, this.startSizeX.evaluate(this._time / this.duration, rand)!, 1, 1);
|
||||
particle.startSize.y = particle.startSize.x;
|
||||
}
|
||||
Vec3.copy(particle.size, particle.startSize);
|
||||
|
||||
// apply startColor.
|
||||
|
||||
@@ -258,8 +258,10 @@ export default class ParticleSystemRenderer {
|
||||
}
|
||||
|
||||
public onDestroy () {
|
||||
this._particleSystem._getRenderScene().destroyModel(this._model!);
|
||||
this._model = null;
|
||||
if (this._model) {
|
||||
this._model.scene.destroyModel(this._model);
|
||||
this._model = null;
|
||||
}
|
||||
}
|
||||
|
||||
public clear () {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* @category particle
|
||||
*/
|
||||
|
||||
import { Color, Vec3, Mat4, Quat } from '../../core/math';
|
||||
import { Color, Vec3, Mat4, Quat, toRadian } from '../../core/math';
|
||||
import { ccclass, property } from '../../core/data/class-decorator';
|
||||
import { GFX_DRAW_INFO_SIZE, GFXBuffer, IGFXIndirectBuffer } from '../../core/gfx/buffer';
|
||||
import { GFXAttributeName, GFXBufferUsageBit, GFXFormat, GFXFormatInfos, GFXMemoryUsageBit, GFXPrimitiveMode } from '../../core/gfx/define';
|
||||
@@ -22,6 +22,7 @@ import Particle from '../particle';
|
||||
// tslint:disable: max-line-length
|
||||
const PRE_TRIANGLE_INDEX = 1;
|
||||
const NEXT_TRIANGLE_INDEX = 1 << 2;
|
||||
const DIRECTION_THRESHOLD = Math.cos(toRadian(100));
|
||||
|
||||
const _temp_trailEle = { position: new Vec3(), velocity: new Vec3() } as ITrailElement;
|
||||
const _temp_quat = new Quat();
|
||||
@@ -38,6 +39,7 @@ interface ITrailElement {
|
||||
lifetime: number;
|
||||
width: number;
|
||||
velocity: Vec3;
|
||||
direction: number; //if one element's direction differs from the previous one,it means the trail's direction reverse.
|
||||
color: Color;
|
||||
}
|
||||
|
||||
@@ -57,6 +59,7 @@ class TrailSegment {
|
||||
lifetime: 0,
|
||||
width: 0,
|
||||
velocity: new Vec3(),
|
||||
direction: 0,
|
||||
color: new Color(),
|
||||
});
|
||||
}
|
||||
@@ -90,6 +93,7 @@ class TrailSegment {
|
||||
lifetime: 0,
|
||||
width: 0,
|
||||
velocity: new Vec3(),
|
||||
direction: 0,
|
||||
color: new Color(),
|
||||
});
|
||||
this.start++;
|
||||
@@ -357,7 +361,7 @@ export default class TrailModule {
|
||||
|
||||
public destroy () {
|
||||
if (this._trailModel) {
|
||||
this._particleSystem._getRenderScene().destroyModel(this._trailModel!);
|
||||
this._trailModel.scene.destroyModel(this._trailModel);
|
||||
this._trailModel = null;
|
||||
}
|
||||
if (this._trailSegments) {
|
||||
@@ -446,6 +450,8 @@ export default class TrailModule {
|
||||
if (Vec3.equals(Vec3.ZERO, lastSecondTrail.velocity)) {
|
||||
Vec3.copy(lastSecondTrail.velocity, _temp_vec3);
|
||||
}
|
||||
Vec3.normalize(lastSecondTrail.velocity, lastSecondTrail.velocity);
|
||||
this._checkDirectionReverse(lastSecondTrail, lastThirdTrail);
|
||||
}
|
||||
if (this.colorFromParticle) {
|
||||
lastSeg.color.set(p.color);
|
||||
@@ -488,7 +494,7 @@ export default class TrailModule {
|
||||
} else {
|
||||
Vec3.copy(_temp_trailEle.position, p.position);
|
||||
}
|
||||
if (trailNum === 1) {
|
||||
if (trailNum === 1 || trailNum === 2) {
|
||||
const lastSecondTrail = trailSeg.getElement(trailSeg.end - 1)!;
|
||||
Vec3.subtract(lastSecondTrail.velocity, _temp_trailEle.position, lastSecondTrail.position);
|
||||
this._vbF32![this.vbOffset - this._vertSize / 4 - 4] = lastSecondTrail.velocity.x;
|
||||
@@ -498,12 +504,15 @@ export default class TrailModule {
|
||||
this._vbF32![this.vbOffset - 3] = lastSecondTrail.velocity.y;
|
||||
this._vbF32![this.vbOffset - 2] = lastSecondTrail.velocity.z;
|
||||
Vec3.subtract(_temp_trailEle.velocity, _temp_trailEle.position, lastSecondTrail.position);
|
||||
this._checkDirectionReverse(_temp_trailEle, lastSecondTrail);
|
||||
} else if (trailNum > 2) {
|
||||
const lastSecondTrail = trailSeg.getElement(trailSeg.end - 1)!;
|
||||
const lastThirdTrail = trailSeg.getElement(trailSeg.end - 2)!;
|
||||
Vec3.subtract(_temp_vec3, lastThirdTrail.position, lastSecondTrail.position);
|
||||
Vec3.subtract(_temp_vec3_1, _temp_trailEle.position, lastSecondTrail.position);
|
||||
Vec3.subtract(lastSecondTrail.velocity, _temp_vec3_1, _temp_vec3);
|
||||
Vec3.normalize(lastSecondTrail.velocity, lastSecondTrail.velocity);
|
||||
this._checkDirectionReverse(lastSecondTrail, lastThirdTrail);
|
||||
this._vbF32![this.vbOffset - this._vertSize / 4 - 4] = lastSecondTrail.velocity.x;
|
||||
this._vbF32![this.vbOffset - this._vertSize / 4 - 3] = lastSecondTrail.velocity.y;
|
||||
this._vbF32![this.vbOffset - this._vertSize / 4 - 2] = lastSecondTrail.velocity.z;
|
||||
@@ -511,6 +520,8 @@ export default class TrailModule {
|
||||
this._vbF32![this.vbOffset - 3] = lastSecondTrail.velocity.y;
|
||||
this._vbF32![this.vbOffset - 2] = lastSecondTrail.velocity.z;
|
||||
Vec3.subtract(_temp_trailEle.velocity, _temp_trailEle.position, lastSecondTrail.position);
|
||||
Vec3.normalize(_temp_trailEle.velocity, _temp_trailEle.velocity);
|
||||
this._checkDirectionReverse(_temp_trailEle, lastSecondTrail);
|
||||
}
|
||||
_temp_trailEle.width = p.size.x;
|
||||
_temp_trailEle.color = p.color;
|
||||
@@ -605,7 +616,7 @@ export default class TrailModule {
|
||||
this._vbF32![this.vbOffset++] = trailSeg.position.x;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.position.y;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.position.z;
|
||||
this._vbF32![this.vbOffset++] = 0;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.direction;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.width;
|
||||
this._vbF32![this.vbOffset++] = xTexCoord;
|
||||
this._vbF32![this.vbOffset++] = 0;
|
||||
@@ -622,7 +633,7 @@ export default class TrailModule {
|
||||
this._vbF32![this.vbOffset++] = trailSeg.position.x;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.position.y;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.position.z;
|
||||
this._vbF32![this.vbOffset++] = 1;
|
||||
this._vbF32![this.vbOffset++] = 1 - trailSeg.direction;
|
||||
this._vbF32![this.vbOffset++] = trailSeg.width;
|
||||
this._vbF32![this.vbOffset++] = xTexCoord;
|
||||
this._vbF32![this.vbOffset++] = 1;
|
||||
@@ -645,4 +656,12 @@ export default class TrailModule {
|
||||
this._iBuffer![this.ibOffset++] = indexOffset + 2 * trailEleIdx + 2;
|
||||
}
|
||||
}
|
||||
|
||||
private _checkDirectionReverse (currElement: ITrailElement, prevElement: ITrailElement) {
|
||||
if (Vec3.dot(currElement.velocity, prevElement.velocity) < DIRECTION_THRESHOLD) {
|
||||
currElement.direction = 1 - prevElement.direction;
|
||||
} else {
|
||||
currElement.direction = prevElement.direction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -417,7 +417,7 @@ export class ButtonComponent extends Component {
|
||||
* 按钮的点击事件列表。
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
displayOrder: 3,
|
||||
})
|
||||
public clickEvents: ComponentEventHandler[] = [];
|
||||
|
||||
@@ -413,7 +413,7 @@ export class EditBoxComponent extends Component {
|
||||
* 开始编辑文本输入框触发的事件回调。
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public editingDidBegan: ComponentEventHandler[] = [];
|
||||
|
||||
@@ -425,7 +425,7 @@ export class EditBoxComponent extends Component {
|
||||
* 编辑文本输入框时触发的事件回调。
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public textChanged: ComponentEventHandler[] = [];
|
||||
|
||||
@@ -437,7 +437,7 @@ export class EditBoxComponent extends Component {
|
||||
* 结束编辑文本输入框时触发的事件回调。
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public editingDidEnded: ComponentEventHandler[] = [];
|
||||
|
||||
@@ -449,7 +449,7 @@ export class EditBoxComponent extends Component {
|
||||
* 当用户按下回车按键时的事件回调,目前不支持 windows 平台
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public editingReturn: ComponentEventHandler[] = [];
|
||||
|
||||
|
||||
@@ -172,17 +172,17 @@ export class GraphicsComponent extends UIRenderComponent {
|
||||
public impl: Impl | null = null;
|
||||
public model: Model | null = null;
|
||||
@property
|
||||
private _lineWidth = 1;
|
||||
protected _lineWidth = 1;
|
||||
@property
|
||||
private _strokeColor = Color.BLACK.clone();
|
||||
protected _strokeColor = Color.BLACK.clone();
|
||||
@property
|
||||
private _lineJoin = LineJoin.MITER;
|
||||
protected _lineJoin = LineJoin.MITER;
|
||||
@property
|
||||
private _lineCap = LineCap.BUTT;
|
||||
protected _lineCap = LineCap.BUTT;
|
||||
@property
|
||||
private _fillColor = Color.WHITE.clone();
|
||||
protected _fillColor = Color.WHITE.clone();
|
||||
@property
|
||||
private _miterLimit = 10;
|
||||
protected _miterLimit = 10;
|
||||
|
||||
constructor (){
|
||||
super();
|
||||
@@ -464,7 +464,7 @@ export class GraphicsComponent extends UIRenderComponent {
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 辅助材质实例化。可用于只取数据而无实体情况下渲染使用。特殊情况可参考:[[_instanceMaterial]]
|
||||
* 辅助材质实例化。可用于只取数据而无实体情况下渲染使用。特殊情况可参考:[[instanceMaterial]]
|
||||
*/
|
||||
public helpInstanceMaterial () {
|
||||
let mat: Material | null = null;
|
||||
|
||||
@@ -480,7 +480,8 @@ export class MaskComponent extends UIRenderComponent {
|
||||
clearGraphics.lineWidth = 0;
|
||||
const color = Color.WHITE.clone();
|
||||
color.a = 0;
|
||||
this._clearGraphics.fillColor = color;
|
||||
clearGraphics.fillColor = color;
|
||||
clearGraphics.simulate = true;
|
||||
this._updateClearGraphics();
|
||||
}
|
||||
|
||||
@@ -500,7 +501,7 @@ export class MaskComponent extends UIRenderComponent {
|
||||
if (!this._clearGraphics) {
|
||||
return;
|
||||
}
|
||||
console.log('resolution changed');
|
||||
|
||||
const size = visibleRect;
|
||||
this._clearGraphics.node.setWorldPosition(size.width / 2, size.height / 2, 0);
|
||||
this._clearGraphics.clear();
|
||||
|
||||
@@ -271,6 +271,7 @@ export class PageViewComponent extends ScrollViewComponent {
|
||||
@property({
|
||||
visible: false,
|
||||
override: true,
|
||||
type: [ComponentEventHandler]
|
||||
})
|
||||
public scrollEvents: ComponentEventHandler[] = [];
|
||||
|
||||
@@ -287,7 +288,7 @@ export class PageViewComponent extends ScrollViewComponent {
|
||||
* @zh 滚动视图的事件回调函数
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public pageEvents: ComponentEventHandler[] = [];
|
||||
|
||||
|
||||
@@ -73,8 +73,7 @@ function debounce (func: Function, wait: number, immediate?: boolean) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @zh
|
||||
* 富文本池。
|
||||
* 富文本池。<br/>
|
||||
*/
|
||||
const pool = new Pool((labelSeg: ILabelSegment) => {
|
||||
if (CC_EDITOR) {
|
||||
|
||||
@@ -288,7 +288,9 @@ export class ScrollViewComponent extends ViewGroupComponent {
|
||||
* @zh
|
||||
* 滚动视图的事件回调函数。
|
||||
*/
|
||||
@property
|
||||
@property({
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public scrollEvents: ComponentEventHandler[] = [];
|
||||
|
||||
/**
|
||||
|
||||
@@ -280,7 +280,9 @@ export class SpriteComponent extends UIRenderComponent {
|
||||
* sprite.fillStart = 0.5;
|
||||
* ```
|
||||
*/
|
||||
@property
|
||||
@property({
|
||||
range: [0, 1, 0.1]
|
||||
})
|
||||
get fillStart () {
|
||||
return this._fillStart;
|
||||
}
|
||||
@@ -303,7 +305,9 @@ export class SpriteComponent extends UIRenderComponent {
|
||||
* sprite.fillRange = 1;
|
||||
* ```
|
||||
*/
|
||||
@property
|
||||
@property({
|
||||
range: [0, 1, 0.1]
|
||||
})
|
||||
get fillRange () {
|
||||
return this._fillRange;
|
||||
}
|
||||
@@ -486,6 +490,7 @@ export class SpriteComponent extends UIRenderComponent {
|
||||
this._renderData = this._assembler.createData(this);
|
||||
this._renderData!.material = this._material;
|
||||
this.markForUpdateRenderData();
|
||||
this._updateColor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export class ToggleComponent extends ButtonComponent {
|
||||
* Toggle 按钮的点击事件列表。
|
||||
*/
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public checkEvents: ComponentEventHandler[] = [];
|
||||
@property
|
||||
|
||||
@@ -45,7 +45,7 @@ import { ToggleComponent} from './toggle-component';
|
||||
@executeInEditMode
|
||||
export class ToggleContainerComponent extends Component {
|
||||
@property({
|
||||
type: ComponentEventHandler,
|
||||
type: [ComponentEventHandler],
|
||||
})
|
||||
public checkEvents: ComponentEventHandler[] = [];
|
||||
@property
|
||||
|
||||
@@ -70,7 +70,9 @@ export class UIModelComponent extends UIComponent {
|
||||
}
|
||||
|
||||
this._modelComponent._sceneGetter = null;
|
||||
this._modelComponent.recreateModel();
|
||||
if (cc.isValid(this.node, true)) {
|
||||
this._modelComponent.recreateModel();
|
||||
}
|
||||
}
|
||||
|
||||
public updateAssembler (render: UI) {
|
||||
|
||||
@@ -676,7 +676,7 @@ export class WidgetComponent extends Component {
|
||||
const targetSize = getReadonlyNodeSize(target);
|
||||
const deltaInPercent = new Vec3();
|
||||
if (targetSize.width !== 0 && targetSize.height !== 0) {
|
||||
Vec3.set(deltaInPercent, delta.x / targetSize.width, delta.y / targetSize.height, deltaInPercent.z);
|
||||
Vec3.set(deltaInPercent, delta.x / targetSize.width * 100, delta.y / targetSize.height * 100, deltaInPercent.z);
|
||||
}
|
||||
|
||||
if (self.isAlignTop) {
|
||||
@@ -728,7 +728,7 @@ export class WidgetComponent extends Component {
|
||||
const targetSize = getReadonlyNodeSize(target);
|
||||
const deltaInPercent = new Vec3();
|
||||
if (targetSize.width !== 0 && targetSize.height !== 0) {
|
||||
Vec3.set(deltaInPercent, delta.x / targetSize.width, delta.y / targetSize.height, deltaInPercent.z);
|
||||
Vec3.set(deltaInPercent, delta.x / targetSize.width * 100, delta.y / targetSize.height * 100, deltaInPercent.z);
|
||||
}
|
||||
|
||||
const anchor = self.node.getAnchorPoint();
|
||||
@@ -785,17 +785,17 @@ export class WidgetComponent extends Component {
|
||||
|
||||
const size = this.node.parent!.getContentSize();
|
||||
if (this.isAlignLeft && flag === AlignFlags.LEFT) {
|
||||
this._left = isAbs ? this._left * size.width : this._left / size.width;
|
||||
this._left = isAbs ? this._left / 100 * size.width : this._left * 100 / size.width;
|
||||
} else if (this.isAlignRight && flag === AlignFlags.RIGHT) {
|
||||
this._right = isAbs ? this._right * size.width : this._right / size.width;
|
||||
this._right = isAbs ? this._right / 100 * size.width : this._right * 100 / size.width;
|
||||
} else if (this.isAlignHorizontalCenter && flag === AlignFlags.CENTER) {
|
||||
this._horizontalCenter = isAbs ? this._horizontalCenter * size.width : this._horizontalCenter / size.width;
|
||||
this._horizontalCenter = isAbs ? this._horizontalCenter / 100 * size.width : this._horizontalCenter * 100 / size.width;
|
||||
} else if (this.isAlignTop && flag === AlignFlags.TOP) {
|
||||
this._top = isAbs ? this._top * size.height : this._top / size.height;
|
||||
this._top = isAbs ? this._top / 100 * size.height : this._top * 100 / size.height;
|
||||
} else if (this.isAlignBottom && flag === AlignFlags.BOT) {
|
||||
this._bottom = isAbs ? this._bottom * size.height : this._bottom / size.height;
|
||||
this._bottom = isAbs ? this._bottom / 100 * size.height : this._bottom * 100 / size.height;
|
||||
} else if (this.isAbsoluteVerticalCenter && flag === AlignFlags.MID) {
|
||||
this._verticalCenter = isAbs ? this._verticalCenter * size.height : this._verticalCenter / size.height;
|
||||
this._verticalCenter = isAbs ? this._verticalCenter / 100 * size.height : this._verticalCenter * 100 / size.height;
|
||||
}
|
||||
|
||||
this._recursiveDirty();
|
||||
|
||||
@@ -90,8 +90,8 @@ function align (node: INode, widget: WidgetComponent) {
|
||||
}
|
||||
|
||||
// adjust borders according to offsets
|
||||
localLeft += widget.isAbsoluteLeft ? widget.left : widget.left * targetWidth;
|
||||
localRight -= widget.isAbsoluteRight ? widget.right : widget.right * targetWidth;
|
||||
localLeft += widget.isAbsoluteLeft ? widget.left : widget.left / 100 * targetWidth;
|
||||
localRight -= widget.isAbsoluteRight ? widget.right : widget.right / 100 * targetWidth;
|
||||
|
||||
if (hasTarget) {
|
||||
localLeft += inverseTranslate.x;
|
||||
@@ -117,7 +117,7 @@ function align (node: INode, widget: WidgetComponent) {
|
||||
width = node.width * scaleX;
|
||||
if (widget.isAlignHorizontalCenter) {
|
||||
let localHorizontalCenter = widget.isAbsoluteHorizontalCenter ?
|
||||
widget.horizontalCenter : widget.horizontalCenter * targetWidth;
|
||||
widget.horizontalCenter : widget.horizontalCenter / 100 * targetWidth;
|
||||
let targetCenter = (0.5 - targetAnchor.x) * targetSize.width;
|
||||
if (hasTarget) {
|
||||
localHorizontalCenter *= inverseScale.x;
|
||||
@@ -149,8 +149,8 @@ function align (node: INode, widget: WidgetComponent) {
|
||||
}
|
||||
|
||||
// adjust borders according to offsets
|
||||
localBottom += widget.isAbsoluteBottom ? widget.bottom : widget.bottom * targetHeight;
|
||||
localTop -= widget.isAbsoluteTop ? widget.top : widget.top * targetHeight;
|
||||
localBottom += widget.isAbsoluteBottom ? widget.bottom : widget.bottom / 100 * targetHeight;
|
||||
localTop -= widget.isAbsoluteTop ? widget.top : widget.top / 100 * targetHeight;
|
||||
|
||||
if (hasTarget) {
|
||||
// transform
|
||||
@@ -177,7 +177,7 @@ function align (node: INode, widget: WidgetComponent) {
|
||||
height = node.height * scaleY;
|
||||
if (widget.isAlignVerticalCenter) {
|
||||
let localVerticalCenter = widget.isAbsoluteVerticalCenter ?
|
||||
widget.verticalCenter : widget.verticalCenter * targetHeight;
|
||||
widget.verticalCenter : widget.verticalCenter / 100 * targetHeight;
|
||||
let targetMiddle = (0.5 - targetAnchor.y) * targetSize.height;
|
||||
if (hasTarget) {
|
||||
localVerticalCenter *= inverseScale.y;
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
/****************************************************************************
|
||||
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
||||
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
http://www.cocos.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated engine source code (the "Software"), a limited,
|
||||
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
||||
to use Cocos Creator solely to develop games on your target platforms. You shall
|
||||
not use Cocos Creator software for developing other software or tools that's
|
||||
used for developing games. You are not granted to publish, distribute,
|
||||
sublicense, and/or sell copies of Cocos Creator.
|
||||
|
||||
The software or tools in this License Agreement are licensed, not sold.
|
||||
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
@@ -1,23 +0,0 @@
|
||||
cocos2d-html5 http://www.cocos2d-x.org
|
||||
|
||||
Copyright (c) 2010-2011 - cocos2d-x community
|
||||
(see each file to see the different copyright owners)
|
||||
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
Executable
+182
@@ -0,0 +1,182 @@
|
||||
{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf200
|
||||
{\fonttbl\f0\fnil\fcharset0 Calibri;\f1\fnil\fcharset0 Calibri-Bold;\f2\fnil\fcharset134 SimSun;
|
||||
}
|
||||
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
|
||||
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
|
||||
\vieww18340\viewh19100\viewkind0
|
||||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
|
||||
|
||||
\f0\fs21 \cf2 \
|
||||
\pard\pardeftab420\sl-500\qc\partightenfactor0
|
||||
|
||||
\f1\b \cf2 LICENSE AGREEMENT\
|
||||
\pard\pardeftab420\fi424\sl-500\qj\partightenfactor0
|
||||
|
||||
\f0\b0 \cf2 For purposes of this License Agreement, Cocos Creator 3D created by Xiamen Yaji Software Co., Ltd is a cross-platform desktop software for developing game software and interactive rich media that can be published to Android, iOS, Web Standard, Windows and Mac.\
|
||||
\
|
||||
Cocos Creator 3D as a software includes open sourced JavaScript game engine, editor extension and C++ game engine. It also includes close sourced editor program.\
|
||||
\
|
||||
Open sourced JavaScript and C++ game engine, with editor extension can be modified and customized by developer user. The modified and customized version of software can be used to develop game software and interactive rich media for end users, but not allowed to redistribute or publish game develop software based on Cocos Creator 3D's open sourced code.\
|
||||
\
|
||||
Cocos Creator 3D are licensed to you subject to the terms of this License Agreement ("License Agreement"). This License Agreement forms a legally binding contract between you and Xiamen Yaji Software Co., Ltd, a Chinese Xiamen corporation located at Unit 1301, No. 167, East Tapu Road, Xiamen 361008, China ("Xiamen Yaji") in relation to your use of Cocos Creator 3D.\
|
||||
\
|
||||
In order to use Cocos Creator 3D, you must first agree to this License Agreement. By downloading, installing, copying or otherwise using Cocos Creator 3D, you accept the terms and conditions of this License Agreement. If you do not agree with any of the terms or conditions of this License Agreement, do not proceed with downloading, copying, installing or any other use of Cocos Creator 3D or any portion thereof as you have no rights to do so.\
|
||||
\pard\pardeftab420\sl-500\qj\partightenfactor0
|
||||
\cf2 \
|
||||
1. License Grant and Acceptance.\
|
||||
1.1 By downloading, installing, copying or otherwise using Cocos Creator 3D, you hereby accept all of the terms of this License Agreement without modification. If you are downloading, installing, copying or otherwise using Cocos Creator 3D on behalf of your employer or other entity, then you hereby agree that you are entering into this License Agreement on behalf of your employer or other entity, and you represent and warrant that you have full legal authority to bind your employer or such entity to this License Agreement. If you do not have the requisite authority, you may not accept the License Agreement or use Cocos Creator 3D on behalf of your employer or other entity.\
|
||||
1.2 Subject to the terms of this License Agreement, Xiamen Yaji grants you a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to use Cocos Creator 3D solely to develop applications and games on your target platforms. The softwares or tools in this License Agreement are licensed, not sold.\
|
||||
1.3 You may not use Cocos Creator 3D for any purpose not expressly permitted by this License Agreement, including but not limited to:\
|
||||
1.3.1 Copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of Cocos Creator 3D or any part of Cocos Creator 3D;\
|
||||
1.3.2 Combine any part of Cocos Creator 3D with other software;\
|
||||
1.3.3 Create "forks" or other derivative works of Cocos Creator 3D, or distribute, participate in the creation of, or promote in any way any derivative works of Cocos Creator 3D.\
|
||||
1.3.4 Redistribute Cocos Creator 3D as part of any development toolkit or library, an application builder, a website builder or any software or tool that is intended for use by software, application, or website developers or designers.\
|
||||
1.4 You agree to use Cocos Creator 3D and write applications only for purposes that are permitted by (a) this License Agreement and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdictions.\
|
||||
1.5 You agree that you are solely responsible for (and that Xiamen Yaji has no responsibility to you or to any third party for) any data, content, or resources that you create, transmit or display through Cocos Creator 3D, and for the consequences of your actions (including any loss or damage which Xiamen Yaji may suffer) by doing so.\
|
||||
1.6 You agree that you are solely responsible for (and that Xiamen Yaji has no responsibility to you or to any third party for) any breach of your obligations under this License Agreement, any applicable third party contract or Terms of Service, or any applicable law or regulation, and for the consequences (including any loss or damage which Xiamen Yaji or any third party may suffer) of any such breach.\
|
||||
1.7 You may not use Cocos Creator 3D and may not accept the License Agreement if you are a person barred from receiving Cocos Creator 3D under the laws of the country in which you are resident or from which you use Cocos Creator 3D.\
|
||||
\
|
||||
2. Ownership.\
|
||||
2.1 You agree that Xiamen Yaji or third parties own all legal right, including but not limited to ownership and any Intellectual Property Rights that subsist in Cocos Creator 3D. "Intellectual Property Rights" includes patent law, copyright law, trade secret law, trademark law, and any and all other proprietary rights. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\
|
||||
2.2 Nothing in this License Agreement gives you a right to use any of Xiamen Yaji's trade names, trademarks, service marks, logos, domain names, or other distinctive brand features. You agree that you will not remove, obscure, or alter any proprietary rights notices (including but not limited to copyright and trademark notices) that may be affixed to or contained within Cocos Creator 3D. \
|
||||
2.3 Xiamen Yaji agrees that it obtains no right or interest from you (or your licensors) under this License Agreement in or to any applications that you develop using Cocos Creator 3D, including ownership and any Intellectual Property Rights that exist in those products.\
|
||||
\
|
||||
3. Usage Rules.\
|
||||
3.1 You must create an account to use Cocos Creator 3D. After registration, you may log into your account to download, install, copy or otherwise use Cocos Creator 3D.\
|
||||
\
|
||||
4. Term and Termination.\
|
||||
4.1 The term of this License Agreement will continue until terminated by either you or Xiamen Yaji as set out below.\
|
||||
4.2 In the event that you want to terminate this License Agreement, you shall do so by ceasing your use of Cocos Creator 3D.\
|
||||
4.3 Xiamen Yaji may terminate this License Agreement with you at any time if:\
|
||||
4.3.1 You breach any provision of this License Agreement;\
|
||||
4.3.2 Xiamen Yaji is required to do so by law;\
|
||||
4.3.3 Any partner with whom Xiamen Yaji offered certain parts of Cocos Creator 3D to you has terminated its relationship with Xiamen Yaji or ceased to offer certain parts of Cocos Creator 3D to you;\
|
||||
4.3.4 Xiamen Yaji decides to no longer provide Cocos Creator 3D or certain parts of Cocos Creator 3D to users in the country in which you are resident or from which you use Cocos Creator 3D;\
|
||||
4.3.5 The Cocos Creator 3D provided by Xiamen Yaji to you is no longer commercially viable;\
|
||||
4.3.6 Xiamen Yaji shall be entitled in its sole discretion to terminate this License Agreement at any time.\
|
||||
4.4 Upon termination of this License Agreement for any reasons, all licenses granted to you under this License Agreement immediately terminate, and you shall cease using Cocos Creator 3D following termination.\
|
||||
\
|
||||
5. Disclaimer of Warranty.\
|
||||
5.1 You expressly understand and agree that your use of Cocos Creator 3D is at your sole risk and that Xiamen Yaji disclaims any and all warranty.\
|
||||
5.2 Your use of Cocos Creator 3D and any material downloaded or otherwise obtained through the use of Cocos Creator 3D is at your own discretion and risk, and you are solely responsible for any damage to your computer system or other device or loss of data that results from such use.\
|
||||
5.3 Xiamen Yaji makes no warranty about whether the services will meet your requirements or the timeliness, security and accuracy of the web service.\
|
||||
5.4 To that maximum extent permitted by law, Xiamen Yaji further expressly disclaims all warranties and conditions of any kind, where express or implied, including but not limited to the implied warranties and conditions of merchantability, fitness for a particular purpose and non-infringement.\
|
||||
\
|
||||
6. Limitation of Liability and Indemnification.\
|
||||
6.1 To that maximum extent permitted by law, you expressly understand and agree that Xiamen Yaji, its subsidiaries and affiliates, and its licensors shall not be liable to you under any theory of liability for any direct, indirect, incidental, special, consequential or exemplary damages that may be incurred by you, including but not limited to any loss of data, whether or not Xiamen Yaji or its representatives should have been aware of the possibility of any such losses arising. Some jurisdictions do not permit limitations on certain liabilities, and the foregoing limitation of liability do not apply to you to the extent they are not permitted in your jurisdiction.\
|
||||
6.2 To the maximum extent permitted by law, you agree to defend, indemnify and hold harmless Xiamen Yaji, its affiliates and their respective directors, officers, employees and agents from and against any and all claims, actions, suits or proceedings, as well as any and all losses, liabilities, damages, costs and expenses (including reasonable attorneys' fees) arising out of or accruing from (a) any Application you develop via Cocos Creator 3D that actually or allegedly infringes any copyright, trademark, trade secret, trade dress, patent or other intellectual property right of any person or defames any person or violates their rights of publicity or privacy, and (b) any non-compliance by you with this License Agreement.\
|
||||
\
|
||||
7. Governing Law\
|
||||
7.1 The conclusion, enforcement and dispute settlement of this License Agreement shall be governed by and construed in accordance with the laws of China and is subject to the jurisdiction of the courts of China.\
|
||||
7.2 In the event of any dispute with respect to the content or enforcement of this License Agreement, the parties shall negotiate in good faith to resolve the dispute. In case no settlement has been reached, either party may submit the relevant dispute to the people's court where Xiamen Yaji is located.\
|
||||
7.3Cocos Creator 3D are protected by international copyright laws, as well as other international property laws and treaties.\
|
||||
\
|
||||
8. Modification of Agreement\
|
||||
8.1 Xiamen Yaji has the right to modify any provision in this License Agreement at any time. Once this License agreement is modified, Xiamen Yaji shall directly publish the modified License Agreement on its website. Such action is deemed to have notified you about the modification. Xiamen Yaji may also inform you the modification in other reasonable ways.\
|
||||
8.2 In the event that you do not agree with Xiamen Yaji 's modifications of related provisions in this License Agreement, you shall have the right to cease using Cocos Creator 3D. Your continuous use of Cocos Creator 3D shall be deemed to accept modification of related provisions of this License Agreement.\
|
||||
\
|
||||
9. Delivery of Notices\
|
||||
9.1Under this License Agreement, all notices from Xiamen Yaji to you shall be delivered by means of webpage announcement, email, short message or conventional mail delivery service. Notices shall be deemed to have been received on the day it is so delivered.\
|
||||
9.2 Your notices shall be delivered to Xiamen Yaji by the address, fax number, e-mail address and other contact information officially announced by Xiamen Yaji.\
|
||||
\
|
||||
10. Miscellaneous.\
|
||||
10.1 In order to continually innovate and improve Cocos Creator 3D, Xiamen Yaji may collect certain usage statistics from the software including but not limited to a unique identifier, associated IP address, version number of the software, and information on which tools and/or services in Cocos Creator 3D are being used and how they are being used. Before any of this information is collected, Cocos Creator 3D shall notify you and seek your consent. In the event that you withhold consent, the information shall not be collected. The data collected is examined in the aggregate to improve Cocos Creator 3D and is maintained in accordance with Xiamen Yaji 's Privacy Policy.\
|
||||
10.2 You agree that if Xiamen Yaji does not exercise or enforce any legal right or remedy which is contained in this License Agreement (or which Xiamen Yaji has the benefit of under any law), this shall not be taken to be a formal waiver of Xiamen Yaji rights and that those rights or remedies shall still be available to Xiamen Yaji.\
|
||||
10.3 You agree to be identified as a customer of Xiamen Yaji and you agree that Xiamen Yaji may refer to you by name, trade name and trademark, if applicable, and may briefly describe your business in our marketing materials and web site.\
|
||||
10.4 There are no implied licenses or other implied rights granted by Xiamen Yaji under this License Agreement, and all rights, except for those expressly granted hereunder, shall remain with Xiamen Yaji and its licensors.\
|
||||
10.5 In the event that any court of law, having the jurisdiction to decide on this matter, rules that any provision of this License Agreement is invalid, then that provision shall be removed from this License Agreement without affecting the rest of this License Agreement. The remaining provisions of this License Agreement shall continue to be valid and enforceable.\
|
||||
10.6 You acknowledge and agree that each member of the group of companies of which Xiamen Yaji is the parent shall be third party beneficiaries to this License Agreement and that such other companies shall be entitled to directly enforce, and rely upon, any provision of this License Agreement that confers a benefit on (or rights in favor of) them. Other than this, no other person or company shall be third party beneficiaries to this License Agreement.\
|
||||
10.7 The rights granted in this License Agreement may not be assigned or transferred by you to a Third Party without the prior written approval of Xiamen Yaji.\
|
||||
10.8 This License Agreement constitutes the whole legal agreement between you and Xiamen Yaji and governs your use of Cocos Creator 3D, and entirely replaces any prior agreements between you and Xiamen Yaji in relation to Cocos Creator 3D.\
|
||||
10.9 If any provision of this License Agreement is held to be invalid or unenforceable for whatever reason, the remaining provisions of this Agreement remain in full force and effect.\
|
||||
10.10 This contract is composed of official texts, appendixes, and etc. Appendixes are inseparable components of this contract with equal authenticity.\
|
||||
10.11 Xiamen Yaji reserves the right of interpretation of the above provisions.\
|
||||
\
|
||||
\pard\pardeftab420\sl-500\qj\partightenfactor0
|
||||
|
||||
\f2 \cf2 Appendix A: Cocos2d-x
|
||||
\f0 Software License\
|
||||
Copyright (c) 2017-2019 Xiamen Yaji Software Co., Ltd.\
|
||||
Copyright (c) 2013-2016 Chukong Technologies\
|
||||
Copyright (c) 2010-2012 cocos2d-x community\
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\
|
||||
\
|
||||
Appendix B
|
||||
\f2 \'a3\'ba
|
||||
\f0 Spine Runtimes Software License\
|
||||
Version 2.5 \
|
||||
Copyright (c) 2013-2016, Esoteric Software\
|
||||
All rights reserved.\
|
||||
You are granted a perpetual, non-exclusive, non-sub-licensable, and non-transferable license to use, install, execute, and perform the Spine Runtimes software and derivative works solely for personal or internal use. Without the written permission of Esoteric Software (see Section 2 of the Spine Software License Agreement), you may not (a) modify, translate, adapt, or develop new applications using the Spine Runtimes or otherwise create derivative works or improvements of the Spine Runtimes or (b) remove, delete, alter, or obscure any trademarks or any copyright, trademark, patent, or other intellectual property or proprietary rights notices on or in the Software, including any copy thereof. Redistributions in binary or source form must include this license and terms.\
|
||||
THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
|
||||
\
|
||||
Appendix C
|
||||
\f2 \'a3\'baDragonBones
|
||||
\f0 Runtimes Software License\
|
||||
The MIT License (MIT)\
|
||||
Copyright (c) 2012-2018 The DragonBones team and other contributors.\
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\
|
||||
\
|
||||
Appendix D
|
||||
\f2 \'a3\'baMicrosoft tslib License\
|
||||
\
|
||||
Apache License\
|
||||
\
|
||||
Version 2.0, January 2004\
|
||||
\
|
||||
{\field{\*\fldinst{HYPERLINK "http://www.apache.org/licenses/"}}{\fldrslt http://www.apache.org/licenses/}} \
|
||||
\
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\
|
||||
\
|
||||
1. Definitions.\
|
||||
\
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\
|
||||
\
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\
|
||||
\
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\
|
||||
\
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\
|
||||
\
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\
|
||||
\
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\
|
||||
\
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\
|
||||
\
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\
|
||||
\
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\
|
||||
\
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\
|
||||
\
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\
|
||||
\
|
||||
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\
|
||||
\
|
||||
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\
|
||||
\
|
||||
You must give any other recipients of the Work or Derivative Works a copy of this License; and\
|
||||
\
|
||||
You must cause any modified files to carry prominent notices stating that You changed the files; and\
|
||||
\
|
||||
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\
|
||||
\
|
||||
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\
|
||||
\
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\
|
||||
\
|
||||
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\
|
||||
\
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\
|
||||
\
|
||||
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\
|
||||
\
|
||||
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\
|
||||
\
|
||||
END OF TERMS AND CONDITIONS
|
||||
\f0 \
|
||||
\
|
||||
}
|
||||
Executable
+450
@@ -0,0 +1,450 @@
|
||||
{\rtf1\ansi\ansicpg936\cocoartf1671\cocoasubrtf200
|
||||
{\fonttbl\f0\fnil\fcharset0 Calibri;\f1\fnil\fcharset134 SimSun;}
|
||||
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
|
||||
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
|
||||
\vieww12000\viewh15840\viewkind0
|
||||
\deftab420
|
||||
\pard\pardeftab420\sl-500\qj\partightenfactor0
|
||||
|
||||
\f0\fs21 \cf2 \
|
||||
\pard\pardeftab420\sl-500\qc\partightenfactor0
|
||||
|
||||
\f1 \cf2 \'ca\'da\'c8\'a8\'d0\'ad\'d2\'e9
|
||||
\f0 \
|
||||
\pard\pardeftab420\fi424\sl-500\partightenfactor0
|
||||
|
||||
\f1 \cf2 \'b1\'be\'ca\'da\'c8\'a8\'d0\'ad\'d2\'e9\'d6\'d0\'a1\'b0
|
||||
\f0 Cocos Creator 3D
|
||||
\f1 \'a1\'b1\'ca\'c7\'d6\'b8\'d3\'c9\'cf\'c3\'c3\'c5\'d1\'c5\'bb\'f9\'c8\'ed\'bc\'fe\'d3\'d0\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2\'b9\'b9\'b3\'c9\'cf\'c3\'c3\'c5\'d1\'c5\'bb\'f9\'d3\'eb\'d3\'c3\'bb\'a7\'d6\'ae\'bc\'e4\'cd\'ea\'d5\'fb\'b5\'c4\'d0\'ad\'d2\'e9\'a1\'a3
|
||||
\f0 \
|
||||
\pard\pardeftab420\sl-500\qj\partightenfactor0
|
||||
\cf2 10.11
|
||||
\f1 \'d2\'d4\'c9\'cf\'cc\'f5\'bf\'ee\'b5\'c4\'bd\'e2\'ca\'cd\'c8\'a8\'b9\'e9\'cf\'c3\'c3\'c5\'d1\'c5\'bb\'f9\'d7\'ee\'d6\'d5\'cb\'f9\'d3\'d0\'a1\'a3
|
||||
\f0 \
|
||||
\
|
||||
\pard\pardeftab420\sl-500\qj\partightenfactor0
|
||||
|
||||
\f1 \cf2 \'b8\'bd\'bc\'fe\'d2\'bb\'a3\'ba\
|
||||
Cocos2d-x
|
||||
\f0 Software License\
|
||||
Copyright (c) 2017-2019 Xiamen Yaji Software Co., Ltd.\
|
||||
Copyright (c) 2013-2016 Chukong Technologies\
|
||||
Copyright (c) 2010-2012 cocos2d-x community\
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\
|
||||
\
|
||||
|
||||
\f1 \'b8\'bd\'bc\'fe\'b6\'fe\'a3\'ba
|
||||
\f0 \
|
||||
Spine Runtimes Software License\
|
||||
Version 2.5 \
|
||||
Copyright (c) 2013-2016, Esoteric Software\
|
||||
All rights reserved.\
|
||||
You are granted a perpetual, non-exclusive, non-sublicensable, and non-transferable license to use, install, execute, and perform the Spine Runtimes software and derivative works solely for personal or internal use. Without the written permission of Esoteric Software (see Section 2 of the Spine Software License Agreement), you may not (a) modify, translate, adapt, or develop new applications using the Spine Runtimes or otherwise create derivative works or improvements of the Spine Runtimes or (b) remove, delete, alter, or obscure any trademarks or any copyright, trademark, patent, or other intellectual property or proprietary rights notices on or in the Software, including any copy thereof. Redistributions in binary or source form must include this license and terms.\
|
||||
THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
|
||||
\
|
||||
|
||||
\f1 \'b8\'bd\'bc\'fe\'c8\'fd\'a3\'ba
|
||||
\f0 \
|
||||
|
||||
\f1 DragonBones
|
||||
\f0 Runtimes Software License\
|
||||
The MIT License (MIT)\
|
||||
Copyright (c) 2012-2018 The DragonBones team and other contributors.\
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\
|
||||
\
|
||||
|
||||
\f1 \'b8\'bd\'bc\'fe\'cb\'c4\'a3\'ba
|
||||
\f0 \
|
||||
|
||||
\f1 Microsoft tslib License\
|
||||
\
|
||||
Apache License\
|
||||
\
|
||||
Version 2.0, January 2004\
|
||||
\
|
||||
{\field{\*\fldinst{HYPERLINK "http://www.apache.org/licenses/"}}{\fldrslt http://www.apache.org/licenses/}} \
|
||||
\
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\
|
||||
\
|
||||
1. Definitions.\
|
||||
\
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\
|
||||
\
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\
|
||||
\
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\
|
||||
\
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\
|
||||
\
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\
|
||||
\
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\
|
||||
\
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\
|
||||
\
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\
|
||||
\
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\
|
||||
\
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\
|
||||
\
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\
|
||||
\
|
||||
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\
|
||||
\
|
||||
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\
|
||||
\
|
||||
You must give any other recipients of the Work or Derivative Works a copy of this License; and\
|
||||
\
|
||||
You must cause any modified files to carry prominent notices stating that You changed the files; and\
|
||||
\
|
||||
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\
|
||||
\
|
||||
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\
|
||||
\
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\
|
||||
\
|
||||
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\
|
||||
\
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\
|
||||
\
|
||||
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\
|
||||
\
|
||||
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\
|
||||
\
|
||||
END OF TERMS AND CONDITIONS
|
||||
\f0 \
|
||||
|
||||
\f1 \
|
||||
}
|
||||
+1
-1
@@ -213,7 +213,7 @@ if (CC_DEV) {
|
||||
* If you post a bug to forum, please attach this flag.
|
||||
* @property {String} ENGINE_VERSION
|
||||
*/
|
||||
const engineVersion = '1.0.0 beta';
|
||||
const engineVersion = '1.0.0';
|
||||
_global['CocosEngine'] = cc.ENGINE_VERSION = engineVersion;
|
||||
|
||||
export default cc;
|
||||
|
||||
Reference in New Issue
Block a user