-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from m1ga/master
feat(android): SDK 9 - Update repo structure
- Loading branch information
Showing
24 changed files
with
471 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,70 @@ | ||
ti.paint [](https://travis-ci.org/appcelerator-modules/ti.paint) | ||
ti.paint | ||
======= | ||
|
||
This is the Paint Module for Titanium. | ||
|
||
Interested in contributing? Read the [contributors/committer's](https://wiki.appcelerator.org/display/community/Home) guide. | ||
## Usage | ||
```javascript | ||
var Paint = require('ti.paint'); | ||
var paintView = Paint.createPaintView({}); | ||
``` | ||
|
||
### Functions | ||
|
||
* clear() | ||
Clears the paint view. | ||
|
||
* moveTo(x,y) [Android only] | ||
Move to position x/y | ||
|
||
* lineTo(x,y) [Android only] | ||
Draw line to position x/y | ||
|
||
* enable(true/false) [Android only] | ||
Disable drawing | ||
|
||
* undo()/redo() [Android only] | ||
Undo or redo last action | ||
|
||
|
||
### Properties | ||
|
||
* strokeWidth[double] | ||
Controls the width of the strokes. | ||
|
||
* strokeColor[string] | ||
Controls the color of the strokes. | ||
|
||
* strokeAlpha[int] | ||
Controls the opacity of the strokes. | ||
|
||
* eraseMode[boolean] | ||
Controls if the strokes are in "erase mode" -- that is, any existing paint will be erased. | ||
|
||
* image[string] | ||
Loads an image (by its URL) directly in to the paint view so that it can be drawn on and erased. | ||
|
||
### Events | ||
|
||
* touchcancel | ||
Fired when a touch event is interrupted by the device. | ||
|
||
* touchend | ||
Fired when a touch event is completed. | ||
|
||
* touchmove | ||
Fired as soon as the device detects movement of a touch. | ||
|
||
* touchstart | ||
Fired as soon as the device detects a touch gesture. | ||
|
||
## Contributors | ||
|
||
* Please see https://github.com/tidev/ti.paint/graphs/contributors | ||
* Interested in contributing? Read the [contributors/committer's](https://github.com/tidev/organization-docs/blob/main/BECOMING_A_COMMITTER.md) guide. | ||
|
||
## Legal | ||
|
||
This module is Copyright (c) 2010-2015 by Appcelerator, Inc. All Rights Reserved. Usage of this module is subject to | ||
the Terms of Service agreement with Appcelerator, Inc. | ||
This module is Copyright (c) 2010-present by Tidev, Inc. All Rights Reserved. Usage of this module is subject to | ||
the Terms of Service agreement with Tidev, Inc. | ||
nc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
dependencies { | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.