@mica-js/editor 0.7.6 → 0.8.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.
@@ -376,6 +376,8 @@ export declare interface IFusedLoadRequest {
376
376
  readonly document: FusedDocument;
377
377
  /** Fixed positive step of every advance, in picoseconds. */
378
378
  readonly step: TimePs;
379
+ /** Explicit simulator batch-execution switch; omitted uses the board default. */
380
+ readonly batchExecution?: boolean;
379
381
  }
380
382
 
381
383
  /** Model lane served by the simulation guest to the display guest over the direct port. */
@@ -513,6 +515,8 @@ export declare interface IFusedRuntimeOptions {
513
515
  readonly registry: DeviceRegistry;
514
516
  /** Fixed positive step of every advance, in picoseconds. */
515
517
  readonly step: TimePs;
518
+ /** Explicit simulator batch-execution switch; omitted uses the board default and is kept across reset. */
519
+ readonly batchExecution?: boolean;
516
520
  /** Presentation mode prepared on creation; defaults to `edit`. */
517
521
  readonly mode?: FusedDisplayMode;
518
522
  /** Explicit resolver of `file` and `store` property resources (RFC 0020). */
@@ -1,3 +1,3 @@
1
1
  import { c as toWireFailure, i as isFusedBridgeError, n as FusedBridgeError, o as mapWireFailure, r as fromWireFailure, t as FUSED_WIRE_FAILURE } from "./wire-BDHL5Aj9.js";
2
- import { _ as fusedModelSinkService, a as createFusedRuntime, c as createModelEventRouter, d as createHostPackageGateway, f as packageLockKey, g as fusedModelChannelService, h as fusedHostResourceService, i as startFusedSimulationGuest, l as createFusedDisplay, m as fusedHostPackageService, n as startFusedDisplayGuest, o as createHostModelRouter, p as fusedDisplayService, r as createViewSession, s as channelKey, t as loadFusedWorkerFactories, u as connectFusedWorkbench, v as fusedSimulationService } from "./runtime-DyWEK44n.js";
2
+ import { _ as fusedModelSinkService, a as createFusedRuntime, c as createModelEventRouter, d as createHostPackageGateway, f as packageLockKey, g as fusedModelChannelService, h as fusedHostResourceService, i as startFusedSimulationGuest, l as createFusedDisplay, m as fusedHostPackageService, n as startFusedDisplayGuest, o as createHostModelRouter, p as fusedDisplayService, r as createViewSession, s as channelKey, t as loadFusedWorkerFactories, u as connectFusedWorkbench, v as fusedSimulationService } from "./runtime-C_EXxWcB.js";
3
3
  export { FUSED_WIRE_FAILURE, FusedBridgeError, channelKey, connectFusedWorkbench, createFusedDisplay, createFusedRuntime, createHostModelRouter, createHostPackageGateway, createModelEventRouter, createViewSession, fromWireFailure, fusedDisplayService, fusedHostPackageService, fusedHostResourceService, fusedModelChannelService, fusedModelSinkService, fusedSimulationService, isFusedBridgeError, loadFusedWorkerFactories, mapWireFailure, packageLockKey, startFusedDisplayGuest, startFusedSimulationGuest, toWireFailure };
package/dist/fused.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as planPolylineSegmentDrag, n as orthogonalWaypoints, t as extendWirePath } from "./wire-JZIiIOI0.js";
2
2
  import { Q as isHtmlViewError, _ as resolveTheme, a as createHtmlViewHost, f as WORKBENCH_DARK_COLORS, g as readCanvasTheme, h as normalizeTheme, m as WORKBENCH_THEME_CSS_VARIABLES, p as WORKBENCH_LIGHT_COLORS, v as themeStyle } from "./html-HXwZq1my.js";
3
- import { a as createFusedRuntime } from "./runtime-DyWEK44n.js";
3
+ import { a as createFusedRuntime } from "./runtime-C_EXxWcB.js";
4
4
  import { DisposableStore, Emitter } from "@mica-js/core/lifecycle";
5
5
  import { projectOnSegment } from "@mica-js/document/schematic";
6
6
  import { timePs } from "@mica-js/core";
package/dist/index.d.ts CHANGED
@@ -197,6 +197,8 @@ export declare interface ICanvasEditorOptions {
197
197
  readonly stepMs?: number;
198
198
  /** CPU execution mode; defaults to the simulator's throughput mode. */
199
199
  readonly execution?: 'throughput' | 'precise';
200
+ /** Explicit simulator batch-execution switch; omitted uses the board default and is validated by the runtime. */
201
+ readonly batchExecution?: boolean;
200
202
  readonly readOnly?: boolean;
201
203
  /** Fixed board voltages by exact schematic net name; ignored without a schematic. Ground stays zero. */
202
204
  readonly voltageReferences?: Readonly<Record<string, number>>;
package/dist/index.js CHANGED
@@ -5549,6 +5549,7 @@ var CanvasSession = class CanvasSession {
5549
5549
  await runtimes.simulation.load({
5550
5550
  schematic: resources.schematic,
5551
5551
  ...this.configuration.execution === void 0 ? {} : { execution: this.configuration.execution },
5552
+ ...this.configuration.batchExecution === void 0 ? {} : { batchExecution: this.configuration.batchExecution },
5552
5553
  ...this.configuration.voltageReferences === void 0 ? {} : { voltageReferences: this.configuration.voltageReferences },
5553
5554
  devices: resources.devices,
5554
5555
  assets: structuredClone(resources.simulationAssets)
@@ -7026,6 +7027,7 @@ async function createCanvasEditor(options) {
7026
7027
  container: options.container,
7027
7028
  ...options.stepMs === void 0 ? {} : { stepMs: options.stepMs },
7028
7029
  ...options.execution === void 0 ? {} : { execution: options.execution },
7030
+ ...options.batchExecution === void 0 ? {} : { batchExecution: options.batchExecution },
7029
7031
  ...options.voltageReferences === void 0 ? {} : { voltageReferences: Object.freeze(structuredClone(options.voltageReferences)) },
7030
7032
  ...measurement?.advance === void 0 ? {} : { observer: measurement.advance },
7031
7033
  ...measurement?.advanceStart === void 0 ? {} : { onAdvanceStart: measurement.advanceStart },