Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/konvajs/konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
https://github.com/konvajs/konva

added _setPoints so that points setter methods could leverage the same logic that was in the setAttrs() method

ec415c55deba52c0011ce0b419c741ff99adab0b authored over 12 years ago by Eric Rowell <[email protected]>
fixed bug with _setSize()

7f8a174b512a0495df0f955b22f869d6cb53728a authored over 12 years ago by Eric Rowell <[email protected]>
refactored _getXY utility and usage

7be0e5f57765f56ee886407ad02c463ed215bed4 authored over 12 years ago by Eric Rowell <[email protected]>
finished up pattern fill support

e4f5e117926490d29cfacc6f63c13015eefbea7f authored over 12 years ago by Eric Rowell <[email protected]>
pulled out _setPointAttr from Node and moved it to the GlobalObject as _setXY, which enables x,y property setting for any object, not just attrs. also added _setSize which has similar logic for height width properties

81df49e75db8fff09693637ed4de3d41b505c7b8 authored over 12 years ago by Eric Rowell <[email protected]>
setup support for pattern fills

9e3475f37a9f29838f8971b7a8a23924c668c88c authored over 12 years ago by Eric Rowell <[email protected]>
after a bit more thought, I've decided to change the maxWidth property to width, to make it even more similar to CSS sizing rules. If you set the width of the text box to a certain value, and the text string width is longer than that width, the text will be clipped

92919058b2a0211615916885f8f30077cb9e4d22 authored over 12 years ago by Eric Rowell <[email protected]>
reworked text max width logic to use clipping rather than native max width functionality which scales the text (what was w3c thinking? no idea)

05df07829533fa1de3b6a6e23da05845586c1a2f authored over 12 years ago by Eric Rowell <[email protected]>
Merge pull request #20 from matthieu-ravey/master

Adding the maxWidth property to the Text Shape

4b1403f7fea516ecb65ccc27a4b41283d5335b70 authored over 12 years ago by ericdrowell <[email protected]>
Kinetic.Line detection type is now defaulted to pixel since this is the expected detection strategy

502115fad76aacc1a3bce7e5f79d43d94c1151ac authored over 12 years ago by Eric Rowell <[email protected]>
fixed bug with getTextSize() which was throwing a JS error if used before adding text to the stage

51258531bf0ed4f28e3706dcf5f299887472e787 authored over 12 years ago by Eric Rowell <[email protected]>
modified setDefaultAttrs() so that it doesn't overwrite attrs defaulted in a custom class that extends a Kinetic class

1146919d3d039d457f779d6eb8e607617d23b92f authored over 12 years ago by Eric Rowell <[email protected]>
Adding maxWidth support for fillText and strokeText

cd276169d7ab59e4a50ad56de64c83ca7524f072 authored over 12 years ago by Matthieu Ravey <[email protected]>
changed shadowFillStroke() to applyStyles(). Took applyLineJoin() out of shape draw functions and moved it to the Shape._draw() method.

28f7fc246defdd0e2483d26de70faf22be58ac33 authored over 12 years ago by Eric Rowell <[email protected]>
improved shadow logic such that it first attempts to apply shadows to a shape's fill if it's defined, otherwise it will attempt to apply the shadow to the stroke

2993191fe64d9bcbd43ca8ab936a63364cbd68b9 authored over 12 years ago by Eric Rowell <[email protected]>
added drawFunc property to layer so that layers can easily draw non-node background graphics

16c251bb972455069cd7953a97a154d31b4153da authored over 12 years ago by Eric Rowell <[email protected]>
added shadow support. changed fillStroke method to shadowFillStroke

a27741ce03bc58cf70e487824dc7c2efef1a37f6 authored over 12 years ago by Eric Rowell <[email protected]>
point properties can now be set with an array of points or an array of numbers for convenience

622278a5102782f06a4a06854e239994408dcba9 authored over 12 years ago by Eric Rowell <[email protected]>
implemented dashed and dotted line styling for Kinetic.Line based on method written by Phrogz

40ebb21033b7be282a72ebf2933b60b525ca395b authored over 12 years ago by Eric Rowell <[email protected]>
added support for linear gradients and radial gradients using the fill property

