Skip to content

Commit 9d4e15f

Browse files
committed
Some properties
1 parent 5126920 commit 9d4e15f

File tree

5 files changed

+24
-994
lines changed

5 files changed

+24
-994
lines changed

src/Flame/Native/Attribute.purs

+1-261
Original file line numberDiff line numberDiff line change
@@ -1,265 +1,5 @@
11
-- | Convenience module to simplify export list
22
module Flame.Native.Attribute (module Exported) where
33

4-
import Flame.Native.Attribute.Internal
5-
( class ToClassList
6-
, class ToStyleList
7-
, ToBooleanAttribute
8-
, ToIntAttribute
9-
, ToNumberAttribute
10-
, ToStringAttribute
11-
, accentHeight
12-
, accept
13-
, acceptCharset
14-
, accessKey
15-
, accumulate
16-
, action
17-
, additive
18-
, align
19-
, alignmentBaseline
20-
, alt
21-
, ascent
22-
, autocomplete
23-
, autofocus
24-
, autoplay
25-
, azimuth
26-
, baseFrequency
27-
, baseProfile
28-
, baselineShift
29-
, begin
30-
, bias
31-
, calcMode
32-
, charset
33-
, checked
34-
, class'
35-
, clipPathAttr
36-
, clipPathUnits
37-
, clipRule
38-
, color
39-
, colorInterpolation
40-
, colorInterpolationFilters
41-
, colorProfileAttr
42-
, colorRendering
43-
, cols
44-
, colspan
45-
, content
46-
, contentEditable
47-
, contentScriptType
48-
, contentStyleType
49-
, contextmenu
50-
, controls
51-
, coords
52-
, createAttribute
53-
, createAttributeName
54-
, createAttributeType
55-
, createProperty
56-
, cursorAttr
57-
, cx
58-
, cy
59-
, d
60-
, datetime
61-
, default
62-
, diffuseConstant
63-
, dir
64-
, direction
65-
, disabled
66-
, display
67-
, divisor
68-
, dominantBaseline
69-
, download
70-
, downloadAs
71-
, draggable
72-
, dropzone
73-
, dur
74-
, dx
75-
, dy
76-
, edgeMode
77-
, elevation
78-
, enctype
79-
, end
80-
, externalResourcesRequired
81-
, fill
82-
, fillOpacity
83-
, fillRule
84-
, filterAttr
85-
, filterUnits
86-
, floodColor
87-
, floodOpacity
88-
, fontFamily
89-
, fontSize
90-
, fontSizeAdjust
91-
, fontStretch
92-
, fontStyle
93-
, fontVariant
94-
, fontWeight
95-
, for
96-
, fr
97-
, from
98-
, fx
99-
, fy
100-
, gradientTransform
101-
, gradientUnits
102-
, headers
103-
, height
104-
, hidden
105-
, href
106-
, hreflang
107-
, id
108-
, imageRendering
109-
, in'
110-
, in2
111-
, isMap
112-
, itemprop
113-
, k1
114-
, k2
115-
, k3
116-
, k4
117-
, kernelMatrix
118-
, kernelUnitLength
119-
, key
120-
, kerning
121-
, keySplines
122-
, keyTimes
123-
, kind
124-
, lang
125-
, lengthAdjust
126-
, letterSpacing
127-
, lightingColor
128-
, limitingConeAngle
129-
, list
130-
, local
131-
, loop
132-
, manifest
133-
, markerEnd
134-
, markerHeight
135-
, markerMid
136-
, markerStart
137-
, markerUnits
138-
, markerWidth
139-
, maskAttr
140-
, maskContentUnits
141-
, maskUnits
142-
, max
143-
, maxlength
144-
, media
145-
, method
146-
, min
147-
, minlength
148-
, mode
149-
, multiple
150-
, name
151-
, noValidate
152-
, numOctaves
153-
, opacity
154-
, operator
155-
, order
156-
, overflow
157-
, overlinePosition
158-
, overlineThickness
159-
, paintOrder
160-
, pathLength
161-
, pattern
162-
, patternContentUnits
163-
, patternTransform
164-
, patternUnits
165-
, ping
166-
, placeholder
167-
, pointerEvents
168-
, points
169-
, pointsAtX
170-
, pointsAtY
171-
, pointsAtZ
172-
, poster
173-
, preload
174-
, preserveAlpha
175-
, preserveAspectRatio
176-
, primitiveUnits
177-
, pubdate
178-
, r
179-
, radius
180-
, readOnly
181-
, refX
182-
, refY
183-
, rel
184-
, repeatCount
185-
, repeatDur
186-
, required
187-
, requiredFeatures
188-
, restart
189-
, result
190-
, reversed
191-
, rows
192-
, rowspan
193-
, rx
194-
, ry
195-
, sandbox
196-
, scale
197-
, scope
198-
, seed
199-
, selected
200-
, shape
201-
, shapeRendering
202-
, size
203-
, specularConstant
204-
, specularExponent
205-
, spellcheck
206-
, src
207-
, srcdoc
208-
, srclang
209-
, start
210-
, stdDeviation
211-
, step
212-
, stitchTiles
213-
, stopColor
214-
, stopOpacity
215-
, strikethroughPosition
216-
, strikethroughThickness
217-
, stroke
218-
, strokeDasharray
219-
, strokeDashoffset
220-
, strokeLinecap
221-
, strokeLinejoin
222-
, strokeMiterlimit
223-
, strokeOpacity
224-
, strokeWidth
225-
, style
226-
, style1
227-
, styleAttr
228-
, surfaceScale
229-
, tabindex
230-
, target
231-
, targetX
232-
, targetY
233-
, textAnchor
234-
, textDecoration
235-
, textLength
236-
, textRendering
237-
, title
238-
, to
239-
, toStyleList
240-
, transform
241-
, type'
242-
, underlinePosition
243-
, underlineThickness
244-
, useMap
245-
, value
246-
, values
247-
, vectorEffect
248-
, version
249-
, viewBox
250-
, visibility
251-
, width
252-
, wordSpacing
253-
, wrap
254-
, writingMode
255-
, x
256-
, x1
257-
, x2
258-
, xChannelSelector
259-
, y
260-
, y1
261-
, y2
262-
, yChannelSelector
263-
, innerHtml
264-
) as Exported
4+
import Flame.Native.Attribute.Internal as Exported
2655
import Flame.Native.Event (EventName, ToEvent, ToRawEvent, ToMaybeEvent, ToSpecialEvent, createEvent, createEventMessage, createRawEvent, onBlur, onBlur', onCheck, onClick, onClick', onChange, onChange', onContextmenu, onContextmenu', onDblclick, onDblclick', onDrag, onDrag', onDragend, onDragend', onDragenter, onDragenter', onDragleave, onDragleave', onDragover, onDragover', onDragstart, onDragstart', onDrop, onDrop', onError, onError', onFocus, onFocus', onFocusin, onFocusin', onFocusout, onFocusout', onInput, onInput', onKeydown, onKeydown', onKeypress, onKeypress', onKeyup, onKeyup', onMousedown, onMousedown', onMouseenter, onMouseenter', onMouseleave, onMouseleave', onMousemove, onMousemove', onMouseout, onMouseout', onMouseover, onMouseover', onMouseup, onMouseup', onReset, onReset', onScroll, onScroll', onSelect, onSelect', onSubmit, onSubmit', onLoad, onLoad', onUnload, onUnload', onWheel, onWheel') as Exported
+1-13
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
let styleData = 1,
22
classData = 2,
3-
propertyData = 3,
4-
attributeData = 4,
5-
keyData = 7;
3+
propertyData = 3;
64

75
export function createProperty(name) {
86
return function (value) {
97
return [propertyData, name, value];
108
};
119
}
1210

13-
export function createAttribute(name) {
14-
return function (value) {
15-
return [attributeData, name, value];
16-
};
17-
}
18-
1911
export function createClass(array) {
2012
return [classData, array];
2113
}
2214

2315
export function createStyle(object) {
2416
return [styleData, object];
2517
}
26-
27-
export function createKey(value) {
28-
return [keyData, value];
29-
}

0 commit comments

Comments
 (0)