|
@@ -2,7 +2,7 @@ import { SItemStatus } from "@saga-web/big/lib/enums/SItemStatus";
|
|
|
import { SGraphItem } from '@saga-web/graph/lib/SGraphItem';
|
|
|
import { STextBaseLine } from '@saga-web/draw/lib';
|
|
|
import { SMouseEvent } from '@saga-web/base/lib/SMouseEvent';
|
|
|
-import { SSize } from '@saga-web/draw/lib';
|
|
|
+import { SSize, SFont } from '@saga-web/draw/lib';
|
|
|
import { SPainter } from '@saga-web/draw/lib';
|
|
|
import { SColor } from '@saga-web/draw/lib';
|
|
|
import { SRect } from '@saga-web/draw/lib';
|
|
@@ -104,7 +104,13 @@ export class SImgTextItem extends SObjectItem {
|
|
|
this.textItem.color = v;
|
|
|
this.update();
|
|
|
}
|
|
|
-
|
|
|
+ get font(): SFont {
|
|
|
+ return this.textItem.font;
|
|
|
+ }
|
|
|
+ set font(v: SFont) {
|
|
|
+ this.textItem.font = v;
|
|
|
+ this.update();
|
|
|
+ }
|
|
|
/** img Item */
|
|
|
img: SImageItem = new SImageItem(this);
|
|
|
|