f2976e7dd1f6259579fe322c57ab54e6a20d42b9 authored over 12 years ago by Eric Rowell <[email protected]>
fixed animation race condition bug that sometimes produced multiple requestAnimFrame calls, and also changed throttle property to be in fps (it used to be in ms). This will make it more consistent with other properties related to frame rates

7d92a2099e2abf3103c733b9c38918d9bddda2a8 authored over 12 years ago by Eric Rowell <[email protected]>
added new Kinetic.Sprite shape that enables you to easily add animated sprites to the stage

3585e000b66a857ebf14895ea6e448fac8f6469e authored over 12 years ago by Eric Rowell <[email protected]>
added new beforeDraw() and afterDraw() event handlers for Layer

7bcd34ec47733b86725c599494a41945d40fbfb5 authored over 12 years ago by Eric Rowell <[email protected]>
added new Line Shape

1dbe93a232e4d8f75e1d02188a236022b6ab5a5d authored over 12 years ago by Eric Rowell <[email protected]>
tweaked throttling algo and added unit tests

ffd9924511260df269e6e217e406362e54474986 authored over 12 years ago by Eric Rowell <[email protected]>
fixed small bug related to animations - if you called .start() multiple times, multiple animation instances would be created. This wasn't desirable. Also beefed up animation unit tests

ff31dcb0ae66e5c31bff5f10c60f948871e11587 authored over 12 years ago by Eric Rowell <[email protected]>
fixed glitchy flash on transitions when applying multiple transitions to the same node at different times

e8dcb8e5840ba120855d90dff76aca48df708039 authored over 12 years ago by Eric Rowell <[email protected]>
added stage.reset() method so that you can reset the stage to its original state. hooked this in with stage.load() so that the stage starts when a clean slate when loading json

bd17b54aa85df8e7c332d3e6732e6485c0403553 authored over 12 years ago by Eric Rowell <[email protected]>
fixed drawing bug related to new throttle feature

9cc380608ea14d405ffa0c0dbe78e02c33bff8ef authored over 12 years ago by Eric Rowell <[email protected]>
added defensive coding when removing node from container in case it has not yet been added to the container

6bed850042152c5a053937ff55a482a4bad57187 authored over 12 years ago by Eric Rowell <[email protected]>
introduced new setDefaultAttrs() method which greatly simplifies the logic required inside node constructors. This will also make plugin creation much easier

8dce92c2fd219029384fea815db4ad31fd753bd6 authored over 12 years ago by Eric Rowell <[email protected]>
fill, stroke, and strokeWidth values of undefined, null, '', or 0 are now correctly handled

c661cff85a654ef3d5b0504c35a9c76833f89633 authored over 12 years ago by Eric Rowell <[email protected]>
stage.setSize() now correctly sets the content node dimensions. Also refactored object and DOM node sizing

9f6381aef3636dd0bb4a87eb841e9e6210447be9 authored over 12 years ago by Eric Rowell <[email protected]>
added throttling unit tests

3ac0e5592e4aa7de20bc4d8c5716dc22d76c58e9 authored over 12 years ago by Eric Rowell <[email protected]>
identified a couple public methods in the global object which are actually private

3200a9063ae4d0a6edf7c36cc18fa75b50c64690 authored over 12 years ago by Eric Rowell <[email protected]>
added layer throttling which greatly improves drag and drop and other mousemove drawing performance

4e82139b74a552f54f4ec05b3a971b5fdcf38f1b authored over 12 years ago by Eric Rowell <[email protected]>
removed Transition constructor block comment to remove it from jsdocs. Devs should just use the transitionTo() method without knowing how it works under the covers

04554e0e6a80e9eb53a07b27b689e017ae25d123 authored over 12 years ago by Eric Rowell <[email protected]>
removed .onContent() and replaced with .getDOM()

222aea4e2e2ee55499998b644b6be7ee48da2c9a authored over 12 years ago by Eric Rowell <[email protected]>
added new stage.getIntersects() method which allows you to obtain all the shapes that intersect a given point. Also enhanced all methods that require an x or y by allowing either two arguments to be passed in or an object to be passed in. Example foo(100, 50) or foo({x:100, y:50});

