diff --git a/src/Icon.tsx b/src/Icon.tsx index 25fc7c8..f636e5c 100644 --- a/src/Icon.tsx +++ b/src/Icon.tsx @@ -9,6 +9,8 @@ export enum ActionType { rotateRight = 6, reset = 7, close = 8, + scaleX = 9, + scaleY = 10, } export interface IconProps { diff --git a/src/ViewerCavans.tsx b/src/ViewerCavans.tsx index a5a8f52..751865b 100644 --- a/src/ViewerCavans.tsx +++ b/src/ViewerCavans.tsx @@ -13,6 +13,8 @@ export interface ViewerCavansProps { onResize: () => void; onZoom: (targetX: number, targetY: number, direct: number) => void; zIndex: number; + scaleX: 1 | -1; + scaleY: 1 | -1; } export interface ViewerCavansState { @@ -115,7 +117,7 @@ export default class ViewerCavans extends React.Component { @@ -44,6 +46,8 @@ export default class ViewerCore extends React.Component { @@ -109,6 +117,8 @@ export default class ViewerCore extends React.Component
{this.handleAction(ActionType.rotateRight);}}> +
  • {this.handleAction(ActionType.scaleX);}}> + +
  • +
  • {this.handleAction(ActionType.scaleY);}}> + +
  • ); diff --git a/src/style/fonts/icomoon.eot b/src/style/fonts/icomoon.eot index 4db0df4..ffcad2a 100644 Binary files a/src/style/fonts/icomoon.eot and b/src/style/fonts/icomoon.eot differ diff --git a/src/style/fonts/icomoon.svg b/src/style/fonts/icomoon.svg index 2457df8..766aace 100644 --- a/src/style/fonts/icomoon.svg +++ b/src/style/fonts/icomoon.svg @@ -15,4 +15,6 @@ + + \ No newline at end of file diff --git a/src/style/fonts/icomoon.ttf b/src/style/fonts/icomoon.ttf index 93c16b2..0b788d4 100644 Binary files a/src/style/fonts/icomoon.ttf and b/src/style/fonts/icomoon.ttf differ diff --git a/src/style/fonts/icomoon.woff b/src/style/fonts/icomoon.woff index d40e1c6..837e46c 100644 Binary files a/src/style/fonts/icomoon.woff and b/src/style/fonts/icomoon.woff differ diff --git a/src/style/index.less b/src/style/index.less index ce8bce6..80b17aa 100644 --- a/src/style/index.less +++ b/src/style/index.less @@ -220,4 +220,12 @@ &-reset:before { content: '\e984'; } + + &-scaleX:before { + content: '\ea60'; + } + + &-scaleY:before { + content: '\ea5f'; + } } \ No newline at end of file