|
@@ -10,9 +10,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
- import { SGraphScene, SGraphView } from "@saga-web/graph";
|
|
|
- import { SImageItem } from "@saga-web/big/lib";
|
|
|
- import { SImageShowType } from "@saga-web/big/lib/enums/SImageShowType";
|
|
|
+ import { SGraphScene, SGraphView, SImageShowType, SImageItem } from "@saga-web/graph";
|
|
|
|
|
|
class SScene extends SGraphScene {
|
|
|
imageItem: SImageItem = new SImageItem(null);
|
|
@@ -35,6 +33,7 @@
|
|
|
export default {
|
|
|
mounted(): void {
|
|
|
let view = new ImageView();
|
|
|
+ // @ts-ignore
|
|
|
view.scene = this.scene;
|
|
|
view.fitSceneToView();
|
|
|
},
|
|
@@ -45,12 +44,15 @@
|
|
|
},
|
|
|
methods: {
|
|
|
Full() {
|
|
|
+ // @ts-ignore
|
|
|
this.scene.imageItem.showType = SImageShowType.Full;
|
|
|
},
|
|
|
Equivalency() {
|
|
|
+ // @ts-ignore
|
|
|
this.scene.imageItem.showType = SImageShowType.Equivalency;
|
|
|
},
|
|
|
AutoFit() {
|
|
|
+ // @ts-ignore
|
|
|
this.scene.imageItem.showType = SImageShowType.AutoFit;
|
|
|
},
|
|
|
}
|
|
@@ -59,4 +61,4 @@
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|