9fef9e54d92f07f6e7c1b5498c18feee079308be authored over 12 years ago by Eric Rowell <[email protected]>
added new selector capability to .get() method. You can now select all nodes by type inside of a container, such as by Shape, Group, or Layer

192681374db19be80f70320837c26abde7c8ca4c authored over 12 years ago by Eric Rowell <[email protected]>
changed isPointInShape() to intersects(). Currently the method accepts a point object, but I may extend this to also accept another shape object

2879c0763f1320981634fba674792ea331582640 authored over 12 years ago by Eric Rowell <[email protected]>
adding prod build

c02e7a0ceebde999f34f034ae5c892d93322950d authored over 12 years ago by Eric Rowell <[email protected]>
enhanced setAttrs() logic to allow custom node properties and functions

70df77f9fa853adace9000522628d045b5acac2a authored over 12 years ago by Eric Rowell <[email protected]>
rewrote cropping logic from last pull request, fixed serialization issue in unit test, added new unit tests, and added getX() and getY() methods

508bfb7a9bc27a5dd60e22c26f4025e43a532408 authored over 12 years ago by Eric Rowell <[email protected]>
Merge pull request #16 from lewispeckover/master

Rounded corners for Rect

f5735b3462072c6f3230a3657c512053b177fd00 authored over 12 years ago by ericdrowell <[email protected]>
Added clipping to Image

dedf276c74a14438b689f995fac12d8f3ccfbfc1 authored over 12 years ago by Lewis Peckover <[email protected]>
added rounded corners to Rect

d3eac4d5f9caca0e676217afd980e3ad38f61b39 authored over 12 years ago by Lewis Peckover <[email protected]>
made isPointInShape() a public method for the purpose of collision detection

78e402212637b14d2df597b06a088d20328d460c authored over 12 years ago by Eric Rowell <[email protected]>
refactored fillStroke() method

c698005adc963e0d99493323d29436d65b9ab468 authored over 12 years ago by Eric Rowell <[email protected]>
new setDetectionType() and getDetectionType() methods to enable path and pixel detection swapping

47b8a8e0d6c21de5fa7566f3be4708c8f1b97cbd authored over 12 years ago by Eric Rowell <[email protected]>
added about 50 unit tests to better test selector support

860025263b0d59e9419df1725a6633273bd03702 authored over 12 years ago by Eric Rowell <[email protected]>
fixed center offset + drag and drop bug by fixing a root problem with the getAbsoluteTransform() method. This method no longer takes into account the center offset. Center offset transforms are now applied separately

a908c59769acf76c8b71553b3cee6d2ad42e9ae6 authored over 12 years ago by Eric Rowell <[email protected]>
refactored setAbsolutePosition() method and Shape _draw method

df8df63400f4291c6b81592f6b30658ff4a68848 authored over 12 years ago by Eric Rowell <[email protected]>
discovered that the slow drag and drop behavior with Google Chrome is only effecting my Windows 7 test machine, not Mac. I've removed the drag and drop optimizing code for now

5e46018012e68518e4275459dfe3ccdf890ef844 authored over 12 years ago by Eric Rowell <[email protected]>
fixed stage.hide() bug, created new isVisible() method, and moved visible check to container

3a520376e583c0255a4a12a438ad2840c3d33f1f authored over 12 years ago by Eric Rowell <[email protected]>
fixed up fillStroke() logic in the Shape class

c17029d38e6b75b9996a1429cdbf51ba59dd7bf0 authored over 12 years ago by Eric Rowell <[email protected]>
exposed absolute positioning logic inside the _prepareDrag method so that developers have access to it via the setAbsolutePosition() method

fb9f324cfb51b3cfeaa7bd4ccd0faff0b4a1888a authored over 12 years ago by Eric Rowell <[email protected]>
added chrome specific logic to improve the drag and drop performance until the chrome bug is fixed

2108736df730d5a34e2996248857258d7863c14a authored over 12 years ago by Eric Rowell <[email protected]>
undoing optimized drag and drop for now because I added it in due to Google Chrome's latest release which made drag and drop very slow (while other browsers are still fast), and the changes that I made to help work around it were slightly effecting the experience in other browsers. I'll file a ticket with Google Chrome instead

