mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Fix #fontWeight examples and documentation.
This commit is contained in:
parent
81fe98d1bb
commit
5197dd81c5
4 changed files with 5 additions and 6 deletions
|
@ -15,14 +15,13 @@ module('TextItem');
|
|||
test('PointText', function() {
|
||||
var text = new PointText({
|
||||
fontFamily: 'Arial',
|
||||
fontWeight: 'Regular',
|
||||
fontSize: 14,
|
||||
point: [100, 100],
|
||||
content: 'Hello World!'
|
||||
});
|
||||
equals(text.fillColor, { red: 0, green: 0, blue: 0 }, 'text.fillColor should be black by default');
|
||||
equals(text.point, { x: 100, y: 100 });
|
||||
equals(text.bounds.point, { x: 100, y: 87.4 });
|
||||
equals(text.bounds, { x: 100, y: 87.4, width: 55, height: 16.8 });
|
||||
equals(function() {
|
||||
return text.hitTest(text.bounds.center) != null;
|
||||
}, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue