diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-12-30 19:47:30 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-12-30 19:47:30 +0100 |
commit | 9b1c3470a7a222ef9ae20106d750c4a0127819a7 (patch) | |
tree | 746f1a65eb69b87ea33e07ab4730540a8a8d50c9 /tex/context/base/mkxl/grph-rul.lmt | |
parent | cefe8d703dd66048fa9d259b697609bd539a7bce (diff) | |
download | context-9b1c3470a7a222ef9ae20106d750c4a0127819a7.tar.gz |
2021-12-30 19:03:00
Diffstat (limited to 'tex/context/base/mkxl/grph-rul.lmt')
-rw-r--r-- | tex/context/base/mkxl/grph-rul.lmt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/grph-rul.lmt b/tex/context/base/mkxl/grph-rul.lmt index 50a40155e..b1de3a6a6 100644 --- a/tex/context/base/mkxl/grph-rul.lmt +++ b/tex/context/base/mkxl/grph-rul.lmt @@ -22,6 +22,8 @@ local tonode = nuts.tonode local getattribute = tex.getattribute +local direct_value = tokens.values.direct + local a_color = attributes.private('color') local a_transparency = attributes.private('transparency') local a_colormodel = attributes.private('colormodel') @@ -40,6 +42,8 @@ end) interfaces.implement { name = "frule", + public = true, + protected = true, arguments = { { { "width", "dimension" }, { "height", "dimension" }, @@ -52,7 +56,7 @@ interfaces.implement { { "radius", "dimension" }, { "corner", "string" }, } } , - actions = function(t) + actions = function(t,...) local rule = userrule(t) if t.type == "mp" then t.ma = getattribute(a_colormodel) or 1 @@ -61,7 +65,7 @@ interfaces.implement { else setattrlist(rule,true) end - context(tonode(rule)) -- will become context.nodes.flush + context(nuts.tonode(rule)) end } @@ -78,17 +82,19 @@ interfaces.implement { actions = function(t) local rule = outlinerule(t.width,t.height,t.depth,t.line) setattrlist(rule,true) - context(tonode(rule)) -- will become context.nodes.flush + context(tonode(rule)) end } interfaces.implement { name = "framedoutline", + -- public = true, + -- protected = true, arguments = { "dimension", "dimension", "dimension", "dimension" }, actions = function(w,h,d,l) local rule = outlinerule(w,h,d,l) setattrlist(rule,true) - context(tonode(rule)) -- will become context.nodes.flush + context(tonode(rule)) end } |