File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,8 @@ defmodule Scenic.Component do
210
210
# --------------------------------------------------------
211
211
defoverridable add_to_graph: 3
212
212
end
213
-
214
- # quote
215
213
end
216
214
217
- # defmacro
218
-
219
215
@ filter_out [
220
216
:cap ,
221
217
:fill ,
@@ -240,7 +236,6 @@ defmodule Scenic.Component do
240
236
# prepare the list of opts to send to a component as it is being started up
241
237
# the main task is to remove styles that have already been consumed or don't make
242
238
# sense, while leaving any opts/styles that are intended for the component itself.
243
- # also, add the viewport as an option.
244
239
@ doc false
245
240
@ spec filter_opts ( opts :: Keyword . t ( ) ) :: Keyword . t ( )
246
241
def filter_opts ( opts ) when is_list ( opts ) do
Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ defmodule Scenic.Graph do
68
68
that new primitives added to it are inserted into the new group instead of the
69
69
root of the graph.
70
70
71
- Finally, when the group is finished, a translation matrix and a `:text_align` style
72
- are added to it. These properties are _inherited_ by the primitives in the group.
71
+ Finally, when the group is finished, a translation matrix and a `:text_align`
72
+ style (see `Scenic.Primitive.Style.TextAlign`) are added to it. These
73
+ properties are _inherited_ by the primitives in the group.
73
74
74
75
## Inheritance
75
76
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ defmodule Scenic.Primitive.Style.TextAlign do
11
11
12
12
```elixir
13
13
graph
14
- |> text( "Some Text", text_align: :center_middle )
14
+ |> text("Some Text", text_align: :center )
15
15
```
16
16
17
17
### Data Format
Original file line number Diff line number Diff line change @@ -1195,8 +1195,8 @@ defmodule Scenic.Primitives do
1195
1195
then draw it again without blur, slightly offset, you get a nice drop shadow
1196
1196
effect. The default is to draw with no blur.
1197
1197
* `:text_align` - Specify the alignment of the text you are drawing. You will
1198
- usually specify one of: `:left`, `:center`, or `:right`. You can also specify
1199
- vertical alignment. See `Scenic.Primitive.Style.TextAlign` for details.
1198
+ usually specify one of: `:left`, `:center`, or `:right`. See
1199
+ `Scenic.Primitive.Style.TextAlign` for details.
1200
1200
* `:text_height` - Specify the vertical spacing between rows of text.
1201
1201
1202
1202
You can’t perform that action at this time.
0 commit comments