Skip to content

Commit

Permalink
Adding stub renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
javallone committed Dec 30, 2012
1 parent 13f5ef8 commit 5dea5ca
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/assets/javascripts/regexper/charset.js
@@ -0,0 +1,15 @@
define(['regexper', 'regexper/base', 'regexper/text_box'], function(Regexper, Base, TextBox) {
var Charset = function(paper, structure) {
Base.call(this);
TextBox.call(this, paper, 'Temporary Charset',
{}, { fill: '#ffffff' });

this._stack_order = [this._rect, this._text];

this._mark_complete();
};

Regexper.extend(Charset.prototype, Base.prototype, TextBox.prototype);

return Charset;
});
15 changes: 15 additions & 0 deletions app/assets/javascripts/regexper/match.js
@@ -0,0 +1,15 @@
define(['regexper', 'regexper/base', 'regexper/text_box'], function(Regexper, Base, TextBox) {
var Match = function(paper, structure) {
Base.call(this);
TextBox.call(this, paper, 'Temporary Match',
{}, { fill: '#ffffff' });

this._stack_order = [this._rect, this._text];

this._mark_complete();
};

Regexper.extend(Match.prototype, Base.prototype, TextBox.prototype);

return Match;
});
15 changes: 15 additions & 0 deletions app/assets/javascripts/regexper/range.js
@@ -0,0 +1,15 @@
define(['regexper', 'regexper/base', 'regexper/text_box'], function(Regexper, Base, TextBox) {
var Range = function(paper, structure) {
Base.call(this);
TextBox.call(this, paper, 'Temporary Range',
{}, { fill: '#ffffff' });

this._stack_order = [this._rect, this._text];

this._mark_complete();
};

Regexper.extend(Range.prototype, Base.prototype, TextBox.prototype);

return Range;
});
15 changes: 15 additions & 0 deletions app/assets/javascripts/regexper/regexp.js
@@ -0,0 +1,15 @@
define(['regexper', 'regexper/base', 'regexper/text_box'], function(Regexper, Base, TextBox) {
var Regexp = function(paper, structure) {
Base.call(this);
TextBox.call(this, paper, 'Temporary Regexp',
{}, { fill: '#ffffff' });

this._stack_order = [this._rect, this._text];

this._mark_complete();
};

Regexper.extend(Regexp.prototype, Base.prototype, TextBox.prototype);

return Regexp;
});
15 changes: 15 additions & 0 deletions app/assets/javascripts/regexper/repetition.js
@@ -0,0 +1,15 @@
define(['regexper', 'regexper/base', 'regexper/text_box'], function(Regexper, Base, TextBox) {
var Repetition = function(paper, structure) {
Base.call(this);
TextBox.call(this, paper, 'Temporary Repetition',
{}, { fill: '#ffffff' });

this._stack_order = [this._rect, this._text];

this._mark_complete();
};

Regexper.extend(Repetition.prototype, Base.prototype, TextBox.prototype);

return Repetition;
});
15 changes: 15 additions & 0 deletions app/assets/javascripts/regexper/subexp.js
@@ -0,0 +1,15 @@
define(['regexper', 'regexper/base', 'regexper/text_box'], function(Regexper, Base, TextBox) {
var Subexp = function(paper, structure) {
Base.call(this);
TextBox.call(this, paper, 'Temporary Subexp',
{}, { fill: '#ffffff' });

this._stack_order = [this._rect, this._text];

this._mark_complete();
};

Regexper.extend(Subexp.prototype, Base.prototype, TextBox.prototype);

return Subexp;
});

0 comments on commit 5dea5ca

Please sign in to comment.