@maccesar/titools 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +27 -61
  2. package/lib/cleanup.js +29 -0
  3. package/lib/commands/agents.js +8 -7
  4. package/lib/commands/skills.js +118 -23
  5. package/lib/config.js +13 -15
  6. package/lib/installer.js +5 -3
  7. package/lib/utils.js +36 -0
  8. package/package.json +1 -1
  9. package/skills/alloy-guides/SKILL.md +188 -0
  10. package/skills/alloy-guides/references/CLI_TASKS.md +233 -0
  11. package/skills/alloy-guides/references/CONCEPTS.md +171 -0
  12. package/skills/alloy-guides/references/CONTROLLERS.md +279 -0
  13. package/skills/alloy-guides/references/MODELS.md +742 -0
  14. package/skills/alloy-guides/references/MODELS_ADVANCED.md +482 -0
  15. package/skills/alloy-guides/references/PURGETSS.md +57 -0
  16. package/skills/alloy-guides/references/VIEWS_DYNAMIC.md +235 -0
  17. package/skills/alloy-guides/references/VIEWS_STYLES.md +375 -0
  18. package/skills/alloy-guides/references/VIEWS_WITHOUT_CONTROLLERS.md +102 -0
  19. package/skills/alloy-guides/references/VIEWS_XML.md +581 -0
  20. package/skills/alloy-guides/references/WIDGETS.md +160 -0
  21. package/skills/alloy-howtos/SKILL.md +179 -0
  22. package/skills/alloy-howtos/references/best_practices.md +121 -0
  23. package/skills/alloy-howtos/references/cli_reference.md +230 -0
  24. package/skills/alloy-howtos/references/config_files.md +158 -0
  25. package/skills/alloy-howtos/references/custom_tags.md +148 -0
  26. package/skills/alloy-howtos/references/debugging_troubleshooting.md +78 -0
  27. package/skills/alloy-howtos/references/samples.md +156 -0
  28. package/skills/purgetss/SKILL.md +184 -181
  29. package/skills/purgetss/references/EXAMPLES.md +8 -6
  30. package/skills/purgetss/references/app-branding.md +5 -0
  31. package/skills/purgetss/references/apply-directive.md +1 -1
  32. package/skills/purgetss/references/class-categories.md +1 -1
  33. package/skills/purgetss/references/class-index-properties.md +618 -0
  34. package/skills/purgetss/references/class-index.md +4 -610
  35. package/skills/purgetss/references/cli-commands.md +41 -410
  36. package/skills/purgetss/references/custom-fonts.md +292 -0
  37. package/skills/purgetss/references/custom-rules.md +1 -1
  38. package/skills/purgetss/references/customization-deep-dive.md +64 -1
  39. package/skills/purgetss/references/icon-fonts.md +208 -118
  40. package/skills/purgetss/references/installation-setup.md +4 -4
  41. package/skills/purgetss/references/migration-guide.md +53 -1
  42. package/skills/purgetss/references/multi-density-images.md +53 -2
  43. package/skills/purgetss/references/svg-pipeline.md +249 -0
  44. package/skills/purgetss/references/tikit-components.md +2 -2
  45. package/skills/purgetss/references/titanium-resets.md +2 -2
  46. package/skills/purgetss/references/ui-ux-design.md +7 -5
  47. package/skills/purgetss/references/version-history.md +71 -82
  48. package/skills/ti-api/SKILL.md +128 -0
  49. package/skills/ti-api/references/api-android.md +675 -0
  50. package/skills/ti-api/references/api-app-platform.md +636 -0
  51. package/skills/ti-api/references/api-core.md +764 -0
  52. package/skills/ti-api/references/api-data-network.md +641 -0
  53. package/skills/ti-api/references/api-media.md +655 -0
  54. package/skills/ti-api/references/api-modules-ble-bluetooth.md +657 -0
  55. package/skills/ti-api/references/api-modules-coremotion-urlsession.md +411 -0
  56. package/skills/ti-api/references/api-modules-map.md +632 -0
  57. package/skills/ti-api/references/api-modules-nfc.md +725 -0
  58. package/skills/ti-api/references/api-modules-social-misc.md +526 -0
  59. package/skills/ti-api/references/api-services.md +700 -0
  60. package/skills/ti-api/references/api-ui-android.md +499 -0
  61. package/skills/ti-api/references/api-ui-extras.md +702 -0
  62. package/skills/ti-api/references/api-ui-ios-animator.md +378 -0
  63. package/skills/ti-api/references/api-ui-ios.md +756 -0
  64. package/skills/ti-api/references/api-ui-lists.md +581 -0
  65. package/skills/ti-api/references/api-ui-text-input.md +607 -0
  66. package/skills/ti-api/references/api-ui-views.md +572 -0
  67. package/skills/ti-api/references/api-ui-windows-navigation.md +676 -0
  68. package/skills/ti-api/references/api-xml-global.md +743 -0
  69. package/skills/ti-guides/SKILL.md +82 -0
  70. package/skills/ti-guides/references/advanced-data-and-images.md +155 -0
  71. package/skills/ti-guides/references/android-manifest.md +97 -0
  72. package/skills/ti-guides/references/app-distribution.md +373 -0
  73. package/skills/ti-guides/references/application-frameworks.md +366 -0
  74. package/skills/ti-guides/references/cli-reference.md +700 -0
  75. package/skills/ti-guides/references/coding-best-practices.md +150 -0
  76. package/skills/ti-guides/references/commonjs-advanced.md +279 -0
  77. package/skills/ti-guides/references/hello-world.md +99 -0
  78. package/skills/ti-guides/references/hyperloop-native-access.md +458 -0
  79. package/skills/ti-guides/references/javascript-primer.md +402 -0
  80. package/skills/ti-guides/references/reserved-words.md +36 -0
  81. package/skills/ti-guides/references/resources.md +172 -0
  82. package/skills/ti-guides/references/style-and-conventions.md +104 -0
  83. package/skills/ti-guides/references/tiapp-config.md +655 -0
  84. package/skills/ti-howtos/SKILL.md +131 -0
  85. package/skills/ti-howtos/references/android-platform-deep-dives.md +609 -0
  86. package/skills/ti-howtos/references/automation-fastlane-appium.md +96 -0
  87. package/skills/ti-howtos/references/buffer-codec-streams.md +162 -0
  88. package/skills/ti-howtos/references/cross-platform-development.md +358 -0
  89. package/skills/ti-howtos/references/debugging-profiling.md +473 -0
  90. package/skills/ti-howtos/references/extending-titanium.md +684 -0
  91. package/skills/ti-howtos/references/google-maps-v2.md +172 -0
  92. package/skills/ti-howtos/references/ios-map-kit.md +149 -0
  93. package/skills/ti-howtos/references/ios-platform-deep-dives.md +595 -0
  94. package/skills/ti-howtos/references/local-data-sources.md +310 -0
  95. package/skills/ti-howtos/references/location-and-maps.md +267 -0
  96. package/skills/ti-howtos/references/media-apis.md +268 -0
  97. package/skills/ti-howtos/references/notification-services.md +539 -0
  98. package/skills/ti-howtos/references/remote-data-sources.md +339 -0
  99. package/skills/ti-howtos/references/tutorials.md +552 -0
  100. package/skills/ti-howtos/references/using-modules.md +182 -0
  101. package/skills/ti-howtos/references/web-content-integration.md +288 -0
  102. package/skills/ti-howtos/references/webpack-build-pipeline.md +125 -0
