Comments (6)
Proposition:
- setSize(IScalar width, IScalar height)
- setSize(number width, number height)
- IScalar getWidth()
- IScalar getHeight()
from tapspace.
Another proposition:
- setSize(IRectangle rect)
- setSize(Rectangle rect)
- setSize(number width, number height)
- IRectangle getSize()
from tapspace.
For reference, current size API:
- Vector getLocalSize()
- IVector getSize()
- setLocalSize(Vector diag)
- setSize(IVector diag)
Also, consider symmetry with transform API of AbstractPlane:
- Transform getGlobalTransform()
- ITransform getGlobalITransform()
- Transform getLocalTransform()
- ITransform getLocalITransform()
- setGlobalTransform(Transform tr)
- setGlobalITransform(ITransform itr)
- setLocalTransform(Transform tr)
- setLocalITransform(ITransform itr)
from tapspace.
Maybe:
- Size getGlobalSize()
- ISize getGlobalISize()
- Size getLocalSize()
- ISize getLocalISize()
- setGlobalSize(Size sz)
- setGlobalISize(ISize isz)
- setLocalSize(Size sz)
- setLocalISize(ISize isz)
Seems bloated but it is most unambiguous and symmetrical among the alternatives.
from tapspace.
The Size and Transform are different: where global and local ITransform represent different transforms in plane-invariant manner, global and local Size represent the same size on different planes. Therefore semantically better set of methods is:
- Size getSize
- ISize getISize
- setSize(Size sz) and setSize(width, height)
- setISize(ISize sz)
from tapspace.
This suggestion became the final in taaspace v5.0.0
from tapspace.
Related Issues (20)
- Fix docs
- Write Project history
- Add Touchable.stopPropagation flag
- Slow scrolling on some platforms HOT 1
- Rename translateScaleRotate to move HOT 1
- Set draggable attribute on SpaceImages
- npm run lint failing HOT 1
- Perspective rendering and parallax motion HOT 1
- How to add html elements outside the infinite canvas? HOT 2
- Pixelated rendering in Firefox and Safari HOT 3
- Multi-stage semantic zoom
- Forget 3D
- Improved FractalLoader HOT 2
- Clickable edges HOT 1
- prevent bubbling css transition events messing with animations
- bringToFront and sendToBack cause elements to lose hover state HOT 1
- allow removal of missing Viewport controls HOT 2
- remove hardcoded background color from ZoomControl
- improve Viewport:focus focusVisible behavior
- support adaptive full height viewport controls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tapspace.