@@ -15,7 +15,8 @@ textToText = [ "header", "italic", "bold", "underline"
15 , "overline", "strikeThrough", "monospace" ]
15 , "overline", "strikeThrough", "monospace" ]
17textAttrs = [ "toText" -: string ==> text
17textAttrs = [ "toText" -: string ==> text
18+ , "typeface" -: string ==> text ==> text
18− --, "link" -: string ==> text ==> text
19+ , "link" -:: string ==> a ==> a
19 , numScheme (\t -> t ==> text ==> text) "Text.height"
20 , numScheme (\t -> t ==> text ==> text) "Text.height"
20 ] ++ hasType (text ==> text) textToText
21 ] ++ hasType (text ==> text) textToText
@@ -29,38 +30,53 @@ elements = let iee = int ==> element ==> element in
29 , "width" -: iee
30 , "width" -: iee
30 , "height" -: iee
31 , "height" -: iee
31 , "size" -: int ==> iee
32 , "size" -: int ==> iee
33+ , "widthOf" -: element ==> int
34+ , "heightOf"-: element ==> int
35+ , "sizeOf" -: element ==> pairOf int
32 , "color" -: color ==> element ==> element
36 , "color" -: color ==> element ==> element
33− , "box" -: iee
37+ , "container" -: int ==> int ==> position ==> element ==> element
34− , "rectangle" -: int ==> int ==> element
38+ , "spacer" -: int ==> int ==> element
35 , "rightedText" -: text ==> element
39 , "rightedText" -: text ==> element
36 , "centeredText" -: text ==> element
40 , "centeredText" -: text ==> element
37 , "justifiedText" -: text ==> element
41 , "justifiedText" -: text ==> element
38 , "asText" -:: a ==> element
42 , "asText" -:: a ==> element
39 , "show" -:: a ==> text
43 , "show" -:: a ==> text
40 , "collage" -: int ==> int ==> listOf form ==> element
44 , "collage" -: int ==> int ==> listOf form ==> element
45+ , "fittedImage" -: int ==> int ==> string ==> element
43directions = hasType direction ["up","down","left","right","inward","outward"]
48directions = hasType direction ["up","down","left","right","inward","outward"]
50+ hasType position ["topLeft","midLeft","bottomLeft","midTop","middle"
51+ ,"midBottom","topRight","midRight","bottomRight"] ++
52+ hasType (location ==> position)
53+ ["topLeftAt","bottomLeftAt","middleAt","topRightAt","bottomRightAt"] ++
54+ [ "absolute" -: int ==> location, "relative" -: float ==> location ]
44colors = [ numScheme (\n -> n ==> n ==> n ==> color) "rgb"
55colors = [ numScheme (\n -> n ==> n ==> n ==> color) "rgb"
45 , numScheme (\n -> n ==> n ==> n ==> n ==> color) "rgba"
56 , numScheme (\n -> n ==> n ==> n ==> n ==> color) "rgba"
46 ] ++ hasType color ["red","green","blue","black","white"
57 ] ++ hasType color ["red","green","blue","black","white"
47 ,"yellow","cyan","magenta","grey","gray"]
58 ,"yellow","cyan","magenta","grey","gray"]
49lineTypes = [ numScheme (\n -> listOf (pairOf n) ==> line) "line"
60lineTypes = [ numScheme (\n -> listOf (pairOf n) ==> line) "line"
61+ , numScheme (\n -> pairOf n ==> pairOf n ==> line) "segment"
50 , "customLine" -: listOf int ==> color ==> line ==> form
62 , "customLine" -: listOf int ==> color ==> line ==> form
51 ] ++ hasType (color ==> line ==> form) ["solid","dashed","dotted"]
63 ] ++ hasType (color ==> line ==> form) ["solid","dashed","dotted"]
53shapes = [ twoNums (\n m -> listOf (pairOf n) ==> pairOf m ==> shape) "polygon"
65shapes = [ twoNums (\n m -> listOf (pairOf n) ==> pairOf m ==> shape) "polygon"
54 , "filled" -: color ==> shape ==> form
66 , "filled" -: color ==> shape ==> form
55 , "outlined" -: color ==> shape ==> form
67 , "outlined" -: color ==> shape ==> form
68+ , "textured" -: string ==> shape ==> form
56 , "customOutline" -: listOf int ==> color ==> shape ==> form
69 , "customOutline" -: listOf int ==> color ==> shape ==> form
57− , numScheme (\n -> n ==> n ==> form ==> form) "move"
58− , numScheme (\n -> n ==> form ==> form) "rotate"
59− , numScheme (\n -> n ==> form ==> form) "scale"
60 ] ++ map (twoNums (\n m -> n ==> n ==> pairOf m ==> shape)) [ "ngon"
70 ] ++ map (twoNums (\n m -> n ==> n ==> pairOf m ==> shape)) [ "ngon"
62 , "oval" ]
72 , "oval" ]
74+collages = [ numScheme (\n -> pairOf n ==> element ==> form) "toForm"
75+ , numScheme (\n -> string ==> n ==> n ==> pairOf n ==> form) "sprite"
76+ , numScheme (\n -> n ==> n ==> form ==> form) "move"
77+ , numScheme (\n -> n ==> form ==> form) "rotate"
78+ , numScheme (\n -> n ==> form ==> form) "scale"
65-------- Foreign --------
81-------- Foreign --------
@@ -256,4 +272,5 @@ hints = mapM (\(n,s) -> (,) n `liftM` rescheme s) hs
256 where hs = concat [ funcs, lists, signals, math, bools, str2elem, textAttrs
272 where hs = concat [ funcs, lists, signals, math, bools, str2elem, textAttrs
257 , elements, directions, colors, lineTypes, shapes
273 , elements, directions, colors, lineTypes, shapes
258 , concreteSignals, casts, polyCasts, json, maybeFuncs
274 , concreteSignals, casts, polyCasts, json, maybeFuncs
275+ , positions, collages