Skip to content

Commit

Permalink
#154 TextFieldのタップ処理を実装(WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Nov 24, 2024
1 parent 79281fe commit 2821fce
Show file tree
Hide file tree
Showing 20 changed files with 348 additions and 642 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { IPlayerOptions } from "../../interface/IPlayerOptions";
import { $player } from "../../Player";
import { $clamp } from "../../CoreUtil";
import { execute as playerRemoveLoadingElementService } from "../../Player/service/PlayerRemoveLoadingElementService";
import { execute as playerAppendCanvasElementService } from "../../Player/service/PlayerAppendCanvasElementService";
import { execute as playerAppendElementService } from "../../Player/service/PlayerAppendElementService";
import { execute as playerReadyCompleteUseCase } from "../../Player/usecase/PlayerReadyCompleteUseCase";
import { execute as playerBootUseCase } from "../../Player/usecase/PlayerBootUseCase";
import {
Sprite,
$stage
Expand Down Expand Up @@ -37,7 +37,7 @@ export const execute = async (
}

// boot player
$player.boot(options);
playerBootUseCase(options);

const root = $stage.addChild<Sprite>(new Sprite());

Expand All @@ -48,7 +48,7 @@ export const execute = async (
playerRemoveLoadingElementService();

// append canvas
playerAppendCanvasElementService();
playerAppendElementService();

return root;
};
6 changes: 3 additions & 3 deletions packages/core/src/Next2D/usecase/LoadUseCase.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { IPlayerOptions } from "../../interface/IPlayerOptions";
import type { IStageData } from "../../interface/IStageData";
import type { MovieClip } from "@next2d/display";
import { $player } from "../../Player";
import { $clamp } from "../../CoreUtil";
import { URLRequest } from "@next2d/net";
import { IOErrorEvent } from "@next2d/events";
import { execute as playerResizeEventUseCase } from "../../Player/usecase/PlayerResizeEventUseCase";
import { execute as playerRemoveLoadingElementService } from "../../Player/service/PlayerRemoveLoadingElementService";
import { execute as playerAppendCanvasElementService } from "../../Player/service/PlayerAppendCanvasElementService";
import { execute as playerAppendCanvasElementService } from "../../Player/service/PlayerAppendElementService";
import { execute as playerReadyCompleteUseCase } from "../../Player/usecase/PlayerReadyCompleteUseCase";
import { execute as playerBootUseCase } from "../../Player/usecase/PlayerBootUseCase";
import {
Loader,
$stage
Expand Down Expand Up @@ -47,7 +47,7 @@ export const execute = async (url: string, options: IPlayerOptions | null = null
}

// player
$player.boot(options);
playerBootUseCase(options);

const loader: Loader = new Loader();

Expand Down
Loading

0 comments on commit 2821fce

Please sign in to comment.