@akashic/akashic-engine
Advanced tools
Comparing version 3.0.0-beta.23 to 3.0.0-beta.24
# ChangeLog | ||
## 3.0.0-beta.24 | ||
その他変更 | ||
* `src/pdi-common-impls` に `PdiCommonUtil.ts` を追加 | ||
* `src/engine/PathUtil` の一部関数を `PdiCommonUtil.ts` へ移動 | ||
## 3.0.0-beta.23 | ||
@@ -4,0 +10,0 @@ |
@@ -16,3 +16,3 @@ "use strict"; | ||
function normalizeAudioSystemConfMap(confMap) { | ||
confMap = confMap || {}; | ||
if (confMap === void 0) { confMap = {}; } | ||
var systemDefaults = { | ||
@@ -403,3 +403,3 @@ music: { | ||
var system = conf.systemId ? this._audioSystemManager[conf.systemId] : this._audioSystemManager[this._defaultAudioSystemId]; | ||
return resourceFactory.createAudioAsset(id, uri, conf.duration, system, conf.loop, conf.hint); | ||
return resourceFactory.createAudioAsset(id, uri, conf.duration, system, !!conf.loop, conf.hint); | ||
case "text": | ||
@@ -412,3 +412,4 @@ return resourceFactory.createTextAsset(id, uri); | ||
// 以上を踏まえ、ここでは簡単のために都度新たなVideoSystemインスタンスを生成している。 | ||
return resourceFactory.createVideoAsset(id, uri, conf.width, conf.height, new VideoSystem_1.VideoSystem(), conf.loop, conf.useRealSize); | ||
var videoSystem = new VideoSystem_1.VideoSystem(); | ||
return resourceFactory.createVideoAsset(id, uri, conf.width, conf.height, videoSystem, !!conf.loop, !!conf.useRealSize); | ||
default: | ||
@@ -420,3 +421,3 @@ throw ExceptionFactory_1.ExceptionFactory.createAssertionError("AssertionError#_createAssetFor: unknown asset type " + conf.type + " for asset ID: " + id); | ||
var asset = this._assets[assetId] || (this._loadings[assetId] && this._loadings[assetId].asset); | ||
var path; | ||
var path = null; | ||
if (asset) { | ||
@@ -423,0 +424,0 @@ path = asset.path; |
@@ -89,3 +89,3 @@ import { AudioAssetLike } from "../pdi-types/AudioAssetLike"; | ||
*/ | ||
_player: AudioPlayerLike; | ||
_player: AudioPlayerLike | undefined; | ||
get player(): AudioPlayerLike; | ||
@@ -92,0 +92,0 @@ set player(v: AudioPlayerLike); |
@@ -71,3 +71,3 @@ import { GlyphArea, GlyphLike } from "../pdi-types/GlyphLike"; | ||
*/ | ||
glyphForCharacter(code: number): GlyphLike; | ||
glyphForCharacter(code: number): GlyphLike | null; | ||
/** | ||
@@ -74,0 +74,0 @@ * 利用している `Surface` を破棄した上で、このフォントを破棄する。 |
@@ -31,7 +31,7 @@ import { CommonSize } from "../../pdi-types/commons"; | ||
*/ | ||
_cache: SurfaceLike; | ||
_cache: SurfaceLike | undefined; | ||
/** | ||
* @private | ||
*/ | ||
_renderer: RendererLike; | ||
_renderer: RendererLike | undefined; | ||
/** | ||
@@ -42,3 +42,3 @@ * このエンティティを最後に描画した時の`Camrera`。 | ||
*/ | ||
_renderedCamera: Camera; | ||
_renderedCamera: Camera | undefined; | ||
/** | ||
@@ -45,0 +45,0 @@ * 描画されるキャッシュサイズ。 |
@@ -137,7 +137,7 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
children: E[]; | ||
children: E[] | undefined; | ||
/** | ||
* 親。 | ||
*/ | ||
parent: E | Scene; | ||
parent: E | Scene | undefined; | ||
/** | ||
@@ -168,3 +168,3 @@ * このエンティティが属するシーン。 | ||
*/ | ||
shaderProgram: ShaderProgramLike; | ||
shaderProgram: ShaderProgramLike | null | undefined; | ||
/** | ||
@@ -281,3 +281,3 @@ * 子にtouchableなものが含まれているかどうかを表す。 | ||
*/ | ||
insertBefore(e: E, target: E): void; | ||
insertBefore(e: E, target: E | undefined): void; | ||
/** | ||
@@ -338,3 +338,3 @@ * 子を削除する。 | ||
*/ | ||
findPointSourceByPoint(point: CommonOffset, m?: Matrix, force?: boolean): PointSource; | ||
findPointSourceByPoint(point: CommonOffset, m?: Matrix, force?: boolean): PointSource | undefined; | ||
/** | ||
@@ -362,3 +362,3 @@ * このEが表示状態であるかどうかを返す。 | ||
*/ | ||
calculateBoundingRect(): CommonRect; | ||
calculateBoundingRect(): CommonRect | undefined; | ||
/** | ||
@@ -377,3 +377,3 @@ * このEの位置を基準とした相対座標をゲームの左上端を基準とした座標に変換する。 | ||
*/ | ||
_calculateBoundingRect(m?: Matrix): CommonRect; | ||
_calculateBoundingRect(m?: Matrix): CommonRect | undefined; | ||
/** | ||
@@ -380,0 +380,0 @@ * @private |
@@ -517,5 +517,6 @@ "use strict"; | ||
if (this._hasTouchableChildren || (force && this.children && this.children.length)) { | ||
var children = this.children; | ||
if (this.shouldFindChildrenByPoint(p)) { | ||
for (var i = this.children.length - 1; i >= 0; --i) { | ||
var child = this.children[i]; | ||
for (var i = children.length - 1; i >= 0; --i) { | ||
var child = children[i]; | ||
if (force || child._touchable || child._hasTouchableChildren) { | ||
@@ -522,0 +523,0 @@ var target = child.findPointSourceByPoint(point, m, force); |
@@ -87,3 +87,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
interval: number; | ||
interval: number | undefined; | ||
/** | ||
@@ -108,3 +108,3 @@ * アニメーションをループ再生させるか否か。 | ||
*/ | ||
_timer: Timer; | ||
_timer: Timer | undefined; | ||
/** | ||
@@ -111,0 +111,0 @@ * @private |
@@ -58,3 +58,3 @@ import { CommonArea, CommonOffset, CommonRect } from "../../pdi-types/commons"; | ||
*/ | ||
backgroundEffector: SurfaceEffector; | ||
backgroundEffector: SurfaceEffector | undefined; | ||
/** | ||
@@ -83,10 +83,6 @@ * @private | ||
*/ | ||
_bgSurface: SurfaceLike; | ||
_bgSurface: SurfaceLike | undefined; | ||
/** | ||
* @private | ||
*/ | ||
_bgRenderer: RendererLike; | ||
/** | ||
* @private | ||
*/ | ||
_oldWidth: number; | ||
@@ -152,3 +148,3 @@ /** | ||
*/ | ||
_calculateBoundingRect(m?: Matrix): CommonRect; | ||
_calculateBoundingRect(m?: Matrix): CommonRect | undefined; | ||
} |
@@ -39,7 +39,5 @@ "use strict"; | ||
_this._shouldRenderChildren = false; | ||
_this._padding = param.padding; | ||
_this._padding = param.padding || 0; | ||
_this._initialize(); | ||
_this._paddingChanged = false; | ||
_this._bgSurface = undefined; | ||
_this._bgRenderer = undefined; | ||
return _this; | ||
@@ -174,3 +172,3 @@ } | ||
Pane.prototype._initialize = function () { | ||
var p = this._padding === undefined ? 0 : this._padding; | ||
var p = this._padding; | ||
var r; | ||
@@ -177,0 +175,0 @@ if (typeof p === "number") { |
@@ -83,3 +83,3 @@ import { ImageAssetLike } from "../../pdi-types/ImageAssetLike"; | ||
*/ | ||
_stretchMatrix: Matrix; | ||
_stretchMatrix: Matrix | undefined; | ||
/** | ||
@@ -86,0 +86,0 @@ * @private |
@@ -20,3 +20,3 @@ import { GlyphLike } from "../pdi-types/GlyphLike"; | ||
*/ | ||
abstract glyphForCharacter(code: number): GlyphLike; | ||
abstract glyphForCharacter(code: number): GlyphLike | null; | ||
abstract destroy(): void; | ||
@@ -23,0 +23,0 @@ abstract destroyed(): boolean; |
@@ -19,3 +19,3 @@ "use strict"; | ||
var actualBoundingBoxRight = 0; | ||
var lastGlyph; | ||
var lastGlyph = null; | ||
for (var i = 0; i < text.length; i++) { | ||
@@ -22,0 +22,0 @@ var code = Util_1.Util.charCodeAt(text, i); |
@@ -210,3 +210,3 @@ import * as pl from "@akashic/playlog"; | ||
*/ | ||
selfId: string; | ||
selfId: string | undefined; | ||
/** | ||
@@ -260,3 +260,3 @@ * 本ゲームで利用可能なオーディオシステム群。musicとsoundが登録されている。 | ||
*/ | ||
playId: string; | ||
playId: string | undefined; | ||
/** | ||
@@ -315,3 +315,3 @@ * ロードしている操作プラグインを保持するオブジェクト。 | ||
*/ | ||
surfaceAtlasSet: SurfaceAtlasSetLike; | ||
surfaceAtlasSet: SurfaceAtlasSetLike | undefined; | ||
/** | ||
@@ -429,3 +429,3 @@ * 操作プラグインの管理者。 | ||
*/ | ||
_mainParameter: GameMainParameterObject; | ||
_mainParameter: GameMainParameterObject | undefined; | ||
/** | ||
@@ -492,3 +492,3 @@ * アセットの管理者。 | ||
*/ | ||
_focusingCamera: Camera; | ||
_focusingCamera: Camera | undefined; | ||
/** | ||
@@ -546,4 +546,4 @@ * このゲームの設定(game.json の内容)。 | ||
*/ | ||
get focusingCamera(): Camera; | ||
set focusingCamera(c: Camera); | ||
get focusingCamera(): Camera | undefined; | ||
set focusingCamera(c: Camera | undefined); | ||
/** | ||
@@ -638,3 +638,3 @@ * `Game` のインスタンスを生成する。 | ||
*/ | ||
findPointSource(point: CommonOffset, camera?: Camera): PointSource; | ||
findPointSource(point: CommonOffset, camera?: Camera): PointSource | undefined; | ||
/** | ||
@@ -802,3 +802,3 @@ * このGameにエンティティを登録する。 | ||
*/ | ||
_updateEventTriggers(scene: Scene): void; | ||
_updateEventTriggers(scene: Scene | undefined): void; | ||
/** | ||
@@ -805,0 +805,0 @@ * @private |
@@ -182,3 +182,3 @@ "use strict"; | ||
scene: scene, | ||
preserveCurrent: preserveCurrent | ||
preserveCurrent: !!preserveCurrent | ||
}); | ||
@@ -202,3 +202,3 @@ }; | ||
for (var i = 0; i < step; i++) { | ||
this._postTickTasks.push({ type: 2 /* PopScene */, preserveCurrent: preserve }); | ||
this._postTickTasks.push({ type: 2 /* PopScene */, preserveCurrent: !!preserve }); | ||
} | ||
@@ -227,3 +227,3 @@ }; | ||
Game.prototype.tick = function (advanceAge, omittedTickCount, events) { | ||
var scene; | ||
var scene = null; | ||
if (this._isTerminated) | ||
@@ -321,3 +321,6 @@ return false; | ||
camera = this.focusingCamera; | ||
return this.scene().findPointSourceByPoint(point, false, camera); | ||
var scene = this.scene(); | ||
if (!scene) | ||
return undefined; | ||
return scene.findPointSourceByPoint(point, false, camera); | ||
}; | ||
@@ -552,6 +555,6 @@ /** | ||
Game.prototype._decodeOperationPluginOperation = function (code, op) { | ||
var plugins = this.operationPluginManager.plugins; | ||
if (!plugins[code] || !plugins[code].decode) | ||
var plugin = this.operationPluginManager.plugins[code]; | ||
if (!plugin || !plugin.decode) | ||
return op; | ||
return plugins[code].decode(op); | ||
return plugin.decode(op); | ||
}; | ||
@@ -654,10 +657,2 @@ /** | ||
this.random = undefined; | ||
this.onJoin.destroy(); | ||
this.onJoin = undefined; | ||
this.onLeave.destroy(); | ||
this.onLeave = undefined; | ||
this.onSeed.destroy(); | ||
this.onSeed = undefined; | ||
this.onPlayerInfo.destroy(); | ||
this.onPlayerInfo = undefined; | ||
this._modified = false; | ||
@@ -674,10 +669,11 @@ this.age = 0; | ||
this.defaultAudioSystemId = undefined; | ||
this.onSnapshotRequest.destroy(); | ||
this.onSnapshotRequest = undefined; | ||
this.handlerSet = undefined; | ||
// TODO より能動的にdestroy処理を入れるべきかもしれない | ||
this.resourceFactory = undefined; | ||
this.storage = undefined; | ||
this.playId = undefined; | ||
this.operationPlugins = undefined; // this._operationPluginManager.pluginsのエイリアスなので、特に破棄処理はしない。 | ||
this.onJoin.destroy(); | ||
this.onJoin = undefined; | ||
this.onLeave.destroy(); | ||
this.onLeave = undefined; | ||
this.onSeed.destroy(); | ||
this.onSeed = undefined; | ||
this.onPlayerInfo.destroy(); | ||
this.onPlayerInfo = undefined; | ||
this.onResized.destroy(); | ||
@@ -687,7 +683,17 @@ this.onResized = undefined; | ||
this.onSkipChange = undefined; | ||
this._eventTriggerMap = undefined; | ||
this._initialScene = undefined; | ||
this._defaultLoadingScene = undefined; | ||
this.onSceneChange.destroy(); | ||
this.onSceneChange = undefined; | ||
this.onSnapshotRequest.destroy(); | ||
this.onSnapshotRequest = undefined; | ||
this.join = undefined; | ||
this.leave = undefined; | ||
this.seed = undefined; | ||
this.playerInfo = undefined; | ||
this.snapshotRequest = undefined; | ||
this.resized = undefined; | ||
this.skippingChanged = undefined; | ||
this._sceneChanged = undefined; | ||
this._loaded = undefined; | ||
this._started = undefined; | ||
this._operationPluginOperated = undefined; | ||
this._onSceneChange.destroy(); | ||
@@ -699,2 +705,10 @@ this._onSceneChange = undefined; | ||
this._onStart = undefined; | ||
// TODO より能動的にdestroy処理を入れるべきかもしれない | ||
this.resourceFactory = undefined; | ||
this.storage = undefined; | ||
this.playId = undefined; | ||
this.operationPlugins = undefined; // this._operationPluginManager.pluginsのエイリアスなので、特に破棄処理はしない。 | ||
this._eventTriggerMap = undefined; | ||
this._initialScene = undefined; | ||
this._defaultLoadingScene = undefined; | ||
this._main = undefined; | ||
@@ -707,3 +721,2 @@ this._mainFunc = undefined; | ||
this._pointEventResolver = undefined; | ||
this.audio = undefined; | ||
this.operationPluginManager = undefined; | ||
@@ -720,15 +733,6 @@ this._onOperationPluginOperated.destroy(); | ||
this._postTickTasks = []; | ||
this.surfaceAtlasSet.destroy(); | ||
if (this.surfaceAtlasSet) { | ||
this.surfaceAtlasSet.destroy(); | ||
} | ||
this.surfaceAtlasSet = undefined; | ||
this.join = undefined; | ||
this.leave = undefined; | ||
this.seed = undefined; | ||
this.playerInfo = undefined; | ||
this.snapshotRequest = undefined; | ||
this.resized = undefined; | ||
this.skippingChanged = undefined; | ||
this._sceneChanged = undefined; | ||
this._loaded = undefined; | ||
this._started = undefined; | ||
this._operationPluginOperated = undefined; | ||
}; | ||
@@ -863,2 +867,4 @@ /** | ||
var scene = this.scenes.pop(); | ||
if (!scene) | ||
throw ExceptionFactory_1.ExceptionFactory.createAssertionError("Game#_doPopScene: invalid call; scene stack underflow"); | ||
if (scene === this._initialScene) | ||
@@ -878,3 +884,3 @@ throw ExceptionFactory_1.ExceptionFactory.createAssertionError("Game#_doPopScene: invalid call; attempting to pop the initial scene"); | ||
if (this._mainFunc) { | ||
this._mainFunc(this._runtimeValueBase, this._mainParameter); | ||
this._mainFunc(this._runtimeValueBase, this._mainParameter || {}); | ||
} | ||
@@ -881,0 +887,0 @@ else if (this._main) { |
@@ -141,3 +141,3 @@ import { CommonArea, CommonOffset, CommonSize } from "../pdi-types/commons"; | ||
*/ | ||
compositeOperation: CompositeOperation | CompositeOperationString; | ||
compositeOperation: CompositeOperation | CompositeOperationString | undefined; | ||
/** | ||
@@ -177,3 +177,3 @@ * オブジェクトのアンカーの横位置。アンカーについては以下の通り。 | ||
*/ | ||
_matrix: Matrix; | ||
_matrix: Matrix | undefined; | ||
/** | ||
@@ -180,0 +180,0 @@ * デフォルト値で `Object2D` のインスタンスを生成する。 |
@@ -75,5 +75,6 @@ "use strict"; | ||
OperationPluginManager.prototype.start = function (code) { | ||
if (!this._infos[code] || !this._infos[code]._plugin) | ||
var info = this._infos[code]; | ||
if (!info || !info._plugin) | ||
return; | ||
this._infos[code]._plugin.start(); | ||
info._plugin.start(); | ||
}; | ||
@@ -85,5 +86,6 @@ /** | ||
OperationPluginManager.prototype.stop = function (code) { | ||
if (!this._infos[code] || !this._infos[code]._plugin) | ||
var info = this._infos[code]; | ||
if (!info || !info._plugin) | ||
return; | ||
this._infos[code]._plugin.stop(); | ||
info._plugin.stop(); | ||
}; | ||
@@ -90,0 +92,0 @@ OperationPluginManager.prototype.destroy = function () { |
@@ -32,8 +32,2 @@ /** | ||
/** | ||
* 与えられたパス文字列に与えられた拡張子を追加する。 | ||
* @param path パス文字列 | ||
* @param ext 追加する拡張子 | ||
*/ | ||
function addExtname(path: string, ext: string): string; | ||
/** | ||
* 与えられたパス文字列からホストを切り出す。 | ||
@@ -40,0 +34,0 @@ * @param path パス文字列 |
@@ -105,16 +105,2 @@ "use strict"; | ||
/** | ||
* 与えられたパス文字列に与えられた拡張子を追加する。 | ||
* @param path パス文字列 | ||
* @param ext 追加する拡張子 | ||
*/ | ||
function addExtname(path, ext) { | ||
var index = path.indexOf("?"); | ||
if (index === -1) { | ||
return path + "." + ext; | ||
} | ||
// hoge?query => hoge.ext?query | ||
return path.substring(0, index) + "." + ext + path.substring(index, path.length); | ||
} | ||
PathUtil.addExtname = addExtname; | ||
/** | ||
* 与えられたパス文字列からホストを切り出す。 | ||
@@ -121,0 +107,0 @@ * @param path パス文字列 |
@@ -175,3 +175,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
name: string; | ||
name: string | undefined; | ||
/** | ||
@@ -251,3 +251,3 @@ * 時間経過イベント。本イベントの一度のfireにつき、常に1フレーム分の時間経過が起こる。 | ||
*/ | ||
storageValues: StorageValueStore; | ||
storageValues: StorageValueStore | undefined; | ||
/** | ||
@@ -328,3 +328,3 @@ * 時間経過イベント。本イベントの一度のfireにつき、常に1フレーム分の時間経過が起こる。 | ||
*/ | ||
_storageLoader: StorageLoader; | ||
_storageLoader: StorageLoader | undefined; | ||
/** | ||
@@ -520,3 +520,3 @@ * アセットとストレージの読み込みが終わったことを通知するTrigger。 | ||
*/ | ||
insertBefore(e: E, target: E): void; | ||
insertBefore(e: E, target: E | undefined): void; | ||
/** | ||
@@ -523,0 +523,0 @@ * 子エンティティを削除する。 |
@@ -324,5 +324,3 @@ "use strict"; | ||
var children = this.children; | ||
var m = undefined; | ||
if (camera && camera instanceof Camera2D_1.Camera2D) | ||
m = camera.getMatrix(); | ||
var m = camera && camera instanceof Camera2D_1.Camera2D ? camera.getMatrix() : null; | ||
for (var i = children.length - 1; i >= 0; --i) { | ||
@@ -410,3 +408,3 @@ var ret = children[i].findPointSourceByPoint(point, m, force); | ||
Scene.prototype._needsLoading = function () { | ||
return this._sceneAssetHolder.waitingAssetsCount > 0 || (this._storageLoader && !this._storageLoader._loaded); | ||
return this._sceneAssetHolder.waitingAssetsCount > 0 || (!!this._storageLoader && !this._storageLoader._loaded); | ||
}; | ||
@@ -413,0 +411,0 @@ /** |
@@ -171,3 +171,3 @@ import { StorageLoadError } from "../pdi-types/errors"; | ||
*/ | ||
_values: StorageValue[][]; | ||
_values: StorageValue[][] | undefined; | ||
constructor(keys: StorageKey[], values?: StorageValue[][]); | ||
@@ -179,3 +179,3 @@ /** | ||
*/ | ||
get(keyOrIndex: StorageReadKey | number): StorageValue[]; | ||
get(keyOrIndex: StorageReadKey | number): StorageValue[] | undefined; | ||
/** | ||
@@ -187,3 +187,3 @@ * 値を `StorageKey` またはインデックスから取得する。 | ||
*/ | ||
getOne(keyOrIndex: StorageReadKey | number): StorageValue; | ||
getOne(keyOrIndex: StorageReadKey | number): StorageValue | undefined; | ||
} | ||
@@ -239,3 +239,3 @@ export declare type StorageValueStoreSerialization = any; | ||
*/ | ||
_write: (key: StorageKey, value: StorageValue, option: StorageWriteOption) => void; | ||
_write: (key: StorageKey, value: StorageValue, option?: StorageWriteOption) => void; | ||
/** | ||
@@ -269,3 +269,3 @@ * @private | ||
*/ | ||
_registerWrite(write: (key: StorageKey, value: StorageValue, option: StorageWriteOption) => void): void; | ||
_registerWrite(write: (key: StorageKey, value: StorageValue, option?: StorageWriteOption) => void): void; | ||
/** | ||
@@ -272,0 +272,0 @@ * @private |
@@ -81,3 +81,3 @@ import { CommonSize } from "../pdi-types/commons"; | ||
*/ | ||
_moveGlyphSurface(glyph: GlyphLike): SurfaceAtlasLike; | ||
_moveGlyphSurface(glyph: GlyphLike): SurfaceAtlasLike | null; | ||
/** | ||
@@ -138,3 +138,3 @@ * サーフェスアトラスの再割り当てを行う。 | ||
*/ | ||
addGlyph(glyph: GlyphLike): SurfaceAtlasLike; | ||
addGlyph(glyph: GlyphLike): SurfaceAtlasLike | null; | ||
/** | ||
@@ -141,0 +141,0 @@ * このインスタンスを破棄する。 |
@@ -95,3 +95,3 @@ "use strict"; | ||
var glyph = glyphs[i]; | ||
glyph.surface = null; | ||
glyph.surface = undefined; | ||
glyph.isSurfaceValid = false; | ||
@@ -98,0 +98,0 @@ glyph._atlas = null; |
@@ -86,3 +86,3 @@ import { CommonSize } from "../pdi-types/commons"; | ||
*/ | ||
addGlyph(glyph: GlyphLike): SurfaceAtlasLike; | ||
addGlyph(glyph: GlyphLike): SurfaceAtlasLike | null; | ||
/** | ||
@@ -89,0 +89,0 @@ * このサーフェスアトラスの破棄を行う。 |
@@ -11,3 +11,3 @@ import { CommonRect } from "../pdi-types/commons"; | ||
*/ | ||
function asSurface(src: ImageAssetLike | SurfaceLike): SurfaceLike; | ||
function asSurface(src: ImageAssetLike | SurfaceLike | undefined): SurfaceLike; | ||
type AnimatingHandler = { | ||
@@ -14,0 +14,0 @@ /** |
@@ -24,3 +24,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
_fired: (c: TimerIdentifier) => void; | ||
_fired: ((c: TimerIdentifier) => void) | undefined; | ||
/** | ||
@@ -27,0 +27,0 @@ * @private |
@@ -43,2 +43,3 @@ export * from "@akashic/trigger"; | ||
export * from "./pdi-common-impls/ImageAsset"; | ||
export * from "./pdi-common-impls/PdiCommonUtil"; | ||
export * from "./pdi-common-impls/Renderer"; | ||
@@ -45,0 +46,0 @@ export * from "./pdi-common-impls/ResourceFactory"; |
@@ -19,2 +19,3 @@ "use strict"; | ||
__export(require("./pdi-common-impls/ImageAsset")); | ||
__export(require("./pdi-common-impls/PdiCommonUtil")); | ||
__export(require("./pdi-common-impls/Renderer")); | ||
@@ -21,0 +22,0 @@ __export(require("./pdi-common-impls/ResourceFactory")); |
@@ -27,3 +27,3 @@ import { AudioAssetHint } from "../pdi-types/AudioAssetHint"; | ||
*/ | ||
_lastPlayedPlayer: AudioPlayerLike; | ||
_lastPlayedPlayer: AudioPlayerLike | undefined; | ||
constructor(id: string, assetPath: string, duration: number, system: AudioSystemLike, loop: boolean, hint: AudioAssetHint); | ||
@@ -30,0 +30,0 @@ play(): AudioPlayerLike; |
@@ -17,3 +17,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
currentAudio: AudioAssetLike; | ||
currentAudio: AudioAssetLike | undefined; | ||
/** | ||
@@ -20,0 +20,0 @@ * `play()` が呼び出された時に通知される `Trigger` 。 |
@@ -14,3 +14,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
currentVideo: VideoAssetLike; | ||
currentVideo: VideoAssetLike | undefined; | ||
/** | ||
@@ -17,0 +17,0 @@ * `play()` が呼び出された時に通知される `Trigger` 。 |
@@ -19,3 +19,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
currentAudio: AudioAssetLike; | ||
currentAudio: AudioAssetLike | undefined; | ||
/** | ||
@@ -22,0 +22,0 @@ * `play()` が呼び出された時に通知される `Trigger` 。 |
@@ -52,3 +52,3 @@ import { SurfaceAtlasLike } from "./SurfaceAtlasLike"; | ||
*/ | ||
surface: SurfaceLike; | ||
surface: SurfaceLike | undefined; | ||
/** | ||
@@ -55,0 +55,0 @@ * X軸方向についての描画位置調整量。 |
@@ -17,3 +17,3 @@ import { Trigger } from "@akashic/trigger"; | ||
*/ | ||
currentVideo: VideoAssetLike; | ||
currentVideo: VideoAssetLike | undefined; | ||
/** | ||
@@ -20,0 +20,0 @@ * `play()` が呼び出された時に通知される `Trigger` 。 |
{ | ||
"name": "@akashic/akashic-engine", | ||
"version": "3.0.0-beta.23", | ||
"version": "3.0.0-beta.24", | ||
"description": "The core library of Akashic Engine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1310447
260
27189