1c8669eb7abcfef6dd312db53e7bf7c0a6c65607 authored over 12 years ago by Eric Rowell <[email protected]>
new setAttrs() method which enables you to set attributes in bulk

5c7b9699745b7cdcb44da2e32d2bff26a3e6961d authored over 12 years ago by Eric Rowell <[email protected]>
dynamically set drag time interval to determine the optimal dragging performance. Makes dragging and dropping even smoother and responsive

b7f14ca821e98e185da6e4728e6fb084f8725692 authored over 12 years ago by Eric Rowell <[email protected]>
updated docs

328f45751227ca2b633a3cdfd0ecdf72226c6cc4 authored over 12 years ago by Eric Rowell <[email protected]>
moved .get() method to Container so that all containers can use it, not just stage. This allows you to select nodes within other nodes

b8516b1b0c8b6f9e7334554bfc898f2a6babc4ef authored over 12 years ago by Eric Rowell <[email protected]>
no longer auto clearing shape data. added new shape.clearData() method instead

63c8dde6d58b00d975e34223fd045d9f3ac4b607 authored over 12 years ago by Eric Rowell <[email protected]>
added setX and setY methods for convenience

30e89739560ce2a08cc58103cc27fe931a6956f2 authored over 12 years ago by Eric Rowell <[email protected]>
refined global object temp nodes has removal when removing nodes from container. Also added another unit test

4f36b27199b2c3c64e0dff37dcb1e1b2a481cddc authored over 12 years ago by Eric Rowell <[email protected]>
added hash cleanup logic when nodes are moved from a container. Also added unit tests

2035d188c83d1c5434136736b97a5031b782e0ff authored over 12 years ago by Eric Rowell <[email protected]>
moved ids and names hashes to the stage level

