Searched refs:unittouu (Results 1 - 25 of 47) sorted by relevance

12

/inkscape/share/extensions/
H A Ddots.py72 p[lastDot][1][-2] += x * self.unittouu(self.options.dotsize)
73 p[lastDot][1][-1] += y * self.unittouu(self.options.dotsize)
97 'r': str( self.unittouu(self.options.dotsize) / 2 ),
107 params[-2] + ( self.unittouu(self.options.dotsize) / 2 ),
108 params[-1] - ( self.unittouu(self.options.dotsize) / 2 ),
115 s = {'font-size': self.unittouu(self.options.fontsize), 'fill-opacity': '1.0', 'stroke': 'none',
H A Drtree.py57 self.options.size = self.unittouu(str(self.options.size) + 'px')
58 self.options.minimum = self.unittouu(str(self.options.minimum) + 'px')
59 s = {'stroke-linejoin': 'miter', 'stroke-width': str(self.unittouu('1px')),
H A Drender_gear_rack.py69 length = self.unittouu(str(self.options.length) + 'px')
70 spacing = self.unittouu(str(self.options.spacing) + 'px')
98 style = {'stroke': '#000000', 'fill': 'none', 'stroke-width': str(self.unittouu('1px'))}
H A Dspirograph.py51 self.options.primaryr = self.unittouu(str(self.options.primaryr) + 'px')
52 self.options.secondaryr = self.unittouu(str(self.options.secondaryr) + 'px')
53 self.options.penr = self.unittouu(str(self.options.penr) + 'px')
75 s = { 'stroke': '#000000', 'fill': 'none', 'stroke-width': str(self.unittouu('1px')) }
H A Dgrid_polar.py124 self.options.dr = self.unittouu(str(self.options.dr) + 'px')
125 self.options.r_divs_th = self.unittouu(str(self.options.r_divs_th) + 'px')
126 self.options.r_subdivs_th = self.unittouu(str(self.options.r_subdivs_th) + 'px')
127 self.options.a_divs_th = self.unittouu(str(self.options.a_divs_th) + 'px')
128 self.options.a_subdivs_th = self.unittouu(str(self.options.a_subdivs_th) + 'px')
129 self.options.c_dot_dia = self.unittouu(str(self.options.c_dot_dia) + 'px')
130 self.options.a_label_size = self.unittouu(str(self.options.a_label_size) + 'px')
131 self.options.a_label_outset = self.unittouu(str(self.options.a_label_outset) + 'px')
H A Dink2canvas.py83 width = self.unittouu(svg_root.get("width"))
84 height = self.unittouu(svg_root.get("height"))
H A Dgrid_cartesian.py127 self.options.border_th = self.unittouu(str(self.options.border_th) + 'px')
128 self.options.dx = self.unittouu(str(self.options.dx) + 'px')
129 self.options.x_divs_th = self.unittouu(str(self.options.x_divs_th) + 'px')
130 self.options.x_subdivs_th = self.unittouu(str(self.options.x_subdivs_th) + 'px')
131 self.options.x_subsubdivs_th = self.unittouu(str(self.options.x_subsubdivs_th) + 'px')
132 self.options.dy = self.unittouu(str(self.options.dy) + 'px')
133 self.options.y_divs_th = self.unittouu(str(self.options.y_divs_th) + 'px')
134 self.options.y_subdivs_th = self.unittouu(str(self.options.y_subdivs_th) + 'px')
135 self.options.y_subsubdivs_th = self.unittouu(str(self.options.y_subsubdivs_th) + 'px')
H A Dfoldablebox.py62 docW = self.unittouu(self.document.getroot().get('width'))
63 docH = self.unittouu(self.document.getroot().get('height'))
65 boxW = self.unittouu( str(self.options.width) + self.options.unit )
66 boxH = self.unittouu( str(self.options.height) + self.options.unit )
67 boxD = self.unittouu( str(self.options.depth) + self.options.unit )
74 line_style = simplestyle.formatStyle({ 'stroke': '#000000', 'fill': 'none', 'stroke-width': str(self.unittouu('1px')) })
H A Drender_barcode.py57 scale=self.unittouu('1px'),
H A Dtriangle.py126 self.options.s_a = self.unittouu(str(self.options.s_a) + 'px')
127 self.options.s_b = self.unittouu(str(self.options.s_b) + 'px')
128 self.options.s_c = self.unittouu(str(self.options.s_c) + 'px')
129 stroke_width = self.unittouu('2px')
H A Dprinting_marks.py194 scale = self.unittouu('1px') # convert to document units
230 self.mark_size = self.unittouu('1cm')
231 self.min_mark_margin = self.unittouu('3mm')
239 self.area_w = self.unittouu(svg.get('width'))
240 self.area_h = self.unittouu(svg.attrib['height'])
249 #self.width = width = self.unittouu(svg.get('width'))
250 #self.height = height = self.unittouu(svg.attrib['height'])
253 offset = self.unittouu(str(self.options.crop_offset) + \
255 bt = self.unittouu(str(self.options.bleed_top) + self.options.unit)
256 bb = self.unittouu(st
[all...]
H A Deqtexsvg.py58 doc_width = self.unittouu(self.document.getroot().get('width'))
59 doc_height = self.unittouu(self.document.getroot().get('height'))
H A Dhpgl_encoder.py58 self.docWidth = effect.unittouu(self.doc.get('width'))
59 self.docHeight = effect.unittouu(self.doc.get('height'))
70 self.scaleX = self.options.resolutionX / effect.unittouu("1.0in") # dots per inch to dots per user unit
71 self.scaleY = self.options.resolutionY / effect.unittouu("1.0in") # dots per inch to dots per user unit
73 self.overcut = effect.unittouu(str(self.options.overcut) + "mm") * scaleXY # mm to dots (plotter coordinate system)
74 self.toolOffset = effect.unittouu(str(self.options.toolOffset) + "mm") * scaleXY # mm to dots
104 self.viewBoxTransformX = self.docWidth / effect.unittouu(effect.addDocumentUnit(viewBox2[2]))
105 self.viewBoxTransformY = self.docHeight / effect.unittouu(effect.addDocumentUnit(viewBox2[3]))
H A Dlindenmayer.py108 self.options.step = self.unittouu(str(self.options.step) + 'px')
109 s = {'stroke-linejoin': 'miter', 'stroke-width': str(self.unittouu('1px')),
H A Drender_gears.py71 pitch = self.unittouu( str(self.options.pitch) + self.options.unit)
73 centerdiameter = self.unittouu( str(self.options.centerdiameter) + self.options.unit)
169 style = { 'stroke': '#000000', 'fill': 'none', 'stroke-width': str(self.unittouu('1px')) }
H A Dsplit.py61 fs = self.unittouu(fontsize)
127 fs = self.unittouu(fontsize)
173 fs = self.unittouu(fontsize)
H A Dvoronoi2svg.py215 'stroke-width' : str(self.unittouu('1px')),
223 'stroke-width' : str(self.unittouu('1px')),
303 w = self.unittouu(svg.get('width'))
304 h = self.unittouu(svg.get('height'))
371 'stroke-width' : str(self.unittouu('0.005px')),
H A Dpixelsnap.py172 stroke_width = self.unittouu(style.get('stroke-width', '').strip())
438 width = self.unittouu(elem.attrib['width'])
439 height = self.unittouu(elem.attrib['height'])
440 x = self.unittouu(elem.attrib['x'])
441 y = self.unittouu(elem.attrib['y'])
496 self.document_offset = self.unittouu(svg.attrib['height']) % 1 # although SVG units are absolute, the elements are positioned relative to the top of the page, rather than zero
H A Dmeasure.py210 scale = self.unittouu('1px') # convert to document units
216 factor = self.unittouu(doc.get('width'))/float(vieww)
217 if self.unittouu(doc.get('height'))/float(viewh) < factor:
218 factor = self.unittouu(doc.get('height'))/float(viewh)
219 factor /= self.unittouu('1px')
221 factor *= scale/self.unittouu('1'+self.options.unit)
H A Dhershey.py67 scale = self.unittouu('1px') # convert to document units
H A Dinkex.py223 x = self.unittouu(xattr[0] + 'px')
224 y = self.unittouu(yattr[0] + 'px')
225 doc_height = self.unittouu(self.getDocumentHeight())
382 def unittouu(self, string): member in class:Effect
H A Dplotter.py80 self.options.docWidth = self.uutounit(self.unittouu(self.document.getroot().get('width')), "px")
81 self.options.docHeight = self.uutounit(self.unittouu(self.document.getroot().get('height')), "px")
248 inkex.errormsg(' Viewbox Width: ' + str(self.unittouu(self.addDocumentUnit(debugObject.debugValues['viewBoxWidth']))) + ' ' + self.getDocumentUnit())
249 inkex.errormsg(' Viewbox Height: ' + str(self.unittouu(self.addDocumentUnit(debugObject.debugValues['viewBoxHeight']))) + ' ' + self.getDocumentUnit())
251 inkex.errormsg(' Drawing width: ' + str(self.unittouu(self.addDocumentUnit(str(debugObject.debugValues['drawingWidthUU'])))) + ' ' + self.getDocumentUnit())
252 inkex.errormsg(' Drawing height: ' + str(self.unittouu(self.addDocumentUnit(str(debugObject.debugValues['drawingHeightUU'])))) + ' ' + self.getDocumentUnit())
H A Dgimp_xcf.py85 pageHeight = int(self.unittouu(self.xpathSingle('/svg:svg/@height').split('.')[0]))
86 pageWidth = int(self.unittouu(self.xpathSingle('/svg:svg/@width').split('.')[0]))
H A Dguillotine.py131 height = self.unittouu(root.attrib['height'])
147 width = self.unittouu(root.attrib['width'])
H A Dwireframe_sphere.py124 so.RADIUS = self.unittouu(str(so.RADIUS) + 'px')
127 stroke_width = self.unittouu('1px')

Completed in 64 milliseconds

12