Skip to content

Commit c3b3b4d

Browse files
Removed tabs
1 parent 19afe81 commit c3b3b4d

File tree

207 files changed

+29439
-29529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+29439
-29529
lines changed

min/primitives.jquery.latest.js

Lines changed: 333 additions & 333 deletions
Large diffs are not rendered by default.

min/primitives.latest.js

Lines changed: 9770 additions & 9815 deletions
Large diffs are not rendered by default.

min/primitives.tests.js

Lines changed: 5877 additions & 5877 deletions
Large diffs are not rendered by default.

samples/FirstOrganizationalChart.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -159,31 +159,31 @@ Basic Primitives Organizational Chart PDFkit plugin is just a rendering function
159159

160160
``` JavaScript
161161
var firstOrganizationalChartSample = primitives.pdf.orgdiagram.Plugin({
162-
items: [
163-
new primitives.orgdiagram.ItemConfig({
164-
id: 0,
165-
parent: null,
166-
title: "Scott Aasrud",
167-
description: "VP, Public Sector",
168-
image: photos.a
169-
}),
170-
new primitives.orgdiagram.ItemConfig({
171-
id: 1,
172-
parent: 0,
173-
title: "Ted Lucas",
174-
description: "VP, Human Resources",
175-
image: photos.b
176-
}),
177-
new primitives.orgdiagram.ItemConfig({
178-
id: 2,
179-
parent: 0,
180-
title: "Joao Stuger",
181-
description: "Business Solutions, US",
182-
image: photos.c
183-
})
184-
],
185-
cursorItem: null,
186-
hasSelectorCheckbox: primitives.common.Enabled.False
162+
items: [
163+
new primitives.orgdiagram.ItemConfig({
164+
id: 0,
165+
parent: null,
166+
title: "Scott Aasrud",
167+
description: "VP, Public Sector",
168+
image: photos.a
169+
}),
170+
new primitives.orgdiagram.ItemConfig({
171+
id: 1,
172+
parent: 0,
173+
title: "Ted Lucas",
174+
description: "VP, Human Resources",
175+
image: photos.b
176+
}),
177+
new primitives.orgdiagram.ItemConfig({
178+
id: 2,
179+
parent: 0,
180+
title: "Joao Stuger",
181+
description: "Business Solutions, US",
182+
image: photos.c
183+
})
184+
],
185+
cursorItem: null,
186+
hasSelectorCheckbox: primitives.common.Enabled.False
187187
});
188188

189189
var size = firstOrganizationalChartSample.draw(doc, 100, 150);

src.primitives.jquery/callout/callout.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* Basic Primitives Callout.
55
*
66
* Depends:
7-
* jquery.ui.core.js
8-
* jquery.ui.widget.js
7+
* jquery.ui.core.js
8+
* jquery.ui.widget.js
99
*/
1010
if (typeof jQuery != "undefined") {
11-
(function ($) {
12-
$.widget("ui.bpCallout", new primitives.callout.Controller());
13-
}(jQuery));
11+
(function ($) {
12+
$.widget("ui.bpCallout", new primitives.callout.Controller());
13+
}(jQuery));
1414
}; //ignore jslint
Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,110 @@
11
primitives.callout.Controller = function () {
2-
this.widgetEventPrefix = "bpcallout";
2+
this.widgetEventPrefix = "bpcallout";
33

4-
this.options = new primitives.callout.Config();
4+
this.options = new primitives.callout.Config();
55

6-
this.m_placeholder = null;
7-
this.m_panelSize = null;
6+
this.m_placeholder = null;
7+
this.m_panelSize = null;
88

9-
this.m_graphics = null;
9+
this.m_graphics = null;
1010

11-
this.m_shape = null;
11+
this.m_shape = null;
1212
};
1313

1414
primitives.callout.Controller.prototype._create = function () {
15-
this.element
16-
.addClass("ui-widget");
15+
this.element
16+
.addClass("ui-widget");
1717

18-
this._createLayout();
18+
this._createLayout();
1919

20-
this._redraw();
20+
this._redraw();
2121
};
2222

2323
primitives.callout.Controller.prototype.destroy = function () {
24-
this._cleanLayout();
24+
this._cleanLayout();
2525
};
2626

2727
primitives.callout.Controller.prototype._createLayout = function () {
28-
this.m_panelSize = new primitives.common.Rect(0, 0, this.element.outerWidth(), this.element.outerHeight());
29-
30-
this.m_placeholder = jQuery('<div></div>');
31-
this.m_placeholder.css({
32-
"position": "relative",
33-
"overflow": "hidden",
34-
"top": "0px",
35-
"left": "0px",
36-
"padding": "0px",
37-
"margin": "0px"
38-
});
39-
this.m_placeholder.css(this.m_panelSize.getCSS());
40-
this.m_placeholder.addClass("placeholder");
41-
this.m_placeholder.addClass(this.widgetEventPrefix);
42-
43-
this.element.append(this.m_placeholder);
44-
45-
this.m_graphics = primitives.common.createGraphics(this.options.graphicsType, this.element[0]);
46-
47-
this.m_shape = new primitives.common.Callout(this.m_graphics);
28+
this.m_panelSize = new primitives.common.Rect(0, 0, this.element.outerWidth(), this.element.outerHeight());
29+
30+
this.m_placeholder = jQuery('<div></div>');
31+
this.m_placeholder.css({
32+
"position": "relative",
33+
"overflow": "hidden",
34+
"top": "0px",
35+
"left": "0px",
36+
"padding": "0px",
37+
"margin": "0px"
38+
});
39+
this.m_placeholder.css(this.m_panelSize.getCSS());
40+
this.m_placeholder.addClass("placeholder");
41+
this.m_placeholder.addClass(this.widgetEventPrefix);
42+
43+
this.element.append(this.m_placeholder);
44+
45+
this.m_graphics = primitives.common.createGraphics(this.options.graphicsType, this.element[0]);
46+
47+
this.m_shape = new primitives.common.Callout(this.m_graphics);
4848
};
4949

5050
primitives.callout.Controller.prototype._cleanLayout = function () {
51-
if (this.m_graphics !== null) {
52-
this.m_graphics.clean();
53-
}
54-
this.m_graphics = null;
51+
if (this.m_graphics !== null) {
52+
this.m_graphics.clean();
53+
}
54+
this.m_graphics = null;
5555

56-
this.element.find("." + this.widgetEventPrefix).remove();
56+
this.element.find("." + this.widgetEventPrefix).remove();
5757
};
5858

5959
primitives.callout.Controller.prototype._updateLayout = function () {
60-
this.m_panelSize = new primitives.common.Rect(0, 0, this.element.innerWidth(), this.element.innerHeight());
61-
this.m_placeholder.css(this.m_panelSize.getCSS());
60+
this.m_panelSize = new primitives.common.Rect(0, 0, this.element.innerWidth(), this.element.innerHeight());
61+
this.m_placeholder.css(this.m_panelSize.getCSS());
6262
};
6363

6464
primitives.callout.Controller.prototype.update = function (recreate) {
65-
if (recreate) {
66-
this._cleanLayout();
67-
this._createLayout();
68-
this._redraw();
69-
}
70-
else {
71-
this._updateLayout();
72-
this.m_graphics.resize("placeholder", this.m_panelSize.width, this.m_panelSize.height);
73-
this.m_graphics.begin();
74-
this._redraw();
75-
this.m_graphics.end();
76-
}
65+
if (recreate) {
66+
this._cleanLayout();
67+
this._createLayout();
68+
this._redraw();
69+
}
70+
else {
71+
this._updateLayout();
72+
this.m_graphics.resize("placeholder", this.m_panelSize.width, this.m_panelSize.height);
73+
this.m_graphics.begin();
74+
this._redraw();
75+
this.m_graphics.end();
76+
}
7777
};
7878

7979
primitives.callout.Controller.prototype._redraw = function () {
80-
var names = ["pointerPlacement", "cornerRadius", "offset", "opacity", "lineWidth", "lineType", "pointerWidth", "borderColor", "fillColor"],
81-
index,
82-
name;
83-
this.m_graphics.activate("placeholder");
84-
for (index = 0; index < names.length; index += 1) {
85-
name = names[index];
86-
this.m_shape[name] = this.options[name];
87-
}
88-
this.m_shape.draw(this.options.snapPoint, this.options.position);
80+
var names = ["pointerPlacement", "cornerRadius", "offset", "opacity", "lineWidth", "lineType", "pointerWidth", "borderColor", "fillColor"],
81+
index,
82+
name;
83+
this.m_graphics.activate("placeholder");
84+
for (index = 0; index < names.length; index += 1) {
85+
name = names[index];
86+
this.m_shape[name] = this.options[name];
87+
}
88+
this.m_shape.draw(this.options.snapPoint, this.options.position);
8989
};
9090

9191
primitives.callout.Controller.prototype._setOption = function (key, value) {
92-
jQuery.Widget.prototype._setOption.apply(this, arguments);
93-
94-
switch (key) {
95-
case "disabled":
96-
var handles = jQuery([]);
97-
if (value) {
98-
handles.filter(".ui-state-focus").blur();
99-
handles.removeClass("ui-state-hover");
100-
handles.propAttr("disabled", true);
101-
this.element.addClass("ui-disabled");
102-
} else {
103-
handles.propAttr("disabled", false);
104-
this.element.removeClass("ui-disabled");
105-
}
106-
break;
107-
default:
108-
break;
109-
}
92+
jQuery.Widget.prototype._setOption.apply(this, arguments);
93+
94+
switch (key) {
95+
case "disabled":
96+
var handles = jQuery([]);
97+
if (value) {
98+
handles.filter(".ui-state-focus").blur();
99+
handles.removeClass("ui-state-hover");
100+
handles.propAttr("disabled", true);
101+
this.element.addClass("ui-disabled");
102+
} else {
103+
handles.propAttr("disabled", false);
104+
this.element.removeClass("ui-disabled");
105+
}
106+
break;
107+
default:
108+
break;
109+
}
110110
};

src.primitives.jquery/connector/connector.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* Basic Primitives Connector.
55
*
66
* Depends:
7-
* jquery.ui.core.js
8-
* jquery.ui.widget.js
7+
* jquery.ui.core.js
8+
* jquery.ui.widget.js
99
*/
1010
if (typeof jQuery != "undefined") {
11-
(function ($) {
12-
$.widget("ui.bpConnector", new primitives.connector.Controller());
13-
}(jQuery));
11+
(function ($) {
12+
$.widget("ui.bpConnector", new primitives.connector.Controller());
13+
}(jQuery));
1414
}; //ignore jslint
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
primitives.connector.AnnotationLabelTemplate = function (options) {
2-
var _template = ["div",
3-
{
4-
"class": ["bp-item", "bp-corner-all", "bp-connector-label"]
5-
}
6-
];
2+
var _template = ["div",
3+
{
4+
"class": ["bp-item", "bp-corner-all", "bp-connector-label"]
5+
}
6+
];
77

8-
function template() {
9-
return _template;
10-
}
8+
function template() {
9+
return _template;
10+
}
1111

12-
function getHashCode() {
13-
return "defaultAnnotationLabelTemplate";
14-
}
12+
function getHashCode() {
13+
return "defaultAnnotationLabelTemplate";
14+
}
1515

16-
function render(event, data) {
17-
data.element.innerHTML = options.label;
18-
}
16+
function render(event, data) {
17+
data.element.innerHTML = options.label;
18+
}
1919

20-
return {
21-
template: template,
22-
getHashCode: getHashCode,
23-
render: render
24-
};
20+
return {
21+
template: template,
22+
getHashCode: getHashCode,
23+
render: render
24+
};
2525
};
2626

src.primitives.jquery/famdiagram/famDiagram.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
* Basic Primitives family diagram.
55
*
66
* Depends:
7-
* jquery.ui.core.js
8-
* jquery.ui.widget.js
7+
* jquery.ui.core.js
8+
* jquery.ui.widget.js
99
*/
1010
if (typeof jQuery != "undefined") {
11-
(function ($) {
12-
$.widget("ui.famDiagram", new primitives.orgdiagram.Widget(primitives.famdiagram.Config, primitives.famdiagram.TaskManagerFactory, primitives.famdiagram.EventArgsFactory, {
13-
AnnotationLabelTemplate: primitives.common.AnnotationLabelTemplate,
14-
ButtonsTemplate: primitives.common.jQueryButtonsTemplate,
15-
CheckBoxTemplate: primitives.common.CheckBoxTemplate,
16-
CursorTemplate: primitives.common.CursorTemplate,
17-
DotHighlightTemplate: primitives.common.DotHighlightTemplate,
18-
GroupTitleTemplate: primitives.common.GroupTitleTemplate,
19-
HighlightTemplate: primitives.common.HighlightTemplate,
20-
ItemTemplate: primitives.common.ItemTemplate,
21-
UserTemplate: primitives.common.UserTemplate,
22-
/* famDiagram specific templates */
23-
LabelAnnotationTemplate: primitives.common.LabelAnnotationTemplate
24-
}));
25-
}(jQuery));
11+
(function ($) {
12+
$.widget("ui.famDiagram", new primitives.orgdiagram.Widget(primitives.famdiagram.Config, primitives.famdiagram.TaskManagerFactory, primitives.famdiagram.EventArgsFactory, {
13+
AnnotationLabelTemplate: primitives.common.AnnotationLabelTemplate,
14+
ButtonsTemplate: primitives.common.jQueryButtonsTemplate,
15+
CheckBoxTemplate: primitives.common.CheckBoxTemplate,
16+
CursorTemplate: primitives.common.CursorTemplate,
17+
DotHighlightTemplate: primitives.common.DotHighlightTemplate,
18+
GroupTitleTemplate: primitives.common.GroupTitleTemplate,
19+
HighlightTemplate: primitives.common.HighlightTemplate,
20+
ItemTemplate: primitives.common.ItemTemplate,
21+
UserTemplate: primitives.common.UserTemplate,
22+
/* famDiagram specific templates */
23+
LabelAnnotationTemplate: primitives.common.LabelAnnotationTemplate
24+
}));
25+
}(jQuery));
2626
}; //ignore jslint

src.primitives.jquery/orgdiagram/orgDiagram.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Basic Primitives organization diagram.
55
*
66
* Depends:
7-
* jquery.ui.core.js
8-
* jquery.ui.widget.js
7+
* jquery.ui.core.js
8+
* jquery.ui.widget.js
99
*/
1010
if (typeof jQuery != "undefined") {
1111
(function ($) {

0 commit comments

Comments
 (0)