@promptbook/wizard 0.112.0-104 → 0.112.0-105

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/esm/index.es.js CHANGED
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
38
38
  * @generated
39
39
  * @see https://github.com/webgptorg/promptbook
40
40
  */
41
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-104';
41
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-105';
42
42
  /**
43
43
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
44
44
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -24877,10 +24877,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
24877
24877
  Math.max(0, Math.cos(effectiveLongitude)) * 0.1 +
24878
24878
  lowerBlend * tentacleInfluence.core * (0.1 + tentacleInfluence.depthScale * 0.06) -
24879
24879
  Math.max(0, -Math.cos(effectiveLongitude)) * 0.05;
24880
- const tentacleTubeRadius = lowerBlend *
24881
- tentacleInfluence.core *
24882
- (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) *
24883
- radiusX;
24880
+ const tentacleTubeRadius = lowerBlend * tentacleInfluence.core * (0.11 + tipBlend * 0.06 + tentacleInfluence.widthScale * 0.025) * radiusX;
24884
24881
  const planarRadiusX = cosineLatitude * radiusX * horizontalScale + tentacleTubeRadius;
24885
24882
  const planarRadiusZ = cosineLatitude * radiusZ * depthScale + tentacleTubeRadius * 0.72;
24886
24883
  const lowerDrop = lowerBlend *
@@ -24891,8 +24888,7 @@ function sampleContinuousOctopusSurfacePoint(options, latitude, longitude) {
24891
24888
  tentacleInfluence.lengthScale * 0.22 +
24892
24889
  (morphologyProfile.tentacles.flowLengthScale - 1) * 0.08));
24893
24890
  return {
24894
- x: Math.sin(effectiveLongitude) * planarRadiusX +
24895
- tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
24891
+ x: Math.sin(effectiveLongitude) * planarRadiusX + tentacleWave * radiusX * (0.052 + tipBlend * 0.05),
24896
24892
  y: Math.sin(latitude) * radiusY * (1 + upperBlend * 0.12) -
24897
24893
  upperBlend * radiusY * 0.1 +
24898
24894
  lowerDrop +
@@ -24966,8 +24962,11 @@ function resolveContinuousTentacleInfluence(options, longitude) {
24966
24962
  */
24967
24963
  function resolveContinuousLobeWave(options, longitude) {
24968
24964
  const { morphologyProfile, animationPhase, timeMs } = options;
24969
- return (Math.cos(longitude * OCTOPUS_TENTACLE_COUNT + animationPhase + timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
24970
- 1) / 2;
24965
+ return ((Math.cos(longitude * OCTOPUS_TENTACLE_COUNT +
24966
+ animationPhase +
24967
+ timeMs / (980 + morphologyProfile.body.lobeCount * 18)) +
24968
+ 1) /
24969
+ 2);
24971
24970
  }
24972
24971
  /**
24973
24972
  * Resolves one base fill tone for a patch on the continuous octopus mesh.
@@ -25031,8 +25030,7 @@ function drawProjectedSurfaceCurrents(options) {
25031
25030
  for (let sampleIndex = 0; sampleIndex < 8; sampleIndex++) {
25032
25031
  const progress = sampleIndex / 7;
25033
25032
  const latitude = -0.46 + progress * 0.74;
25034
- const longitude = baseLongitude +
25035
- Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
25033
+ const longitude = baseLongitude + Math.sin(timeMs / 1160 + animationPhase + currentIndex * 0.7 + progress * 2) * 0.035;
25036
25034
  const scenePoint = transformScenePoint(sampleContinuousOctopusSurfacePoint(surfaceOptions, latitude, longitude), center, rotationX, rotationY);
25037
25035
  if (scenePoint.z > center.z - size * 0.016) {
25038
25036
  projectedPoints.push(projectScenePoint(scenePoint, size, sceneCenterX, sceneCenterY));