feat(core): Added snippet.scale() and snippet.rotate() methods
This commit is contained in:
parent
582f85ee2c
commit
714c4ae368
2 changed files with 34 additions and 0 deletions
|
@ -27,6 +27,16 @@ describe('Snippet', () => {
|
|||
expect(s.attributes.get('class')).to.equal('less')
|
||||
})
|
||||
|
||||
it('Should scale a snippet', () => {
|
||||
let s = new Snippet('test', new Point(12, -34)).scale(0.1234)
|
||||
expect(s.attributes.get('data-scale')).to.equal('0.1234')
|
||||
})
|
||||
|
||||
it('Should rotate a snippet', () => {
|
||||
let s = new Snippet('test', new Point(12, -34)).rotate(123)
|
||||
expect(s.attributes.get('data-rotate')).to.equal('123')
|
||||
})
|
||||
|
||||
it('Should get a snippet via the snippets proxy', () => {
|
||||
let result
|
||||
const part = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue