Lines Matching refs:s

47   var s = /([\s\S]+) as (\S+)$/im.exec(input);
50 if (s) {
51 name = s[1].trim();
52 alias = s[2].trim();
101 Diagram.unescape = function(s) { argument
103 return s.trim().replace(/^"(.*)"$/m, '$1').replace(/\\n/gm, '\n');
751 …rules: [ /^(?:[\r\n]+)/i, /^(?:\s+)/i, /^(?:#[^\r\n]*)/i, /^(?:participant\b)/i, /^(?:left of\b)/i…
1034 _.each(signals, function(s) { argument
1039 var bb = this.textBBox(s.message, font);
1042 s.textBB = bb;
1043 s.width = bb.width;
1044 s.height = bb.height;
1048 if (s.type == 'Signal') {
1050 s.width += (SIGNAL_MARGIN + SIGNAL_PADDING) * 2;
1051 s.height += (SIGNAL_MARGIN + SIGNAL_PADDING) * 2;
1053 if (s.isSelf()) {
1055 a = s.actorA.index;
1057 s.width += SELF_SIGNAL_WIDTH;
1059 a = Math.min(s.actorA.index, s.actorB.index);
1060 b = Math.max(s.actorA.index, s.actorB.index);
1063 } else if (s.type == 'Note') {
1064 s.width += (NOTE_MARGIN + NOTE_PADDING) * 2;
1065 s.height += (NOTE_MARGIN + NOTE_PADDING) * 2;
1070 if (s.placement == PLACEMENT.LEFTOF) {
1071 b = s.actor.index;
1073 } else if (s.placement == PLACEMENT.RIGHTOF) {
1074 a = s.actor.index;
1076 } else if (s.placement == PLACEMENT.OVER && s.hasManyActors()) {
1078 a = Math.min(s.actor[0].index, s.actor[1].index);
1079 b = Math.max(s.actor[0].index, s.actor[1].index);
1084 } else if (s.placement == PLACEMENT.OVER) {
1086 a = s.actor.index;
1087 actorEnsureDistance(a - 1, a, s.width / 2);
1088 actorEnsureDistance(a, a + 1, s.width / 2);
1089 this.signalsHeight_ += s.height;
1094 throw new Error('Unhandled signal type:' + s.type);
1097 actorEnsureDistance(a, b, s.width + extraWidth);
1098 this.signalsHeight_ += s.height;
1167 _.each(this.diagram.signals, function(s) { argument
1169 if (s.type == 'Signal') {
1170 if (s.isSelf()) {
1171 this.drawSelfSignal(s, y);
1173 this.drawSignal(s, y);
1176 } else if (s.type == 'Note') {
1177 this.drawNote(s, y);
1180 y += s.height;