Commit 91184f87 authored by limingzhe's avatar limingzhe

feat: 缩放

parent b045e9c6
......@@ -98,7 +98,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
getJumpData() {
return {step: 2};
return //{step: 2};
}
......@@ -582,6 +582,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
animaNode.scale = this._mapScaleMin;
if (this.data.scale) {
animaNode.scale *= this.data.scale;
}
// dragonDisplay.timeScale = 50;
......@@ -616,6 +619,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.animaNode = animaNode;
cb && cb();
console.log("animaNode: ", animaNode);
});
......
export const defaultData = {"songArr":[{},{},{},{}],"lrcData":{"audio_url":"http://staging-teach.cdn.ireadabc.com/16cebf8be768535b68df70b8d25a7462.mp3","fontSize":24,"lineHeight":32,"lyrics":[{"time":20.399973,"data":"zi zi zi ...","newLine":false},{"time":23.867417,"data":"","newLine":false},{"time":26.611311,"data":"This wheel is for the bicycle. This wheel is for the bicycle This wheel is for the bicycle This wheel is for the bicycle ","newLine":false},{"time":30.723609,"data":"","newLine":false}]},"stepArr":[{"text":"432","px":"0","X":"0.2","Y":"0.3"},{"text":"648","X":"0","Y":"0"}],"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/275aa8c510a1ee7b936ca837de00ca2a.json","name":"1_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/fec620437ee4d51e11e7fe7a524f06ea.json","name":"1_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/4fb895205ad5787e582cd65e517026d6.png","name":"1_tex.png"},"frame":"24"}
\ No newline at end of file
export const defaultData = {"songArr":[{},{},{},{}],"lrcData":{"audio_url":"http://staging-teach.cdn.ireadabc.com/16cebf8be768535b68df70b8d25a7462.mp3","fontSize":24,"lineHeight":32,"lyrics":[{"time":20.399973,"data":"zi zi zi ...","newLine":false},{"time":23.867417,"data":"","newLine":false},{"time":26.611311,"data":"This wheel is for the bicycle. This wheel is for the bicycle This wheel is for the bicycle This wheel is for the bicycle ","newLine":false},{"time":30.723609,"data":"","newLine":false}]},"stepArr":[{"text":"432","px":"0","X":"0.2","Y":"0.3"},{"text":"648","X":"0","Y":"0"}],"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/275aa8c510a1ee7b936ca837de00ca2a.json","name":"1_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/fec620437ee4d51e11e7fe7a524f06ea.json","name":"1_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/4fb895205ad5787e582cd65e517026d6.png","name":"1_tex.png"},"frame":"24","isDebug":true,"scale":"2"}
\ No newline at end of file
......@@ -64,6 +64,11 @@
<div style="margin-top: 50px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;">
<span>缩放倍数:</span>
<input type="text" nz-input [(ngModel)]="item.scale" (blur)="save()" style="width: 50px;">
</div>
<div style="margin-top: 20px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;">
<label nz-checkbox [(ngModel)]="item.isDebug" (ngModelChange)="save()">调试模式</label>
</div>
......
......@@ -112,11 +112,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.stepArr = [];
}
if (!this.item.scale) {
this.item.scale = 1;
}
if (!this.item.skeJsonData) {
this.item.skeJsonData = {};
this.item.texJsonData = {};
this.item.texPngData = {};
}
// this.refreshAnimaArr();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment