Skip to content

Commit e50d353

Browse files
committed
feat: deprecate fa-animation
1 parent 515793b commit e50d353

File tree

34 files changed

+125
-74
lines changed

34 files changed

+125
-74
lines changed

dist/famous-angular.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,8 @@ angular.module('famous.angular')
846846
* @module famous.angular
847847
* @restrict EA
848848
* @description
849-
* This directive is used to animate an element in conjunction with an {@link api/directive/animate animate} directive
850-
*
849+
* This directive is deprecated. Prefer using the $timeline service. This directive is used to animate an element in conjunction with an {@link api/directive/animate animate} directive
850+
* @deprecated true
851851
* @usage
852852
* ```html
853853
* <fa-animation timeline="functionThatReturnsATimelineValueBetween0And1">
@@ -1165,8 +1165,9 @@ angular.module('famous.angular')
11651165
* @name animate
11661166
* @module famous.angular
11671167
* @restrict E
1168+
* @deprecated true
11681169
* @description
1169-
* This element is used to specify the animation of an element in a {@link api/directive/faAnimation faAnimation} directive
1170+
* This directive is deprecated. Prefer using the $timeline service. This element is used to specify the animation of an element in a {@link api/directive/faAnimation faAnimation} directive
11701171
*
11711172
* @usage
11721173
* ```html

docs-generation/templates/api/api.template.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
Improve this doc
1212
</a>
1313
</div>
14+
<@ if doc.deprecated @>
15+
<br>
16+
<strong>This <$ doc.docType $> is deprecated.</strong>
17+
<@ endif @>
1418

1519
<@ block content @>
1620

@@ -44,13 +48,6 @@ <h1 class="api-title">
4448
<$ doc.description $>
4549
<@ endblock @>
4650

47-
<@ if doc.deprecated @>
48-
<fieldset class="deprecated">
49-
<legend>Deprecated API</legend>
50-
<$ doc.deprecated| marked $>
51-
</fieldset>
52-
<@ endif @>
53-
5451
<@ block dependencies @>
5552
<@- if doc.requires @>
5653
<h2 id="dependencies">Dependencies</h2>

docs/unstable/directive/animate/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ docType: "directive"
1515
</a>
1616
</div>
1717

18+
<br>
19+
<strong>This directive is deprecated.</strong>
20+
21+
1822

1923

2024

@@ -30,9 +34,7 @@ docType: "directive"
3034

3135

3236

33-
This element is used to specify the animation of an element in a <a href="api/directive/faAnimation">faAnimation</a> directive
34-
35-
37+
This directive is deprecated. Prefer using the $timeline service. This element is used to specify the animation of an element in a <a href="api/directive/faAnimation">faAnimation</a> directive
3638

3739

3840

docs/unstable/directive/faAnimation/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ docType: "directive"
1515
</a>
1616
</div>
1717

18+
<br>
19+
<strong>This directive is deprecated.</strong>
20+
21+
1822

1923

2024

@@ -30,9 +34,7 @@ docType: "directive"
3034

3135

3236

33-
This directive is used to animate an element in conjunction with an <a href="api/directive/animate">animate</a> directive
34-
35-
37+
This directive is deprecated. Prefer using the $timeline service. This directive is used to animate an element in conjunction with an <a href="api/directive/animate">animate</a> directive
3638

3739

3840

docs/unstable/directive/faApp/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-app
@@ -41,8 +42,6 @@ it is inside of a <a href="api/directive/faSurface">fa-surface</a> directive.
4142

4243

4344

44-
45-
4645

4746
<h2 id="usage">Usage</h2>
4847

docs/unstable/directive/faCanvasSurface/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-canvas-surface
@@ -37,8 +38,6 @@ This directive creates a Famo.us CanvasSurface.
3738

3839

3940

40-
41-
4241

4342
<h2 id="usage">Usage</h2>
4443

docs/unstable/directive/faClick/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-click
@@ -37,8 +38,6 @@ This directive allows you to specify custom behavior when an element is clicked.
3738

3839

3940

40-
41-
4241

4342
<h2 id="usage">Usage</h2>
4443

docs/unstable/directive/faContainerSurface/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-container-surface
@@ -40,8 +41,6 @@ constructor. See [https://famo.us/docs/surfaces/ContainerSurface]
4041

4142

4243

43-
44-
4544

4645
<h2 id="usage">Usage</h2>
4746

docs/unstable/directive/faFlexibleLayout/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-flexible-layout
@@ -40,8 +41,6 @@ constructor. See [https://famo.us/docs/views/FlexibleLayout]
4041

4142

4243

43-
44-
4544

4645
<h2 id="usage">Usage</h2>
4746

docs/unstable/directive/faFlipper/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-flipper
@@ -40,8 +41,6 @@ constructor. See [https://famo.us/docs/views/Flipper]
4041

4142

4243

43-
44-
4544

4645
<h2 id="usage">Usage</h2>
4746

docs/unstable/directive/faGridLayout/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-grid-layout
@@ -40,8 +41,6 @@ constructor. See [https://famo.us/docs/views/GridLayout]
4041

4142

4243

43-
44-
4544

4645
<h2 id="usage">Usage</h2>
4746

docs/unstable/directive/faHeaderFooterLayout/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-header-footer-layout
@@ -39,8 +40,6 @@ a Header, Content, and Footer based on the order of its child elements.
3940

4041

4142

42-
43-
4443

4544
<h2 id="usage">Usage</h2>
4645

docs/unstable/directive/faImageSurface/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-image-surface
@@ -38,8 +39,6 @@ the specified ImageUrl.
3839

3940

4041

41-
42-
4342

4443
<h2 id="usage">Usage</h2>
4544

docs/unstable/directive/faIndex/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-index
@@ -43,8 +44,6 @@ order is desired, then the index value must be assigned/overridden using the faI
4344

4445

4546

46-
47-
4847

4948
<h2 id="usage">Usage</h2>
5049

docs/unstable/directive/faModifier/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-modifier
@@ -38,8 +39,6 @@ to values (e.g. `fa-translate="[15, 20, 1]"`, Famo.us Transitionable objects, or
3839

3940

4041

41-
42-
4342

4443
<h2 id="usage">Usage</h2>
4544

docs/unstable/directive/faPipeFrom/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-pipe-from
@@ -37,8 +38,6 @@ This directive pipes a target event handler to an element's event handler.
3738

3839

3940

40-
41-
4241

4342
<h2 id="usage">Usage</h2>
4443

docs/unstable/directive/faPipeTo/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-pipe-to
@@ -37,8 +38,6 @@ This directive pipes an element's event handler to a source event handler.
3738

3839

3940

40-
41-
4241

4342
<h2 id="usage">Usage</h2>
4443

docs/unstable/directive/faRenderNode/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-render-node
@@ -39,8 +40,6 @@ It allows you to pass a reference to an arbitrary render node from your controll
3940

4041

4142

42-
43-
4443

4544
<h2 id="usage">Usage</h2>
4645

docs/unstable/directive/faScrollView/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-scroll-view
@@ -39,8 +40,6 @@ and will allow you to scroll through them with mousewheel or touch events.
3940

4041

4142

42-
43-
4443

4544
<h2 id="usage">Usage</h2>
4645

docs/unstable/directive/faSequentialLayout/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-sequential-layout
@@ -40,8 +41,6 @@ constructor. See [https://famo.us/docs/views/SequentialLayout]
4041

4142

4243

43-
44-
4544

4645
<h2 id="usage">Usage</h2>
4746

docs/unstable/directive/faSurface/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-surface
@@ -43,8 +44,6 @@ ngIncludes or custom (vanilla Angular) directives.
4344

4445

4546

46-
47-
4847

4948
<h2 id="usage">Usage</h2>
5049

docs/unstable/directive/faTap/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docType: "directive"
1818

1919

2020

21+
2122
<h1 class="api-title">
2223

2324
fa-tap
@@ -37,8 +38,6 @@ This directive allows you to specify custom behavior when an element is tapped.
3738

3839

3940

40-
41-
4241

4342
<h2 id="usage">Usage</h2>
4443

0 commit comments

Comments
 (0)