/**
         * @param po
         * @throws PipelineException
         */

        //lijst met graphische elementen (en andere?)
        private void Write(IWorkerContext context, ProcessObject po, Tag t)
        {
            //MapContext mp = GetLocalContext(context);
            if (po.ContainsWritable())
            {
                //Document doc = (Document) mp.Get(DOCUMENT);
                //bool continuousWrite = (Boolean) mp.Get(CONTINUOUS);
                IWritable writable = null;
                while (null != (writable = po.Poll()))
                {
                    if (writable is Graphic)
                    {
                        ((Graphic)writable).Draw(template, t.CSS);
                        if (writable is Svg)
                        {
                            Svg            svg     = (Svg)writable;
                            text.Rectangle viewBox = svg.ViewBox;
                            template.BoundingBox = new text.Rectangle(viewBox.Width, viewBox.Height);
                        }
                    }
                }
            }
        }
Beispiel #2
0
 public Svg(float height, float width, text.Rectangle viewBox, IDictionary<String, String> css) : base(css)
 {
     this.height = height;
     this.width = width;
     this.viewBox = viewBox;
 }
Beispiel #3
0
 public Svg(float height, float width, text.Rectangle viewBox, IDictionary <String, String> css) : base(css)
 {
     this.height  = height;
     this.width   = width;
     this.viewBox = viewBox;
 }