/inkscape/share/extensions/ |
H A D | grid_polar.py | 6 ##There is a wide range of options including subdivision and labels. 124 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 [all...] |
H A D | grid_cartesian.py | 6 ##There is a wide range of options including subdivision, subsubdivions 127 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 [all...] |
H A D | web-set-att.py | 57 if len(self.options.ids) < 2: 63 if self.options.from_and_to == "g-to-one": 65 for selId in self.options.ids[:-1]: 67 idTo.append( self.options.ids[-1] ) 70 elFrom.append( self.selected[ self.options.ids[0] ] ) 71 for selId in self.options.ids[1:]: 75 "att:'"+ self.options.att +"', " + \ 76 "val:'"+ self.options.val +"'})" 79 prevEvCode = el.get( self.options.when ) 82 if self.options [all...] |
H A D | spirograph.py | 51 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') 55 if self.options.secondaryr == 0: 57 if self.options.quality == 0: 60 if(self.options.gearplacement.strip(' ').lower().startswith('outside')): 61 a = self.options [all...] |
H A D | web-transmit-att.py | 53 if len(self.options.ids) < 2: 59 if self.options.from_and_to == "g-to-one": 61 for selId in self.options.ids[:-1]: 63 idTo.append( self.options.ids[-1] ) 66 elFrom.append( self.selected[ self.options.ids[0] ] ) 67 for selId in self.options.ids[1:]: 72 "att:'"+ self.options.att +"'})" 75 prevEvCode = el.get( self.options.when ) 78 if self.options.compatibility == 'append': 80 if self.options [all...] |
H A D | plotter.py | 79 self.options.showMovements = True 80 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") 82 myHpglDecoder = hpgl_decoder.hpglDecoder(self.hpgl, self.options) 89 if self.options.commandLanguage == 'HPGL': 91 if self.options.commandLanguage == 'DMPL': 93 if self.options.commandLanguage == 'KNK': 96 if self.options.debug: 104 if self.options.force > 0: 105 hpglInit += ';FS%d' % self.options [all...] |
H A D | grid_isometric.py | 6 #There is some options including subdivision, subsubdivions and custom line width 88 self.options.dx = self.unittouu(str(self.options.dx) + 'px') 89 self.options.divs_th = self.unittouu(str(self.options.divs_th) + 'px') 90 self.options.subdivs_th = self.unittouu(str(self.options.subdivs_th) + 'px') 91 self.options.subsubdivs_th = self.unittouu(str(self.options.subsubdivs_th) + 'px') 92 self.options [all...] |
H A D | perfectboundcover.py | 94 if self.options.paperthickness > 0: 95 if self.options.paperthicknessmeasurement == "width": 96 paper_spine = self.options.paperthickness 98 paper_spine = self.options.pages / switch[self.options.paperthicknessmeasurement](self.options.paperthickness) 102 if self.options.coverthickness > 0: 103 if self.options.coverthicknessmeasurement == "width": 104 cover_spine = self.options.coverthickness 106 cover_spine = 4.0 / switch[self.options [all...] |
H A D | restack.py | 68 if self.options.tab == '"help"': 71 if self.options.tab == '"positional"': 73 elif self.options.tab == '"z_order"': 83 if self.options.nb_direction == '"custom"': 84 self.options.direction = "aa" 87 firstobject = self.selected[self.options.ids[0]] 149 if self.options.xanchor == "l": 151 elif self.options.xanchor == "r": 156 if self.options.yanchor == "t": 158 elif self.options [all...] |
H A D | hpgl_decoder.py | 29 def __init__(self, hpglString, options): 30 ''' options: 38 self.options = options 39 self.scaleX = options.resolutionX / 25.4 # dots/inch to dots/mm 40 self.scaleY = options.resolutionY / 25.4 # dots/inch to dots/mm 45 self.oldCoordinates = (0.0, self.options.docHeight) 51 (self.options.docWidth, self.options.docHeight, self.options [all...] |
H A D | color_HSL_adjust.py | 47 if (self.options.random_hue): 49 elif (self.options.hue): 50 hueval = hsl[0] + (self.options.hue / 360.0) 52 if(self.options.random_saturation): 54 elif (self.options.saturation): 55 satval = hsl[1] + (self.options.saturation / 100.0) 57 if(self.options.random_lightness): 59 elif (self.options.lightness): 60 lightval = hsl[2] + (self.options.lightness / 100.0)
|
H A D | jessyInk_effects.py | 56 if (self.options.effectIn == "appear") or (self.options.effectIn == "fade") or (self.options.effectIn == "pop"): 57 node.set("{" + inkex.NSS["jessyink"] + "}effectIn","name:" + self.options.effectIn + ";order:" + self.options.effectInOrder + ";length:" + str(int(self.options.effectInDuration * 1000))) 65 if (self.options.effectOut == "appear") or (self.options.effectOut == "fade") or (self.options.effectOut == "pop"): 66 node.set("{" + inkex.NSS["jessyink"] + "}effectOut","name:" + self.options [all...] |
H A D | svgcalendar.py | 138 #inkex.errormsg( self.options.input_encode ) 140 m = re.match('\s*(.*[^\s])\s*', self.options.month_names) 141 self.options.month_names = re.split('\s+', m.group(1)) 142 m = re.match('\s*(.*[^\s])\s*', self.options.day_names) 143 self.options.day_names = re.split('\s+', m.group(1)) 145 if len(self.options.month_names) != 12: 147 str(self.options.month_names) + \ 149 self.options.month_names = ['January', 'February', 'March', 153 if len(self.options.day_names) != 7: 155 str(self.options [all...] |
H A D | triangle.py | 126 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') 131 if self.options.mode == '3_sides': 132 s_a = self.options.s_a 133 s_b = self.options.s_b 134 s_c = self.options [all...] |
H A D | webslicer_create_rect.py | 82 name = self.options.name 94 self.options.name = name+'-'+num_s 98 self.options.format = self.options.ensure_value('format', 'png').lower() 99 if not is_empty( self.options.dimension ): 100 self.options.dimension 108 if is_empty(self.options.name): 109 self.options.name = 'slice-00' 111 rect.set('id', self.options.name) 119 conf_txt = "format:"+ self.options [all...] |
H A D | radiusrand.py | 67 if self.options.end: 68 delta=randomize([0,0], self.options.radiusx, self.options.radiusy, self.options.norm) 75 if self.options.ctrl: 76 csp[0]=randomize(csp[0], self.options.radiusx, self.options.radiusy, self.options.norm) 77 csp[2]=randomize(csp[2], self.options.radiusx, self.options [all...] |
H A D | jessyInk_transitions.py | 52 if self.options.layerName != "": 53 nodes = self.document.xpath(unicode("//*[@inkscape:groupmode='layer' and @inkscape:label='" + self.options.layerName + "']", 'utf-8'), namespaces=inkex.NSS) 59 if self.options.effectIn == "default": 63 nodes[0].set("{" + inkex.NSS["jessyink"] + "}transitionIn","name:" + self.options.effectIn + ";length:" + str(int(self.options.effectInDuration * 1000))) 64 if self.options.effectOut == "default": 68 nodes[0].set("{" + inkex.NSS["jessyink"] + "}transitionOut","name:" + self.options.effectOut + ";length:" + str(int(self.options.effectOutDuration * 1000)))
|
H A D | markers_strokepaint.py | 4 Copyright (C) 2010 Nicolas Dufour, nicoduf@yahoo.fr (color options) 87 if self.options.tab == '"object"': 90 if (self.options.invert): 96 if (self.options.assign_alpha): 99 if (self.options.invert): 105 if (self.options.fill_type == "solid"): 107 if (self.options.assign_alpha): 110 elif self.options.tab == '"custom"': 111 fill_red = ((self.options.fill_color >> 24) & 255) 112 fill_green = ((self.options [all...] |
H A D | rtree.py | 57 self.options.size = self.unittouu(str(self.options.size) + 'px') 58 self.options.minimum = self.unittouu(str(self.options.minimum) + 'px') 67 rtree(t, self.options.size, self.options.minimum, self.options.pentoggle)
|
H A D | edge3d.py | 59 delta = 360. / self.options.shades / 2. 61 for shade in range(0, self.options.shades): 62 if self.options.bw and shade > 0 and shade < self.options.shades-1: 64 self.start = [self.options.angle - delta * (shade+1)] 65 self.end = [self.options.angle - delta * (shade)] 66 self.start.append( self.options.angle + delta * (shade) ) 67 self.end.append( self.options.angle + delta * (shade+1) ) 68 self.makeShade(float(shade)/float(self.options.shades-1)) 74 delta = 360. / self.options [all...] |
H A D | lindenmayer.py | 66 self.rules = dict([map(stripme, i.split("=")) for i in self.options.rules.upper().split(";") if i.count("=")==1]) 67 string = self.__recurse(self.options.axiom.upper(),0) 77 self.turtle.fd(self.options.step * (random.normalvariate(1.0, 0.01 * self.options.randomizestep))) 80 self.turtle.fd(self.options.step * (random.normalvariate(1.0, 0.01 * self.options.randomizestep))) 82 self.turtle.lt(self.options.langle * (random.normalvariate(1.0, 0.01 * self.options.randomizeangle))) 84 self.turtle.rt(self.options.rangle * (random.normalvariate(1.0, 0.01 * self.options [all...] |
H A D | empty_page.py | 21 if self.options.page_size == "a5": 26 if self.options.page_size == "a4": 31 if self.options.page_size == "a3": 36 if self.options.page_size == "letter": 41 if self.options.page_orientation == "horizontal": 61 if self.options.page_background == "white": 67 if self.options.page_background == "gray": 73 if self.options.page_background == "black": 79 if self.options.page_noborder:
|
H A D | color_custom.py | 31 if v > float(self.options.scale): 32 return float(self.options.scale) 39 factor = 255.0/float(self.options.scale) 48 r2=self.normalize(eval(self.options.rFunction,safeenv)) 49 g2=self.normalize(eval(self.options.gFunction,safeenv)) 50 b2=self.normalize(eval(self.options.bFunction,safeenv))
|
/inkscape/share/extensions/test/ |
H A D | svgcalendar.test.py | 17 self.assertEqual( e.options.month_names[0], 'January' ) 18 self.assertEqual( e.options.month_names[11], 'December' ) 19 self.assertEqual( e.options.day_names[0], 'Sun' ) 20 self.assertEqual( e.options.day_names[6], 'Sat' ) 30 self.assertEqual( e.options.month_names[0], 'JAN' ) 31 self.assertEqual( e.options.month_names[11], 'DEZ' ) 32 self.assertEqual( e.options.day_names[0], 'DOM' ) 33 self.assertEqual( e.options.day_names[6], 'SAB' ) 43 self.assertEqual( e.options.month_names[0], 'JAN' ) 44 self.assertEqual( e.options [all...] |
/inkscape/src/libdepixelize/ |
H A D | kopftracer2011.h | 67 // Other options 75 * \p options.optimize and options.nthreads will be ignored 81 const Options &options = Options()); 84 * \p options.optimize and options.nthreads will be ignored 87 const Options &options = Options()); 92 * \p options.optimize and options.nthreads will be ignored 98 const Options &options [all...] |