Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing deform timeline type when convert to binary #23

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dragonbones-tools",
"version": "0.1.01",
"version": "0.1.02",
"author": "dragonbones",
"description": "Dragonbones tools.",
"license": "MIT",
Expand Down Expand Up @@ -28,4 +28,4 @@
"commander": "^2.11.0",
"fs-extra": "^4.0.1"
}
}
}
3 changes: 2 additions & 1 deletion src/action/toBinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export default function (data: dbft.DragonBones): ArrayBuffer {
}

const timelines = currentAnimationBinary.slot[timeline.slot];
timelines.push(dbft.TimelineType.SlotDeform);
timelines.push(createDeformTimeline(timeline));
}

Expand Down Expand Up @@ -1057,4 +1058,4 @@ function stringToUTF8Array(string: string): number[] {
}

return result;
}
}
2 changes: 1 addition & 1 deletion src/common/nodeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function findIP(): string {
const ipConfig = os.networkInterfaces();
let ip = "localhost";
for (const k in ipConfig) {
const arr = ipConfig[k];
const arr = ipConfig[k]!;
for (let i = 0; i < arr.length; ++i) {
const ipData = arr[i];
if (!ipData.internal && ipData.family === "IPv4") {
Expand Down
2 changes: 1 addition & 1 deletion src/helper/helperRemote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function start(): void {

const portServer = http.createServer();
portServer.listen(0, () => {
const port = portServer.address().port;
const port = (portServer.address() as any).port;
portServer.close();
gate.start("dragonbones", port, "/dragonbones_helper");
nodeUtils.open(`http://${nodeUtils.findIP()}:${port}/dragonbones_helper/resource/helper.html`);
Expand Down
3 changes: 2 additions & 1 deletion src/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ function execute(): void {

const portServer = http.createServer();
portServer.listen(0, () => {
const port = portServer.address().port;
const port = (portServer.address() as any).port;
portServer.close();
gate.start("dragonbones", port, "/dragonbones");

console.log(`http://${nodeUtils.findIP()}:${port}/dragonbones`);
});
}
Expand Down
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"compilerOptions": {
"watch": false,
"sourceMap": false,
"declaration": false,
"skipLibCheck": true,
"alwaysStrict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es5",
Expand Down