pollination-react-io 1.70.2 → 1.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/hooks/usePollinationPanel.d.ts +9 -2
- package/build/index.esm.js +13 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +12 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -38020,6 +38020,14 @@ function formatBytes(bytes, decimals) {
|
|
38020
38020
|
return "".concat(parseFloat((bytes / Math.pow(k, i)).toFixed(dm)), " ").concat(sizes[i]);
|
38021
38021
|
}
|
38022
38022
|
|
38023
|
+
exports.TargetPlaform = void 0;
|
38024
|
+
(function (TargetPlaform) {
|
38025
|
+
TargetPlaform["all"] = "all";
|
38026
|
+
TargetPlaform["rhino"] = "rhino";
|
38027
|
+
TargetPlaform["revit"] = "revit";
|
38028
|
+
TargetPlaform["grasshopper"] = "grasshopper";
|
38029
|
+
TargetPlaform["sketchup"] = "sketchup";
|
38030
|
+
})(exports.TargetPlaform || (exports.TargetPlaform = {}));
|
38023
38031
|
var SimulationFileType;
|
38024
38032
|
(function (SimulationFileType) {
|
38025
38033
|
SimulationFileType[SimulationFileType["status"] = 0] = "status";
|
@@ -38171,11 +38179,13 @@ var usePollinationPanel = function () {
|
|
38171
38179
|
* @param curPage Current page
|
38172
38180
|
* @returns Array of ProjectJobInfo
|
38173
38181
|
*/
|
38174
|
-
var getPaginatedJob = function (projectSlug, pageSize, curPage) {
|
38182
|
+
var getPaginatedJob = function (projectSlug, pageSize, curPage, status, platform) {
|
38183
|
+
if (status === void 0) { status = undefined; }
|
38184
|
+
if (platform === void 0) { platform = exports.TargetPlaform.all; }
|
38175
38185
|
if (!panel)
|
38176
38186
|
return;
|
38177
38187
|
try {
|
38178
|
-
var message = panel.GetPaginatedJob(projectSlug, pageSize, curPage);
|
38188
|
+
var message = panel.GetPaginatedJob(projectSlug, pageSize, curPage, status, platform);
|
38179
38189
|
var arr = JSON.parse(message.data);
|
38180
38190
|
return arr;
|
38181
38191
|
}
|