[Fixed Position] Text size control for text and telemetry objects

Add a select control for text and telemetry objects to allow setting text size. Set the default size to 13px.

Fixes # 1496
This commit is contained in:
Pegah Sarram
2017-09-08 17:06:38 -07:00
parent 469820fb0f
commit bb47feb517
7 changed files with 99 additions and 13 deletions

View File

@ -35,7 +35,8 @@ define(
y: 2,
width: 42,
height: 24,
fill: "transparent"
fill: "transparent",
size: "20px"
};
testElements = [{}, {}, testElement, {}];
proxy = new TextProxy(
@ -50,6 +51,12 @@ define(
expect(proxy.fill('#FFF')).toEqual('#FFF');
expect(proxy.fill()).toEqual('#FFF');
});
it("provides getter/setter for text size", function () {
expect(proxy.size()).toEqual('20px');
expect(proxy.size('12px')).toEqual('12px');
expect(proxy.size()).toEqual('12px');
});
});
}
);