Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 658C9200C78 for ; Wed, 3 May 2017 18:28:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 643D8160BAA; Wed, 3 May 2017 16:28:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 49656160BB5 for ; Wed, 3 May 2017 18:28:31 +0200 (CEST) Received: (qmail 60549 invoked by uid 500); 3 May 2017 16:28:30 -0000 Mailing-List: contact commits-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@predictionio.incubator.apache.org Delivered-To: mailing list commits@predictionio.incubator.apache.org Received: (qmail 60501 invoked by uid 99); 3 May 2017 16:28:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 16:28:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7E96E1A01D7 for ; Wed, 3 May 2017 16:28:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.722 X-Spam-Level: X-Spam-Status: No, score=-3.722 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id toa6AXR81gK6 for ; Wed, 3 May 2017 16:28:09 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 0AD9B60EE4 for ; Wed, 3 May 2017 16:27:50 +0000 (UTC) Received: (qmail 55613 invoked by uid 99); 3 May 2017 16:27:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 16:27:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ECF1CE0885; Wed, 3 May 2017 16:27:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: git-site-role@apache.org To: commits@predictionio.incubator.apache.org Date: Wed, 03 May 2017 16:28:32 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [45/51] [abbrv] [partial] incubator-predictionio-site git commit: Documentation based on apache/incubator-predictionio#a7acb3019bcb9e8e4f780a2d1b1ef9191a1c10a9 archived-at: Wed, 03 May 2017 16:28:33 -0000 http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/index/index-s.html ---------------------------------------------------------------------- diff --git a/api/current/index/index-s.html b/api/current/index/index-s.html new file mode 100644 index 0000000..f81aefa --- /dev/null +++ b/api/current/index/index-s.html @@ -0,0 +1,231 @@ + + + + + PredictionIO Scala API 0.11.0-incubating + + + + + + + + +
+
SanityCheck
+ +
+
Scala
+ +
+
SelfCleaningDataSource
+ +
+
SerializableClass
+ +
+
Serializer
+ +
+
ServerActor
+ +
+
ServerConfig
+ +
+
ServingMap
+ +
+
ServingPrefix
+ +
+
ServingResult
+ +
+
SimpleEngine
+ +
+
SimpleEngineParams
+ +
+
SparkVersionDependent
+ +
+
SparkWorkflowUtils
+ +
+
StartServer
+ +
+
StdevMetric
+ +
+
StopAfterPrepareInterruption
+ +
+
StopAfterReadInterruption
+ +
+
StopServer
+ +
+
Storage
+ +
+
StorageClient
+ +
+
StorageClientConfig
+ +
+
StorageClientException
+ +
+
StorageException
+ +
+
SumMetric
+ +
+
sanityCheck
+ +
+
save
+ +
+
saveEngineJson
+ +
+
saveModel
+ +
+
sbtVersion
+ +
+
sc
+ +
+
scalaBinaryVersion
+ +
+
scalaVersion
+ +
+
score
+ +
+
scrollLife
+ +
+
search
+ +
+
segmentio
+ +
+
serializeToJValue
+ +
+
serve
+ +
+
serveBase
+ +
+
serverConfig
+ +
+
serverStartTime
+ +
+
serving
+ +
+
servingCache
+ +
+
servingClassMap
+ +
+
servingParams
+ +
+
settings
+ +
+
size
+ +
+
skipSanityCheck
+ +
+
some
+ +
+
sparkConf
+ +
+
sparkEnv
+ +
+
sparkVersion
+ +
+
specialEvents
+ +
+
splitData
+ +
+
sprayHttpListener
+ +
+
sqlSession
+ +
+
sslEnforced
+ +
+
start
+ +
+
startTime
+ +
+
status
+ +
+
stopAfterPrepare
+ +
+
stopAfterRead
+ +
+
storage
+ +
+
store
+ +
+
stringDouble
+ +
+
stringInt
+ +
+
stringLong
+ +
+
stringToMap
+ +
+
supplement
+ +
+
supplementBase
+ +
+
system
+ +
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/index/index-t.html ---------------------------------------------------------------------- diff --git a/api/current/index/index-t.html b/api/current/index/index-t.html new file mode 100644 index 0000000..82bdd32 --- /dev/null +++ b/api/current/index/index-t.html @@ -0,0 +1,96 @@ + + + + + PredictionIO Scala API 0.11.0-incubating + + + + + + + + +
+
tableName
+ +
+
tags
+ +
+
take
+ +
+
targetEntityId
+ +
+
targetEntityType
+ +
+
test
+ +
+
thirdPartyClasspaths
+ +
+
thirdPartyConfFiles
+ +
+
thirdPartyJars
+ +
+
timeout
+ +
+
timestampFunction
+ +
+
title
+ +
+
toBinary
+ +
+
toBytes
+ +
+
toHTML
+ +
+
toJObject
+ +
+
toJSON
+ +
+
toJValue
+ +
+
toList
+ +
+
toMap
+ +
+
toOneLiner
+ +
+
toSeq
+ +
+
toString
+ +
+
train
+ +
+
trainBase
+ +
+
transitionVectors
+ +
+
typeExistResponse
+ +
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/index/index-u.html ---------------------------------------------------------------------- diff --git a/api/current/index/index-u.html b/api/current/index/index-u.html new file mode 100644 index 0000000..dc28f03 --- /dev/null +++ b/api/current/index/index-u.html @@ -0,0 +1,42 @@ + + + + + PredictionIO Scala API 0.11.0-incubating + + + + + + + + +
+
Upgrade
+ +
+
Upgrade_0_8_3
+ +
+
Utils
+ +
+
undeploy
+ +
+
update
+ +
+
upgrade
+ +
+
upgradeCopy
+ +
+
url
+ +
+
uuidLow
+ +
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/index/index-v.html ---------------------------------------------------------------------- diff --git a/api/current/index/index-v.html b/api/current/index/index-v.html new file mode 100644 index 0000000..fdb7a11 --- /dev/null +++ b/api/current/index/index-v.html @@ -0,0 +1,30 @@ + + + + + PredictionIO Scala API 0.11.0-incubating + + + + + + + + +
+
validate
+ +
+
validateProperties
+ +
+
verbose
+ +
+
verbosity
+ +
+
version
+ +
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/index/index-w.html ---------------------------------------------------------------------- diff --git a/api/current/index/index-w.html b/api/current/index/index-w.html new file mode 100644 index 0000000..9c19246 --- /dev/null +++ b/api/current/index/index-w.html @@ -0,0 +1,60 @@ + + + + + PredictionIO Scala API 0.11.0-incubating + + + + + + + + +
+
WithPrId
+ +
+
WithQuerySerializer
+ +
+
Workflow
+ +
+
WorkflowConfig
+ +
+
WorkflowContext
+ +
+
WorkflowInterruption
+ +
+
WorkflowParams
+ +
+
WorkflowUtils
+ +
+
webhooks
+ +
+
wipe
+ +
+
wipePEvents
+ +
+
workflow
+ +
+
workflowParams
+ +
+
write
+ +
+
writeJson
+ +
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/index/index-z.html ---------------------------------------------------------------------- diff --git a/api/current/index/index-z.html b/api/current/index/index-z.html new file mode 100644 index 0000000..2959aba --- /dev/null +++ b/api/current/index/index-z.html @@ -0,0 +1,18 @@ + + + + + PredictionIO Scala API 0.11.0-incubating + + + + + + + + +
+
ZeroMetric
+ +
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/arrow-down.png ---------------------------------------------------------------------- diff --git a/api/current/lib/arrow-down.png b/api/current/lib/arrow-down.png new file mode 100644 index 0000000..7229603 Binary files /dev/null and b/api/current/lib/arrow-down.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/arrow-right.png ---------------------------------------------------------------------- diff --git a/api/current/lib/arrow-right.png b/api/current/lib/arrow-right.png new file mode 100644 index 0000000..b2f2935 Binary files /dev/null and b/api/current/lib/arrow-right.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/class.png ---------------------------------------------------------------------- diff --git a/api/current/lib/class.png b/api/current/lib/class.png new file mode 100644 index 0000000..97edbd4 Binary files /dev/null and b/api/current/lib/class.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/class_big.png ---------------------------------------------------------------------- diff --git a/api/current/lib/class_big.png b/api/current/lib/class_big.png new file mode 100644 index 0000000..cb1f638 Binary files /dev/null and b/api/current/lib/class_big.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/class_diagram.png ---------------------------------------------------------------------- diff --git a/api/current/lib/class_diagram.png b/api/current/lib/class_diagram.png new file mode 100644 index 0000000..9d7aec7 Binary files /dev/null and b/api/current/lib/class_diagram.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/class_to_object_big.png ---------------------------------------------------------------------- diff --git a/api/current/lib/class_to_object_big.png b/api/current/lib/class_to_object_big.png new file mode 100644 index 0000000..5dd6e38 Binary files /dev/null and b/api/current/lib/class_to_object_big.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/constructorsbg.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/constructorsbg.gif b/api/current/lib/constructorsbg.gif new file mode 100644 index 0000000..2e3f5ea Binary files /dev/null and b/api/current/lib/constructorsbg.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/conversionbg.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/conversionbg.gif b/api/current/lib/conversionbg.gif new file mode 100644 index 0000000..4be145d Binary files /dev/null and b/api/current/lib/conversionbg.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/defbg-blue.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/defbg-blue.gif b/api/current/lib/defbg-blue.gif new file mode 100644 index 0000000..6903833 Binary files /dev/null and b/api/current/lib/defbg-blue.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/defbg-green.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/defbg-green.gif b/api/current/lib/defbg-green.gif new file mode 100644 index 0000000..36c43be Binary files /dev/null and b/api/current/lib/defbg-green.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/diagrams.css ---------------------------------------------------------------------- diff --git a/api/current/lib/diagrams.css b/api/current/lib/diagrams.css new file mode 100644 index 0000000..5fe33f7 --- /dev/null +++ b/api/current/lib/diagrams.css @@ -0,0 +1,143 @@ +.diagram-container +{ + display: none; +} + +.diagram +{ + overflow: hidden; + padding-top:15px; +} + +.diagram svg +{ + display: block; + position: absolute; + visibility: hidden; + margin: auto; +} + +.diagram-help +{ + float:right; + display:none; +} + +.magnifying +{ + cursor: -webkit-zoom-in ! important; + cursor: -moz-zoom-in ! important; + cursor: pointer; +} + +#close-link +{ + position: absolute; + z-index: 100; + font-family: Arial, sans-serif; + font-size: 10pt; + text-decoration: underline; + color: #315479; +} + +#close:hover +{ + text-decoration: none; +} + +svg a +{ + cursor:pointer; +} + +svg text +{ + font-size: 10px; +} + +/* try to move the node text 1px in order to be vertically + centered (does not work in all browsers) */ +svg .node text +{ + transform: translate(0px,1px); + -ms-transform: translate(0px,1px); + -webkit-transform: translate(0px,1px); + -o-transform: translate(0px,1px); + -moz-transform: translate(0px,1px); +} + +/* hover effect for edges */ + +svg .edge.over text, +svg .edge.implicit-incoming.over polygon, +svg .edge.implicit-outgoing.over polygon +{ + fill: #202020; +} + +svg .edge.over path, +svg .edge.over polygon +{ + stroke: #202020; +} + +/* hover effect for nodes in class diagrams */ + +svg.class-diagram .node +{ + opacity: 0.75; +} + +svg.class-diagram .node.this +{ + opacity: 1.0; +} + +svg.class-diagram .node.over +{ + opacity: 1.0; +} + +svg .node.over polygon +{ + stroke: #202020; +} + +/* hover effect for nodes in package diagrams */ + +svg.package-diagram .node.class.over polygon, +svg.class-diagram .node.this.class.over polygon +{ + fill: #098552; + fill: #04663e; +} + +svg.package-diagram .node.trait.over polygon, +svg.class-diagram .node.this.trait.over polygon +{ + fill: #3c7b9b; + fill: #235d7b; +} + +svg.package-diagram .node.type.over polygon, +svg.class-diagram .node.this.type.over polygon +{ + fill: #098552; + fill: #04663e; +} + + +svg.package-diagram .node.object.over polygon +{ + fill: #183377; +} + +svg.package-diagram .node.outside.over polygon +{ + fill: #d4d4d4; +} + +svg.package-diagram .node.default.over polygon +{ + fill: #d4d4d4; +} http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/diagrams.js ---------------------------------------------------------------------- diff --git a/api/current/lib/diagrams.js b/api/current/lib/diagrams.js new file mode 100644 index 0000000..478f2e3 --- /dev/null +++ b/api/current/lib/diagrams.js @@ -0,0 +1,324 @@ +/** + * JavaScript functions enhancing the SVG diagrams. + * + * @author Damien Obrist + */ + +var diagrams = {}; + +/** + * Initializes the diagrams in the main window. + */ +$(document).ready(function() +{ + // hide diagrams in browsers not supporting SVG + if(Modernizr && !Modernizr.inlinesvg) + return; + + // only execute this in the main window + if(diagrams.isPopup) + return; + + if($("#content-diagram").length) + $("#inheritance-diagram").css("padding-bottom", "20px"); + + $(".diagram-container").css("display", "block"); + + $(".diagram").each(function() { + // store inital dimensions + $(this).data("width", $("svg", $(this)).width()); + $(this).data("height", $("svg", $(this)).height()); + // store unscaled clone of SVG element + $(this).data("svg", $(this).get(0).childNodes[0].cloneNode(true)); + }); + + // make diagram visible, hide container + $(".diagram").css("display", "none"); + $(".diagram svg").css({ + "position": "static", + "visibility": "visible", + "z-index": "auto" + }); + + // enable linking to diagrams + if($(location).attr("hash") == "#inheritance-diagram") { + diagrams.toggle($("#inheritance-diagram-container"), true); + } else if($(location).attr("hash") == "#content-diagram") { + diagrams.toggle($("#content-diagram-container"), true); + } + + $(".diagram-link").click(function() { + diagrams.toggle($(this).parent()); + }); + + // register resize function + $(window).resize(diagrams.resize); + + // don't bubble event to parent div + // when clicking on a node of a resized + // diagram + $("svg a").click(function(e) { + e.stopPropagation(); + }); + + diagrams.initHighlighting(); +}); + +/** + * Initializes the diagrams in the popup. + */ +diagrams.initPopup = function(id) +{ + // copy diagram from main window + if(!jQuery.browser.msie) + $("body").append(opener.$("#" + id).data("svg")); + + // positioning + $("svg").css("position", "absolute"); + $(window).resize(function() + { + var svg_w = $("svg").css("width").replace("px", ""); + var svg_h = $("svg").css("height").replace("px", ""); + var x = $(window).width() / 2 - svg_w / 2; + if(x < 0) x = 0; + var y = $(window).height() / 2 - svg_h / 2; + if(y < 0) y = 0; + $("svg").css("left", x + "px"); + $("svg").css("top", y + "px"); + }); + $(window).resize(); + + diagrams.initHighlighting(); + $("svg a").click(function(e) { + opener.diagrams.redirectFromPopup(this.href.baseVal); + window.close(); + }); + $(document).keyup(function(e) { + if (e.keyCode == 27) window.close(); + }); +} + +/** + * Initializes highlighting for nodes and edges. + */ +diagrams.initHighlighting = function() +{ + // helper function since $.hover doesn't work in IE + + function hover(elements, fn) + { + elements.mouseover(fn); + elements.mouseout(fn); + } + + // inheritance edges + + hover($("svg .edge.inheritance"), function(evt){ + var toggleClass = evt.type == "mouseout" ? diagrams.removeClass : diagrams.addClass; + var parts = $(this).attr("id").split("_"); + toggleClass($("#" + parts[0] + "_" + parts[1])); + toggleClass($("#" + parts[0] + "_" + parts[2])); + toggleClass($(this)); + }); + + // nodes + + hover($("svg .node"), function(evt){ + var toggleClass = evt.type == "mouseout" ? diagrams.removeClass : diagrams.addClass; + toggleClass($(this)); + var parts = $(this).attr("id").split("_"); + var index = parts[1]; + $("svg#" + parts[0] + " .edge.inheritance").each(function(){ + var parts2 = $(this).attr("id").split("_"); + if(parts2[1] == index) + { + toggleClass($("#" + parts2[0] + "_" + parts2[2])); + toggleClass($(this)); + } else if(parts2[2] == index) + { + toggleClass($("#" + parts2[0] + "_" + parts2[1])); + toggleClass($(this)); + } + }); + }); + + // incoming implicits + + hover($("svg .node.implicit-incoming"), function(evt){ + var toggleClass = evt.type == "mouseout" ? diagrams.removeClass : diagrams.addClass; + toggleClass($(this)); + toggleClass($("svg .edge.implicit-incoming")); + toggleClass($("svg .node.this")); + }); + + hover($("svg .edge.implicit-incoming"), function(evt){ + var toggleClass = evt.type == "mouseout" ? diagrams.removeClass : diagrams.addClass; + toggleClass($(this)); + toggleClass($("svg .node.this")); + $("svg .node.implicit-incoming").each(function(){ + toggleClass($(this)); + }); + }); + + // implicit outgoing nodes + + hover($("svg .node.implicit-outgoing"), function(evt){ + var toggleClass = evt.type == "mouseout" ? diagrams.removeClass : diagrams.addClass; + toggleClass($(this)); + toggleClass($("svg .edge.implicit-outgoing")); + toggleClass($("svg .node.this")); + }); + + hover($("svg .edge.implicit-outgoing"), function(evt){ + var toggleClass = evt.type == "mouseout" ? diagrams.removeClass : diagrams.addClass; + toggleClass($(this)); + toggleClass($("svg .node.this")); + $("svg .node.implicit-outgoing").each(function(){ + toggleClass($(this)); + }); + }); +}; + +/** + * Resizes the diagrams according to the available width. + */ +diagrams.resize = function() +{ + // available width + var availableWidth = $("body").width() - 20; + + $(".diagram-container").each(function() { + // unregister click event on whole div + $(".diagram", this).unbind("click"); + var diagramWidth = $(".diagram", this).data("width"); + var diagramHeight = $(".diagram", this).data("height"); + + if(diagramWidth > availableWidth) + { + // resize diagram + var height = diagramHeight / diagramWidth * availableWidth; + $(".diagram svg", this).width(availableWidth); + $(".diagram svg", this).height(height); + + // register click event on whole div + $(".diagram", this).click(function() { + diagrams.popup($(this)); + }); + $(".diagram", this).addClass("magnifying"); + } + else + { + // restore full size of diagram + $(".diagram svg", this).width(diagramWidth); + $(".diagram svg", this).height(diagramHeight); + // don't show custom cursor any more + $(".diagram", this).removeClass("magnifying"); + } + }); +}; + +/** + * Shows or hides a diagram depending on its current state. + */ +diagrams.toggle = function(container, dontAnimate) +{ + // change class of link + $(".diagram-link", container).toggleClass("open"); + // get element to show / hide + var div = $(".diagram", container); + if (div.is(':visible')) + { + $(".diagram-help", container).hide(); + div.unbind("click"); + div.removeClass("magnifying"); + div.slideUp(100); + } + else + { + diagrams.resize(); + if(dontAnimate) + div.show(); + else + div.slideDown(100); + $(".diagram-help", container).show(); + } +}; + +/** + * Opens a popup containing a copy of a diagram. + */ +diagrams.windows = {}; +diagrams.popup = function(diagram) +{ + var id = diagram.attr("id"); + if(!diagrams.windows[id] || diagrams.windows[id].closed) { + var title = $(".symbol .name", $("#signature")).text(); + // cloning from parent window to popup somehow doesn't work in IE + // therefore include the SVG as a string into the HTML + var svgIE = jQuery.browser.msie ? $("
").append(diagram.data("svg")).html() : ""; + var html = '' + + '\n' + + '\n' + + '\n' + + ' \n' + + ' ' + title + '\n' + + ' \n' + + ' \n' + + ' \n' + + ' \n' + + ' \n' + + ' \n' + + ' Close this window\n' + + ' ' + svgIE + '\n' + + ' \n' + + ''; + + var padding = 30; + var screenHeight = screen.availHeight; + var screenWidth = screen.availWidth; + var w = Math.min(screenWidth, diagram.data("width") + 2 * padding); + var h = Math.min(screenHeight, diagram.data("height") + 2 * padding); + var left = (screenWidth - w) / 2; + var top = (screenHeight - h) / 2; + var parameters = "height=" + h + ", width=" + w + ", left=" + left + ", top=" + top + ", scrollbars=yes, location=no, resizable=yes"; + var win = window.open("about:blank", "_blank", parameters); + win.document.open(); + win.document.write(html); + win.document.close(); + diagrams.windows[id] = win; + } + win.focus(); +}; + +/** + * This method is called from within the popup when a node is clicked. + */ +diagrams.redirectFromPopup = function(url) +{ + window.location = url; +}; + +/** + * Helper method that adds a class to a SVG element. + */ +diagrams.addClass = function(svgElem, newClass) { + newClass = newClass || "over"; + var classes = svgElem.attr("class"); + if ($.inArray(newClass, classes.split(/\s+/)) == -1) { + classes += (classes ? ' ' : '') + newClass; + svgElem.attr("class", classes); + } +}; + +/** + * Helper method that removes a class from a SVG element. + */ +diagrams.removeClass = function(svgElem, oldClass) { + oldClass = oldClass || "over"; + var classes = svgElem.attr("class"); + classes = $.grep(classes.split(/\s+/), function(n, i) { return n != oldClass; }).join(' '); + svgElem.attr("class", classes); +}; + http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filter_box_left.png ---------------------------------------------------------------------- diff --git a/api/current/lib/filter_box_left.png b/api/current/lib/filter_box_left.png new file mode 100644 index 0000000..0e8c893 Binary files /dev/null and b/api/current/lib/filter_box_left.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filter_box_left2.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/filter_box_left2.gif b/api/current/lib/filter_box_left2.gif new file mode 100644 index 0000000..b9b4907 Binary files /dev/null and b/api/current/lib/filter_box_left2.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filter_box_right.png ---------------------------------------------------------------------- diff --git a/api/current/lib/filter_box_right.png b/api/current/lib/filter_box_right.png new file mode 100644 index 0000000..f127e35 Binary files /dev/null and b/api/current/lib/filter_box_right.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filterbg.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/filterbg.gif b/api/current/lib/filterbg.gif new file mode 100644 index 0000000..542ba4a Binary files /dev/null and b/api/current/lib/filterbg.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filterboxbarbg.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/filterboxbarbg.gif b/api/current/lib/filterboxbarbg.gif new file mode 100644 index 0000000..b5075c1 Binary files /dev/null and b/api/current/lib/filterboxbarbg.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filterboxbarbg.png ---------------------------------------------------------------------- diff --git a/api/current/lib/filterboxbarbg.png b/api/current/lib/filterboxbarbg.png new file mode 100644 index 0000000..d613cf5 Binary files /dev/null and b/api/current/lib/filterboxbarbg.png differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/filterboxbg.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/filterboxbg.gif b/api/current/lib/filterboxbg.gif new file mode 100644 index 0000000..ae2f858 Binary files /dev/null and b/api/current/lib/filterboxbg.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/fullcommenttopbg.gif ---------------------------------------------------------------------- diff --git a/api/current/lib/fullcommenttopbg.gif b/api/current/lib/fullcommenttopbg.gif new file mode 100644 index 0000000..a0d93f4 Binary files /dev/null and b/api/current/lib/fullcommenttopbg.gif differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/e6b99ff0/api/current/lib/index.css ---------------------------------------------------------------------- diff --git a/api/current/lib/index.css b/api/current/lib/index.css new file mode 100644 index 0000000..55fb370 --- /dev/null +++ b/api/current/lib/index.css @@ -0,0 +1,338 @@ +* { + color: inherit; + font-size: 10pt; + text-decoration: none; + font-family: Arial, sans-serif; + border-width: 0px; + padding: 0px; + margin: 0px; +} + +a { + cursor: pointer; +} + +a:hover { + text-decoration: underline; +} + +h1 { + display: none; +} + +.selected { + -moz-box-shadow: inset 0px 5px 10px rgba(58, 88, 97, .36); + -webkit-box-shadow: inset 0px 5px 10px rgba(58, 88, 97, .36); + border-top: solid 1px rgba(119, 138, 153, 0.8); + border-bottom: solid 1px rgba(151, 173, 191, 0.4); + background-color: #ced2d9; + margin: -1px 0px; +} + +/*.letters { + font-family: monospace; + font-size: 2pt; + padding: 5px; + background-color: #DADADA; + text-shadow: #ffffff 0 1px 0; +}*/ + +#library { + display: none; +} + +#browser { + top: 0px; + left: 0px; + bottom: 0px; + width: 100%; + display: block; + position: fixed; +} + +#filter { + position: absolute; + display: block; +/* padding: 5px;*/ + right: 0; + left: 0; + top: 0; + background-image:url('filterbg.gif'); + background-repeat:repeat-x; + background-color: #ededee; /* light gray */ + /*background-color: #DADADA;*/ + border:1px solid #bbbbbb; + border-top:0; + border-left:0; + border-right:0; +} + +#textfilter { + position: relative; + display: block; + height: 20px; + margin-top: 5px; + margin-bottom: 5px; +} + +#textfilter > .pre { + display: block; + position: absolute; + top: 0; + left: 0; + height: 23px; + width: 21px; + background: url("filter_box_left.png"); +} + +#textfilter > .input { + display: block; + position: absolute; + top: 0; + right: 20px; + left: 20px; +} + +#textfilter > .input > input { + height: 20px; + padding: 1px; + font-weight: bold; + color: #000000; + background: #ffffff url("filterboxbarbg.png") repeat-x bottom left; + width: 100%; +} + +#textfilter > .post { + display: block; + position: absolute; + top: 0; + right: 0; + height: 23px; + width: 21px; + background: url("filter_box_right.png"); +} + +/*#textfilter { + position: relative; + display: block; + height: 20px; + margin-bottom: 5px; +} + +#textfilter > .pre { + display: block; + position: absolute; + top: 0; + left: 0; + height: 20px; + width: 20px; + background: url("filter_box_left.png"); +} + +#textfilter > .input { + display: block; + position: absolute; + top: 0; + right: 20px; + left: 20px; +} + +#textfilter > .input > input { + height: 16px; + padding: 2px; + font-weight: bold; + color: darkblue; + background-color: white; + width: 100%; +} + +#textfilter > .post { + display: block; + position: absolute; + top: 0; + right: 0; + height: 20px; + width: 20px; + background: url("filter_box_right.png"); +}*/ + +#focusfilter { + position: relative; + text-align: center; + display: block; + padding: 5px; + background-color: #fffebd; /* light yellow*/ + text-shadow: #ffffff 0 1px 0; +} + +#focusfilter .focuscoll { + font-weight: bold; + text-shadow: #ffffff 0 1px 0; +} + +#focusfilter img { + bottom: -2px; + position: relative; +} + +#kindfilter { + position: relative; + display: block; + padding: 5px; +/* background-color: #999;*/ + text-align: center; +} + +#kindfilter > a { + color: black; +/* text-decoration: underline;*/ + text-shadow: #ffffff 0 1px 0; + +} + +#kindfilter > a:hover { + color: #4C4C4C; + text-decoration: none; + text-shadow: #ffffff 0 1px 0; +} + +#letters { + position: relative; + text-align: center; + padding-bottom: 5px; + border:1px solid #bbbbbb; + border-top:0; + border-left:0; + border-right:0; +} + +#letters > a, #letters > span { +/* font-family: monospace;*/ + color: #858484; + font-weight: bold; + font-size: 8pt; + text-shadow: #ffffff 0 1px 0; + padding-right: 2px; +} + +#letters > span { + color: #bbb; +} + +#tpl { + display: block; + position: fixed; + overflow: auto; + right: 0; + left: 0; + bottom: 0; + top: 5px; + position: absolute; + display: block; +} + +#tpl .packhide { + display: block; + float: right; + font-weight: normal; + color: white; +} + +#tpl .packfocus { + display: block; + float: right; + font-weight: normal; + color: white; +} + +#tpl .packages > ol { + background-color: #dadfe6; + /*margin-bottom: 5px;*/ +} + +/*#tpl .packages > ol > li { + margin-bottom: 1px; +}*/ + +#tpl .packages > li > a { + padding: 0px 5px; +} + +#tpl .packages > li > a.tplshow { + display: block; + color: white; + font-weight: bold; + display: block; + text-shadow: #000000 0 1px 0; +} + +#tpl ol > li.pack { + padding: 3px 5px; + background: url("packagesbg.gif"); + background-repeat:repeat-x; + min-height: 14px; + background-color: #6e808e; +} + +#tpl ol > li { + display: block; +} + +#tpl .templates > li { + padding-left: 5px; + min-height: 18px; +} + +#tpl ol > li .icon { + padding-right: 5px; + bottom: -2px; + position: relative; +} + +#tpl .templates div.placeholder { + padding-right: 5px; + width: 13px; + display: inline-block; +} + +#tpl .templates span.tplLink { + padding-left: 5px; +} + +#content { + border-left-width: 1px; + border-left-color: black; + border-left-style: white; + right: 0px; + left: 0px; + bottom: 0px; + top: 0px; + position: fixed; + margin-left: 300px; + display: block; +} + +#content > iframe { + display: block; + height: 100%; + width: 100%; +} + +.ui-layout-pane { + background: #FFF; + overflow: auto; +} + +.ui-layout-resizer { + background-image:url('filterbg.gif'); + background-repeat:repeat-x; + background-color: #ededee; /* light gray */ + border:1px solid #bbbbbb; + border-top:0; + border-bottom:0; + border-left: 0; +} + +.ui-layout-toggler { + background: #AAA; +} \ No newline at end of file