@@ -0,0 +1,378 @@
1
+ # Ti.UI.iOS Animator & Physics API Reference
2
+
3
+ ## Ti.UI.iOS.AnchorAttachmentBehavior
4
+ > Dynamic behavior to support connections between an anchor point and an item.
5
+ > Extends Ti.Proxy
6
+ > Platforms: ios
7
+
8
+ An anchor attachment behavior creates a dynamic connection between an anchor point and an item.
9
+ To define an anchor attachment behavior:
10
+
11
+ 1. Use the <Titanium.UI.iOS.createAnchorAttachmentBehavior> method to create a behavior.
12
+ 2. Set the [anchor](Titanium.UI.iOS.AnchorAttachmentBehavior.anchor) and
13
+ [item](Titanium.UI.iOS.AnchorAttachmentBehavior.item) properties.
14
+ 3. Add the behavior to the [Animator object](Titanium.UI.iOS.Animator).
15
+
16
+ To create a dynamic connection between two items, use <Titanium.UI.iOS.ViewAttachmentBehavior>.
17
+
18
+ ### Properties (unique: 6/8)
19
+ | Property | Type | Default | Platform | Description |
20
+ |----------|------|---------|----------|-------------|
21
+ | anchor | Point | (0,0) | ios | Anchor point for the attachment behavior relative to the animator's coordinate … |
22
+ | damping | Number | 0 | ios | Amount of damping to apply to the attachment behavior. |
23
+ | distance | Number | 0 | ios | Distance, in points, between the two attachment points. |
24
+ | frequency | Number | 0 | ios | Frequency of oscillation for the behavior. |
25
+ | item | Ti.UI.View | — | ios | Item to connect to use the attachment behavior. |
26
+ | offset | Point | (0,0) | ios | Offset from the center point of the item for the attachment. |
27
+
28
+
29
+
30
+
31
+ ### Related Types
32
+
33
+ #### Point
34
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
35
+
36
+ | Property | Type | Description |
37
+ |----------|------|-------------|
38
+ | x | Number \| String | The x-axis coordinate of this point. |
39
+ | y | Number \| String | The y-axis coordinate of this point. |
40
+
41
+ ---
42
+
43
+ ## Ti.UI.iOS.Animator
44
+ > Provides support for the built-in iOS dynamic animations
45
+ > Extends Ti.Proxy
46
+ > Platforms: ios
47
+
48
+ The animator provides physics-related capabilities and animations using the iOS physics engine.
49
+ Each animator is independent of other animators you create. An animator is comprised of
50
+ behaviors and items. Behaviors define the rules of the animation, while items are the
51
+ view objects to be animated. An item in the animator can be given
52
+ multiple behaviors as long as those behaviors belong to the same animator.
53
+
54
+ To use these dynamic animations, first create the items to animate, then:
55
+
56
+ **1.** Create an animator using the <Titanium.UI.iOS.createAnimator> method.
57
+
58
+ **2.** Set the [referenceView](Titanium.UI.iOS.Animator.referenceView) property to establish the
59
+ coordinate system for the animations.
60
+
61
+ **3.** Create and add items to one or more of the following behaviors:
62
+
63
+
64
+ *(See full overview in titanium-docs)*
65
+
66
+ ### Properties (unique: 3/5)
67
+ | Property | Type | Default | Platform | Description |
68
+ |----------|------|---------|----------|-------------|
69
+ | behaviors | Array<Titanium.Proxy> | — | ios | Behaviors associated with this animator. |
70
+ | referenceView | Ti.UI.View | — | ios | Titanium View object to initialize as the reference view for the animator. |
71
+ | running | Boolean | — | ios | Returns `true` if the animator is running else `false`. |
72
+
73
+
74
+ ### Methods (6)
75
+ | Method | Returns | Platform | Description |
76
+ |--------|---------|----------|-------------|
77
+ | addBehavior(behavior) | void | ios | Adds a dynamic behavior to the animator. |
78
+ | removeAllBehaviors(—) | void | ios | Removes all behaviors from this animator. |
79
+ | removeBehavior(behavior) | void | ios | Removes the specified behavior from the animator. |
80
+ | startAnimator(—) | void | ios | Starts the animation behaviors. |
81
+ | stopAnimator(—) | void | ios | Stops the animation behaviors. |
82
+ | updateItemUsingCurrentState(item) | void | ios | Updates the animator's state information with the current state of the specifie… |
83
+
84
+ ### Events (2)
85
+ | Event | Platform | Description |
86
+ |-------|----------|-------------|
87
+ | pause | ios | Fired when the animator paused its animations. |
88
+ | resume | ios | Fired when the animator resumes its animations. |
89
+
90
+ ---
91
+
92
+ ## Ti.UI.iOS.CollisionBehavior
93
+ > Dynamic behavior to support collisions between items and boundaries.
94
+ > Extends Ti.Proxy
95
+ > Platforms: ios
96
+
97
+ A collision behavior specifies the behavior when items collide with each other and boundaries.
98
+ To define a collision behavior:
99
+
100
+ 1. Use the <Titanium.UI.iOS.createCollisionBehavior> method to create and define the behavior.
101
+ 2. Use the [addItem](Titanium.UI.iOS.CollisionBehavior.addItem) method to add items to the behavior.
102
+ 3. Use the [addBoundary](Titanium.UI.iOS.CollisionBehavior.addBoundary) method to add custom
103
+ boundaries for the item to collide with. By default, the behavior uses the Animator
104
+ object's reference view as the boundary.
105
+ 4. Add the behavior to an [Animator object](Titanium.UI.iOS.Animator).
106
+
107
+ ### Properties (unique: 5/7)
108
+ | Property | Type | Default | Platform | Description |
109
+ |----------|------|---------|----------|-------------|
110
+ | boundaryIdentifiers | Array<BoundaryIdentifier> | — | ios | Boundary identfiers added to this behavior. |
111
+ | collisionMode | Number | <Titanium.UI.iOS.COLLISION_MODE_ALL> | ios | Specifies the collision behavior. |
112
+ | items | Array<Titanium.UI.View> | — | ios | Items added to this behavior. |
113
+ | referenceInsets | Padding | All insets are zero. | ios | Insets to apply when using the animator's reference view as the boundary. |
114
+ | treatReferenceAsBoundary | Boolean | true | ios | Use the animator's reference view as the boundary. |
115
+
116
+
117
+ ### Methods (5)
118
+ | Method | Returns | Platform | Description |
119
+ |--------|---------|----------|-------------|
120
+ | addBoundary(boundary) | void | ios | Adds a boundary to this behavior. |
121
+ | addItem(item) | void | ios | Adds an item to this behavior. |
122
+ | removeAllBoundaries(—) | void | ios | Removes all boundaries from this behavior. |
123
+ | removeBoundary(boundary) | void | ios | Removes the specified boundary from this behavior. |
124
+ | removeItem(item) | void | ios | Removes the specified item from this behavior. |
125
+
126
+ ### Events (2)
127
+ | Event | Platform | Description |
128
+ |-------|----------|-------------|
129
+ | boundarycollision | ios | Fired when an item collides with a boundary. |
130
+ | itemcollision | ios | Fired when two items collide. |
131
+
132
+ ### Related Types
133
+
134
+ #### BoundaryIdentifier
135
+ > Dictionary to specify a boundary identifier for <Titanium.UI.iOS.CollisionBehavior.addBoundary>.
136
+
137
+ | Property | Type | Description |
138
+ |----------|------|-------------|
139
+ | identifier | String | Arbitrary identifier for the boundary |
140
+ | point1 | Point | Start point for the boundary |
141
+ | point2 | Point | End point for the boundary |
142
+
143
+ #### Padding
144
+ > Dictionary object of parameters for the padding/insets applied to all kinds of views.
145
+
146
+ | Property | Type | Description |
147
+ |----------|------|-------------|
148
+ | left | Number | Left padding/inset |
149
+ | right | Number | Right padding/inset |
150
+ | top | Number | Top padding/inset |
151
+ | bottom | Number | Bottom padding/inset |
152
+
153
+ #### Point
154
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
155
+
156
+ | Property | Type | Description |
157
+ |----------|------|-------------|
158
+ | x | Number \| String | The x-axis coordinate of this point. |
159
+ | y | Number \| String | The y-axis coordinate of this point. |
160
+
161
+ ---
162
+
163
+ ## Ti.UI.iOS.DynamicItemBehavior
164
+ > Base dynamic configuration for an item.
165
+ > Extends Ti.Proxy
166
+ > Platforms: ios
167
+
168
+ A dynamic item behavior configures the physics attributes for one or more items. These
169
+ attributes, such as density and resistance, affects the behavior of the object when other behaviors,
170
+ such as push forces or collisions, are applied to it. To define a dynamic behavior for an item:
171
+
172
+ 1. Use the <Titanium.UI.iOS.createDynamicItemBehavior> method to create and define the behavior.
173
+ 2. Use the [addItem](Titanium.UI.iOS.DynamicItemBehavior.addItem) method to add items to the behavior.
174
+ 3. Add the behavior to an [Animator object](Titanium.UI.iOS.Animator).
175
+
176
+ ### Properties (unique: 7/9)
177
+ | Property | Type | Default | Platform | Description |
178
+ |----------|------|---------|----------|-------------|
179
+ | allowsRotation | Boolean | true | ios | Specifies if this item can rotate. |
180
+ | angularResistance | Number | 0 | ios | Specifies the angular resistance of this item. |
181
+ | density | Number | 1 | ios | Specifies the relative mass density of this item. |
182
+ | elasticity | Number | 0 | ios | Specifies the elasticity applied to collisions for this item. |
183
+ | friction | Number | 0 | ios | Specifies the linear resistance of the item when it slides against another item. |
184
+ | items | Array<Titanium.UI.View> | — | ios | Items added to this behavior. |
185
+ | resistance | Number | 0 | ios | Specifies the linear resistance of this item which reduces linear velocity over… |
186
+
187
+
188
+ ### Methods (6)
189
+ | Method | Returns | Platform | Description |
190
+ |--------|---------|----------|-------------|
191
+ | addAngularVelocityForItem(item, velocity) | void | ios | Adds a specified angular velocity for the item. |
192
+ | addItem(item) | void | ios | Adds an item to this behavior. |
193
+ | addLinearVelocityForItem(item, velocity) | void | ios | Adds a specified linear velocity for the item. |
194
+ | angularVelocityForItem(item) | Number | ios | Returns the angular velocity of the item. |
195
+ | linearVelocityForItem(item) | Point | ios | Returns the linear velocity of the item. |
196
+ | removeItem(item) | void | ios | Removes the specified item from this behavior. |
197
+
198
+
199
+ ### Related Types
200
+
201
+ #### Point
202
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
203
+
204
+ | Property | Type | Description |
205
+ |----------|------|-------------|
206
+ | x | Number \| String | The x-axis coordinate of this point. |
207
+ | y | Number \| String | The y-axis coordinate of this point. |
208
+
209
+ ---
210
+
211
+ ## Ti.UI.iOS.GravityBehavior
212
+ > Gravitational force to apply to an item.
213
+ > Extends Ti.Proxy
214
+ > Platforms: ios
215
+
216
+ A gravity behavior configures the gravity vector of one or more items. To define a gravity
217
+ behavior:
218
+
219
+ 1. Use the <Titanium.UI.iOS.createGravityBehavior> method to create and define the behavior.
220
+ 2. To define a gravity vector, either set the
221
+ [angle](Titanium.UI.iOS.GravityBehavior.angle) and
222
+ [magnitude](Titanium.UI.iOS.GravityBehavior.magnitude) properties, or set the
223
+ [gravityDirection](Titanium.UI.iOS.GravityBehavior.gravityDirection) property.
224
+ 3. Use the [addItem](Titanium.UI.iOS.GravityBehavior.addItem) method to add items to the behavior.
225
+ 4. Add the behavior to an [Animator object](Titanium.UI.iOS.Animator).
226
+
227
+ You can only define one gravity behavior per animator.
228
+
229
+ ### Properties (unique: 4/6)
230
+ | Property | Type | Default | Platform | Description |
231
+ |----------|------|---------|----------|-------------|
232
+ | angle | Number | 0 | ios | Specifies the angle of the gravity vector in radians. |
233
+ | gravityDirection | Point | (0, 0) | ios | Specifies the direction of the gravity vector as an x, y pair. |
234
+ | items | Array<Titanium.UI.View> | — | ios | Items added to this behavior. |
235
+ | magnitude | Number | 0 | ios | Specifies the magnitude of the gravity vector. |
236
+
237
+
238
+ ### Methods (2)
239
+ | Method | Returns | Platform | Description |
240
+ |--------|---------|----------|-------------|
241
+ | addItem(item) | void | ios | Adds an item to this behavior. |
242
+ | removeItem(item) | void | ios | Removes the specified item from this behavior. |
243
+
244
+
245
+ ### Related Types
246
+
247
+ #### Point
248
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
249
+
250
+ | Property | Type | Description |
251
+ |----------|------|-------------|
252
+ | x | Number \| String | The x-axis coordinate of this point. |
253
+ | y | Number \| String | The y-axis coordinate of this point. |
254
+
255
+ ---
256
+
257
+ ## Ti.UI.iOS.PushBehavior
258
+ > Continuous or instantaneous force to apply to an item.
259
+ > Extends Ti.Proxy
260
+ > Platforms: ios
261
+
262
+ A push behavior configures the continuous or instaneous force to apply to one or more items. To
263
+ define a push behavior:
264
+
265
+ 1. Use the <Titanium.UI.iOS.createPushBehavior> method to create and define the behavior.
266
+ 2. To define a force vector, either set the
267
+ [angle](Titanium.UI.iOS.PushBehavior.angle) and
268
+ [magnitude](Titanium.UI.iOS.PushBehavior.magnitude) properties, or set the
269
+ [pushDirection](Titanium.UI.iOS.PushBehavior.pushDirection) property.
270
+ 3. Use the [addItem](Titanium.UI.iOS.PushBehavior.addItem) method to add items to the behavior.
271
+ 4. Add the behavior to an [Animator object](Titanium.UI.iOS.Animator).
272
+
273
+ ### Properties (unique: 6/8)
274
+ | Property | Type | Default | Platform | Description |
275
+ |----------|------|---------|----------|-------------|
276
+ | active | Boolean | true | ios | State of the push behavior's force. |
277
+ | angle | Number | 0 | ios | Specifies the angle of the force vector in radians. |
278
+ | items | Array<Titanium.UI.View> | — | ios | Items added to this behavior. |
279
+ | magnitude | Number | 0 | ios | Specifies the magnitude of the force vector. |
280
+ | pushDirection | Point | (0,0) | ios | Specifies the direction of the force vector as an x, y pair. |
281
+ | pushMode | Number | <Titanium.UI.iOS.PUSH_MODE_CONTINUOUS> | ios | Specifies the push mode. |
282
+
283
+
284
+ ### Methods (2)
285
+ | Method | Returns | Platform | Description |
286
+ |--------|---------|----------|-------------|
287
+ | addItem(item) | void | ios | Adds an item to this behavior. |
288
+ | removeItem(item) | void | ios | Removes the specified item from this behavior. |
289
+
290
+
291
+ ### Related Types
292
+
293
+ #### Point
294
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
295
+
296
+ | Property | Type | Description |
297
+ |----------|------|-------------|
298
+ | x | Number \| String | The x-axis coordinate of this point. |
299
+ | y | Number \| String | The y-axis coordinate of this point. |
300
+
301
+ ---
302
+
303
+ ## Ti.UI.iOS.SnapBehavior
304
+ > Dynamic behavior defining an item's movement to a specific point.
305
+ > Extends Ti.Proxy
306
+ > Platforms: ios
307
+
308
+ A snap behavior specifies how an item moves towards a specified point with a spring-like
309
+ effect, ending with an oscillation.
310
+
311
+ 1. Use the <Titanium.UI.iOS.createSnapBehavior> method to create the behavior.
312
+ 2. Set the [item](Titanium.UI.iOS.SnapBehavior.item) and
313
+ [snapPoint](Titanium.UI.iOS.SnapBehavior.snapPoint) properties.
314
+ 3. Add the behavior to an [Animator object](Titanium.UI.iOS.Animator).
315
+
316
+ ### Properties (unique: 3/5)
317
+ | Property | Type | Default | Platform | Description |
318
+ |----------|------|---------|----------|-------------|
319
+ | damping | Number | 0.5 | ios | Specifies the amount of oscillation during the conclusion of the snap. |
320
+ | item | Ti.UI.View | — | ios | Item to add to this behavior. |
321
+ | snapPoint | Point | (0,0) | ios | Specifies the point to snap to. |
322
+
323
+
324
+
325
+
326
+ ### Related Types
327
+
328
+ #### Point
329
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
330
+
331
+ | Property | Type | Description |
332
+ |----------|------|-------------|
333
+ | x | Number \| String | The x-axis coordinate of this point. |
334
+ | y | Number \| String | The y-axis coordinate of this point. |
335
+
336
+ ---
337
+
338
+ ## Ti.UI.iOS.ViewAttachmentBehavior
339
+ > Dynamic behavior to support connections between two items.
340
+ > Extends Ti.Proxy
341
+ > Platforms: ios
342
+
343
+ A view attachment behavior creates a dynamic connection between two items. To define a view
344
+ attachment behavior:
345
+
346
+ 1. Use the <Titanium.UI.iOS.createViewAttachmentBehavior> method to create and define a behavior.
347
+ 2. Set the [anchorItem](Titanium.UI.iOS.ViewAttachmentBehavior.anchorItem) and
348
+ [item](Titanium.UI.iOS.ViewAttachmentBehavior.item) properties.
349
+ 3. Add the behavior to the [Animator object](Titanium.UI.iOS.Animator).
350
+
351
+ To create a dynamic connection between an item and anchor point, use <Titanium.UI.iOS.AnchorAttachmentBehavior>.
352
+
353
+ ### Properties (unique: 7/9)
354
+ | Property | Type | Default | Platform | Description |
355
+ |----------|------|---------|----------|-------------|
356
+ | anchorItem | Ti.UI.View | — | ios | Item to use as the anchor in this behavior. |
357
+ | anchorOffset | Point | (0,0) | ios | Offset from the center point of the anchor item for the attachment. |
358
+ | damping | Number | 0 | ios | Amount of damping to apply to the attachment behavior. |
359
+ | distance | Number | 0 | ios | Distance, in points, between the two attachment points. |
360
+ | frequency | Number | 0 | ios | Frequency of oscillation for the behavior. |
361
+ | item | Ti.UI.View | — | ios | Item to connect to use the attachment behavior. |
362
+ | itemOffset | Point | (0,0) | ios | Offset from the center point of the item for the attachment. |
363
+
364
+
365
+
366
+
367
+ ### Related Types
368
+
369
+ #### Point
370
+ > A pair of coordinates used to describe the location of a <Titanium.UI.View>.
371
+
372
+ | Property | Type | Description |
373
+ |----------|------|-------------|
374
+ | x | Number \| String | The x-axis coordinate of this point. |
375
+ | y | Number \| String | The y-axis coordinate of this point. |
376
+
377
+ ---
378
+