mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-08 19:24:15 -04:00
Core: Renamed Symbol and PlacedSymbol classes and properties.
- Symbol -> SymbolDefinition - PlacedSymbol -> SymbolItem - Symbol#definition -> SymbolDefinition#item - PlacedSymbol#symbol -> SymbolItem#definition - Deprecate Project#symbols Closes #770
This commit is contained in:
parent
5cbc8ef775
commit
bc2729683c
28 changed files with 212 additions and 186 deletions
examples/JSON
|
@ -17,7 +17,7 @@
|
|||
destination: path.bounds.rightCenter
|
||||
}
|
||||
|
||||
var symbol = new Symbol(path);
|
||||
var symbol = new SymbolDefinition(path);
|
||||
symbol.place(view.center);
|
||||
|
||||
window._json = project.exportJSON();
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
to: [200, 100],
|
||||
fillColor: 'red'
|
||||
});
|
||||
var symbol = new Symbol(ellipse);
|
||||
var symbol = new SymbolDefinition(ellipse);
|
||||
var p1 = symbol.place([100, 100]);
|
||||
p1.rotate(45);
|
||||
var p2 = symbol.place([300, 200]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue