mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-19 14:52:40 +08:00
remove hidden (#10414)
* remove hidden * fix typo * fix unit-test * turn on auto fix
This commit is contained in:
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { BitmapFont, IConfig, FontLetterDefinition } from '../../assets/bitmap-font';
|
||||
import { SpriteFrame } from '../../assets/sprite-frame';
|
||||
import { isUnicodeCJK, isUnicodeSpace } from '../../utils/text-utils';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { FontAtlas } from '../../assets/bitmap-font';
|
||||
import { Color } from '../../../core/math';
|
||||
import { ImageAsset, Texture2D } from '../../../core/assets';
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
import { mixin } from '../../../core/utils/js';
|
||||
import { Label, LabelOutline } from '../../components';
|
||||
import { bmfontUtils } from './bmfontUtils';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { SpriteFrame } from '../../assets';
|
||||
import { Texture2D } from '../../../core/assets';
|
||||
import { fragmentText, safeMeasureText, getBaselineOffset, BASELINE_RATIO } from '../../utils/text-utils';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { maskAssembler as mask, maskEndAssembler as maskEnd } from './mask-assembler';
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Renderable2D } from '../../framework/renderable-2d';
|
||||
import { IAssemblerManager } from '../../renderer/base';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { IUV } from '../../assets';
|
||||
import { Mat4, Vec3, Color } from '../../../core/math';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Color, Mat4, Vec3 } from '../../core/math';
|
||||
import { RenderData } from '../renderer/render-data';
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
export * from './label';
|
||||
export { Mask } from './mask';
|
||||
export { RichText } from './rich-text';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export * from './canvas';
|
||||
export * from './ui-component';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import {
|
||||
CanvasPool,
|
||||
graphicsAssembler,
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { JSB } from 'internal:constants';
|
||||
import { Camera, Model } from 'cocos/core/renderer/scene';
|
||||
import type { UIStaticBatch } from '../components/ui-static-batch';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { JSB } from 'internal:constants';
|
||||
import { MeshBuffer } from './mesh-buffer';
|
||||
import { Material } from '../../core/assets/material';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { director } from '../../core/director';
|
||||
import { Material } from '../../core/assets/material';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Device, Attribute } from '../../core/gfx';
|
||||
import { MeshBuffer } from './mesh-buffer';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { ComparisonFunc, StencilOp, DepthStencilState } from '../../core/gfx';
|
||||
import { Mask } from '../components/mask';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { AttributeName, Format, FormatInfos, Attribute } from '../../core/gfx';
|
||||
import { legacyCC } from '../../core/global-exports';
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { warnID } from '../../core/platform/debug';
|
||||
import { safeMeasureText } from './text-utils';
|
||||
|
||||
@@ -24,11 +24,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { TEST } from 'internal:constants';
|
||||
import { legacyCC } from '../../core/global-exports';
|
||||
|
||||
|
||||
@@ -23,10 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
import './font-loader';
|
||||
|
||||
export * from './html-text-parser';
|
||||
|
||||
@@ -27,11 +27,6 @@
|
||||
import { RUNTIME_BASED } from 'internal:constants';
|
||||
import Pool from '../../core/utils/pool';
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
export const BASELINE_RATIO = 0.26;
|
||||
let _BASELINE_OFFSET = 0;
|
||||
if (RUNTIME_BASED) {
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { removeProperty, replaceProperty } from '../../core/utils';
|
||||
import { Mesh } from './mesh';
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import './deprecated';
|
||||
|
||||
export { Mesh } from './mesh';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
AttributeName, Buffer, BufferUsageBit, Device, Feature, MemoryUsageBit, DescriptorSet, BufferInfo,
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { AttributeName, Device, DescriptorSet } from '../../core/gfx';
|
||||
import { Mesh } from './mesh';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
export { MeshRenderer } from './mesh-renderer';
|
||||
|
||||
/** deprecated */
|
||||
|
||||
+1
-4
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import * as utils from './misc';
|
||||
import { legacyCC } from '../core/global-exports';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
export { DirectionalLight } from './directional-light-component';
|
||||
export { Light } from './light-component';
|
||||
export { SphereLight } from './sphere-light-component';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { JSB } from 'internal:constants';
|
||||
import type { AnimationClip } from '../../core/animation/animation-clip';
|
||||
import { Mesh } from '../assets/mesh';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Model } from '../../core/renderer/scene/model';
|
||||
import { MorphRenderingInstance } from '../assets/morph';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { JSB } from 'internal:constants';
|
||||
import { Material } from '../../core/assets/material';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import type { AnimationClip } from '../../core/animation/animation-clip';
|
||||
import type { Skeleton } from '../assets';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import './data-pool-manager';
|
||||
|
||||
export * from './skeletal-animation-data-hub';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { DEBUG } from 'internal:constants';
|
||||
import { Vec3, Quat, approx } from '../../core/math';
|
||||
import { Node } from '../../core/scene-graph';
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { EDITOR, JSB } from 'internal:constants';
|
||||
import type { AnimationClip } from '../../core/animation/animation-clip';
|
||||
import { SkelAnimDataHub } from './skeletal-animation-data-hub';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { AudioSource } from './audio-source';
|
||||
import { replaceProperty, markAsWarning } from '../core/utils/x-deprecated';
|
||||
|
||||
@@ -23,10 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import './audio-downloader';
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export * from './target-path';
|
||||
export * from './value-proxy';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { ccclass } from 'cc.decorator';
|
||||
import * as animation from './animation';
|
||||
import * as easing from '../easing/easing';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { binarySearchEpsilon as binarySearch } from '../algorithm/binary-search';
|
||||
import { errorID } from '../platform/debug';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { Mat4 } from '../math';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { ccclass, serializable } from 'cc.decorator';
|
||||
import { Node } from '../scene-graph/node';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export * from './uniform';
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { ccclass, serializable } from 'cc.decorator';
|
||||
import { MeshRenderer } from '../../../3d/framework/mesh-renderer';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { ccclass, float, serializable } from 'cc.decorator';
|
||||
import { builtinResMgr } from '../../builtin/builtin-res-mgr';
|
||||
|
||||
@@ -622,7 +622,7 @@ export class AssetManager {
|
||||
* @zh
|
||||
* 释放所有没有用到的资源。详细信息请参考 {{#crossLink "AssetManager/releaseAsset:method"}}{{/crossLink}}
|
||||
*
|
||||
* @hidden
|
||||
* @engineInternal
|
||||
*
|
||||
*/
|
||||
public releaseUnusedAssets () {
|
||||
|
||||
@@ -22,10 +22,6 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
import { EDITOR, TEST } from 'internal:constants';
|
||||
import { Asset } from '../assets';
|
||||
import { legacyCC } from '../global-exports';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { Asset } from '../assets/asset';
|
||||
import MissingScript from '../components/missing-script';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { getError } from '../platform/debug';
|
||||
import { CompleteCallback, IDownloadParseOptions } from './shared';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { CompleteCallback, IXHROptions } from './shared';
|
||||
|
||||
type FileProgressCallback = (loaded: number, total: number) => void;
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { getError } from '../platform/debug';
|
||||
import { CompleteCallback, IBundleOptions } from './shared';
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { VideoClip } from '../../video/assets/video-clip';
|
||||
import {
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Asset } from '../assets';
|
||||
import { error } from '../platform/debug';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export { default as assetManager, AssetManager } from './asset-manager';
|
||||
export { resources } from './bundle';
|
||||
|
||||
@@ -35,10 +35,7 @@ import { cache, checkCircleReference, clear, forEach, gatherAsset, getDepends, s
|
||||
import { legacyCC } from '../global-exports';
|
||||
import { nativeDependMap, onLoadedInvokedMap } from './depend-maps';
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
interface IProgress {
|
||||
finish: number;
|
||||
total: number;
|
||||
|
||||
@@ -25,10 +25,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { warnID } from '../platform/debug';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { CompleteCallbackNoData, RequestType, transformPipeline } from './shared';
|
||||
import Task from './task';
|
||||
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { EDITOR, TEST } from 'internal:constants';
|
||||
import { Asset } from '../assets/asset';
|
||||
import { isValid } from '../data/object';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { Asset } from '../assets/asset';
|
||||
import Bundle from './bundle';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { legacyCC } from '../global-exports';
|
||||
import { js, path } from '../utils';
|
||||
import Config, { IAddressableInfo, IAssetInfo } from './config';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { Asset, Prefab, SceneAsset } from '../assets';
|
||||
import { legacyCC } from '../global-exports';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { removeProperty, replaceProperty } from '../utils';
|
||||
import { TextureBase } from './texture-base';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import './deprecation';
|
||||
|
||||
export { Asset } from './asset';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export { default as System } from './system';
|
||||
export { default as MissingScript } from './missing-script';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { ISchedulable } from '../scheduler';
|
||||
import { Enum } from '../value-types/enum';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { DEV, EDITOR, SUPPORT_JIT, TEST } from 'internal:constants';
|
||||
import { errorID, warnID, error } from '../platform/debug';
|
||||
|
||||
@@ -24,10 +24,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
import { EDITOR, TEST, DEV, DEBUG, JSB, PREVIEW, SUPPORT_JIT } from 'internal:constants';
|
||||
import { legacyCC } from '../global-exports';
|
||||
import * as js from '../utils/js';
|
||||
@@ -667,9 +663,9 @@ class _Deserializer {
|
||||
|
||||
const rawDeserialize: CompiledDeserializeFn = deserialize;
|
||||
deserialize = function (deserializer: _Deserializer,
|
||||
object: Record<string, unknown>,
|
||||
deserialized: Record<string, unknown>,
|
||||
constructor: AnyFunction) {
|
||||
object: Record<string, unknown>,
|
||||
deserialized: Record<string, unknown>,
|
||||
constructor: AnyFunction) {
|
||||
try {
|
||||
if (!JSON.parse(JSON.stringify(deserialized._$erialized))) {
|
||||
error(`Unable to load previously serialized data. ${JSON.stringify(deserialized)}`);
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { EDITOR, TEST, PREVIEW, BUILD, DEBUG, JSB, DEV } from 'internal:constants';
|
||||
import { legacyCC } from '../global-exports';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
// Some helper methods for compile instantiation code
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { replaceProperty, removeProperty, markAsWarning } from './utils/x-deprecated';
|
||||
import * as math from './math';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { TEST } from 'internal:constants';
|
||||
import { Pool } from '../memop';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export type EventArgumentsOf<
|
||||
K extends string,
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { replaceProperty, removeProperty } from '../utils/x-deprecated';
|
||||
import { Line } from './line';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { replaceProperty, removeProperty } from '../utils/x-deprecated';
|
||||
import { legacyCC } from '../global-exports';
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { removeProperty, replaceProperty } from '../utils/x-deprecated';
|
||||
import { Device } from './base/device';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Buffer } from './base/buffer';
|
||||
import { CommandBuffer } from './base/command-buffer';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import * as debug from './platform/debug';
|
||||
import { _normalize, basename, changeBasename, changeExtname, dirname, extname, getSeperator, join, mainFileName, stripSep } from './utils/path';
|
||||
|
||||
@@ -1,33 +1,30 @@
|
||||
/*
|
||||
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
/*
|
||||
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://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.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
import { removeProperty, replaceProperty } from '../utils/x-deprecated';
|
||||
import { Color } from './color';
|
||||
import { Mat3 } from './mat3';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import * as bits from './bits';
|
||||
|
||||
|
||||
@@ -27,10 +27,7 @@
|
||||
* @packageDocumentation
|
||||
* @module core/math
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
export interface IColorLike {
|
||||
r: number;
|
||||
g: number;
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export * from './pool';
|
||||
export * from './recycle-pool';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { BufferUsageBit, Format, MemoryUsageBit, Device, DescriptorSet, InputAssembler,
|
||||
InputAssemblerInfo, Attribute, Buffer, BufferInfo, Shader } from '../gfx';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Pass } from '../renderer';
|
||||
import { IInstancedAttributeBlock, SubModel } from '../renderer/scene';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export const getPhaseID = (() => {
|
||||
const phases: Map<string, number> = new Map<string, number>();
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Shader, RenderPass, InputAssembler, Device, PipelineState, InputState, PipelineStateInfo } from '../gfx';
|
||||
import { Pass } from '../renderer/core/pass';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { AABB, Frustum, intersect, Sphere } from '../geometry';
|
||||
import { Model } from '../renderer/scene/model';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import './deprecated';
|
||||
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Rect } from '../math';
|
||||
import { legacyCC } from '../global-exports';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
let _stageOffset = 0;
|
||||
const _name2stageID = {};
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export enum RenderQueue {
|
||||
OPAQUE = 0,
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { DEBUG } from 'internal:constants';
|
||||
import { NativeBufferPool } from './native-pools';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
export class NativeBufferPool {
|
||||
private _arrayBuffers: ArrayBuffer[] = [];
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { getTypedArrayConstructor, Format, FormatInfos, TextureType, TextureUsageBit,
|
||||
TextureFlagBit, Texture, TextureInfo, Device, BufferTextureCopy } from '../../gfx';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { Attribute, Buffer, BufferInfo, Device, InputAssemblerInfo, AttributeName, BufferUsageBit, Format, MemoryUsageBit } from '../gfx';
|
||||
import { IGeometry } from '../../primitive/define';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { EDITOR, DEV, TEST } from 'internal:constants';
|
||||
import { CCObject } from '../data/object';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { EDITOR } from 'internal:constants';
|
||||
import { ccclass } from 'cc.decorator';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { CallbacksInvoker } from '../event/callbacks-invoker';
|
||||
import { Event, EventMouse, EventTouch } from '../../input/types';
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import * as easing from './easing/easing';
|
||||
import { Material } from './assets/material';
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
import { EDITOR, DEV } from 'internal:constants';
|
||||
import { getClassName, getset, isEmptyObject } from './js';
|
||||
|
||||
@@ -36,10 +36,7 @@
|
||||
* @return {number} 32-bit positive integer hash
|
||||
*/
|
||||
|
||||
/**
|
||||
* @packageDocumentation
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
|
||||
const getUint8ForString = String.prototype.charCodeAt;
|
||||
function getUint8ForArray (this: Uint8Array, idx: number) { return this[idx]; }
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user