3c17e59eb055bb982aac76f69d16dfb5485ef736 authored over 12 years ago by Eric Rowell <[email protected]>
added simple selector support by id (#) or by name (.). Selecting by name is similar to selecting by class in other DOM libraries

8c7033347213955b9dd49e1bf0540357aa0fd5a7 authored over 12 years ago by Eric Rowell <[email protected]>
added support for image de-serialization and cleaned up some of the Shape attr default logic

3243e5f8ff373cd943ae3f01933d5a99b2ed1169 authored over 12 years ago by Eric Rowell <[email protected]>
new getAttrs() method

d3b025254a4323885a2e65775d0ea0b42b8d6dd3 authored over 12 years ago by Eric Rowell <[email protected]>
decided that the developer should be responsible for setting custom drawing functions, images, and event handlers via selectors rather than a hash map passed into the load() method

0a94c75e22e8e9c8a71c8843889287e905017211 authored over 12 years ago by Eric Rowell <[email protected]>
finished custom shape serialization with new attrs structure

1a40e506227d53ea02b0a446c464b63c79b87797 authored over 12 years ago by Eric Rowell <[email protected]>
re-integrated simple serialization and deserialization with new attrs structure

58eb778e9aea970281a9037dfad68ea46686341a authored over 12 years ago by Eric Rowell <[email protected]>
unit tests and functional tests now passing. Next up, re-integrate serialization with new attrs structure

ff896a49466f486127f6f35d25db10709c9375b1 authored over 12 years ago by Eric Rowell <[email protected]>
first phase of new attrs architecture to better represent Node states

6d618b97b50236385c5bed1a0c499613e55f5c44 authored over 12 years ago by Eric Rowell <[email protected]>
continued work on serialization/de-serialization

15bd27562e93a80e139a425a69e695508257b576 authored over 12 years ago by Eric Rowell <[email protected]>
implemented stage.load() which allows you to deserialize a json string

350f7b7496e41998600b5a5f2b055fe219f1eb58 authored over 12 years ago by Eric Rowell <[email protected]>
setup simple serialization

bf86dacb59d38ef7ea17bdf82063bb36da4d4e10 authored over 12 years ago by Eric Rowell <[email protected]>
fixed _modifyPathContext optimization problem

f5b6b3c06fd738f3effa71e82d4e6befc25dd9c6 authored over 12 years ago by Eric Rowell <[email protected]>
fixed bug with mouseout / mouseover events with nodes on the edge of the stage

0ac84408e9532d202783cdfdd54255f49a1b32c1 authored over 12 years ago by Eric Rowell <[email protected]>
updated text metrics unit test so that it passes in Firefox

21981e94eb984947856a55e1de9252dc4663d078 authored over 12 years ago by Eric Rowell <[email protected]>
when using pixel detection, clear shape data whenever shape is drawn

dc45f5e2d6affa3ff5c7cbdd23cddf7379757a92 authored over 12 years ago by Eric Rowell <[email protected]>
added functional test that tests all of the transition easing functions

2dff730081e38b2bb59b847e7f8da83f07bac22b authored over 12 years ago by Eric Rowell <[email protected]>
finished new animation, transitions, and tweens functionality

602220bdce6b2d43737f800519e488387e0ea001 authored over 12 years ago by Eric Rowell <[email protected]>
tons of refactoring. Now have separate Transition and Tween classes

f953e4694f9bc4d3f92a4bc2b26d2bf7d0142517 authored over 12 years ago by Eric Rowell <[email protected]>
added first phase of transition event subscription

9e3baf69c17deaa339cbb9484e7ad10ad0f39087 authored over 12 years ago by Eric Rowell <[email protected]>
added new animation stop logic

a6b526ee76f8c1b4115a0b548d4c68295fe6619d authored over 12 years ago by Eric Rowell <[email protected]>
got the unit tests and functional tests passing. Have a few things left to do, and a bit more testing before I merge the transitions rewrite back into the trunk

fc5825e61ec983abcf8b5cf5b6979e3e21be6391 authored over 12 years ago by Eric Rowell <[email protected]>
more new transition architecture integration

d5834c8351a9c77b48d27a25c6b56034ab769562 authored over 12 years ago by Eric Rowell <[email protected]>
round 1 of animation + transition rewrite, while combing Xaric's Tween port

77aea95e7a41c5326b768d9db54d3d4e886f3852 authored over 12 years ago by Eric Rowell <[email protected]>
reworked pixel detection. I now require the dev to use shape.save() to save the pixel data for performance reasons

6ce9d5489c7e2513fe83b07091753d1ca47f4960 authored over 12 years ago by Eric Rowell <[email protected]>
pixel detection performance was horrible for large amounts of shapes. Added some optimizations which require knowledge of a shape's perceivable position and size based on transforms. This will be added in later. For the time being, only Kinetic.Images will have access to the detectionType property. Image cannot be transformed or offset with the center offset. Support for these will come soon as well.

72c0555d0bb5daeb0f8f61ce76eccd39105b2513 authored over 12 years ago by Eric Rowell <[email protected]>
fixed drag and drop bug related to drag constraints and positioned containers. Just needed to move the drag constraint logic after the matrix unravel

313c6a154122eedd51160d059bb43092e76830e6 authored over 12 years ago by Eric Rowell <[email protected]>
when node is at the edge of the canvas, and you mouse over the node and then off the canvas, the mouseout handlers for the node are executed

bdafb3eb25add32e08dcadad41c26cfd96702805 authored over 12 years ago by Eric Rowell <[email protected]>
fixed bug related to multiple removals of same node

86a13370172fd6cdf1f790a3c3115e4da650d296 authored over 12 years ago by Eric Rowell <[email protected]>
fixed drag and drop issue and reverted default easing back to linear

71b0449071e0e35cda83470eccf97140f740fc8e authored over 12 years ago by Eric Rowell <[email protected]>
fixed bug related to multiple drag and drop initializations

3a8afc747c90c024fc691f143b80ad20865f9455 authored over 12 years ago by Eric Rowell <[email protected]>
Merge pull request #10 from jfollas/master

Workaround for older browser security exception using toDataURL() with parameters

6889cd742c35cfeda0998c641a233414be109066 authored over 12 years ago by ericdrowell <[email protected]>
Revert to previous no-parameter (image/png) behavior if an exception is

encountered while calling canvas toDataURL() with parameters. See this
forum post: http://www.ki...

96659d72990a7a46f8cffd49ef860287cc5a1b13 authored over 12 years ago by Jason Follas <[email protected]>