12 this.text_bbox = this.text_elt.getBBox() |
12 this.text_bbox = this.text_elt.getBBox() |
13 this.box_bbox = this.box_elt.getBBox() |
13 this.box_bbox = this.box_elt.getBBox() |
14 lmargin = this.text_bbox.x - this.box_bbox.x; |
14 lmargin = this.text_bbox.x - this.box_bbox.x; |
15 tmargin = this.text_bbox.y - this.box_bbox.y; |
15 tmargin = this.text_bbox.y - this.box_bbox.y; |
16 this.margins = [lmargin, tmargin].map(x => Math.max(x,0)); |
16 this.margins = [lmargin, tmargin].map(x => Math.max(x,0)); |
17 this.content = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", |
17 //this.content = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", |
18 "eleven", "twelve", "thirteen", "fourteen", "fifteen"]; |
18 // "eleven", "twelve", "thirteen", "fourteen", "fifteen"]; |
19 //this.content = ["one", "two", "three", "four", "5", "6"]; |
19 this.content = [ |
|
20 ``foreach "arg" | "«@value»", |
|
21 ]; |
20 this.menu_offset = 0; |
22 this.menu_offset = 0; |
21 this.lift = 0; |
23 this.lift = 0; |
22 this.opened = false; |
24 this.opened = false; |
23 this.bound_inhibit_click_elsewhere = this.inhibit_click_elsewhere.bind(this); |
25 this.bound_inhibit_click_elsewhere = this.inhibit_click_elsewhere.bind(this); |
24 }, |
26 }, |